/* ═══════════════════════════════════════════════════════
   gotte.eco — Stylesheet
   Palette: olive · wood · cream · bark
═══════════════════════════════════════════════════════ */

/* ── Entrance animations ─────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.hero-label    { animation: fadeUp .65s ease .15s both; }
.hero-title    { animation: fadeUp .70s ease .35s both; }
.hero-body     { animation: fadeUp .65s ease .55s both; }
.hero-actions  { animation: fadeUp .65s ease .75s both; }

/* ── Custom Properties ───────────────────────────────── */
:root {
  --olive:       #5C6E2E;
  --olive-light: #7A8F42;
  --olive-dim:   #4A5825;
  --wood:        #A0784A;
  --wood-light:  #C9975F;
  --cream:       #F4EFE0;
  --cream-dark:  #EAE2CC;
  --bark:        #2C2015;
  --bark-soft:   #3E3020;
  --white:       #FFFFFF;
  --gray-400:    #9CA3AF;
  --gray-600:    #6B7280;

  --ff-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ff-body: 'Montserrat', system-ui, sans-serif;

  --nav-h: 100px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 4px 24px rgba(44,32,21,.10);
  --shadow-hover: 0 16px 40px rgba(44,32,21,.18);

  --transition: .25s ease;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--ff-body);
  font-weight: 400;
  background: var(--cream);
  color: var(--bark);
  line-height: 1.65;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: .6rem 1rem;
  background: var(--bark);
  color: var(--cream);
  border-radius: var(--radius-sm);
  font-size: .9rem;
}
.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Typography helpers ──────────────────────────────── */
h1, h2, h3,
.section-title,
.hero-title,
.stat-number,
.prod-name,
.contact-sub,
.footer-logo {
  font-family: var(--ff-head);
  font-weight: 800;
}

.section-label {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: .9rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  color: var(--bark);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.prod-catalog-btn {
  margin-top: 1.5rem;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .78rem 1.7rem;
  border-radius: 40px;
  font-size: .95rem;
  font-weight: 400;
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
}
.btn:active { transform: scale(.97); }

.btn-light {
  background: var(--cream);
  color: var(--olive-dim);
}
.btn-light:hover {
  background: var(--white);
  box-shadow: 0 4px 18px rgba(0,0,0,.14);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,.55);
  color: var(--cream);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.12);
}

.btn-primary {
  background: var(--olive);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--olive-dim);
  box-shadow: 0 6px 20px rgba(92,110,46,.35);
}

/* Secondary button for use on light/cream backgrounds (.btn-light and
   .btn-outline above are both tuned for the dark hero only). */
.btn-ghost {
  background: transparent;
  color: var(--olive-dim);
  border: 2px solid var(--olive-dim);
}
.btn-ghost:hover {
  background: var(--olive-dim);
  color: var(--cream);
}

/* ═══════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0px; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background var(--transition), height var(--transition),
              box-shadow var(--transition), backdrop-filter var(--transition);
}

body.menu-open {
  overflow: hidden;
}

#navbar.scrolled {
  height: var(--nav-h);
  background: rgba(244,239,224,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(44,32,21,.10);
}


.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  height: 100%;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--cream);
  transition: color var(--transition);
  flex-shrink: 1;
  min-width: 0;
  white-space: nowrap;
}
#navbar.scrolled .nav-logo { color: var(--bark); }

/* ── Logo image (replaces text) ──────────────────── */
.nav-logo-img {
  height: 82px;
  width: auto;
  display: block;
  padding-top: 12px;
  transition: opacity var(--transition);
}

/* Light version: visible on dark hero, hidden when scrolled */
.nav-logo-img--light {
  filter: brightness(0) invert(1);   /* turns logo white */
  opacity: 1;
}
#navbar.scrolled .nav-logo-img--light,
#navbar.nav-open  .nav-logo-img--light { opacity: 0; position: absolute; pointer-events: none; }

/* Dark version: hidden on dark hero, visible when scrolled */
.nav-logo-img--dark {
  filter: brightness(0) saturate(100%) invert(28%) sepia(30%) saturate(800%) hue-rotate(60deg) brightness(70%);
  opacity: 0; position: absolute; pointer-events: none;
}
#navbar.scrolled .nav-logo-img--dark,
#navbar.nav-open  .nav-logo-img--dark { opacity: 1; position: static; pointer-events: auto; }

.nav-logo-img--horizontal {
  display: none;
}

.logo-green { color: var(--olive-light); }
#navbar.scrolled .logo-green { color: var(--olive); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 400;
  color: rgba(244,239,224,.85);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--cream); }
#navbar.scrolled .nav-links a { color: var(--bark-soft); }
#navbar.scrolled .nav-links a:hover { color: var(--olive); }

