/* ==========================================================================
   THE HUMAN ERA — Handcrafted Leather Goods
   Shared stylesheet for all pages
   --------------------------------------------------------------------------
   1. Design tokens        6. Hero video           11. Products page / gallery
   2. Base & typography    7. Section patterns     12. Lightbox
   3. Utilities & buttons  8. Home sections        13. Contact page
   4. Header / navigation  9. Call to action       14. Footer
   5. Page banner         10. About page           15. WhatsApp float, reveal, responsive
   ========================================================================== */

/* 1. DESIGN TOKENS ------------------------------------------------------- */
:root {
  --espresso: #1f1510;      /* deepest brown, near black */
  --dark-brown: #3b2619;
  --saddle: #6b4429;
  --caramel: #a8703f;       /* accent — passes 4.5:1 on cream at bold/large sizes */
  --caramel-dark: #8a5a30;  /* accent for small text on light backgrounds */
  --tan: #c99a68;
  --beige: #e6d7c1;
  --cream: #f7f1e7;
  --ivory: #fcf9f4;
  --black: #120d0a;
  --ink: #2a1d15;           /* body text */
  --muted: #6e5a4b;         /* secondary text, 5.6:1 on cream */
  --line: rgba(59, 38, 25, 0.14);
  --whatsapp: #25d366;
  --whatsapp-dark: #128c4b;

  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --radius: 4px;
  --header-h: 84px;
  --shadow-soft: 0 18px 40px -22px rgba(31, 21, 16, 0.35);
  --shadow-lift: 0 28px 60px -28px rgba(31, 21, 16, 0.5);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2. BASE & TYPOGRAPHY --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 .5em;
  color: var(--dark-brown);
  letter-spacing: .005em;
}
h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }
p { margin: 0 0 1.2em; }
em.serif-accent { font-style: italic; color: var(--caramel); }

/* Visible keyboard focus everywhere */
:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 2000;
  background: var(--espresso); color: var(--cream); padding: .7rem 1.2rem;
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 3. UTILITIES & BUTTONS ------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--espresso); color: var(--beige); }
.section--dark h2, .section--dark h3 { color: var(--cream); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  font-family: var(--font-sans);
  font-size: .78rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--caramel-dark);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.section--dark .eyebrow { color: var(--tan); }

.section-head { max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section--dark .section-head p { color: var(--beige); opacity: .85; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .85rem 1.9rem;
  font-family: var(--font-sans); font-size: .82rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius);
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
/* sliding fill on hover */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }

.btn--primary { background: var(--caramel-dark); color: #fff; }
.btn--primary::before { background: var(--dark-brown); }
.btn--light { background: var(--cream); color: var(--espresso); }
.btn--light::before { background: var(--tan); }
.btn--outline { border-color: currentColor; color: var(--dark-brown); background: transparent; }
.btn--outline::before { background: var(--dark-brown); }
.btn--outline:hover { color: var(--cream); border-color: var(--dark-brown); }
.btn--outline-light { border-color: rgba(247, 241, 231, .6); color: var(--cream); background: transparent; }
.btn--outline-light::before { background: var(--cream); }
.btn--outline-light:hover { color: var(--espresso); }
.btn--whatsapp { background: var(--whatsapp-dark); color: #fff; }
.btn--whatsapp::before { background: #0d6e3a; }
.btn--sm { min-height: 44px; padding: .65rem 1.1rem; font-size: .72rem; letter-spacing: .14em; }
.btn--block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--dark-brown); padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .4s var(--ease), gap .4s var(--ease);
}
.text-link:hover { gap: .9rem; background-size: 40% 1px; }

/* 4. HEADER / NAVIGATION ------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease);
}
/* Frosted background lives on a pseudo-element: a backdrop-filter on the header
   itself would trap the fixed-position mobile menu inside the header's box. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(252, 249, 244, .92);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(31,21,16,.45); }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: var(--header-h); transition: height .4s var(--ease);
}
.site-header.is-scrolled .nav { height: 70px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand__emblem { width: 46px; height: 46px; transition: transform .8s var(--ease); }
.brand:hover .brand__emblem { transform: rotate(45deg); }
.brand__signature { height: 48px; width: auto; }

.nav__menu { display: flex; align-items: center; gap: 2.4rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; padding: .5rem 0;
  font-size: .8rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--caramel); transform: scaleX(0); transition: transform .4s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--caramel-dark); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: .8rem; }
.nav__whatsapp { gap: .5rem; }
.nav__whatsapp i { font-size: 1.1rem; }

.nav__toggle {
  display: none; width: 48px; height: 48px; border: 0; background: transparent;
  position: relative; color: var(--dark-brown);
}
.nav__toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor;
  transition: transform .4s var(--ease), opacity .3s;
}
.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 23px; }
.nav__toggle span:nth-child(3) { top: 29px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 5. PAGE BANNER (inner pages) ------------------------------------------ */
.page-banner {
  position: relative; overflow: hidden;
  background: var(--espresso); color: var(--beige);
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6.5rem);
}
.page-banner::after { /* faint emblem watermark */
  content: ""; position: absolute; right: -80px; top: 50%; width: 420px; height: 420px;
  transform: translateY(-50%); opacity: .06;
  background: url("../images/logo-light.png") center / contain no-repeat;
}
.page-banner h1 { color: var(--cream); max-width: 16ch; margin-bottom: .35em; }
.page-banner p { max-width: 560px; font-size: 1.08rem; opacity: .88; margin: 0; }
.page-banner .eyebrow { color: var(--tan); }
.breadcrumb {
  display: flex; gap: .6rem; list-style: none; padding: 0; margin: 0 0 1.4rem;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--tan);
}
.breadcrumb li + li::before { content: "/"; margin-right: .6rem; opacity: .6; }
.breadcrumb a:hover { color: var(--cream); }

