/* ==========================================================================
   V2 — SWISS EDITORIAL STYLE
   ========================================================================== */

/* VARIABLES */
:root {
  --cream:     #F4F1E8;
  --cream-dark:#E8E4D8;
  --navy:      #002B49;
  --muted:     #7A8A96;
  --divider:   #D8D3C8;
  --white:     #ffffff;
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: fadeInBody 0.8s ease-out forwards;
}

@keyframes fadeInBody {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* TYPOGRAPHY BASE */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  line-height: 1.05;
  font-weight: 600;
}
h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 768px) { .container { padding: 0 24px; } }

/* SECTION HELPERS */
.text-center { text-align: center; }
.bg-white { background: var(--white); }

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.--visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   HEADER — CENTERED EDITORIAL
   ========================================================================== */
body {
  padding-top: 140px;
}
@media (max-width: 768px) {
  body { padding-top: 70px; }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--divider);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header--hidden {
  transform: translateY(-100%);
}

/* ==========================================================================
   HAMBURGER & MOBILE MENU
   ========================================================================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
}
@media (max-width: 768px) { .hamburger { display: flex; } }

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transition: all 0.3s var(--ease);
}

.header-cta {
  display: inline-flex;
}
@media (max-width: 768px) { .header-cta { display: none; } }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  pointer-events: all;
}

.mobile-menu__close {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 2rem;
  color: var(--cream);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1;
}
.mobile-menu__close:hover { opacity: 1; }

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.mobile-menu__link {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cream);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
  text-align: center;
  max-width: 90vw;
  display: block;
}
.mobile-menu__link:hover { opacity: 1; }

.mobile-menu__cta {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  padding: 14px 32px;
  border: 1px solid rgba(244, 241, 232, 0.4);
  color: var(--cream);
  margin-top: 16px;
}

.header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 48px 0;
}
@media (max-width: 768px) {
  .header__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
  }
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  text-decoration: none;
  color: var(--navy);
  white-space: nowrap; /* Prevent wrapping at any cost */
  flex-shrink: 0;      /* Ensure logo doesn't collapse */
}
@media (max-width: 768px) { .logo { padding-bottom: 0; } }

.logo__icon { display: none; } /* Hide the old green circle */

.logo__monogram {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1;
}

.logo__divider {
  display: block;
  width: 1px;
  height: 48px;
  background: var(--divider);
  flex-shrink: 0;
}
@media (max-width: 768px) { .logo__divider { height: 32px; } }

.logo__text-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.logo__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--navy);
  line-height: 1;
}

.logo__sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  line-height: 1;
}
@media (max-width: 768px) {
  .logo__monogram { font-size: 1.8rem; }
  .logo__name { font-size: 0.95rem; letter-spacing: 0.12em; }
  .logo__sub { font-size: 0.55rem; }
  .logo { gap: 12px; }
}

@media (max-width: 480px) {
  .logo__monogram { font-size: 1.6rem; }
  .logo__name { font-size: 0.85rem; letter-spacing: 0.1em; }
  .logo__sub { font-size: 0.5rem; }
  .logo { gap: 8px; }
}

@media (max-width: 360px) {
  .logo__monogram { font-size: 1.3rem; }
  .logo__name { font-size: 0.7rem; letter-spacing: 0.05em; }
  .logo__divider { height: 20px; }
  .logo { gap: 6px; }
}

@media (max-width: 320px) {
  .logo__monogram { font-size: 1.1rem; }
  .logo__name { font-size: 0.65rem; letter-spacing: 0.02em; }
  .logo__divider { height: 18px; }
  .logo { gap: 4px; }
}

/* NAVIGATION */
.nav {
  display: flex;
  gap: 48px;
  border-top: 1px solid var(--divider);
  width: 100%;
  justify-content: center;
  padding: 16px 0;
}
@media (max-width: 768px) { .nav { display: none; } }