/* Lang switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 400;
}
.lang-divider { color: rgba(244,239,224,.4); }
#navbar.scrolled .lang-divider { color: var(--gray-400); }

.lang-btn {
  color: rgba(244,239,224,.55);
  letter-spacing: .06em;
  transition: color var(--transition);
  padding: .1rem .25rem;
}
.lang-btn:hover,
.lang-btn.active { color: var(--cream); }
#navbar.scrolled .lang-btn { color: var(--gray-400); }
#navbar.scrolled .lang-btn.active { color: var(--olive); }

.nav-lang-item {
  display: flex;
  align-items: center;
}

.nav-menu-logo {
  display: none;
}

/* Hamburger */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  font-size: 1.35rem;
  color: var(--cream);
  transition: color var(--transition);
  z-index: 102;
}
#navbar.scrolled .hamburger { color: var(--bark); }
.hamburger i { pointer-events: none; }

/* Mobile menu backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: rgba(44,32,21,.35);
  z-index: 99;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
body.menu-open .nav-backdrop {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  background: #3d5225 url('../images/hero-background.png') center / cover no-repeat;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(30, 38, 18, .72) 0%,
    rgba(30, 38, 18, .45) 55%,
    rgba(30, 38, 18, .25) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  width: 100%;
  min-width: 0;
}

.hero-text {
  min-width: 0;
  max-width: 100%;
}

.hero-label {
  color: rgba(244,239,224,.75);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 1.4rem;
}

.hero-body {
  font-size: 1.05rem;
  color: rgba(244,239,224,.82);
  max-width: 440px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 27px;
}

.hero-actions .btn {
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
}

.hero-actions .btn-light:hover {
  background: var(--white);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
  transform: translateY(-3px);
}

.hero-actions .btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, .2);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
  transform: translateY(-3px);
}

.hero-actions .btn:active {
  transform: translateY(-1px) scale(.98);
}

.hero-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp .80s ease .45s both;
}

.hero-photo {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,.35);
  object-fit: cover;
}

/* ═══════════════════════════════════════════════════════
   MARQUEE / TICKER
═══════════════════════════════════════════════════════ */
.marquee-wrapper {
  overflow: hidden;
  background: var(--bark);
  padding: .9rem 0;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 0;
  animation: ticker 26s linear infinite;
  will-change: transform;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: 0 2.2rem;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream-dark);
}

.marquee-item i {
  font-size: 1rem;
  color: var(--olive-light);
  flex-shrink: 0;
}

.marquee-dot {
  display: inline-flex;
  align-items: center;
  padding: 0 2.2rem;
  color: var(--olive-light);
  font-size: .7rem;
}

/* ═══════════════════════════════════════════════════════
   CLIENTS STRIP
═══════════════════════════════════════════════════════ */
.clients-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  background: var(--cream-dark);
  border-top: 1px solid rgba(92,110,46,.12);
  border-bottom: 1px solid rgba(92,110,46,.12);
  padding: .75rem 0;
}

.clients-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gray-400);
  flex-shrink: 0;
}

/* Full-width row that clips the scrolling track */
.clients-scroll-row {
  width: 100%;
  overflow: hidden;
}

.clients-track {
  display: inline-flex;
  gap: 0;
  animation: clientsTicker 32s linear infinite;
  will-change: transform;
  white-space: nowrap;
}

@keyframes clientsTicker {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.client-item {
  display: inline-flex;
  align-items: center;
  padding: 0 2.8rem;
  font-family: var(--ff-head);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--bark-soft);
  opacity: .55;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: opacity var(--transition);
}

.client-item:hover { opacity: .9; }

.client-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--olive);
  opacity: .35;
  margin: 0 .5rem;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════ */
