
/* MISTR — Warm Brown Luxe v15 (micro-tweaks from v14)
   Changes vs v14 (user's near-perfect file):
   - Mobile: footer CTA never wraps, smaller placeholders (header + footer), bigger hero headline, tighter copy under "two essentials...", about-copy matches section-sub style.
   - Desktop: clarified that hero headline isn't hard-forced to two lines (wraps naturally); about-copy matches section-sub.
   - Both: keep background + palette intact; no layout overhauls.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Roboto+Mono:wght@400;500;700&display=swap');

:root{
  --edge: 52px;            /* desktop gutter */
  --maxw: 1200px;

  --bg:#1a1715;
  --bgm:#1d1917;
  --text:#F2EFEA;
  --muted:#B2ADA6;
  --border:rgba(255,255,255,0.10);
  --accent:#9C784A;
  --accent-2:#C3A476;
  --ink:#201c19;
  --card:#221e1c;
  --header-h: 64px;
}

/* ===== background stays the same ===== */
html,body{height:100%}
*{box-sizing:border-box}
body{
  margin:0;color:var(--text);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased; line-height:1.5;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, var(--bg) 0%, var(--bgm) 52%, var(--bg) 100%);
  overflow-x:hidden;
}

/* ===== unified containers (desktop default) ===== */
.container{ 
  max-width: var(--maxw) !important; 
  margin-left: var(--edge) !important; 
  margin-right: var(--edge) !important; 
  padding: 0 !important; 
}

/* ===== header ===== */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index:100000;
  background: rgba(26,23,21,0.66) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border) !important;
  padding: 10px 0 !important;
}
.site-header .container{ max-width: 100% !important; margin:0 !important; padding:0 var(--edge) !important; }
.header-inner{ display:flex; align-items:center; gap:16px; }
.brand, .brand:link, .brand:visited{
  font-weight:800; letter-spacing:0em; font-size:2rem;
  color:var(--accent-2); text-decoration:none !important; border:none !important;
}
.main-nav{ margin-left:auto; display:flex; justify-content:flex-end; align-items:center; gap:28px; }
.main-nav a{ text-transform:lowercase; font-size:14px; color:var(--muted); text-decoration:none !important; border:none !important; }
.main-nav a:hover{ color:var(--text); }

/* strip any legacy section backgrounds */
.hero, .features, .scents, .pairings, .faq, .about, .footer-cta{ background:transparent !important; border:0 !important; }

/* ===== sections ===== */
.hero{ padding: 92px 0 84px !important; min-height: clamp(560px, 72vh, 900px); }
.features,.scents,.pairings,.faq,.about{ padding: 64px 0 !important; }
.footer-cta{ padding: 56px 0 !important; text-align:center; }
.footer-cta .container{ max-width: 720px !important; margin-left:auto !important; margin-right:auto !important; } /* center bottom section */

/* ===== HERO (DESKTOP): full width with gutters; image pinned right; smaller image ===== */
.hero .container{
  max-width: none !important;
  margin-left: var(--edge) !important;
  margin-right: var(--edge) !important;
  display:grid;
  grid-template-columns: minmax(360px, 560px) 1fr;  /* left copy column + flexible image column */
  gap:32px; align-items:center; position:relative;
}
.hero figure, .hero picture, .hero img{
  grid-column:2; justify-self:end; align-self:center;
  width: min(600px, 40vw); height:auto; max-width:100%;   /* smaller than v13 */
  display:block; border-radius:6px;
}
.hero h1, .hero .lede, .hero p, .hero form, .hero .inline-form{ grid-column:1; }
.hero h1{font-size:56px;font-weight:500;line-height:1.05;text-transform:lowercase;margin:0 0 12px;color:var(--text); white-space:normal}
.lede{font-size:18px;color:var(--muted)}

/* ===== buttons / forms ===== */
.button-container{position:relative;display:inline-block}
.btn{
  font:700 12px/1 'Roboto Mono',monospace;
  letter-spacing:.08em; text-transform:uppercase;
  background:#F2EFEA; color:var(--ink);
  border:2.5px solid var(--ink);
  padding:14px 20px; display:inline-block;
  white-space: nowrap; /* NEVER wrap CTA text */
}
.button-shadow{ position:absolute; inset:6px -6px -6px 6px; background:var(--accent); z-index:-1; }

