/* ============================================================
   CAPO CUÒCO — CANADA
   Brand-true skin, extracted from capo-cuoco.com (Mood site2000):
   LinLibertine serif display (uppercase, tracked), proxima-nova
   body (Figtree substitute), monochrome #1a1818 on white with
   #f6f5f5 panels, sharp 0-radius, underline-sweep CTAs,
   underline form fields, photography-led.
   ============================================================ */

:root {
  --white: #ffffff;
  --ink: #1a1818;          /* --black on the live site */
  --logo: #231f20;
  --panel: #f6f5f5;        /* light section bg / dropdown strip */
  --gray: #606060;         /* form intro text */
  --soft: #9e9e9e;         /* icons default */
  --taupe: #9c948a;        /* catalog subtitle accent */
  --body-gray: #505050;
  --dot: #cacaca;
  --line: #e6e4e2;
  --scrim: rgba(0, 0, 0, 0.24);

  --serif: "LinLibertine", "Times New Roman", Georgia, serif;
  --sans: "proxima-nova", "Figtree", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(1.25rem, 4.5vw, 4rem);
  --max: 1440px;
  --header-h: 80px;
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

@font-face {
  font-family: "LinLibertine";
  src: url("../brand/fonts/linlibertine.woff2") format("woff2"),
       url("../brand/fonts/linlibertine.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; border-radius: 0; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; border-radius: 0; }

::selection { background: var(--ink); color: var(--white); }

/* ---------- primitives ---------- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe);
}
.label--light { color: rgba(255, 255, 255, 0.82); }

/* display type — LinLibertine, uppercase, tracked (live site:
   45px / ls 4.5px = 0.1em; kept at the same restrained scale) */
.display {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.3;
}

h1.display { font-size: clamp(1.55rem, 3vw, 2.45rem); }
h2.display { font-size: clamp(1.3rem, 2.2vw, 1.85rem); }
h3.display { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }

.lede {
  font-size: clamp(0.9375rem, 1.05vw, 1.03rem);
  font-weight: 300;
  line-height: 1.85;
  color: var(--body-gray);
  max-width: 44em;
}

p { font-weight: 300; }

/* ---------- underline-sweep CTA (the site's signature link) ---------- */

.cta {
  position: relative;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 7px;
  overflow: hidden;
}
.cta::before,
.cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.4s ease-in-out;
}
.cta::after { transform: translateX(calc(-100% - 30px)); }
.cta:hover::before { transform: translateX(calc(100% + 30px)); }
.cta:hover::after { transform: translateX(0); }
.cta--light { color: var(--white); }
.cta--light::before, .cta--light::after { background: var(--white); }

/* boxed button (login/submit style on the live site) */
.btn-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  padding: 0 42px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-box:hover { background: var(--ink); color: var(--white); }
.btn-box--light { border-color: var(--white); color: var(--white); }
.btn-box--light:hover { background: var(--white); color: var(--ink); }

/* ---------- header ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  transition: box-shadow 0.3s var(--ease);
}
.header.scrolled { box-shadow: 0 1px 0 var(--line); }

.header__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.header__inner .brand { justify-self: start; }
.header__inner .header__utils { justify-self: end; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand__logo { height: 38px; width: auto; }
.brand__region {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 2.4rem; }
.nav a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  transition: opacity 0.25s ease-in-out;
}
.nav a:hover { opacity: 0.55; }
.nav a.active { font-weight: 700; }

.header__utils { display: flex; align-items: center; gap: 1.1rem; }
.header__utils .social a { color: var(--soft); transition: color 0.25s ease-in-out; }
.header__utils .social a:hover { color: var(--ink); }
.social { display: flex; align-items: center; gap: 0.9rem; }
.social svg { width: 15px; height: 15px; display: block; fill: currentColor; }

/* full-width dropdown strip (live-site pattern: 40px #f6f5f5 band) */
.dropdown-strip {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 99;
  height: 44px;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.dropdown-strip a {
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 3px;
}
.dropdown-strip a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.dropdown-strip a:hover::after { transform: scaleX(1); }
body.strip-open .dropdown-strip,
.dropdown-strip:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* mobile menu */
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px 0; }
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s; }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 98;
  background: var(--white);
  padding: 3rem var(--pad);
  display: none;
  flex-direction: column;
  gap: 1.6rem;
}
.mobile-menu a {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.mobile-menu .sub { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.mobile-menu .sub a { font-size: 0.75rem; color: var(--body-gray); }
body.menu-open .mobile-menu { display: flex; }
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

main { padding-top: var(--header-h); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 520px;
  overflow: hidden;
  background: var(--ink);
}
.hero__track {
  position: absolute;
  inset: 0;
  display: flex;
  height: 100%;
  transition: transform 0.9s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}
.hero__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.hero__slide::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }

.hero__caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  text-align: center;
  color: var(--white);
  padding: 0 var(--pad);
  pointer-events: none;
}

