/* =====================================================
   Lucent — eyewear landing page
   Type:  Plus Jakarta Sans (display/body) · Chivo Mono (labels, prices, quote)
   ===================================================== */

*{ margin:0; padding:0; box-sizing:border-box; }

:root{
  /* palette */
  --black:#171512;
  --off-black:#1c1a17;
  --cream:#fbf9f6;
  --pink:#f3c9c6;
  --pink-deep:#e8a9a8;
  --teal:#1f8a80;
  --ink-2:#55504b;
  --ink-3:#6b6560;
  --line:#e7e3dd;

  /* type */
  --mono:'Chivo Mono','Courier New',monospace;
  --sans:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;

  /* radius */
  --r-xl:28px;   /* full-bleed banners */
  --r-lg:20px;   /* tiles, newsletter */
  --r-md:16px;   /* product images */
  --r-sm:10px;   /* chips */
  --r-pill:999px;

  /* spacing system — one scale used everywhere */
  --gutter:clamp(16px,4.5vw,40px);
  --sec-y:clamp(40px,5.5vw,60px);
  --stack:clamp(20px,3vw,28px);   /* header → content gap */
  --gap:clamp(12px,1.6vw,18px);   /* grid / track gap */
  --maxw:1320px;
}

html{ scroll-behavior:smooth; }

body{
  font-family:var(--sans);
  font-weight:400;
  color:var(--black);
  background:var(--cream);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}

img{ display:block; max-width:100%; }
a{ text-decoration:none; color:inherit; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
h1,h2,h3,h4{ font-family:var(--sans); font-weight:700; }

/* ---------- shared primitives ---------- */
.section{
  max-width:var(--maxw);
  margin:0 auto;
  padding:var(--sec-y) var(--gutter);
}

.eyebrow{
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:.16em;
  font-weight:600;
  text-transform:uppercase;
  color:var(--black);
}

.section-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:var(--stack);
}