.about {
  padding: 7rem 0;
  background: var(--cream);
  text-align: left;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-p {
  color: var(--bark-soft);
  margin-bottom: 1.1rem;
  font-size: .97rem;
  text-align: left;
}
.about-p:last-of-type { margin-bottom: 1.8rem; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.badge {
  display: inline-block;
  padding: .35rem .9rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .06em;
  border: 1.5px solid var(--olive);
  color: var(--olive-dim);
  background: rgba(92,110,46,.07);
}

/* Stat cards */
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.stat-card {
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow-card);
}

.stat-number {
  font-size: 2.8rem;
  line-height: 1;
  color: var(--olive);
  margin-bottom: .4rem;
}

.stat-wood { color: var(--wood); }

.stat-label {
  font-size: .88rem;
  color: var(--gray-600);
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════════
   PRODUCTS
═══════════════════════════════════════════════════════ */
.products {
  padding: 7rem 0;
  background: var(--cream-dark);
}

.products-carousel-wrap {
  width: 100%;
}

.prod-carousel-arrow {
  display: none;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.prod-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: none;
  transition: transform var(--transition);
}

.prod-card:hover {
  transform: translateY(-9px) scale(1.04);
}

.prod-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #F2EDE0 0%, #E4D8C0 100%);
  overflow: hidden;
}

.prod-img-white  { background: linear-gradient(160deg, #F8F5EE 0%, #E8DFC8 100%); }
.prod-img-kraft  { background: linear-gradient(160deg, #EDE0C4 0%, #CCA870 100%); }
.prod-img-olive  { background: linear-gradient(160deg, #C8D8A0 0%, #8AAA58 100%); }
.prod-img-dark   { background: linear-gradient(160deg, #3a3028 0%, #1e180f 100%); }

.prod-size {
  display: inline-block;
  padding: 2px 9px;
  background: var(--olive);
  color: var(--cream);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 5px;
}
.prod-size--wood { background: var(--wood); }

.prod-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition), opacity var(--transition);
  display: block;
}

/* Absolutely positioned so the wrap's aspect-ratio alone sets the box —
   otherwise Safari can let the image's intrinsic height win. */
.prod-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform var(--transition);
}

.prod-card:hover .prod-photo {
  transform: scale(1.04);
}

.prod-img-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  color: rgba(44,32,21,.4);
  font-size: .82rem;
}
.prod-img-placeholder i { font-size: 2rem; opacity: .5; }
.prod-img-placeholder--dark { color: rgba(244,239,224,.4); }

.prod-badge {
  position: absolute;
  top: .9rem;
  right: .9rem;
  background: var(--wood);
  color: var(--cream);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .28rem .7rem;
  border-radius: 20px;
  z-index: 2;
}

.prod-info {
  padding: 1rem 1.1rem 1.1rem;
}

.prod-name {
  font-size: 1rem;
  color: var(--bark);
  margin-bottom: .2rem;
}

.prod-desc {
  font-size: .8rem;
  color: var(--gray-600);
}

/* Featured card accent */
.prod-card--featured {
  border: 2px solid var(--wood-light);
}

/* ═══════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════ */
.contact {
  padding: 7rem 0;
  background: var(--cream);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2.4rem 5.5rem;
  align-items: stretch;
}

.contact-details-block {
  grid-column: 1;
  grid-row: 1;
}

.contact-form-block {
  grid-column: 1;
  grid-row: 2;
}

.contact-sub {
  font-size: 1.15rem;
  color: var(--bark);
  margin-bottom: 1.2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-bottom: 0;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .95rem;
  color: var(--bark-soft);
}

.contact-details i {
  font-size: 1.1rem;
  color: var(--olive);
  margin-top: .1rem;
  flex-shrink: 0;
}

.contact-details a { color: var(--bark-soft); transition: color var(--transition); }
.contact-details a:hover { color: var(--olive); }

/* Form */
.form-group { margin-bottom: 1rem; }

.form-input {
  width: 100%;
  padding: .78rem 1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  background: var(--cream-dark);
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: .93rem;
  color: var(--bark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-input::placeholder { color: var(--gray-400); }

.form-input:focus {
  border-color: var(--olive);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(92,110,46,.12);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: .4rem;
  border-radius: var(--radius-sm);
}

.form-input.is-invalid {
  border-color: #c0392b;
}

.form-error {
  font-size: .8rem;
  color: #c0392b;
  margin-top: .35rem;
}

/* Honeypot — off-screen and unreachable by keyboard/AT, never shown to real users */
.form-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Product + quantity side-by-side row — wraps on its own via flex-wrap,
   no dedicated breakpoint needed. */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.form-row .form-group {
  flex: 1 1 180px;
  min-width: 0;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232C2015'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%232C2015' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.form-file-label {
  display: block;
  font-size: .85rem;
  color: var(--bark-soft);
  margin-bottom: .4rem;
}

.form-file-input {
  width: 100%;
  font-size: .85rem;
  color: var(--bark-soft);
}

.form-file-input::file-selector-button {
  padding: .5rem 1.1rem;
  margin-right: .75rem;
  border: 1.5px solid var(--olive-dim);
  border-radius: 40px;
  background: transparent;
  color: var(--olive-dim);
  font-family: var(--ff-body);
  font-size: .82rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.form-file-input::file-selector-button:hover {
  background: var(--olive-dim);
  color: var(--cream);
}

.form-file-hint {
  font-size: .78rem;
  color: var(--gray-400);
  margin-top: .4rem;
}

.form-error-banner {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-top: .9rem;
  padding: .75rem .9rem;
  border-radius: var(--radius-sm);
  background: rgba(192,57,43,.08);
  border: 1px solid rgba(192,57,43,.25);
  color: #c0392b;
  font-size: .85rem;
}
.form-error-banner i { margin-top: .1rem; flex-shrink: 0; }

/* Success panel — replaces the form in place on a successful submit,
   so confirmation is unmissable rather than a small status line. */
.form-success {
  text-align: center;
  padding: 2rem 1rem;
}
.form-success-icon {
  font-size: 2.5rem;
  color: var(--olive);
  margin-bottom: .75rem;
  display: inline-block;
}
.form-success-title {
  font-size: 1.25rem;
  color: var(--bark);
  margin-bottom: .5rem;
}
.form-success-body {
  color: var(--bark-soft);
  font-size: .95rem;
  margin-bottom: 1.4rem;
}

/* Map */
.contact-map {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: stretch;
  position: relative;
  min-height: 280px;
  height: auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--cream-dark);
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer {
  background: var(--bark);
  padding: 2rem 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-copy {
  font-size: .8rem;
  color: rgba(244,239,224,.45);
}

.footer-legal-link {
  font-size: .8rem;
  color: rgba(244,239,224,.45);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}
.footer-legal-link:hover { color: var(--cream); }

.footer-socials {
  display: flex;
  gap: 1rem;
}
.footer-socials a {
  color: rgba(244,239,224,.5);
  font-size: 1.2rem;
  transition: color var(--transition);
}
.footer-socials a:hover { color: var(--cream); }

/* ── Legal pages (privacy.html) ──────────────────────── */
.legal-page {
  padding: calc(var(--nav-h) + 3rem) 0 5rem;
  background: var(--cream);
}

.legal-container {
  max-width: 720px;
}

.legal-title {
  margin: .6rem 0 .5rem;
}

.legal-updated {
  font-size: .85rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.legal-h2 {
  font-family: var(--ff-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--bark);
  margin: 2.2rem 0 .8rem;
}

.legal-p {
  color: var(--bark-soft);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-p a { color: var(--olive); text-decoration: underline; text-underline-offset: 2px; }
.legal-p a:hover { color: var(--olive-light); }

/* ── Product cards — clickable cursor ────────────────── */
.prod-card {
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */

/* Laptop & desktop — align nav with hero columns */
@media (min-width: 861px) {
  .nav-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 85px;
  }

  .nav-logo-img {
    height: 82px;
  }

  .nav-links a {
    font-size: .95rem;
  }

  .lang-switch {
    font-size: .85rem;
  }

  .hero-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 3.5rem 85px;
    gap: 2.5rem;
  }

  .hero-label {
    font-size: .72rem;
  }

  .hero-title {
    font-size: clamp(2.35rem, 3.8vw, 3.5rem);
    margin-bottom: 1.2rem;
  }

  .hero-body {
    font-size: 1.05rem;
    max-width: 440px;
    margin-bottom: 1.75rem;
  }

  .hero-actions {
    padding-top: 0;
  }

  .hero-actions .btn {
    font-size: .95rem;
    padding: .78rem 1.7rem;
  }

  .hero-img-wrap {
    justify-content: flex-end;
  }

  .hero-photo {
    max-width: min(100%, 480px);
    width: 100%;
  }

  .nav-logo {
    justify-self: start;
  }

  .nav-right {
    grid-column: 2;
    justify-self: end;
    margin-left: 0;
  }
}

/* Large desktop — scaled-up hero & nav */
@media (min-width: 1280px) {
  :root {
    --nav-h: 125px;
  }

  .nav-logo-img {
    height: 100px;
    padding-top: 12px;
  }

  .nav-links a {
    font-size: 1.15rem;
  }

  .lang-switch {
    font-size: .95rem;
  }

  .hero-inner {
    padding: 4rem 85px;
    gap: 3rem;
  }

  .hero-label {
    font-size: .82rem;
  }

  .hero-title {
    font-size: clamp(3rem, 4.5vw, 4.5rem);
    margin-bottom: 1.4rem;
  }

  .hero-body {
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 2rem;
  }

  .hero-actions {
    padding-top: 12px;
  }

  .hero-actions .btn {
    font-size: 1.05rem;
    padding: .88rem 1.9rem;
  }

  .hero-photo {
    max-width: 100%;
  }
}

/* Extra-wide desktop */
@media (min-width: 1600px) {
  :root {
    --nav-h: 150px;
  }

  .nav-logo-img {
    height: 115px;
  }

  .nav-links a {
    font-size: 1.35rem;
  }

  .lang-switch {
    font-size: 1.1rem;
  }

  .hero-title {
    font-size: clamp(3.5rem, 5vw, 5.25rem);
  }

  .hero-body {
    font-size: 1.35rem;
    max-width: 560px;
  }

  .hero-actions .btn {
    font-size: 1.15rem;
    padding: 1rem 2.1rem;
  }
}

/* Tablet — up to 1024px */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
}

/* Tablet — up to 860px */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 4rem 1.5rem 2.5rem;
    gap: 2rem;
  }

  .hero-text { order: 1; }
  .hero-img-wrap { order: 2; width: 100%; max-width: 420px; margin: 0 auto; }

  .hero-body {
    margin-left: auto;
    margin-right: auto;
    max-width: 36rem;
  }
  .hero-actions { justify-content: center; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 2.5rem;
  }

  .contact-details-block,
  .contact-form-block,
  .contact-map {
    grid-column: 1;
    grid-row: auto;
  }

  .contact-map {
    height: 320px;
    min-height: 240px;
  }
}

/* Mobile — up to 768px (hamburger + slide-down menu) */
@media (max-width: 768px) {
  .nav-logo-img--desktop {
    display: none !important;
  }

  .nav-logo-img--horizontal {
    display: block;
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 1;
    position: static;
    pointer-events: auto;
    transition: filter var(--transition);
  }

  #navbar.scrolled .nav-logo-img--horizontal,
  #navbar.nav-open .nav-logo-img--horizontal {
    filter: none;
    opacity: 1;
    position: static;
    pointer-events: auto;
  }

  .footer-logo-img {
    height: 44px;
  }

  .section-title{
    text-align: left;
  }
  .section-label:not(.hero-label) {
    text-align: left;
    display: flex;
    justify-content: start;
  }

  .nav-inner {
    position: relative;
    padding: 0 1.25rem;
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }

  .nav-right {
    gap: 0;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 101;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    background: var(--cream);
    padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
    gap: 0;
    border: none;
    box-shadow: none;
    overflow-y: auto;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
  }

  #navbar.nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.4s ease, visibility 0s linear 0s;
  }

  .nav-links > li {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  #navbar.nav-open .nav-links > li {
    opacity: 1;
    transform: translateY(0);
  }

  #navbar.nav-open .nav-links > li:nth-child(1) { transition-delay: 0.06s; }
  #navbar.nav-open .nav-links > li:nth-child(2) { transition-delay: 0.1s; }
  #navbar.nav-open .nav-links > li:nth-child(3) { transition-delay: 0.14s; }
  #navbar.nav-open .nav-links > li:nth-child(4) { transition-delay: 0.18s; }
  #navbar.nav-open .nav-links > li:nth-child(5) { transition-delay: 0.22s; }
  #navbar.nav-open .nav-links > li:nth-child(6) { transition-delay: 0.26s; }

  .nav-links > li {
    transition-delay: 0s;
  }

  @media (prefers-reduced-motion: reduce) {
    .nav-links,
    .nav-links > li {
      transition: none !important;
    }
    #navbar.nav-open .nav-links > li {
      transition-delay: 0s !important;
    }
  }

  .nav-menu-logo {
    display: block;
    position: absolute;
    top: max(1rem, env(safe-area-inset-top));
    left: max(1.25rem, env(safe-area-inset-left));
    width: auto;
    max-width: calc(100% - 4.5rem);
    margin: 0;
    border-bottom: none;
    list-style: none;
  }

  .nav-menu-logo-img {
    display: block;
    height: 38px;
    width: auto;
    margin: 0;
  }

  .nav-links li:not(.nav-menu-logo):not(.nav-lang-item) {
    width: auto;
    align-self: center;
    max-width: 18rem;
    border-bottom: 1px solid rgba(44,32,21,.06);
  }
  .nav-links li:last-child,
  .nav-links li.nav-menu-logo,
  .nav-links li.nav-lang-item {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 1.15rem;
    color: var(--bark-soft) !important;
  }
  .nav-links a:hover {
    color: var(--olive) !important;
  }

  .nav-lang-item {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: max(2rem, env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    border: none;
    transform: translateY(14px);
  }

  #navbar.nav-open .nav-links > li.nav-lang-item {
    transform: translateY(0);
  }

  .nav-lang-item .lang-switch {
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }

  .nav-lang-item .lang-btn,
  .nav-lang-item .lang-divider {
    color: var(--bark-soft) !important;
  }

  .nav-lang-item .lang-btn.active {
    color: var(--olive) !important;
  }

  #navbar.nav-open {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }

  #navbar.nav-open .nav-inner {
    position: relative;
    z-index: 102;
  }

  body.menu-open .nav-backdrop {
    display: none;
  }

  #navbar.nav-open .nav-logo,
  #navbar.nav-open .nav-logo .logo-green {
    color: var(--bark);
  }
  #navbar.nav-open .nav-logo .logo-green {
    color: var(--olive);
  }

  #navbar.nav-open .hamburger,
  #navbar.nav-open .hamburger i {
    color: #000;
  }

  .hamburger {
    display: flex;
  }

  .container {
    padding: 0 1.25rem;
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }

  .about,
  .products,
  .contact {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .hero {
    min-height: auto;
    padding-top: var(--nav-h);
  }

  .hero-inner {
    padding: 2rem 1.25rem 2rem;
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
    gap: 1.5rem;
  }

  .hero-text {
    width: 100%;
    padding: 0;
  }

  .hero-label {
    display: block;
    width: 100%;
    text-align: center;
    font-size: .65rem;
    letter-spacing: .1em;
    margin-bottom: .75rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 1rem;
  }

  .hero-body {
    font-size: .92rem;
    line-height: 1.6;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1.5rem;
    padding: 0 .15rem;
    overflow-wrap: break-word;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: .65rem;
    width: 100%;
  }

  .hero-actions .btn {
    justify-content: center;
    width: 100%;
    max-width: 280px;
    padding: .7rem 1.4rem;
    font-size: .9rem;
  }

  .btn {
    min-height: unset;
  }

  .about-inner {
    gap: 2rem;
  }

  .about-text {
    text-align: center;
  }

  .contact-inner {
    gap: 2rem;
  }

  .contact-map {
    height: min(50vw, 320px);
    min-height: 240px;
  }

  .products-carousel-wrap {
    position: relative;
    margin-left: max(-1.25rem, calc(-1 * env(safe-area-inset-left)));
    margin-right: max(-1.25rem, calc(-1 * env(safe-area-inset-right)));
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
    overflow: hidden;
  }

  .products-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .products-grid::-webkit-scrollbar {
    display: none;
  }

  .prod-card {
    flex: 0 0 calc(50% - 0.5rem);
    min-width: calc(50% - 0.5rem);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .prod-carousel-arrow {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: -0.3rem;
    top: 50%;
    transform: translateY(-50%) translateX(4px);
    z-index: 3;
    pointer-events: none;
    color: var(--olive);
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
    transition: opacity var(--transition), visibility var(--transition);
    opacity: 0;
    visibility: hidden;
  }

  .prod-carousel-arrow.is-visible {
    display: flex;
    opacity: 1;
    visibility: visible;
  }

  .prod-carousel-arrow i {
    pointer-events: none;
  }

  .prod-img-wrap {
    padding: 0;
    aspect-ratio: 3 / 3.72;
    box-sizing: border-box;
  }

  .prod-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .prod-info {
    padding: 0.75rem 0.65rem 0.85rem;
  }

  .prod-name {
    font-size: 0.9rem;
  }

  .prod-desc {
    font-size: 0.72rem;
  }

  .prod-badge {
    top: 0.65rem;
    right: 0.65rem;
    font-size: 0.62rem;
    padding: 0.22rem 0.55rem;
  }

  .prod-card:hover {
    transform: none;
  }

  .prod-card:hover .prod-photo {
    transform: none;
  }

  .stat-card { padding: 1.2rem 1.4rem; }
  .stat-number { font-size: 2.2rem; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: .8rem;
    padding: 0 1rem;
  }

  .badge-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .badge-row .badge {
    display: block;
    width: 100%;
    text-align: center;
  }

  .hero-img-wrap {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .marquee-wrapper {
    max-width: 100vw;
  }

  .marquee-item {
    padding: 0 1.2rem;
    font-size: .72rem;
  }
}

/* Small mobile — up to 640px */
@media (max-width: 640px) {
  :root { --nav-h: 56px; }

  .nav-logo {
    font-size: 1.15rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-inner {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }
}

/* Narrow phones */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.65rem;
  }

  .hero-actions .btn {
    max-width: 100%;
  }
}

/* ── Reduced motion (global) ─────────────────────────────
   Placed last so it wins the cascade over every animation
   declared above, regardless of selector specificity. */
@media (prefers-reduced-motion: reduce) {
  .hero-label,
  .hero-title,
  .hero-body,
  .hero-actions,
  .hero-img-wrap,
  .marquee-track,
  .clients-track,
  .prod-modal-card {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}



/* ═══════════════════════════════════════════════════════
   TYPE SYSTEM — Fraunces (display) + Montserrat (text)
═══════════════════════════════════════════════════════ */
h1, h2, h3,
.section-title,
.hero-title,
.stat-number,
.prod-name,
.legal-h2 {
  font-weight: 560;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
  text-wrap: balance;
}

.section-title { line-height: 1.1; }

.hero-title {
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--wood-light);
}

.contact-sub,
.footer-logo,
.form-success-title {
  font-family: var(--ff-body);
  font-weight: 700;
  letter-spacing: 0;
}

.stat-number { font-weight: 600; letter-spacing: -0.02em; }

.client-item {
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
}

.about-text .section-title { margin-bottom: 1.6rem; }

/* Family line under the hero CTAs */
.hero-family {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem .9rem;
  margin-top: 2.4rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244,239,224,.62);
  animation: fadeUp .65s ease .95s both;
}

.hero-family span {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  font-family: var(--ff-head);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cream);
}

.hero-family span::after {
  content: '';
  width: 28px;
  height: 1px;
  background: rgba(244,239,224,.4);
}

@media (max-width: 860px) {
  .hero-family { justify-content: center; margin-top: 1.6rem; }
}

/* ═══════════════════════════════════════════════════════
   MOTION
═══════════════════════════════════════════════════════ */
.hero-photo {
  transform: translate3d(0, var(--parallax, 0px), 0);
  will-change: transform;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .9s cubic-bezier(.16,1,.3,1) var(--reveal-delay, 0ms),
    transform .9s cubic-bezier(.16,1,.3,1) var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Product cards — calmer, more expensive-feeling hover */
.prod-card {
  transition: transform .55s cubic-bezier(.16,1,.3,1), box-shadow .55s cubic-bezier(.16,1,.3,1);
}
.prod-photo {
  transition: transform .9s cubic-bezier(.16,1,.3,1);
}
.prod-img-wrap::after {
  content: '+';
  position: absolute;
  right: .9rem;
  bottom: .9rem;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(244,239,224,.92);
  color: var(--bark);
  font-family: var(--ff-body);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(44,32,21,.18);
  opacity: 0;
  transform: scale(.7) rotate(-90deg);
  transition: opacity .35s ease, transform .5s cubic-bezier(.16,1,.3,1);
  z-index: 2;
}
@media (hover: hover) {
  .prod-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 50px rgba(44,32,21,.16);
  }
  .prod-card:hover .prod-photo { transform: scale(1.07); }
  .prod-card:hover .prod-img-wrap::after,
  .prod-card:focus-visible .prod-img-wrap::after {
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════
   PRODUCT DETAIL MODAL
═══════════════════════════════════════════════════════ */
.prod-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
}
.prod-modal[hidden] { display: none; }

.prod-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 20, 12, .55);
  backdrop-filter: blur(10px) saturate(.9);
  -webkit-backdrop-filter: blur(10px) saturate(.9);
  cursor: pointer;
  animation: modalFade .35s ease both;
}

