/* ==========================================================================
   IntelliLooks shared design system — header, footer, mobile nav, base
   tokens/reset, and the small set of generic components (buttons, links,
   eyebrows) reused across every page. Page-specific layout (grids, filters,
   forms, the AI scan frame, etc.) stays local to each page's own <style>.
   Keep this file's rules in sync with intellilooks.html if either changes —
   intellilooks.html keeps its own inline copy instead of linking this file,
   since the original brief asked for it to stay a single self-contained file.
   ========================================================================== */

:root{
  --black:#000000;
  --white:#ffffff;
  --off-white:#f5f4f1;
  --grey:#a5a5a5;
  --sans:'Inter', sans-serif;
  --mono:'JetBrains Mono', monospace;
}
*{margin:0;padding:0;box-sizing:border-box;border-radius:0 !important;}
html{scroll-behavior:smooth;height:100%;}
body{
  background:var(--white);
  color:var(--black);
  font-family:var(--sans);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none;}
button{font-family:var(--sans);background:none;border:none;cursor:pointer;color:inherit;}
::selection{background:var(--black);color:var(--white);}
@media (prefers-reduced-motion: reduce){*{animation-duration:.01ms !important;transition-duration:.01ms !important;}}

.wrap{max-width:1440px;margin:0 auto;padding:0 44px;}
.hr{height:1px;background:rgba(0,0,0,.14);width:100%;}
.hr.on-dark{background:rgba(255,255,255,.18);}

.eyebrow{
  font-family:var(--sans);font-size:11px;font-weight:600;
  letter-spacing:.24em;text-transform:uppercase;color:var(--grey);
}

.reveal{opacity:0;transform:translateY(28px);transition:opacity .8s cubic-bezier(.16,.8,.24,1),transform .8s cubic-bezier(.16,.8,.24,1);}
.reveal.in{opacity:1;transform:translateY(0);}

.link{
  display:inline-flex;align-items:center;gap:10px;
  font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  padding-bottom:5px;border-bottom:1px solid currentColor;
  transition:opacity .3s;
}
.link:hover{opacity:.55;}

.btn-outline{
  display:inline-flex;align-items:center;gap:10px;
  font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  padding:16px 30px;border:1px solid currentColor;
  transition:background-color .3s, color .3s;
}
.btn-outline.dark:hover{background:var(--white);color:var(--black);}
.btn-outline.light:hover{background:var(--black);color:var(--white);}
.btn-outline:disabled{opacity:.4;cursor:not-allowed;}
.btn-outline:disabled:hover{background:none;color:inherit;}

.section-pad{padding:150px 0;}
.sec-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:60px;flex-wrap:wrap;gap:20px;}
.sec-head h2{font-size:clamp(30px,3.4vw,50px);font-weight:800;letter-spacing:-.02em;}

/* ================= LOGO ================= */
.logo-mark{fill:currentColor;display:block;transition:width .55s cubic-bezier(.16,.8,.24,1);}

/* ================= HEADER ================= */
header{
  position:fixed;top:0;left:0;right:0;z-index:300;
  color:var(--black);
  background:var(--white);
  border-bottom:1px solid rgba(0,0,0,.12);
}
/* Pages other than the homepage don't have a black hero to sit on top of, so
   the header is always in its compact/white state — no ".scrolled" JS
   toggle needed here the way intellilooks.html does it. */

.icon{width:18px;height:18px;stroke:currentColor;stroke-width:1.4;fill:none;display:block;}

.desktop-row{
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;
  padding:16px 44px;
}
.h-left, .h-right{display:flex;align-items:center;gap:30px;}
.h-right{justify-content:flex-end;}
.icon-link{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;position:relative;padding-bottom:3px;}
.icon-link::after{content:'';position:absolute;left:0;bottom:0;width:0;height:1px;background:currentColor;transition:width .3s;}
.icon-link:hover::after{width:100%;}
.icon-solo{display:flex;align-items:center;}
.h-center{display:flex;justify-content:center;}
.h-center .logo-mark{width:clamp(120px,11vw,168px);}

@media (max-width:980px){
  .h-left, .h-right{gap:16px;}
  .icon-link span{display:none;}
  .h-right a[aria-label="Wishlist"]{display:none;}
  .desktop-row{grid-template-columns:1fr auto 1fr;padding:12px 20px;}
  .h-center .logo-mark{width:clamp(92px,26vw,128px);}
}

