/*
Theme Name: Willow Tree Landing
Theme URI: https://willowtree.ae/
Author: Willow Tree
Description: Standalone WordPress theme for the Willow Tree landing page (flat design, responsive).
Version: 1.0.2
Text Domain: willowtree-landing
*/

:root{
      --max: 1600px;

      --bg: #ffffff;
      --text: #243028;
      --muted: #6c6f6a;

      --brand: #3f5e45;     /* Willow Tree green */
      --brand-ink: #2f4936;

      --card: #f2f2ee;      /* warm light grey like your mock */
      --card-2: #efefe9;

      --pill: 999px;
      --radius: 18px;

      --shadow-sm: 0 10px 22px rgba(0,0,0,.06);
      --shadow-md: 0 16px 40px rgba(0,0,0,.08);

      /* Mobile gutters: raise minimum so headings/buttons never feel edge-to-edge */
      --pad-x: clamp(32px, 5vw, 56px);
      --pad-y: clamp(16px, 2.2vw, 28px);

      --content-indent: clamp(56px, 4.5vw, 84px);
      --logo-x: 0px; /* +/- moves header logo left/right */
      --hero-x: 0px; /* +/- moves hero copy left/right */
}

    *{ box-sizing:border-box; }
    html, body{ height:100%; }
    body{
      margin:0;
      background: var(--bg);
      color: var(--text);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow-x: hidden;
    }

    img{ max-width: 100%; height: auto; }

    /* Font hooks (replace src with your licensed font files) */
    @font-face{
      font-family: "Houschka Rounded";
      src: local("Houschka Rounded");
      font-display: swap;
    }
    @font-face{
      font-family: "Gotham Book";
      src: local("Gotham Book");
      font-display: swap;
    }

    .font-heading{
      font-family: "Houschka Rounded", ui-rounded, "Avenir Next", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    }
    .font-body{
      font-family: "Gotham Book", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    }

    a{ color: inherit; text-decoration: none; }
    a:focus-visible, button:focus-visible{
      outline: 3px solid rgba(63,94,69,.35);
      outline-offset: 3px;
      border-radius: 12px;
    }

    /*
      Use a theme-specific wrapper to avoid collisions with plugin/page-builder CSS
      that commonly defines a generic `.wrap` class.
    */
    .wt-wrap{
      max-width: var(--max);
      margin: 0 auto;
      /* Always keep comfortable gutters, including iOS safe-area insets */
      /* `!important` prevents common global WP/plugin overrides removing gutters on mobile */
      padding-left: max(var(--pad-x), calc(16px + env(safe-area-inset-left))) !important;
      padding-right: max(var(--pad-x), calc(16px + env(safe-area-inset-right))) !important;
      width: 100%;
    }

    /* Header */
    header{
      /* Slightly more breathing room at the top so the email pill never feels cramped */
      padding-top: clamp(44px, 5vw, 72px);
      padding-bottom: clamp(10px, 2vw, 18px);
    }
    .topbar{
      display:flex;
      align-items:flex-end;
      justify-content:space-between;
      gap: 18px;
      padding-top: 8px;
    }
    .logo{
      display:flex;
      align-items:center;
      min-width: 0;
      transform: translateX(var(--logo-x));
    }
    .logo img{
      height: clamp(64px, 6.2vw, 96px);
      width: auto;
      display:block;
    }

    .contact-pill{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      padding: 12px 22px;
      border-radius: var(--pill);
      background: var(--brand);
      color: #fff;
      font-weight: 600;
      letter-spacing: .2px;
      box-shadow: var(--shadow-sm);
      transition: background .15s ease, transform .15s ease;
      white-space: nowrap;
      margin-top: 14px; /* pushes the pill down a touch vs the top edge */
    }
    .contact-pill:hover{
      background: var(--brand-ink);
      transform: translateY(-1px);
    }

    
    /* (margin-top handled on the base rule above) */