/* 6. HERO VIDEO (full width) ------------------------------------------- */
.video-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  background: var(--espresso); color: var(--beige);
}
.video-hero__media { position: absolute; inset: 0; z-index: -2; container-type: size; }
.video-hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-hero__video { position: absolute; inset: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity 1.4s var(--ease); }
.video-hero__video.is-playing { opacity: 1; }
/* Cover the box with a 16:9 iframe (like object-fit: cover); the slight
   over-scale hides YouTube's title bar and edges. */
.video-hero__video iframe {
  position: absolute; top: 50%; left: 50%; border: 0;
  width: max(100cqw, calc(100cqh * 16 / 9)); height: max(100cqh, calc(100cqw * 9 / 16));
  transform: translate(-50%, -50%) scale(1.18);
}
.video-hero__overlay { /* light shade at the bottom so the controls stay visible */
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(18,13,10,.45), transparent 28%);
}

.video-hero__controls {
  position: absolute; z-index: 2; bottom: clamp(1.5rem, 4vw, 2.6rem);
  left: max(1.5rem, calc((100vw - var(--container)) / 2 + 1.5rem));
  display: flex; gap: .7rem;
}
.video-hero__ctrl {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(247,241,231,.45); background: rgba(18,13,10,.35); color: var(--cream);
  display: grid; place-items: center;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .3s, color .3s, border-color .3s;
}
.video-hero__ctrl:hover { background: var(--cream); color: var(--espresso); border-color: var(--cream); }

.video-hero__scroll {
  position: absolute; z-index: 2; left: 50%; bottom: clamp(1.5rem, 4vw, 2.6rem); transform: translateX(-50%);
  width: 28px; height: 46px; border: 1px solid rgba(247,241,231,.55); border-radius: 14px;
}
.video-hero__scroll span {
  position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--cream); animation: scrollCue 2s var(--ease) infinite;
}
@keyframes scrollCue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* 7. SECTION PATTERNS ----------------------------------------------------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.split__media--framed::before { /* offset frame behind image */
  content: ""; position: absolute; inset: 1.6rem -1.6rem -1.6rem 1.6rem;
  border: 1px solid var(--tan); border-radius: var(--radius); z-index: -1;
}
.split__media .badge {
  position: absolute; left: -1.5rem; bottom: 2.5rem;
  background: var(--espresso); color: var(--cream);
  padding: 1.3rem 1.6rem; border-radius: var(--radius); box-shadow: var(--shadow-lift);
  display: flex; align-items: center; gap: 1rem; max-width: 280px;
}
.badge img { width: 44px; height: 44px; }
.badge strong { display: block; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 500; line-height: 1.2; }
.badge span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tan); }
.split__body p { color: var(--muted); font-size: 1.04rem; }
.split__body .lead { font-family: var(--font-serif); font-size: 1.45rem; line-height: 1.5; color: var(--dark-brown); }