/* hero slider control — centered frosted pill: chevrons + dots */
.hero__ctrl {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(248, 247, 245, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.2);
}
.hero__arrow {
  width: 28px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 0.25s ease-in-out;
}
.hero__arrow:hover { opacity: 1; }
.hero__arrow i {
  display: block;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
}
.hero__arrow--prev i { transform: rotate(-45deg); margin-left: 3px; }
.hero__arrow--next i { transform: rotate(135deg); margin-right: 3px; }

.hero__nav { display: flex; align-items: center; gap: 8px; }
.hero__nav button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(26, 24, 24, 0.8);
  transition: width 0.35s var(--ease), background 0.25s ease-in-out;
}
.hero__nav button:hover { background: var(--ink); }
.hero__nav button.on {
  width: 20px;
  border-radius: 999px;
  background: var(--ink);
}
.hero__caption h1 {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5), 0 1px 6px rgba(0, 0, 0, 0.3);
}
.hero__caption .label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.55);
}

/* animated scroll-down line (live-site affordance) */
.scroll-down {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.scroll-down span {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-down i {
  display: block;
  width: 2px;
  height: 52px;
  background: var(--white);
  animation: upAnddown 2s infinite;
}
@keyframes upAnddown {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.55; }
}

/* sub-page hero (GridTop) */
.page-hero {
  position: relative;
  height: clamp(380px, 60vh, 600px);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.38), rgba(0,0,0,0.08) 55%); }
.page-hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: 3.2rem; color: var(--white); display: flex; flex-direction: column; gap: 0.9rem; }

/* ---------- full-bleed statement section (philosophy pattern) ---------- */

.bleed {
  position: relative;
  min-height: clamp(480px, 82vh, 760px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--white);
}
.bleed__bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -9%;
  bottom: -9%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.bleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.42), rgba(0,0,0,0.06) 60%); }
.bleed--center { align-items: center; }
.bleed__body {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 0 var(--pad) 4.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.bleed--center .bleed__body { padding-bottom: 0; margin: 0 auto; text-align: center; align-items: center; }
.bleed__body p { color: rgba(255, 255, 255, 0.88); font-size: 0.94rem; line-height: 1.85; }

@media (min-width: 900px) {
  .bleed__body { padding-left: calc(var(--pad) + 2vw); }
}


/* ---------- standard section spacing ---------- */

.section { padding: clamp(4rem, 9vh, 7rem) 0; }
.section--panel { background: var(--panel); }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: clamp(2.2rem, 5vh, 3.6rem);
}
.section-head--center { align-items: center; text-align: center; }

/* ---------- collection tiles (collections page / home) ---------- */

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.8rem); }
.tile { position: relative; display: block; overflow: hidden; }
.tile__img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--panel); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.tile:hover .tile__img img { transform: scale(1.045); }
.tile__meta { padding: 1.15rem 0 0; display: flex; flex-direction: column; gap: 0.3rem; }
.tile__name {
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tile__sub { font-size: 0.78rem; color: var(--body-gray); font-weight: 300; letter-spacing: 0.02em; }

/* ---------- split section (image + text) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split__media { overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split__media--tall img { aspect-ratio: 3 / 4; }
.split__body { display: flex; flex-direction: column; gap: 1.15rem; max-width: 32rem; }
.split__body .cta { align-self: flex-start; margin-top: 0.5rem; }
.split--flip .split__media { order: 2; }
.split--flip .split__body { order: 1; justify-self: end; }

/* ---------- DNA / pillars / process rows ---------- */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); }
.pillar { display: flex; flex-direction: column; gap: 0.7rem; }
.pillar h3 {
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.pillar p { font-size: 0.85rem; color: var(--body-gray); line-height: 1.8; }
.pillar .num {
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--taupe);
}