.nav__link {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.nav__link:hover { color: var(--navy); }

/* HEADER ACTIONS */
.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
@media (min-width: 769px) {
  /* On desktop, actions float right alongside the logo row */
  .header__inner { position: relative; }
  .header__actions {
    position: absolute;
    right: 48px;
    top: 28px;
  }
}

@media (max-width: 768px) {
  .header__actions .btn { display: none; }
}

.lang-switcher { display: flex; align-items: center; }
.lang-select {
  background: transparent;
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  outline: none;
}
.lang-select:hover { color: var(--navy); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--navy);
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.btn--primary {
  background: var(--navy);
  color: var(--cream);
}
.btn--primary:hover {
  background: transparent;
  color: var(--navy);
}
.btn--secondary {
  background: transparent;
  color: var(--navy);
}
.btn--secondary:hover {
  background: var(--navy);
  color: var(--cream);
}
.btn--sm { padding: 10px 20px; font-size: 0.65rem; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid var(--divider);
  background-color: var(--cream);
  background-image: linear-gradient(rgba(244, 241, 232, 0.85), rgba(244, 241, 232, 0.95)), url('assets/hero_bg_v2.png');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  padding: 40px 0 80px;
}
@media (max-width: 768px) {
  .hero { background-attachment: scroll; }
}

.hero .container {
  position: relative;
  z-index: 2;
  margin-top: -8vh; /* Moves content higher up */
}

.hero__badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 48px;
  margin-bottom: 24px;
}

.hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--navy);
  margin-top: 60px;
  margin-bottom: 24px;
  line-height: 1.05;
}

.hero-amp {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8em;
  display: inline-block;
  margin: 16px 0;
}

/* Override the text-gradient span to just be navy */
.hero__title .text-gradient {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--navy);
  background-clip: unset;
  color: var(--navy);
}

.hero__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .hero__actions .btn {
    width: 100%;
    min-height: 54px; /* Ensure equal height */
  }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 100px 0; border-bottom: 1px solid var(--divider); }

.section__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--navy);
  margin-bottom: 16px;
}

.section__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 64px;
  letter-spacing: 0.02em;
  line-height: 1.8;
}

.section-marker {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ==========================================================================
   STATS COUNTERS
   ========================================================================== */
.stats {
  padding: 0;
  border-top: 1px solid rgba(0, 43, 73, 0.06);
  border-bottom: 1px solid var(--divider);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-item {
  padding: 56px 32px;
  text-align: center;
  border-right: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-item:last-child { border-right: none; }

.stat-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.06em;
  line-height: 1;
}
@media (max-width: 768px) {
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-top: 1px solid var(--divider); }
  .stat-item:nth-child(4) { border-right: none; }
}

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  display: block;
}
.stat-suffix {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.45rem, 2.4vw, 2.35rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  display: block;
  align-self: center;
  flex-shrink: 0;
}
.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-top: 16px;
  display: block;
}

/* ==========================================================================
   PRODUCTS (HORIZONTAL ROWS — EDITORIAL STYLE)
   ========================================================================== */
.products { background: var(--white); overflow-x: hidden; }

.bento-grid {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--divider);
  margin-top: 64px;
}

.bento-item {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  column-gap: 48px;
  row-gap: 12px;
  padding: 44px 48px;
  margin-left: -48px;
  margin-right: -48px;
  border-bottom: 1px solid var(--divider);
  align-items: start;
  transition: background 0.2s var(--ease);
}
.bento-item:hover { background: var(--cream); }
@media (max-width: 768px) {
  .bento-item {
    grid-template-columns: 1fr;
    column-gap: 0;
    padding: 32px 24px;
    margin-left: -24px;
    margin-right: -24px;
  }
}

.bento-icon { display: none; }

.bento-item::before { content: none; }

.bento-item h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  line-height: 1.2;
  margin: 0;
  hyphens: auto;
}
@media (min-width: 769px) {
  .bento-item h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 8px;
  }
}
@media (max-width: 768px) {
  .bento-item h3 { font-size: 1.25rem; white-space: normal; overflow: visible; text-overflow: clip; }
}