/* 8. HOME SECTIONS -------------------------------------------------------- */
/* Featured category cards */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.cat-card {
  background: var(--ivory); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 0 var(--line);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.cat-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #fff; }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat-card:hover .cat-card__media img { transform: scale(1.07); }
.cat-card__count {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(252,249,244,.94); color: var(--dark-brown);
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 2px;
}
.cat-card__body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.cat-card__body h3 { margin-bottom: .35em; }
.cat-card__body p { color: var(--muted); font-size: .95rem; flex: 1; }

/* Why choose us */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(230,215,193,.14); border: 1px solid rgba(230,215,193,.14); }
.why-item { background: var(--espresso); padding: 2.6rem 1.8rem; transition: background-color .5s var(--ease); }
.why-item:hover { background: var(--dark-brown); }
.why-item__icon {
  width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid rgba(201,154,104,.5); color: var(--tan);
  display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 1.6rem;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
.why-item:hover .why-item__icon { background: var(--tan); color: var(--espresso); }
.why-item h3 { font-size: 1.45rem; }
.why-item p { font-size: .95rem; color: var(--beige); opacity: .82; margin: 0; }

/* Signature strip of materials */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--cream); padding: 1.4rem 0; }
.marquee__inner { display: flex; gap: 3.5rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee__inner span {
  font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; color: var(--saddle);
  display: inline-flex; align-items: center; gap: 3.5rem; white-space: nowrap;
}
.marquee__inner span::after { content: "✦"; font-style: normal; font-size: .9rem; color: var(--tan); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 9. CALL TO ACTION ------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden; color: var(--cream);
  padding: clamp(5rem, 11vw, 9rem) 0;
  background: var(--espresso);
}
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(.9); }
.cta__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(31,21,16,.96) 30%, rgba(31,21,16,.55));
}
.cta .container { position: relative; z-index: 1; }
.cta h2 { color: var(--cream); max-width: 16ch; }
.cta p { max-width: 520px; font-size: 1.1rem; color: var(--beige); }
.cta__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.cta .eyebrow { color: var(--tan); }

/* 10. ABOUT PAGE --------------------------------------------------------- */
.story-intro { text-align: center; max-width: 820px; margin: 0 auto; }
.story-intro .lead {
  font-family: var(--font-serif); font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.45; color: var(--dark-brown);
}
.story-intro img.signature { height: 70px; width: auto; margin: 2rem auto 0; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.timeline li { border-top: 1px solid var(--tan); padding-top: 1.6rem; position: relative; }
.timeline li::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-serif); font-size: 2.6rem; color: var(--caramel); display: block; line-height: 1; margin-bottom: .8rem;
}
.timeline li::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--caramel); }
.timeline h3 { font-size: 1.45rem; }
.timeline p { color: var(--muted); font-size: .97rem; margin: 0; }

.standards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.standard {
  background: var(--ivory); padding: 2.4rem 2rem; border-radius: var(--radius);
  border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.standard:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.standard i { font-size: 1.5rem; color: var(--caramel); margin-bottom: 1.2rem; display: block; }
.standard p { color: var(--muted); margin: 0; font-size: .97rem; }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(230,215,193,.16); }
.mv-card { background: var(--espresso); padding: clamp(2.4rem, 5vw, 4rem); }
.mv-card .eyebrow { color: var(--tan); }
.mv-card p { font-family: var(--font-serif); font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.5; color: var(--cream); margin: 0; }

.craft-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 1rem; }
.craft-gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: #fff; }
.craft-gallery figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.craft-gallery figure:nth-child(4) { grid-column: span 2; }
.craft-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.craft-gallery figure:hover img { transform: scale(1.06); }
.craft-gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(18,13,10,.82));
  color: var(--cream); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
}