.btn{
  padding:13px 26px;
  font-size:13px;
  letter-spacing:.02em;
  border-radius:var(--r-pill);
  font-weight:600;
  white-space:nowrap;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-white{ background:#fff; color:var(--black); }
.btn-white:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(0,0,0,.18); }
.btn-outline-light{ background:transparent; border:1px solid rgba(255,255,255,.85); color:#fff; }
.btn-outline-light:hover{ transform:translateY(-2px); background:rgba(255,255,255,.14); }
.btn:active{ transform:translateY(0); }
.btn-row{ display:flex; gap:12px; flex-wrap:wrap; }

.arrow-nav{ display:flex; gap:8px; }
.arrow-btn{
  width:36px; height:36px;
  border-radius:var(--r-pill);
  border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  font-size:15px; color:#2c2925;
  transition:background .16s ease, transform .16s ease, border-color .16s ease;
}
.arrow-btn:hover{ background:var(--black); color:#fff; border-color:var(--black); }
.arrow-btn:active{ transform:scale(.92); }

/* ---------- announcement ---------- */
.announce-bar{
  background:var(--black); color:#fff;
  display:flex; align-items:center; justify-content:center;
  position:relative;
  padding:9px 40px;
  font-family:var(--mono);
  font-size:11px; letter-spacing:.05em;
  text-align:center;
}
.announce-close{
  position:absolute; right:14px; top:50%; transform:translateY(-50%);
  color:#fff; font-size:17px; line-height:1; width:22px; height:22px;
  opacity:.75; transition:opacity .15s ease;
}
.announce-close:hover{ opacity:1; }
.announce-bar.hidden{ display:none; }

/* ---------- header ---------- */
.site-header{
  background:#fff;
  border-bottom:1px solid var(--line);
  position:sticky; top:0; z-index:100;
  transition:box-shadow .25s ease;
}
.site-header.scrolled{ box-shadow:0 6px 24px rgba(23,21,18,.07); }
.header-inner{
  max-width:var(--maxw); margin:0 auto;
  display:flex; align-items:center; gap:20px;
  padding:14px var(--gutter);
}
.logo{ font-size:24px; font-weight:800; letter-spacing:-.02em; }

.main-nav{ display:none; gap:26px; font-size:14px; font-weight:500; align-items:center; font-family:var(--mono); }
.main-nav a{ display:flex; align-items:center; gap:4px; position:relative; padding:2px 0; }
.main-nav a::after{
  content:""; position:absolute; left:0; bottom:-3px; height:1.5px; width:0;
  background:var(--black); transition:width .22s ease;
}
.main-nav a:hover::after{ width:100%; }
.chev{ font-size:10px; opacity:.55; }

.header-center{
  display:none;
  align-items:center;
  gap:32px;
  flex:1;
  justify-content:center;
}

.header-search{
  display:none; align-items:center; gap:8px;
  background:#f4f2ee; border-radius:var(--r-pill);
  padding:10px 16px; flex:0 1 320px; color:#8a857f;
  transition:box-shadow .18s ease;
}
.header-search:focus-within{ box-shadow:0 0 0 2px rgba(31,138,128,.35); }
.header-search input{
  border:none; background:none; outline:none;
  font-size:13px; width:100%; color:#333; font-family:var(--mono);
}

.header-actions{ display:none; align-items:center; gap:12px; margin-left:0; }
.lang-wrap{ position:relative; }
.lang-select{ font-size:13px; font-weight:500; display:flex; align-items:center; gap:4px; font-family:var(--mono); padding:6px 4px; }
.lang-menu{
  position:absolute; top:calc(100% + 10px); left:50%; transform:translateX(-50%) translateY(-6px);
  background:#fff; border:1px solid var(--line); border-radius:12px;
  list-style:none; padding:6px; min-width:150px;
  box-shadow:0 14px 34px rgba(23,21,18,.14);
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .16s ease, transform .16s ease, visibility .16s;
  z-index:50;
}
.lang-menu.open{ opacity:1; visibility:visible; pointer-events:auto; transform:translateX(-50%) translateY(0); }
.lang-menu li{
  font-family:var(--mono); font-size:13px; padding:9px 12px; border-radius:8px;
  cursor:pointer; display:flex; justify-content:space-between; gap:10px; color:#3a3733;
  transition:background .14s ease;
}
.lang-menu li:hover{ background:#f4f2ee; }
.lang-menu li[aria-selected="true"]{ background:var(--black); color:#fff; }
.icon-ghost{
  width:38px; height:38px; border-radius:var(--r-pill);
  border:1px solid var(--line); display:flex; align-items:center; justify-content:center;
  color:var(--black); transition:background .16s ease, transform .12s ease;
}
.icon-ghost:hover{ background:#f4f2ee; }
.cart-pill{
  display:flex; align-items:center; gap:7px;
  background:var(--black); color:#fff;
  padding:9px 16px 9px 14px; border-radius:var(--r-pill);
  font-size:13px; font-weight:600; position:relative;
  transition:transform .12s ease, background .16s ease;
}
.cart-pill:hover{ background:#2a2723; }
.cart-badge{
  background:#fff; color:var(--black);
  font-size:10px; font-weight:700;
  border-radius:var(--r-pill);
  min-width:17px; height:17px; padding:0 2px;
  display:flex; align-items:center; justify-content:center;
}
.icon-solid{
  width:38px; height:38px; border-radius:var(--r-pill);
  background:var(--black); color:#fff;
  display:flex; align-items:center; justify-content:center;
  transition:transform .12s ease, background .16s ease;
}
.icon-solid:hover{ background:#2a2723; }
.icon-ghost:active,.cart-pill:active,.icon-solid:active{ transform:scale(.93); }

.menu-toggle{ margin-left:auto; display:flex; flex-direction:column; gap:5px; padding:6px; }
.menu-toggle span{ width:22px; height:2px; background:var(--black); display:block; transition:transform .22s ease, opacity .2s ease; }
.menu-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2){ opacity:0; }
.menu-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.mobile-nav{ max-height:0; overflow:hidden; transition:max-height .28s ease; border-top:1px solid transparent; display:flex; flex-direction:column; }
.mobile-nav.open{ max-height:360px; border-top-color:var(--line); }
.mobile-nav a{ padding:14px var(--gutter); border-bottom:1px solid var(--line); font-size:14px; font-weight:500; font-family:var(--mono); }
.mobile-search{ display:flex; align-items:center; gap:8px; margin:12px var(--gutter) 16px; background:#f4f2ee; border-radius:var(--r-pill); padding:11px 16px; color:#8a857f; }
.mobile-search input{ border:none; background:none; outline:none; font-size:13px; width:100%; font-family:var(--mono); }

/* ---------- hero ---------- */
.hero{ max-width:var(--maxw); margin:0 auto; padding:14px var(--gutter) 0; }
.hero-inner{
  position:relative;
  background:linear-gradient(180deg,var(--pink) 0%,var(--pink-deep) 100%);
  min-height:74vh;
  border-radius:var(--r-xl);
  overflow:hidden;
  display:flex; align-items:flex-end; justify-content:center; text-align:center;
}
.hero-img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:center 18%;
  transform:scale(1.06); transition:transform 6s ease;
}
.hero-inner.in .hero-img{ transform:scale(1); }
.hero-scrim{ position:absolute; left:0; right:0; bottom:0; height:58%; background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.45)); }
.hero-content{
  position:relative; z-index:2; width:100%; max-width:560px;
  padding:40px 24px 48px; margin:0 auto; color:#fff;
  text-shadow:0 2px 18px rgba(0,0,0,.28);
  display:flex; flex-direction:column; align-items:center;
}
.hero-title{
  font-size:clamp(34px,6.8vw,58px);
  line-height:1.02; letter-spacing:-.015em;
  text-transform:uppercase; margin-bottom:12px;
}
.hero-sub{ font-size:15px; opacity:.94; margin-bottom:24px; max-width:400px; font-family:var(--mono); }

/* hero load-in stagger */
.hero-content > *{ opacity:0; transform:translateY(16px); }
.hero-inner.in .hero-title{ animation:rise .7s .15s ease forwards; }
.hero-inner.in .hero-sub{ animation:rise .7s .30s ease forwards; }
.hero-inner.in .btn-row{ animation:rise .7s .45s ease forwards; }
@keyframes rise{ to{ opacity:1; transform:none; } }

/* ---------- product tracks ---------- */
.product-track{
  display:flex; gap:var(--gap);
  overflow-x:auto; scroll-snap-type:x proximity;
  padding-bottom:6px; scrollbar-width:none;
  scroll-padding-left:var(--gutter);
}
.product-track::-webkit-scrollbar{ display:none; }

.product-card{
  scroll-snap-align:start; flex:0 0 auto;
  width:44%; min-width:158px; max-width:236px;
}
.product-card--peek{ width:20%; min-width:60px; }
.product-img{
  border-radius:var(--r-md); overflow:hidden;
  aspect-ratio:4/5; background:#eee; margin-bottom:11px;
}
.product-img img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.product-card:hover .product-img img{ transform:scale(1.05); }
.product-info{ display:flex; justify-content:space-between; align-items:baseline; font-size:13.5px; margin-bottom:9px; gap:6px; }
.product-name{ font-weight:600; }
.product-price{ color:var(--ink-3); font-size:12px; white-space:nowrap; font-family:var(--mono); }
.swatches{ display:flex; gap:6px; }
.swatch{ width:12px; height:12px; border-radius:var(--r-pill); border:1px solid rgba(0,0,0,.08); transition:transform .14s ease; }
.swatch:hover{ transform:scale(1.28); }

/* ---------- categories ---------- */
.categories-grid{ display:grid; grid-template-columns:1fr; gap:var(--gap); }
.cat-col{ display:grid; grid-template-columns:1fr 1fr; gap:var(--gap); }
.cat-tile{ position:relative; display:block; border-radius:var(--r-lg); overflow:hidden; aspect-ratio:1/1; }
.cat-tile.cat-sunglasses{ aspect-ratio:4/5; }
.cat-tile img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.cat-tile:hover img{ transform:scale(1.06); }
.cat-overlay{
  position:absolute; inset:auto 0 0 0; padding:16px;
  background:linear-gradient(180deg,rgba(0,0,0,0) 38%,rgba(0,0,0,.6));
  color:#fff;
}
.cat-overlay h3{ font-size:17px; margin-bottom:4px; font-family:var(--sans); font-weight:700; }
.cat-overlay p{ font-size:11.5px; opacity:.9; line-height:1.35; max-width:190px; font-family:var(--mono); }

/* ---------- featured ---------- */
.featured-banner{
  position:relative; border-radius:var(--r-xl); overflow:hidden;
  background:var(--teal); min-height:420px;
  display:flex; align-items:flex-end;
}
.featured-banner img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.featured-scrim{ position:absolute; inset:0; background:linear-gradient(0deg,rgba(0,0,0,.38) 0%,rgba(0,0,0,0) 42%); }
.featured-row{
  position:relative; z-index:2; width:100%;
  display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap;
  gap:18px; padding:26px var(--gutter) 30px; color:#fff;
  text-shadow:0 2px 14px rgba(0,0,0,.35);
}
.featured-text{ display:flex; align-items:flex-end; gap:22px; flex-wrap:wrap; }
.featured-text h3{ font-size:clamp(24px,3.2vw,32px); letter-spacing:.01em; text-transform:uppercase; line-height:1; }
.featured-text p{ font-size:13px; max-width:260px; opacity:.96; line-height:1.45; font-family:var(--sans); }
.featured-row .btn{ flex:0 0 auto; }

/* ---------- worldwide ---------- */
.worldwide{ padding-top:0; }
.worldwide-banner{
  position:relative; border-radius:var(--r-xl); overflow:hidden;
  min-height:520px; display:flex; align-items:center; justify-content:center; text-align:center;
}
.worldwide-banner img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.worldwide-overlay{ position:absolute; inset:0; background:linear-gradient(180deg,rgba(10,10,10,.25),rgba(10,10,10,.62)); }
.worldwide-content{ position:relative; z-index:2; padding:0 26px; color:#fff; width:100%; max-width:580px; margin:0 auto; display:flex; flex-direction:column; align-items:center; }
.worldwide-content h2{ font-size:clamp(28px,5vw,46px); letter-spacing:.01em; text-transform:uppercase; margin-bottom:14px; line-height:1.06; font-weight:700; }
.worldwide-content p{ font-size:13.5px; max-width:400px; opacity:.94; margin-bottom:24px; line-height:1.6; font-family:var(--mono); }

/* ---------- quote ---------- */
.quote-section{ max-width:680px; margin:0 auto; text-align:center; padding:clamp(90px,14vw,168px) var(--gutter); }
.quote-section p{ font-family:var(--mono); font-size:clamp(14px,1.7vw,16px); line-height:1.95; color:#2a2723; }

/* ---------- brand banner ---------- */
.brand-banner{ padding-top:0; }
.brand-banner-inner{
  position:relative; border-radius:var(--r-xl); overflow:hidden;
  min-height:520px; display:flex; flex-direction:column;
  align-items:center; justify-content:flex-end; text-align:center; padding-bottom:44px;
}
.brand-banner-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:saturate(1.06); }
.brand-overlay{ position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,0) 52%,rgba(0,0,0,.4)); }
.brand-buttons{ position:relative; z-index:2; justify-content:center; }

/* ---------- newsletter ---------- */
.newsletter{
  background:var(--off-black); color:#fff;
  border-radius:var(--r-lg);
  max-width:1280px;
  margin:0 var(--gutter) clamp(48px,7vw,64px);
}
@media (min-width:1360px){ .newsletter{ margin-left:auto; margin-right:auto; } }
.newsletter-inner{
  padding:clamp(34px,5vw,46px) clamp(24px,4vw,48px);
  text-align:center;
}
.newsletter h3{ font-size:clamp(19px,2.6vw,24px); letter-spacing:.01em; text-transform:uppercase; margin-bottom:22px; line-height:1.35; }
.newsletter-form{ display:flex; flex-direction:column; gap:10px; max-width:420px; margin:0 auto; }
.newsletter-form input{
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.2);
  border-radius:var(--r-pill); padding:13px 20px; color:#fff; font-size:13px;
  font-family:var(--mono); outline:none; transition:border-color .16s ease;
}
.newsletter-form input:focus{ border-color:rgba(255,255,255,.6); }
.newsletter-form input::placeholder{ color:rgba(255,255,255,.5); }
.newsletter-form button{
  background:#fff; color:var(--black); border-radius:var(--r-pill);
  padding:13px 22px; font-size:13px; font-weight:600;
  transition:transform .15s ease, box-shadow .15s ease;
}
.newsletter-form button:hover{ transform:translateY(-1px); box-shadow:0 8px 20px rgba(0,0,0,.35); }

@media (min-width:760px){
  .newsletter-inner{
    display:flex; align-items:center; justify-content:space-between;
    gap:32px; text-align:left; padding-top:clamp(30px,4vw,38px); padding-bottom:clamp(30px,4vw,38px);
  }
  .newsletter h3{ margin-bottom:0; max-width:420px; text-align:left; }
  .newsletter-form{ flex-direction:column; align-items:stretch; max-width:300px; margin:0; flex:0 0 auto; }
  .newsletter-form input{ text-align:left; }
  .newsletter-form button{ white-space:nowrap; }
}

/* ---------- footer ---------- */
.site-footer{ max-width:var(--maxw); margin:0 auto; padding:clamp(40px,6vw,50px) var(--gutter) 26px; }
.footer-top{ display:grid; grid-template-columns:1fr; gap:36px; padding-bottom:36px; }
.footer-brand h2{ font-size:36px; font-weight:800; letter-spacing:-.02em; margin-bottom:14px; font-family:var(--sans); }
.footer-brand p{ font-size:13px; color:var(--ink-3); line-height:1.65; max-width:320px; margin-bottom:18px; font-family:var(--mono); }
.social-icons{ display:flex; gap:12px; }
.social-icons a{ width:34px; height:34px; border-radius:var(--r-pill); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-size:13px; transition:background .16s ease, color .16s ease, transform .12s ease; }
.social-icons a:hover{ background:var(--black); color:#fff; transform:translateY(-2px); }
.footer-col h4{ font-family:var(--mono); font-size:12px; letter-spacing:.09em; margin-bottom:16px; text-transform:uppercase; font-weight:600; }
.footer-col a{ display:block; font-size:13px; color:var(--ink-2); margin-bottom:12px; transition:color .14s ease; font-family:var(--mono); }
.footer-col a:hover{ color:var(--black); }
.footer-bottom{ border-top:1px solid var(--line); padding-top:22px; display:flex; flex-direction:column; gap:18px; align-items:center; text-align:center; font-size:12px; font-family:var(--mono); color:#8a8580; }
.payment-icons{ display:flex; gap:14px; flex-wrap:wrap; justify-content:center; align-items:center; }
.payment-icons img{ height:32px; width:auto; display:block; }

/* =====================================================
   Scroll reveal
   ===================================================== */
.reveal{ opacity:0; transform:translateY(26px); transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in{ opacity:1; transform:none; }
/* stagger product cards in when their track reveals */
.product-track.stagger > *{ opacity:0; transform:translateY(20px); }
.product-track.stagger.in > *{ animation:rise .6s ease forwards; }

/* =====================================================
   Tablet & desktop
   ===================================================== */
@media (min-width:700px){
  .categories-grid{ grid-template-columns:1fr 1fr 1fr; }
  .cat-tile.cat-sunglasses{ grid-row:span 2; aspect-ratio:auto; }
  .cat-col{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns:1.5fr repeat(4,1fr); }
}

@media (min-width:960px){
  .menu-toggle{ display:none; }
  .mobile-nav{ display:none !important; }
  .header-inner{ display:grid; grid-template-columns:auto 1fr auto; align-items:center; }
  .header-center{ display:flex; justify-self:center; }
  .main-nav,.header-search{ display:flex; }
  .header-actions{ display:flex; justify-self:end; }

  .hero-inner{ min-height:86vh; }
  .hero-content{ padding:60px 60px 66px; max-width:640px; }
  .hero-sub{ max-width:460px; font-size:16px; }

  .product-card{ width:22%; min-width:200px; }
  .product-card--peek{ width:10%; min-width:90px; }

  .featured-banner{ min-height:480px; }
  .featured-content{ padding:32px 40px; }
  .worldwide-banner{ min-height:600px; }
  .worldwide-content{ padding:0 64px; max-width:640px; }
  .brand-banner-inner{ min-height:600px; padding-bottom:56px; }
}

@media (min-width:1200px){
  .header-inner{ padding:18px var(--gutter); }
}

/* =====================================================
   Accessibility
   ===================================================== */
a:focus-visible,button:focus-visible,input:focus-visible{ outline:2px solid var(--teal); outline-offset:2px; }

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; animation:none !important; }
  .reveal{ opacity:1; transform:none; }
  .hero-content > *{ opacity:1; transform:none; }
  .hero-img{ transform:none; }
}