/* ---------- spec list (materials / finishes) ---------- */

.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.4rem, 3vw, 2.8rem); }
.spec { border-top: 1px solid var(--ink); padding-top: 1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.spec h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.spec p { font-size: 0.8rem; color: var(--body-gray); line-height: 1.7; }

/* ---------- gallery + lightbox ---------- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery a { display: block; overflow: hidden; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 1s var(--ease), opacity 0.4s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery a.wide { grid-column: span 2; }
.gallery img.wide-img { aspect-ratio: 8 / 3.02; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 11, 11, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 88vw; max-height: 84vh; object-fit: contain; }
.lightbox button {
  position: absolute;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem;
  transition: color 0.25s;
}
.lightbox button:hover { color: #fff; }
.lightbox .lb-close { top: 18px; right: 22px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- video embed ---------- */

.video-embed { position: relative; padding-top: 56.25%; background: var(--ink); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- showroom / canada block ---------- */

.office { display: flex; flex-direction: column; gap: 0.2rem; }
.office h3 {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.office p, .office a { font-size: 0.85rem; color: var(--body-gray); line-height: 1.9; }
.office a:hover { color: var(--ink); }
.office .rule { width: 120px; border: 0; border-top: 1px solid var(--line); margin: 1.4rem 0; }

/* ---------- forms (underline style) ---------- */

.form { display: flex; flex-direction: column; gap: 1.7rem; }
.form-intro { font-size: 0.85rem; color: var(--gray); }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}
.field input,
.field textarea,
.field select {
  border: none;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  height: 38px;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s;
}
.field textarea { height: auto; min-height: 84px; resize: vertical; padding-top: 8px; }
.field input:focus, .field textarea:focus { border-bottom-width: 2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.7rem; }
.form-note { font-size: 0.72rem; color: var(--soft); line-height: 1.7; }

/* ---------- footer ---------- */

.footer { background: var(--white); border-top: 1px solid var(--line); padding: 3.4rem 0 2rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
}
.footer h4 {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer p, .footer li, .footer a { font-size: 0.78rem; font-weight: 300; color: var(--body-gray); line-height: 2; }
.footer a:hover { color: var(--ink); }
.footer .social { margin-top: 0.4rem; color: var(--soft); }
.footer .social a:hover { color: var(--ink); }
.footer__brand { display: flex; flex-direction: column; gap: 0.9rem; }
.footer__brand img { height: 26px; width: auto; }
.footer__brand small { font-size: 0.7rem; color: var(--soft); letter-spacing: 0.05em; }
.footer__legal {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--soft);
}

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__track { transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav, .header__utils .social { display: none; }
  .menu-toggle { display: flex; }
  .brand__logo { height: 32px; }
  .brand__region { font-size: 0.6rem; }
  .hero__ctrl { bottom: 20px; height: 34px; gap: 8px; }
  .hero__caption h1 { font-size: clamp(1.5rem, 6.4vw, 1.9rem); }
  .hero__caption .label { font-size: 0.62rem; letter-spacing: 0.16em; }
  .page-hero { height: clamp(300px, 46vh, 460px); }
  .bleed__body { padding-bottom: 3rem; }
  .tiles { grid-template-columns: 1fr; }
  .split, .split--flip { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .split--flip .split__body { justify-self: start; }
  .pillars { grid-template-columns: 1fr; gap: 2.2rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery a.wide { grid-column: span 2; }
  .form-row { grid-template-columns: 1fr; }
  .bleed { min-height: 66vh; }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery a.wide { grid-column: span 1; }
  .gallery img.wide-img { aspect-ratio: 4 / 3; }
}