/* ================= MOBILE NAV OVERLAY =================
   Two-level menu, styled after louisvuitton.com's flyout: white background,
   an X + "Close" in the top-left, a root panel with just the top-level
   groups, and a sub panel (back button + list) that slides in when a group
   is opened. assets/nav.js builds the group buttons and sub-item links —
   this file only lays out the shell and the two panel states. */
.mobile-nav{
  position:fixed;inset:0;background:var(--white);color:var(--black);
  z-index:400;overflow-y:auto;
  padding:36px 44px 60px;
  transform:translateY(-100%);transition:transform .5s cubic-bezier(.16,.8,.24,1);
}
.mobile-nav.open{transform:translateY(0);}

.mobile-nav-close{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:500;margin-bottom:56px;}
.mobile-nav-close .icon{width:19px;height:19px;stroke:currentColor;stroke-width:1.3;}

.mobile-nav-panel{display:flex;flex-direction:column;}
.mobile-nav-group{
  display:block;width:100%;text-align:left;
  font-size:26px;font-weight:500;letter-spacing:-.01em;
  padding:16px 0;
  transition:color .2s;
}

.mobile-nav-sub{display:none;flex-direction:column;}
.mobile-nav-sub.open{display:flex;}
.mobile-nav-back{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:500;padding:8px 0;margin-bottom:30px;transition:color .2s;}
.mobile-nav-back .chevron{width:15px;height:15px;stroke:currentColor;stroke-width:1.6;fill:none;}
.mobile-nav-sub a{display:block;font-size:19px;font-weight:400;padding:12px 0;transition:color .2s;}

/* Hover: lighten the text, and sweep an underline in under the word (left
   to right) rather than an instant text-decoration. The row itself (button
   or <a>) stays full-width for a generous tap target, but the underline is
   drawn on an inner .nav-underline span sized to the word, via a ::after
   that animates its width from 0 to 100% — same technique as .icon-link
   elsewhere on the site. */
.mobile-nav-group:hover,
.mobile-nav-back:hover,
.mobile-nav-sub a:hover{
  color:rgba(0,0,0,.5);
}
.nav-underline{position:relative;display:inline-block;}
.nav-underline::after{
  content:'';position:absolute;left:0;bottom:-4px;
  width:0;height:1px;background:currentColor;
  transition:width .3s;
}
.mobile-nav-group:hover .nav-underline::after,
.mobile-nav-back:hover .nav-underline::after,
.mobile-nav-sub a:hover .nav-underline::after{
  width:100%;
}

/* ================= FOOTER ================= */
footer{background:var(--black);color:var(--white);padding:0 0 40px;}
.foot-grid{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:40px;padding:70px 0 50px;}
.foot-logo{width:130px;margin-bottom:16px;}
.foot-tag{font-size:12.5px;color:rgba(255,255,255,.5);max-width:260px;line-height:1.7;font-weight:300;}
.foot-col h4{font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.5);margin-bottom:18px;}
.foot-col a{display:block;font-size:13.5px;margin-bottom:11px;transition:opacity .25s;}
.foot-col a:hover{opacity:.55;}
.foot-bottom{display:flex;justify-content:space-between;font-size:11px;color:rgba(255,255,255,.4);flex-wrap:wrap;gap:14px;}

/* ================= PAGE HERO (non-homepage pages) ================= */
.page-hero{background:var(--black);color:var(--white);padding:190px 0 70px;}
.page-hero .eyebrow{color:rgba(255,255,255,.55);margin-bottom:18px;}
.page-hero h1{font-size:clamp(40px,6vw,76px);font-weight:800;letter-spacing:-.03em;line-height:.98;max-width:820px;}
.page-hero p{font-size:14.5px;line-height:1.75;color:rgba(255,255,255,.68);max-width:520px;margin-top:22px;font-weight:300;}

@media (max-width:980px){
  .wrap{padding:0 20px;}
  .section-pad{padding:90px 0;}
  .foot-grid{grid-template-columns:1fr 1fr;gap:34px;}
  .page-hero{padding:150px 0 50px;}
}