/* 11. PRODUCTS PAGE / GALLERY -------------------------------------------- */
.filter-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}
.filter-btn {
  min-height: 44px; padding: .6rem 1.4rem; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.filter-btn:hover { border-color: var(--caramel); color: var(--caramel-dark); }
.filter-btn.is-active { background: var(--dark-brown); border-color: var(--dark-brown); color: var(--cream); }
.filter-btn sup { font-size: .65rem; margin-left: .25rem; opacity: .7; }
.results-note { text-align: center; color: var(--muted); font-size: .9rem; margin: -1.6rem 0 2.4rem; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.product-card {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity .45s var(--ease);
}
.product-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.product-card.is-hidden { display: none; }
.product-card.is-entering { animation: cardIn .6s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Gallery: main image */
.gallery__main {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  aspect-ratio: 1 / 1; background: #fff; overflow: hidden; cursor: zoom-in;
}
.gallery__main img {
  width: 100%; height: 100%; object-fit: contain;
  transition: opacity .35s var(--ease), transform .9s var(--ease);
}
.gallery__main img.is-fading { opacity: 0; }
.gallery__main:hover img { transform: scale(1.04); }
.gallery__zoom {
  position: absolute; right: .9rem; bottom: .9rem; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(31,21,16,.78); color: var(--cream); display: grid; place-items: center; font-size: .85rem;
  opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s;
}
.gallery__main:hover .gallery__zoom, .gallery__main:focus-visible .gallery__zoom { opacity: 1; transform: none; }
.gallery__tag {
  position: absolute; left: .9rem; top: .9rem;
  background: var(--espresso); color: var(--cream); border-radius: 2px;
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; padding: .3rem .65rem;
}
/* Gallery: thumbnails strip */
.gallery__thumbs-wrap { position: relative; display: flex; align-items: center; gap: .3rem; padding: .7rem .6rem; border-bottom: 1px solid var(--line); }
.gallery__thumbs {
  display: flex; gap: .5rem; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory;
  scrollbar-width: none; flex: 1; padding: 2px;
}
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb {
  flex: 0 0 62px; height: 62px; padding: 0; border: 1px solid var(--line); border-radius: 3px;
  background: #fff; overflow: hidden; scroll-snap-align: start; opacity: .62;
  transition: opacity .3s, border-color .3s, transform .3s;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb.is-active { opacity: 1; border-color: var(--caramel); box-shadow: inset 0 0 0 1px var(--caramel); }
.gallery__nav {
  flex: 0 0 32px; width: 32px; height: 44px; border: 0; background: transparent; color: var(--dark-brown);
  display: grid; place-items: center; border-radius: 3px; transition: background-color .3s, opacity .3s;
}
.gallery__nav:hover { background: var(--cream); }
.gallery__nav[disabled] { opacity: .25; cursor: default; }
.gallery__nav[hidden] { display: none; }

.product-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.product-card__cat { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--caramel-dark); margin-bottom: .4rem; }
.product-card__body h3 { margin-bottom: .45em; }
.product-card__body p { color: var(--muted); font-size: .95rem; flex: 1; }
.product-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .4rem; }

.catalogue-note {
  margin-top: clamp(3rem, 6vw, 5rem); padding: 2rem; border: 1px dashed var(--tan); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.catalogue-note p { margin: 0; color: var(--muted); max-width: 640px; }
.catalogue-note strong { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; color: var(--dark-brown); display: block; }

/* 12. LIGHTBOX ------------------------------------------------------------ */
.lightbox {
  position: fixed; inset: 0; z-index: 3000; background: rgba(18,13,10,.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { margin: 0; max-width: min(92vw, 1000px); text-align: center; }
.lightbox__img {
  max-height: 80vh; width: auto; margin: 0 auto; border-radius: 2px; background: #fff;
  transform: scale(.96); transition: transform .5s var(--ease), opacity .3s;
}
.lightbox.is-open .lightbox__img { transform: none; }
.lightbox__img.is-fading { opacity: 0; }
.lightbox__caption { color: var(--beige); margin-top: 1rem; font-size: .9rem; letter-spacing: .08em; }
.lightbox__btn {
  position: absolute; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(247,241,231,.35); background: rgba(31,21,16,.6); color: var(--cream);
  display: grid; place-items: center; font-size: 1.1rem; transition: background-color .3s, color .3s;
}
.lightbox__btn:hover { background: var(--cream); color: var(--espresso); }
.lightbox__close { top: 1.4rem; right: 1.4rem; }
.lightbox__prev { left: 1.4rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.4rem; top: 50%; transform: translateY(-50%); }

/* 13. CONTACT PAGE -------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.3rem; }
.contact-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.contact-item__icon {
  flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--cream);
  color: var(--caramel-dark); display: grid; place-items: center; font-size: 1.1rem;
  border: 1px solid var(--line);
}
.contact-item__label { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact-item a, .contact-item address { font-style: normal; font-size: 1.08rem; color: var(--dark-brown); }
.contact-item a:hover { color: var(--caramel-dark); }

.social { display: flex; gap: .7rem; flex-wrap: wrap; }
.social a {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.05rem;
  border: 1px solid var(--line); color: var(--dark-brown);
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), border-color .35s;
}
.social a:hover { background: var(--dark-brown); color: var(--cream); border-color: var(--dark-brown); transform: translateY(-3px); }
.social--light a { border-color: rgba(230,215,193,.25); color: var(--beige); }
.social--light a:hover { background: var(--tan); color: var(--espresso); border-color: var(--tan); }

.form-card { background: var(--cream); padding: clamp(1.8rem, 4vw, 3.2rem); border-radius: var(--radius); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 1.4rem; }
.form-field { display: flex; flex-direction: column; gap: .45rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--dark-brown); }
.form-field label .req { color: #a3361c; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; min-height: 50px; padding: .8rem 1rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--ivory); border: 1px solid rgba(59,38,25,.28); border-radius: var(--radius);
  transition: border-color .3s, box-shadow .3s;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--caramel); box-shadow: 0 0 0 3px rgba(168,112,63,.18); }
.form-field.has-error input, .form-field.has-error textarea { border-color: #a3361c; }
.form-error { font-size: .82rem; color: #a3361c; min-height: 1.1em; }
.form-status { margin-top: 1.2rem; padding: 1rem 1.2rem; border-radius: var(--radius); font-size: .95rem; display: none; }
.form-status.is-success { display: block; background: #e5f1e5; color: #1f5a2a; }
.form-status.is-error { display: block; background: #f7e3dd; color: #8a2a14; }
.form-hint { font-size: .85rem; color: var(--muted); margin: 1rem 0 0; }

.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--cream); line-height: 0; }
.map-wrap iframe { width: 100%; height: 440px; border: 0; filter: sepia(.25) saturate(.85); }

/* 14. FOOTER -------------------------------------------------------------- */
.site-footer { background: var(--black); color: var(--beige); padding-top: clamp(4rem, 8vw, 6rem); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 3rem; padding-bottom: 3.5rem; }
.footer-brand .brand__emblem { width: 52px; height: 52px; }
.footer-brand p { margin: 1.4rem 0 1.6rem; opacity: .78; max-width: 320px; }
.footer-col h2 {
  font-family: var(--font-sans); font-size: .76rem; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--tan); margin-bottom: 1.4rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.footer-col a { opacity: .82; display: inline-flex; align-items: center; gap: .65rem; }
.footer-col a:hover { opacity: 1; color: var(--tan); }
.footer-col i { color: var(--tan); width: 16px; text-align: center; }
.footer-col address { font-style: normal; opacity: .82; display: flex; gap: .65rem; }
.footer-bottom {
  border-top: 1px solid rgba(230,215,193,.12); padding: 1.6rem 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .82rem; opacity: .7;
}

/* 15. WHATSAPP FLOAT, REVEAL, RESPONSIVE --------------------------------- */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 1500;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; font-size: 1.95rem;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(18,140,75,.6);
  transition: transform .35s var(--ease), background-color .35s;
}
.wa-float::before { /* pulse ring */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--whatsapp); animation: waPulse 2.4s var(--ease) infinite;
}
.wa-float:hover { transform: scale(1.08); background: var(--whatsapp-dark); }
.wa-float__tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%);
  background: var(--espresso); color: var(--cream); white-space: nowrap;
  font-size: .8rem; letter-spacing: .04em; padding: .5rem .85rem; border-radius: 3px;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.wa-float:hover .wa-float__tip, .wa-float:focus-visible .wa-float__tip { opacity: 1; transform: translate(0, -50%); }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.55); opacity: 0; } }