.inline-form{display:grid;grid-template-columns:1fr auto;gap:.8rem;max-width:560px;margin-top:20px}
.inline-form input{padding:10px 14px;border:1px solid var(--border);border-radius:6px;background:#221e1c;color:#A79C92;font-size:14px;text-align:left}
.inline-form input::placeholder{color:#8D837B}

#footer-form{ max-width:560px; margin: 0 auto; display:grid; grid-template-columns:1fr auto; column-gap:.8rem; align-items:center; }
#footer-form input{ padding:10px 14px; border:1px solid var(--border); border-radius:6px; background:#221e1c; color:#A79C92; font-size:14px; text-align:left; }
#footer-form input::placeholder{ color:#8D837B; }

/* ===== essentials ===== */
.section-title{font-size:2rem;margin:0 0 8px;text-transform:lowercase;font-weight:500;color:var(--text)}
.section-sub{font-size:1.05rem;color:var(--muted);margin:0 0 18px;text-transform:lowercase}
/* Match 'not your dad’s...' body copy to section-sub */
.about p{ font-size:1.05rem; color:var(--muted); margin:.6rem 0; }

.essentials-grid{ display:grid; grid-template-columns: 560px 1fr; gap:32px; align-items:start; } /* larger image column */
.essentials-image img{ width:100%; border-radius:12px; border:1px solid var(--border); background:#191614 }
.ess-note li{ color:var(--muted) }

/* ===== scents: responsive grid ===== */
.scent-grid{ 
  display:grid; 
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
  gap:22px; 
}
.scent-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00)), var(--card);
  border:1px solid var(--border); border-radius:10px; overflow:hidden; position:relative;
}
.scent-media{ width:100%; aspect-ratio: 3 / 4; overflow:hidden; }
.scent-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.scent-overlay{ position:absolute; left:0; right:0; bottom:0; background: rgba(32,28,25,0.92); color: var(--text); padding: 10px 12px; border-top: 1px solid var(--border); min-height: 84px; }
.scent-card::before{ content:""; display:block; height:2px; background: linear-gradient(90deg, rgba(154,160,166,0.0), rgba(154,160,166,0.6), rgba(154,160,166,0.0)); }
.scent-overlay h3{ margin:0 0 4px; font-family:'Roboto Mono',monospace; font-weight:500; font-size:14px; text-transform:uppercase; letter-spacing:.06em; color:var(--accent-2); }
.scent-overlay p{ margin:0; font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; font-size:13.5px; letter-spacing:.01em; color:var(--muted); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* ===== pairing guide & faq ===== */
.pairings-accordion, .faq-grid{ max-width:760px; display:grid; gap:16px; }
.sp-item, .faq-item{ border:1px solid var(--border); background:rgba(255,255,255,0.02); border-radius:10px; padding:1.05rem 1.2rem; transition: border-color .25s ease, background .25s ease; }
.sp-item[open], .faq-item[open]{ background:rgba(255,255,255,0.035); border-color: rgba(255,255,255,0.16); }
.sp-item summary, .faq-item summary{ 
  display:flex; align-items:center; gap:.6rem; cursor:pointer; list-style:none; outline:none; 
  font-family:Inter, sans-serif; font-weight:500; font-size:15px; color:var(--text);
  text-transform: lowercase;
}
.sp-item summary .code{ font-family:'Roboto Mono', ui-monospace, monospace; text-transform:uppercase; letter-spacing:.06em; }
.sp-item summary::-webkit-details-marker, .faq-item summary::-webkit-details-marker{ display:none; }
.sp-item summary::before, .faq-item summary::before{ content:"›"; transform: rotate(90deg); transition: transform .25s ease; color: var(--muted); }
.sp-item[open] summary::before, .faq-item[open] summary::before{ transform: rotate(270deg); color: var(--accent-2); }
.sp-content, .answer{ margin-top:.7rem; color:var(--muted); font-size:.98rem; }
.sp-content ul{ list-style:none; padding-left:1.1rem; }
.sp-content li{ margin:.35rem 0; position:relative; }
.sp-content li::before{ content:"—"; position:absolute; left:-1.1rem; top:0; color:rgba(255,255,255,0.35); }

/* ===== footer form centered ===== */
#footer-form{ max-width:560px; margin: 0 auto; display:grid; grid-template-columns:1fr auto; column-gap:.8rem; align-items:center; }
#footer-form input{ padding:10px 14px; border:1px solid var(--border); border-radius:6px; background:#221e1c; color:#A79C92; font-size:14px; }
#footer-form input::placeholder{ color:#8D837B; }

/* ===== mobile ===== */
@media(max-width: 900px){
  :root{ --edge: 16px; --header-h: 56px; }

  .site-header{ padding:8px 0 !important; }
  .brand{ font-size:1.1rem; letter-spacing:0em; }
  .main-nav{ gap:10px; }
  .main-nav a{ font-size:10px; }

  .container{ margin-left: var(--edge) !important; margin-right: var(--edge) !important; }

  .hero{ padding: 48px 0 26px !important; min-height:auto; }
  .hero .container{ grid-template-columns: 1fr; gap: 14px; }
  .hero figure, .hero picture, .hero img{ grid-column:1; justify-self:end; width:68vw; } /* smaller hero image on mobile */

  /* right margin fix for hero text + form */
  .hero h1, .hero .lede, .hero p, .hero .inline-form{ margin-right: var(--edge); }

  /* sizes — BIGGER hero heading + subhead */
  .hero h1{ font-size:2rem; } /* was 1.5rem */
  .lede{ font-size:.95rem; }

  /* inputs visually lighter/smaller while keeping 16px to avoid iOS zoom */
  .inline-form{ max-width:100%; grid-template-columns: 1fr; gap:8px; }
  .inline-form input{ font-size:16px; padding:8px 12px; color:#A79C92; text-align:left; }
  .inline-form input::placeholder{ color:#8D837B; font-size:12px; } /* much smaller placeholder */
  #footer-form input{ font-size:16px; padding:8px 12px; color:#A79C92; text-align:left; }
  #footer-form input::placeholder{ color:#8D837B; font-size:12px; } /* much smaller placeholder */

  /* keep CTA on one line on small screens */
  .btn{ font-size:11px; letter-spacing:.06em; }

  .features,.scents,.pairings,.faq,.about{ padding: 30px 0 !important; }
  .section-title{ font-size:1.2rem; }
  .section-sub{ font-size:.85rem; }

  /* tighter spacing under "two essentials, one design" */
  .features p{ margin:.35rem 0; } /* was .45rem */

  /* smaller scent pairing + FAQ questions */
  .sp-item summary, .faq-item summary{ font-size:.9rem; }
  .scent-overlay p{ font-size:.78rem; }
  .sp-content, .answer{ font-size:.9rem; }

  .essentials-grid{ grid-template-columns: 1fr; gap:14px; }
  .scent-grid{ grid-template-columns: 1fr 1fr; gap:12px; }

  /* ensure "not your dad’s..." copy matches section-sub on mobile */
  .about p{ font-size:.85rem; color:var(--muted); }
}


/* === Mobile-only micro-tweaks (requested) === */
@media (max-width: 900px){
  /* 1) add a bit of space above the “mosquitos…” headline */
  .hero h1{
    margin-top: 12px !important;
  }

  /* 2) make the header email input + CTA shorter (keep left aligned) */
  .hero .inline-form{ 
    justify-items: start !important; /* keep the block left */
  }
  .inline-form input{
    padding: 6px 12px !important;  /* shorter height */
    font-size: 16px !important;    /* keeps iOS from zooming */
    line-height: 1.2 !important;
    text-align: left !important;
  }
  .inline-form .btn,
  .inline-form button.btn{
    padding: 10px 14px !important; /* shorter button */
    line-height: 1.2 !important;
    justify-self: start !important; /* left aligned */
    white-space: nowrap !important; /* stay on one line */
  }

  /* 3) make both images smaller on mobile */
  .hero figure img, .hero picture img, .hero img{
    width: 60vw !important;
    max-width: 420px !important;
    height: auto !important;
  }
  .essentials-image img{
    width: 82vw !important;
    max-width: 480px !important;
    height: auto !important;
  }
}


/* === Mobile-only footer stack (requested) === */
@media (max-width: 900px){
  /* Stack input above CTA button in the footer (no other changes) */
  #footer-form{
    grid-template-columns: 1fr !important;
    row-gap: 10px !important;
    column-gap: 0 !important;
    justify-items: stretch !important;
  }
  #footer-form input{
    width: 100% !important;
  }
  #footer-form .button-container,
  #footer-form button,
  #footer-form .btn{
    width: 100% !important;
    justify-self: stretch !important;
  }
}


/* === Mobile-only footer width tweak (requested) === */
@media (max-width: 900px){
  /* make stacked items not full width; keep centered within footer */
  #footer-form{
    justify-items: center !important;
  }
  #footer-form input{
    width: min(84vw, 360px) !important;
    max-width: 360px !important;
  }
  #footer-form .button-container,
  #footer-form button,
  #footer-form .btn{
    width: min(84vw, 360px) !important;
    max-width: 360px !important;
    justify-self: center !important;
  }
}