.prod-modal-card {
  position: relative;
  width: min(960px, 100%);
  height: min(660px, 92vh);
  height: min(660px, 92dvh);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--cream);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(20,14,6,.45);
  animation: modalIn .55s cubic-bezier(.16,1,.3,1) both;
}

@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(32px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes modalOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(16px) scale(.98); }
}
@keyframes mediaIn {
  from { transform: scale(1.1); }
  to   { transform: scale(1); }
}

.prod-modal.is-closing .prod-modal-card     { animation: modalOut .26s ease both; }
.prod-modal.is-closing .prod-modal-backdrop { animation: modalFade .26s ease reverse both; }

.prod-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(244,239,224,.9);
  color: var(--bark);
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(44,32,21,.12);
  transition: transform .4s cubic-bezier(.16,1,.3,1), background var(--transition);
}
.prod-modal-close:hover { background: var(--white); transform: rotate(90deg); }

.prod-modal-media {
  position: relative;
  overflow: hidden;
  background: #E9E1CF;
}
.prod-modal-media[data-tone="kraft"] { background: #D9C3A0; }
.prod-modal-media[data-tone="olive"] { background: #9AAA74; }
.prod-modal-media[data-tone="dark"]  { background: #2b241d; }

.prod-modal-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  display: block;
  animation: mediaIn 1.1s cubic-bezier(.16,1,.3,1) both;
  transition: opacity .18s ease, transform .18s ease;
}

.prod-modal-count {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: rgba(24,20,12,.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--cream);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
}

.prod-modal-info {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.6rem, 3.2vw, 2.75rem);
  padding-top: clamp(2.2rem, 4vw, 3.25rem);
  overflow-y: auto;
  text-align: left;
}

.prod-modal-body {
  transition: opacity .18s ease, transform .18s ease;
}
.prod-modal.is-swapping .prod-modal-body,
.prod-modal.is-swapping .prod-modal-photo {
  opacity: 0;
  transform: translateY(8px);
}

.prod-modal-info .prod-name {
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  line-height: 1.05;
  color: var(--bark);
  margin: .75rem 0 .9rem;
}

.prod-modal-desc {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--bark-soft);
  margin-bottom: 1.1rem;
}