.back-to-top {
  position: fixed; right: 1.4rem; bottom: 6.2rem; z-index: 1400;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--ivory); color: var(--dark-brown); display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .35s, visibility .35s, transform .35s, background-color .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--dark-brown); color: var(--cream); }

/* Scroll reveal (enabled only when JS runs, see script.js) */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .12s; }
.js .reveal[data-delay="2"] { transition-delay: .24s; }
.js .reveal[data-delay="3"] { transition-delay: .36s; }
.js .reveal[data-delay="4"] { transition-delay: .48s; }

/* ---------- Large tablets ---------- */
@media (max-width: 1100px) {
  .nav__menu { gap: 1.6rem; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
}

/* ---------- Tablets & mobile nav ---------- */
@media (max-width: 920px) {
  :root { --header-h: 72px; }
  .nav__toggle { display: block; }
  .nav__whatsapp span { display: none; }
  .nav__whatsapp { padding: .7rem; min-width: 48px; }
  .nav__menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); padding: 1.5rem 1.5rem 3rem;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .55s var(--ease), visibility .55s;
    overflow-y: auto;
  }
  .site-header.is-scrolled .nav__menu { top: 70px; }
  .nav__menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav__menu li { border-bottom: 1px solid var(--line); }
  .nav__link { display: block; padding: 1.2rem 0; font-family: var(--font-serif); font-size: 1.9rem; letter-spacing: .01em; text-transform: none; }
  .nav__link::after { display: none; }

  .video-hero { min-height: min(calc(100svh - var(--header-h)), 760px); }
  .video-hero__scroll { display: none; }

  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media img { aspect-ratio: 4 / 3.4; }
  .split__media .badge { left: 1rem; bottom: 1rem; }
  .split__media--framed::before { inset: 1rem -.8rem -1rem .8rem; }
  .standards { grid-template-columns: 1fr 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .craft-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .craft-gallery figure:nth-child(4) { grid-column: span 1; }
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  body { font-size: .98rem; }
  .brand__signature { height: 40px; }
  .brand__emblem { width: 38px; height: 38px; }
  .cat-grid, .product-grid, .standards, .timeline, .footer-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-item:last-child { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .product-card__actions { grid-template-columns: 1fr; }
  .cta__actions .btn { flex: 1 1 100%; }
  .craft-gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .craft-gallery figure:nth-child(1) { grid-column: auto; grid-row: span 1; }
  .map-wrap iframe { height: 320px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1.4rem; transform: none; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
  .wa-float { width: 56px; height: 56px; right: 1rem; bottom: 1rem; }
  .back-to-top { right: 1.4rem; bottom: 5.4rem; }
  .page-banner::after { width: 260px; height: 260px; right: -90px; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.cat-card__media { display: block; }

/* Full video player */
.video-modal {
  position: fixed; inset: 0; z-index: 3000; background: rgba(18,13,10,.95);
  display: flex; align-items: center; justify-content: center; padding: 4.5rem 1.2rem;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.video-modal.is-open { opacity: 1; visibility: visible; }
.video-modal__frame { width: min(100%, 1100px, calc((100vh - 9rem) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; border-radius: 3px; overflow: hidden; }
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Portrait screens (phones, upright tablets): show the whole video at 16:9
   instead of cropping a narrow slice out of it. */
@media (orientation: portrait) {
  .video-hero { min-height: 0; aspect-ratio: 16 / 9; }
  .video-hero__controls { bottom: .9rem; left: 1rem; gap: .5rem; }
  .video-hero__ctrl { width: 44px; height: 44px; }
}

/* Header logo (combined signature + sun emblem, transparent PNG) */
.brand__logo { height: 66px; width: auto; transition: height .4s var(--ease), transform .4s var(--ease); }
.brand:hover .brand__logo { transform: scale(1.04); }
.site-header.is-scrolled .brand__logo { height: 56px; }
@media (max-width: 920px) { .brand__logo { height: 56px; } .site-header.is-scrolled .brand__logo { height: 52px; } }

/* Hide back-to-top while the mobile menu (or a viewer) is open */
body.no-scroll .back-to-top { display: none; }

/* Inner-page banners with a studio photo behind a dark, readable overlay */
.page-banner--image { isolation: isolate; }
.page-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-banner--image::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(18,13,10,.92) 0%, rgba(18,13,10,.78) 45%, rgba(18,13,10,.45) 100%);
}
.page-banner--image::after { z-index: -1; }

/* Craft gallery: 10 images — last two span wide; fill gaps on smaller grids */
.craft-gallery { grid-auto-flow: dense; }
.craft-gallery figure:nth-child(9), .craft-gallery figure:nth-child(10) { grid-column: span 2; }
@media (max-width: 920px) { .craft-gallery figure:nth-child(10) { grid-column: span 1; } }
@media (max-width: 640px) { .craft-gallery figure:nth-child(n) { grid-column: auto; grid-row: auto; } }

/* About intro: supporting paragraph under the lead */
.story-intro__text { color: var(--muted); font-size: 1.06rem; max-width: 680px; margin: 0 auto; }
/* Banner headlines that run longer than a few words */
.page-banner h1 { max-width: 20ch; }

/* Map & directions links */
.map-link { margin: 1.2rem 0 0; text-align: center; }
.contact-item__sub { display: inline-block; margin-top: .3rem; font-size: .78rem !important; letter-spacing: .16em; text-transform: uppercase; color: var(--caramel-dark) !important; }
.contact-item__sub:hover { color: var(--dark-brown) !important; }

/* Footer logo stays still (no rotate on hover) */
.footer-brand .brand__emblem, .footer-brand .brand:hover .brand__emblem { transform: none; transition: none; }