/* Hero */
    .hero{
      padding: clamp(40px, 7vw, 92px) 0 clamp(34px, 6vw, 70px);
    }

    .hero-grid{
      display:grid;
      grid-template-columns: 1fr 1.25fr;
      gap: clamp(22px, 4vw, 64px);
      align-items:center;
    }

    /* Desktop alignment: keep hero copy, bento and delivery grids aligned to the logo word */
    @media (min-width: 921px){
      .hero-copy{
        padding-left: var(--content-indent);
        transform: translateX(var(--hero-x));
      }
      .bento-grid,
      .deliver-grid{
        margin-left: var(--content-indent);
        width: calc(100% - var(--content-indent));
      }
    }

    h1{
      margin: 0 0 18px 0;
      font-size: clamp(40px, 5.4vw, 78px);
      line-height: 1.02;
      letter-spacing: -0.02em;
      color: var(--brand);
    }

    .lede{
      margin: 0 0 24px 0;
      max-width: 56ch;
      color: var(--muted);
      font-size: clamp(15px, 1.35vw, 18px);
      line-height: 1.65;
    }

    .cta{
      display:flex;
      gap: 12px;
      flex-wrap: wrap;
      align-items:center;
    }

    .btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      padding: 12px 18px;
      border-radius: var(--pill);
      font-weight: 600;
      font-size: 14.5px;
      letter-spacing: .2px;
      transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
      border: 1px solid transparent;
      user-select: none;
    }

    .btn.primary{
      background: var(--brand);
      color: #fff;
      box-shadow: var(--shadow-sm);
    }
    .btn.primary:hover{
      background: var(--brand-ink);
      transform: translateY(-1px);
    }

    .btn.secondary{
      background: rgba(0,0,0,.04);
      color: var(--text);
      border-color: rgba(0,0,0,.06);
    }
    .btn.secondary:hover{
      background: rgba(0,0,0,.06);
      transform: translateY(-1px);
    }

    .hero-art{
      display:flex;
      justify-content:center;
      align-items:center;
    }
    .hero-art img{
      width: min(860px, 100%);
      height: auto;
      display:block;
    }

    /* Intro */
    .intro{
      padding: 0 0 clamp(42px, 6vw, 70px);
    }
    .intro-inner{
      text-align: center;
      padding-top: clamp(8px, 2vw, 14px);
    }
    .section-subtitle{
      margin: 0 0 10px 0;
      font-size: clamp(22px, 2.6vw, 34px);
      line-height: 1.2;
      letter-spacing: -0.01em;
      color: var(--brand);
    }
    .intro p{
      margin: 0 auto;
      max-width: 92ch;
      color: var(--muted);
      font-size: clamp(15px, 1.25vw, 18px);
      line-height: 1.75;
    }

    /* Bento cards */
    .bento{
      padding: 0 0 clamp(44px, 6vw, 76px);
    }
        .bento .section-subtitle{
      margin: 0 0 clamp(18px, 2.4vw, 28px) 0;
      text-align: center;
    }

    .bento-grid{
      display:grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: clamp(14px, 1.8vw, 18px);
      align-items: stretch;
    }
    .card{
      background: var(--card);
      border-radius: var(--radius);
      padding: clamp(18px, 2.2vw, 26px);
      box-shadow: 0 1px 0 rgba(0,0,0,.02);
      display:flex;
      flex-direction:column;
      /* Let the card grow naturally with content so the background always covers the full copy */
      height: auto;
    }
    .card h3{
      margin: 0 0 10px 0;
      font-size: 15px;
      font-weight: 600;
      color: #3d4a42;
      letter-spacing: .1px;
    }
    .card p{
      margin:0;
      color: var(--muted);
      font-size: 13.5px;
      line-height: 1.65;
      overflow-wrap: anywhere;
      word-break: break-word;
      hyphens: auto;
    }

    /* How we deliver */
    .deliver{
      padding: 0 0 clamp(70px, 10vw, 120px);
    }
    .deliver .section-subtitle{
      margin: 0 0 14px 0;
      text-align: center;
    }
    .deliver-grid{
      display:grid;
      grid-template-columns: 1.55fr .85fr;
      gap: clamp(14px, 1.8vw, 18px);
      align-items: stretch;
      margin-top: 12px;
    }
    .deliver-text{
      background: var(--card-2);
      border-radius: var(--radius);
      padding: clamp(18px, 2.2vw, 28px);
    }
    .deliver-text p{
      margin:0;
      color: var(--muted);
      font-size: 13.5px;
      line-height: 1.7;
      overflow-wrap: anywhere;
      word-break: break-word;
      hyphens: auto;
    }
    .deliver-text p + p{
      margin-top: 12px;
    }

    .deliver-logo{
      background: var(--brand);
      border-radius: var(--radius);
      display:flex;
      align-items:center;
      justify-content:center;
      padding: clamp(18px, 2.2vw, 28px);
      box-shadow: var(--shadow-md);
    }
    .deliver-logo img{
      width: min(220px, 70%);
      height: auto;
      display:block;
      filter: drop-shadow(0 12px 28px rgba(0,0,0,.18));
    }


    /* Footer */
    .site-footer{
      border-top: 1px solid rgba(0,0,0,.06);
      padding: clamp(44px, 6vw, 80px) 0 clamp(24px, 4vw, 46px);
      background: #fff;
    }

    .footer-logo{
      display:flex;
      justify-content:center;
      margin: 0 0 18px 0;
    }
    .footer-logo img{
      height: clamp(44px, 3.6vw, 64px);
      width: auto;
      display:block;
    }
    .footer-cta{
      text-align: center;
      max-width: 920px;
      margin: 0 auto;
    }
    .footer-cta p{
      margin: 0 auto 18px;
      max-width: 72ch;
      color: var(--muted);
      font-size: clamp(14px, 1.1vw, 16px);
      line-height: 1.7;
    }
    .footer-actions{
      display:flex;
      gap: 12px;
      justify-content:center;
      flex-wrap:wrap;
      align-items:center;
      margin-bottom: clamp(22px, 4vw, 36px);
    }
    .footer-bottom{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 12px;
      flex-wrap:wrap;
      padding-top: 18px;
      border-top: 1px solid rgba(0,0,0,.06);
      color: rgba(36,48,40,.72);
      font-size: 12.5px;
    }
    .footer-bottom a{
      color: rgba(36,48,40,.72);
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    .footer-bottom a:hover{
      color: var(--brand);
    }

    /* Responsive */
    @media (max-width: 1100px){
      .bento-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 1024px){
      .hero-grid{
        grid-template-columns: 1fr;
      }
      .hero{
        padding-top: clamp(26px, 6vw, 56px);
      }
      .lede{ max-width: 70ch; }
      .hero-art{ order: 2; }
      .deliver-grid{ grid-template-columns: 1fr; }
      .deliver-logo{ min-height: 220px; }
    }

    @media (max-width: 520px){
      .contact-pill{
        width: 100%;
        text-align:center;
      }
      .topbar{
        flex-direction: column;
        align-items: stretch;
      }
      .cta .btn{
        width: 100%;
      }
      .bento-grid{ grid-template-columns: 1fr; }
    }

/* Accessibility */
.screen-reader-text{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.screen-reader-text:focus{
  position:static;
  width:auto;
  height:auto;
  margin:0;
  clip:auto;
  white-space:normal;
}