.bento-item p {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
  align-self: start;
  padding-left: 0;
  margin: 0;
}
@media (max-width: 768px) {
  .bento-item p { margin-top: 4px; max-width: 40rem; }
}

/* ==========================================================================
   PROCESS STEPS
   ========================================================================== */
.process { background: var(--white); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 25%);
  border-top: 1px solid var(--divider);
  margin-top: 64px;
  width: 100%;
}
@media (max-width: 900px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process-steps { grid-template-columns: 1fr; } }

.process-step {
  padding: 48px 32px;
  border-right: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.process-step:last-child { border-right: none; }
@media (max-width: 900px) {
  .process-step:nth-child(2) { border-right: none; }
  .process-step:last-child { border-right: none; }
}
@media (max-width: 480px) {
  .process-step { 
    border-right: none; 
    padding: 40px 20px;
  }
}

.process-step h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 1.4vw, 1.5rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 16px;
  hyphens: auto;
  word-wrap: break-word;
  width: 100%;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step p {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.8;
  margin-top: auto;
}

/* ==========================================================================
   GEOGRAPHY / SUPPLY NETWORK
   ========================================================================== */
.geography { background: var(--cream); }

.geography .section__subtitle {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.reach-board {
  margin-top: 64px;
  border: 1px solid var(--divider);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 43, 73, 0.04);
}

.reach-desk {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 28px 40px;
  padding: 32px 40px;
  border-bottom: 1px solid var(--divider);
  background: linear-gradient(175deg, #ffffff 0%, var(--cream) 100%);
}

.reach-desk__tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.reach-desk__address {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.65;
  margin: 0;
}

.reach-region-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reach-region-grid .region-item {
  padding: 28px 36px;
  border-right: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  margin: 0;
}

.reach-region-grid .region-item:nth-child(2n) {
  border-right: none;
}

.reach-card--wide {
  grid-column: 1 / -1;
  border-right: none !important;
}

@media (max-width: 700px) {
  .reach-desk {
    padding: 24px 22px;
    flex-direction: column;
    align-items: flex-start;
  }
  .reach-region-grid {
    grid-template-columns: 1fr;
  }
  .reach-region-grid .region-item {
    border-right: none;
  }
}

.region-item {
  padding: 32px 40px;
  border-bottom: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.2s var(--ease);
}

.reach-region-grid .region-item:last-child {
  border-bottom: none;
}

.region-item:hover { background: var(--cream-dark); }

.region-dot { display: none; } /* Not needed in editorial style */

.region-item strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  display: block;
}

.region-item p {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   TEAM
   ========================================================================== */
.team { background: var(--white); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--divider);
  margin-top: 64px;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }

.team-member {
  padding: 40px 32px;
  border-right: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  text-align: left;
  transition: background 0.2s var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.team-member:hover { background: var(--cream); }
.team-member:last-child { border-right: none; }
@media (max-width: 900px) {
  .team-member {
    padding: 24px 16px;
  }
  .team-member:nth-child(2n) { border-right: none; }
  .team-member h3 {
    min-height: unset;
  }
  .team-email {
    white-space: normal;
    word-break: break-all;
  }
}
@media (max-width: 480px) {
  .team-member {
    border-right: none;
  }
}

.team-member h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: 8px;
  min-height: 4.5rem; /* Учитывает имена в две строки */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.team-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: block;
  margin-bottom: 24px;
  font-weight: 600;
  flex-grow: 1;
}

.team-email {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
  white-space: nowrap;
  display: inline-block;
  transition: opacity 0.2s var(--ease);
}
.team-email:hover { opacity: 0.6; }

/* ==========================================================================
   TRADE STANDARDS
   ========================================================================== */
.standards { background: var(--cream); }

.standards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--divider);
  margin-top: 64px;
}
@media (max-width: 900px) { .standards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .standards-grid { grid-template-columns: 1fr; } }

.standard-item {
  padding: 48px 32px;
  border-right: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}