.prod-modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-top: 1px solid rgba(44,32,21,.12);
}
.prod-modal-specs > div {
  padding: .85rem 0;
  border-bottom: 1px solid rgba(44,32,21,.12);
}
.prod-modal-specs > div:nth-child(odd) { padding-right: 1rem; }
.prod-modal-specs dt {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: .3rem;
}
.prod-modal-specs dd {
  margin: 0;
  font-size: .88rem;
  font-weight: 500;
  color: var(--bark);
}

.prod-modal-sizes {
  display: flex;
  gap: .5rem;
  margin-top: auto;
}
.prod-modal-size-btn {
  flex: 1;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(44,32,21,.18);
  background: transparent;
  color: var(--bark);
  font-family: var(--ff-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.prod-modal-size-btn:hover { border-color: var(--bark); }
.prod-modal-size-btn.is-active {
  background: var(--bark);
  border-color: var(--bark);
  color: var(--cream);
}

.prod-modal-quote-btn {
  width: 100%;
  justify-content: space-between;
  padding: 1rem 1.4rem;
}
.prod-modal-quote-btn i { transition: transform .4s cubic-bezier(.16,1,.3,1); }
.prod-modal-quote-btn:hover i { transform: translateX(5px); }

/* Phones & small tablets: bottom sheet */
@media (max-width: 760px) {
  .prod-modal {
    place-items: end center;
    padding: 0;
  }
  /* Plain block, not a one-column grid: Safari shrinks grid rows to fit
     max-height, which made the photo and the text overlap. */
  .prod-modal-card {
    display: block;
    height: auto;
    /* dvh = the screen actually visible with Safari's bars showing;
       plain vh is taller, which pushed the sheet off-screen on iPhone. */
    max-height: 92vh;
    max-height: 92dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 22px 22px 0 0;
    animation-name: sheetIn;
  }
  .prod-modal.is-closing .prod-modal-card { animation-name: sheetOut; }
  /* Stays pinned to the top corner while the sheet scrolls; the negative
     bottom margin lets it overlap the photo instead of taking up a row. */
  .prod-modal-close {
    position: sticky;
    top: 1rem;
    margin: 1rem 1rem calc(-40px - 1rem) auto;
  }
  .prod-modal-media { aspect-ratio: 4 / 3.4; }
  .prod-modal-photo { position: absolute; inset: 0; }
  .prod-modal-info { overflow: visible; padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom)); }
  .prod-modal-sizes { margin-top: 0; }
}
@keyframes sheetIn  { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetOut { from { transform: none; } to { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  .hero-family,
  .prod-modal-card,
  .prod-modal-backdrop,
  .prod-modal-photo { animation: none !important; }
  .hero-photo { transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* ═══════════════════════════════════════════════════════
   SURFACES — warmer, lower-glare sand tones
   (--cream stays as the light text/button colour on dark areas)
═══════════════════════════════════════════════════════ */
:root {
  --surface:        #E4DBC6;   /* page / about / contact */
  --surface-alt:    #D9CEB5;   /* products band, clients strip */
  --surface-raised: #ECE5D4;   /* cards, inputs, dialog */
}

body,
.about,
.contact,
.legal-page { background: var(--surface); }

.products,
.clients-wrapper,
.contact-map { background: var(--surface-alt); }

.stat-card,
.prod-card,
.prod-modal-card { background: var(--surface-raised); }

.stat-card { box-shadow: 0 2px 16px rgba(44,32,21,.07); }

.form-input {
  background: var(--surface-raised);
  border-color: rgba(44,32,21,.10);
}
.form-input:focus { background: #F1ECE0; }

#navbar.scrolled { background: rgba(228,219,198,.9); }

@media (max-width: 768px) {
  .nav-links { background: var(--surface); }
}

#navbar.over-hero {
  background: rgba(24, 30, 14, .55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* The HTML `hidden` attribute must always win over component display rules
   (e.g. .form-error-banner { display: flex } was showing an empty error box). */
[hidden] { display: none !important; }

/* ── File upload: remove button + logo preview ─────────── */
.form-file-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.form-file-row .form-file-input { flex: 1 1 200px; min-width: 0; width: auto; }

.form-file-remove {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .9rem;
  border-radius: 40px;
  border: 1px solid rgba(44,32,21,.18);
  background: transparent;
  color: var(--bark-soft);
  font-family: var(--ff-body);
  font-size: .8rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.form-file-remove:hover {
  background: #b5452f;
  border-color: #b5452f;
  color: var(--cream);
}

.logo-preview {
  margin: 1rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-alt);
  box-shadow: 0 2px 16px rgba(44,32,21,.08);
  animation: fadeUp .5s cubic-bezier(.16,1,.3,1) both;
  max-width: 360px;
}
.logo-preview canvas {
  display: block;
  width: 100%;
  height: auto;
}
.logo-preview-note {
  padding: .6rem .9rem;
  font-size: .76rem;
  color: var(--bark-soft);
  background: var(--surface-raised);
}
@media (prefers-reduced-motion: reduce) { .logo-preview { animation: none; } }
