/*
Theme Name: Pick Up
Theme URI: https://pickupapp.ae
Author: Pick Up
Description: Custom landing theme for Pick Up, the curbside pickup app for licensed home kitchens in the UAE. Front page is the marketing site; posts and pages render in a clean matching shell.
Version: 1.1
Requires PHP: 7.4
License: Proprietary
Text Domain: pickup
*/

  /* ---- Brand tokens (mirrors mobile/src/theme.ts) ---- */
  :root {
    --accent: #7C8A4E;        /* olive green (primary) */
    --accent-dark: #5E6B37;   /* deeper olive: buttons/text */
    --accent-light: #C5D08F;  /* soft sage tints */
    --ink: #1E1F16;           /* warm near-black */
    --subtle: #6C6D62;        /* warm secondary text (4.5:1 on canvas) */
    --line: #EAE9DF;          /* warm hairline borders */
    --canvas: #F8F8F1;        /* warm cream */
    --surface: #FFFFFF;
    --green-deep: #2E7D46;    /* zone stroke / success */
    --star: #F5A623;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(30, 31, 22, .08);
    --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 40px;
    --space-5: 64px; --space-6: 96px;
    --font-display: 'Calistoga', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  }
  body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
  }
  img, svg { display: block; }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
  .display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }

  /* ---- Nav ---- */
  .nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(248, 248, 241, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner { display: flex; align-items: center; gap: var(--space-3); height: 64px; }
  .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
  .logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-dark); display: grid; place-items: center; }
  .logo-img { width: 34px; height: 34px; border-radius: 12px; }
  .foot-inner .logo-img { width: 28px; height: 28px; border-radius: 10px; }
  .nav-links { display: flex; gap: var(--space-3); margin-left: auto; }
  .nav-links a { text-decoration: none; color: var(--subtle); font-weight: 600; font-size: 14.5px; padding: 10px 2px; transition: color .2s; }
  .nav-links a:hover { color: var(--ink); }
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 22px; border-radius: 23px;
    background: var(--accent-dark); color: #fff; text-decoration: none;
    font-weight: 700; font-size: 15px; border: none; cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
    box-shadow: 0 6px 16px rgba(94, 107, 55, .28);
  }
  .btn:hover { transform: translateY(-1px); background: #4F5A2E; }
  .btn-ghost {
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--line); box-shadow: none;
  }
  .btn-ghost:hover { background: #FFFFFF; border-color: #DDDCD0; }
  .nav .btn { min-height: 40px; margin-left: var(--space-2); }

  /* ---- Hero ---- */
  .hero { padding: var(--space-6) 0 var(--space-5); overflow: hidden; }
  .hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-5); align-items: center; }
  .kicker {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(124, 138, 78, .12); color: var(--accent-dark);
    font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
    padding: 8px 14px; border-radius: 999px; margin-bottom: var(--space-3);
  }
  .kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-deep); }
  h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.06; margin-bottom: var(--space-3); }
  h1 em { font-style: normal; color: var(--accent-dark); }
  .lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--subtle); max-width: 34em; margin-bottom: var(--space-4); }
  .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
  .store-note { font-size: 13px; color: var(--subtle); margin-top: 14px; display: flex; align-items: center; gap: 8px; }
  .store-badge { display: inline-flex; align-items: center; border-radius: 10px; transition: transform .2s, opacity .2s; }
  .store-badge:hover { transform: translateY(-1px); opacity: .9; }
  .store-badge img { height: 52px; width: auto; }
  /* Google's official badge PNG ships with built-in padding; oversize + negative
     margins so both badges LOOK the same height. */
  .store-badge img.gplay { height: 78px; margin: -13px -14px; }

  /* Curbside scene: concentric pickup-zone rings + car (the app's signature) */
  .scene { position: relative; width: min(100%, 470px); aspect-ratio: 1 / 1; margin-inline: auto; }
  .rings { position: absolute; inset: 0; }
  .ring { position: absolute; border-radius: 50%; border: 2px solid rgba(46, 125, 70, .35); inset: 0; }
  .ring.r2 { inset: 13%; border-color: rgba(46, 125, 70, .45); }
  .ring.r3 { inset: 27%; border-color: rgba(46, 125, 70, .55); background: rgba(46, 125, 70, .06); }
  @keyframes ringPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.035); opacity: .75; } }
  .ring.r1 { animation: ringPulse 4.5s ease-in-out infinite; }
  .ring.r2 { animation: ringPulse 4.5s ease-in-out 1.1s infinite; }
  .scene-car { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .order-chip {
    position: absolute; left: 4%; top: 12%;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow); padding: 12px 16px;
    display: flex; gap: 10px; align-items: center; max-width: 240px;
  }
  .order-chip .thumb { width: 38px; height: 38px; border-radius: 10px; background: rgba(124, 138, 78, .16); display: grid; place-items: center; flex-shrink: 0; }
  .order-chip b { display: block; font-size: 13.5px; line-height: 1.3; }
  .order-chip span { font-size: 12px; color: var(--green-deep); font-weight: 600; }
  .arrive-chip {
    position: absolute; right: 0; bottom: 14%;
    background: var(--accent-dark); color: #fff; border-radius: 999px;
    padding: 12px 18px; font-weight: 700; font-size: 14px;
    box-shadow: 0 10px 24px rgba(94, 107, 55, .38);
    display: flex; align-items: center; gap: 8px;
  }

  /* ---- Trust strip ---- */
  .trust { border-block: 1px solid var(--line); background: var(--surface); }
  .trust-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); padding: var(--space-4) 0; }
  .trust-item { display: flex; gap: 14px; align-items: flex-start; }
  .trust-item .ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: rgba(124, 138, 78, .13); display: grid; place-items: center; }
  .trust-item b { display: block; font-size: 15px; margin-bottom: 2px; }
  .trust-item p { font-size: 13.5px; color: var(--subtle); }

  /* ---- Sections ---- */
  section { padding: var(--space-6) 0; }
  .sec-head { max-width: 640px; margin-bottom: var(--space-5); }
  .sec-head .tag { color: var(--accent-dark); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; display: block; }
  h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; margin-bottom: 14px; }
  .sec-head p { color: var(--subtle); font-size: 17px; }

  /* How it works: steps echo the in-app order tracker */
  .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); list-style: none; padding: 0; margin: 0; }
  .step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); box-shadow: var(--shadow); position: relative; }
  .step .num {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(124, 138, 78, .14); color: var(--accent-dark);
    display: grid; place-items: center; margin-bottom: 16px;
  }
  .step h3 { font-size: 17px; margin-bottom: 6px; }
  .step p { font-size: 14px; color: var(--subtle); }

  /* Feature grid */
  .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
  .feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); transition: transform .25s, box-shadow .25s; }
  .feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .feature .ic { width: 44px; height: 44px; border-radius: 13px; background: rgba(124, 138, 78, .13); display: grid; place-items: center; margin-bottom: 16px; }
  .feature h3 { font-size: 16.5px; margin-bottom: 6px; }
  .feature p { font-size: 14px; color: var(--subtle); }

  /* ---- For businesses (deep olive band) ---- */
  .biz { background: var(--accent-dark); color: #F5F6EC; border-radius: 28px; overflow: hidden; position: relative; }
  .biz-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--space-5); padding: var(--space-5); position: relative; }
  .biz .tag { color: var(--accent-light); }
  .biz h2 { color: #fff; }
  .biz-points { list-style: none; display: grid; gap: 18px; margin: var(--space-4) 0; }
  .biz-points li { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; }
  .biz-points b { color: #fff; }
  .biz-points p { color: rgba(245, 246, 236, .9); font-size: 14px; margin-top: 2px; }
  .biz-points .tick { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: rgba(197, 208, 143, .22); display: grid; place-items: center; margin-top: 1px; }
  .biz .btn { background: #fff; color: var(--accent-dark); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
  .biz .btn:hover { background: #F1F2E7; }
  .biz-note { font-size: 13px; color: rgba(245, 246, 236, .9); margin-top: 14px; max-width: 40em; }
  .fee-card {
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius); padding: var(--space-4); align-self: center;
  }
  .fee-big { font-family: var(--font-display); font-size: clamp(56px, 7vw, 84px); line-height: 1; color: var(--accent-light); }
  .fee-card b { display: block; font-size: 18px; margin: 8px 0 6px; color: #fff; }
  .fee-card p { font-size: 14px; color: rgba(245, 246, 236, .9); }
  .fee-split { display: flex; gap: 10px; margin-top: 20px; }
  .fee-split div { flex: 1; background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 12px; text-align: center; }
  .fee-split span { display: block; font-size: 12px; color: rgba(245, 246, 236, .9); }
  .fee-split strong { font-size: 16px; color: #fff; }

  /* ---- FAQ ---- */
  .faq { max-width: 760px; }
  .faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
  .faq summary {
    cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
    gap: 16px; padding: 18px 22px; font-weight: 600; font-size: 15.5px; min-height: 44px;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary .chev { transition: transform .25s; flex-shrink: 0; }
  .faq details[open] summary .chev { transform: rotate(180deg); }
  .faq details p { padding: 0 22px 20px; color: var(--subtle); font-size: 14.5px; max-width: 60em; }

  /* ---- Final CTA + footer ---- */
  .final { text-align: center; }
  .final .btn { min-height: 54px; padding: 0 30px; font-size: 16px; border-radius: 27px; }
  footer { border-top: 1px solid var(--line); padding: var(--space-4) 0; }
  .foot-inner { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
  .foot-inner .logo { font-size: 16px; }
  .foot-inner .logo-mark { width: 28px; height: 28px; border-radius: 8px; }
  .foot-links { display: flex; gap: var(--space-3); margin-left: auto; flex-wrap: wrap; }
  .foot-links a { font-size: 13.5px; color: var(--subtle); text-decoration: none; }
  .foot-links a:hover { color: var(--ink); text-decoration: underline; }
  .copy { width: 100%; font-size: 12.5px; color: var(--subtle); margin-top: 6px; }

  /* ---- Responsive ---- */
  @media (max-width: 960px) {
    .hero-grid, .biz-inner { grid-template-columns: 1fr; }
    .scene { width: min(100%, 400px); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .features { grid-template-columns: repeat(2, 1fr); }
    .trust-inner { grid-template-columns: 1fr; gap: var(--space-2); }
  }
  @media (max-width: 720px) {
    .nav-links { display: none; }
    /* With the links hidden, the button needs its own push to the right. */
    .nav .btn { margin-left: auto; }
    section { padding: var(--space-5) 0; }
    .hero { padding: var(--space-4) 0; }
  }
  @media (max-width: 560px) {
    .steps, .features { grid-template-columns: 1fr; }
    .biz-inner { padding: var(--space-3); }
    .order-chip { max-width: 200px; }
    /* Smaller store badges so both fit on ONE row on phones (they wrapped
       into a stack at full size). */
    .store-badge img { height: 44px; }
    .store-badge img.gplay { height: 66px; margin: -11px -12px; }
  }

/* ---- Simple shell for WordPress pages & posts (page.php / index.php) ---- */
.wp-shell { max-width: 760px; margin: 0 auto; padding: 48px 20px 96px; }
.wp-shell h1.page-title { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); margin-bottom: 24px; }
.wp-shell .entry-content h2 { margin: 32px 0 12px; }
.wp-shell .entry-content h3 { margin: 24px 0 10px; }
.wp-shell .entry-content p, .wp-shell .entry-content ul, .wp-shell .entry-content ol { margin-bottom: 16px; }
.wp-shell .entry-content ul, .wp-shell .entry-content ol { padding-left: 24px; }
.wp-shell .entry-content a { color: var(--accent-dark); }
.wp-shell .entry-content img { max-width: 100%; height: auto; border-radius: 14px; }
.wp-shell input[type=text], .wp-shell input[type=email], .wp-shell input[type=tel], .wp-shell textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font: inherit; background: var(--surface); margin-bottom: 12px;
}
.wp-shell input[type=submit], .wp-shell button[type=submit] {
  min-height: 46px; padding: 0 22px; border-radius: 23px; border: none; cursor: pointer;
  background: var(--accent-dark); color: #fff; font-weight: 700; font-size: 15px;
}
.post-item { border-bottom: 1px solid var(--line); padding: 24px 0; }
.post-item h2 a { color: var(--ink); text-decoration: none; }
.post-item h2 a:hover { color: var(--accent-dark); }