.standard-item:last-child { border-right: none; }
@media (max-width: 900px) {
  .standard-item {
    padding: 24px 16px;
  }
  .standard-item:nth-child(2n) { border-right: none; }
  .standard-label {
    min-height: unset;
    margin-bottom: 8px;
  }
  .standard-value {
    font-size: 1.15rem;
  }
}
@media (max-width: 480px) {
  .standard-item { 
    border-right: none; 
  }
}

.standard-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  min-height: 2rem; /* Выравнивает начало значений (Incoterms и т.д.) */
  display: flex;
  align-items: center;
  justify-content: center;
}

.standard-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  line-height: 1.2;
}

/* ==========================================================================
   ASSURANCE
   ========================================================================== */
.assurance { background: var(--white); }

.assurance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--divider);
  margin-top: 64px;
}
@media (max-width: 900px) { .assurance-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .assurance-grid { grid-template-columns: 1fr; } }

.assurance-item {
  padding: 40px 32px;
  border-right: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  min-height: 220px;
}
.assurance-item:last-child { border-right: none; }
@media (max-width: 900px) {
  .assurance-item {
    padding: 24px 16px;
    min-height: auto;
  }
  .assurance-item:nth-child(2n) { border-right: none; }
}
@media (max-width: 480px) {
  .assurance-item { 
    border-right: none; 
  }
}

.assurance-item__label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.2;
}

.assurance-item p {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
  padding: 80px 0 40px;
}

.footer__neurons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.footer__neurons-svg {
  position: absolute;
  width: 118%;
  height: 118%;
  min-width: 100%;
  min-height: 100%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: footerNeuronDrift 48s ease-in-out infinite;
}

.footer__neurons-lines {
  animation: footerNeuronPulseLines 9s ease-in-out infinite;
}

.footer__neurons-lines--ghost {
  animation: footerNeuronPulseLines 11s ease-in-out infinite reverse;
}

.footer__neurons-nodes {
  animation: footerNeuronPulseNodes 6.5s ease-in-out infinite 0.6s;
}

@keyframes footerNeuronDrift {
  0%, 100% { transform: translate(-50%, -50%) translate(0, 0) scale(1); }
  33% { transform: translate(-50%, -50%) translate(-2.5%, 1.2%) scale(1.02); }
  66% { transform: translate(-50%, -50%) translate(2%, -1%) scale(1.01); }
}

@keyframes footerNeuronPulseLines {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes footerNeuronPulseNodes {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.95; }
}

@media (prefers-reduced-motion: reduce) {
  .footer__neurons-svg {
    animation: none;
  }
  .footer__neurons-lines,
  .footer__neurons-lines--ghost,
  .footer__neurons-nodes {
    animation: none;
    opacity: 0.65;
  }
}

.footer__inner {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
  margin-bottom: 64px;
  border-bottom: 1px solid rgba(244, 241, 232, 0.1);
  padding-bottom: 64px;
}

.footer-col h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(244, 241, 232, 0.4);
  margin-bottom: 20px;
}

.footer-col p {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: rgba(244, 241, 232, 0.7);
  line-height: 1.8;
}
.footer-col a {
  font-family: 'Inter', sans-serif;
  color: rgba(244, 241, 232, 0.7);
  border-bottom: 1px solid rgba(244, 241, 232, 0.2);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cream); }

.footer-phone-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.footer-phone-icons {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer-phone-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: none !important;
  color: rgba(244, 241, 232, 0.75);
  line-height: 0;
  transition: opacity 0.2s, color 0.2s;
}

.footer-phone-icon-link:hover {
  opacity: 1;
  color: var(--cream);
}

.footer-phone-number {
  font-weight: 500;
  letter-spacing: 0.04em;
}

.footer-col--banking p {
  font-size: 0.8rem;
  color: rgba(244, 241, 232, 0.5);
  line-height: 1.8;
}

.footer-bottom {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 241, 232, 0.3);
}

/* ==========================================================================
   FLOATING WHATSAPP
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  background: var(--navy);
  color: var(--cream);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 43, 73, 0.4);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0, 43, 73, 0.6);
}

/* ==========================================================================
   LUMBER & TIMBER SECTION
   ========================================================================== */
.lumber { background: var(--cream); }

/* --- Tab Switcher --- */
.lumber-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--divider);
  margin: 0 auto 56px;
  width: fit-content;
  max-width: 100%;
}

.lumber-tab {
  padding: 14px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  background: transparent;
  border: none;
  border-right: 1px solid var(--divider);
  cursor: pointer;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}
.lumber-tab:last-child { border-right: none; }
.lumber-tab:hover { color: var(--navy); background: var(--cream-dark); }
.lumber-tab--active {
  background: var(--navy);
  color: var(--cream);
}
.lumber-tab--active:hover {
  background: var(--navy);
  color: var(--cream);
}

@media (max-width: 768px) {
  .lumber-tabs {
    width: 100%;
    flex-wrap: wrap;
    margin-bottom: 32px;
  }
  .lumber-tab {
    flex: 1 1 50%;
    padding: 14px 8px;
    font-size: 0.65rem;
    border-right: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
  }
  .lumber-tab:nth-child(2n) {
    border-right: none;
  }
  .lumber-tab:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

/* --- Panels --- */
.lumber-panel {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.lumber-panel--active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* --- Product Grid --- */
.lumber-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--divider);
  border-left: 1px solid var(--divider);
  margin-bottom: 0;
}

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

.lumber-card {
  padding: 40px 32px;
  border-right: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s var(--ease);
}
.lumber-card:hover { background: var(--cream-dark); }

@media (max-width: 480px) {
  .lumber-card { padding: 32px 20px; }
}

.lumber-card__icon {
  color: var(--muted);
  flex-shrink: 0;
}

.lumber-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  line-height: 1.2;
  margin: 0;
}

.lumber-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
  flex-grow: 1;
}

/* --- Technical Specifications --- */
.lumber-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--divider);
  border-top: none;
  background: var(--white);
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .lumber-specs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .lumber-specs { grid-template-columns: 1fr; }
}

.lumber-spec-item {
  padding: 32px 28px;
  border-right: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.lumber-spec-item:last-child { border-right: none; }
@media (max-width: 900px) {
  .lumber-spec-item:nth-child(2n) { border-right: none; }
}
@media (max-width: 480px) {
  .lumber-spec-item { border-right: none; padding: 28px 20px; }
}

.lumber-spec-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}

.lumber-spec-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  line-height: 1.2;
}

/* --- Certification Badges --- */
.lumber-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding-top: 8px;
}

.lumber-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--divider);
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lumber-badge:hover {
  color: var(--navy);
  border-color: var(--navy);
}

@media (max-width: 480px) {
  .lumber-badges {
    flex-direction: column;
    align-items: stretch;
  }
  .lumber-badge {
    width: 100%;
    justify-content: center;
  }
}

/* MISC */
.mt-4 { margin-top: 16px; }

/* LEGAL TERMS & MODALS */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 40px;
}

.footer-legal-links {
  display: flex;
  gap: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-legal-links a {
  color: rgba(244, 241, 232, 0.4);
  transition: color 0.2s var(--ease);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.footer-legal-links a:hover {
  color: var(--cream);
}

.footer-divider {
  color: rgba(244, 241, 232, 0.2);
}

.legal-modal {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 500;
  padding: 80px 24px;
  display: none;
  overflow-y: auto;
  color: var(--navy);
}

.legal-modal.open { display: block; }

.legal-modal__content {
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  line-height: 1.8;
}

.legal-modal__content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.legal-modal__content h3 {
  font-size: 1.2rem;
  margin-top: 32px;
  margin-bottom: 16px;
  text-transform: none;
  letter-spacing: normal;
}

.legal-modal__content p {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--muted);
}

.legal-modal__close {
  position: fixed;
  top: 24px;
  right: 24px;
  font-size: 2.5rem;
  color: var(--navy);
  background: none;
  border: none;
  cursor: pointer;
}
