/* ==========================================================================
   layout.css — container, section rhythm, header, footer
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--soft { background: var(--surface-soft); }
.section--tint { background: linear-gradient(180deg, #fff 0%, var(--surface-tint) 100%); }
.section--dark { background: var(--navy-800); color: rgba(255, 255, 255, .82); }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 760px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section-head--left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 10px;
}
.section--dark .eyebrow { color: var(--green-500); }

.title-rule {
  width: 68px; height: 4px; border-radius: 4px;
  margin: 14px auto 18px;
  background: linear-gradient(90deg, var(--navy-700), var(--green-500));
}
.section-head--left .title-rule { margin-inline: 0; }

/* Grid helpers ----------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--sidebar { grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: center; }

/* Header ----------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.header.is-stuck { box-shadow: var(--shadow-sm); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 178px; height: auto; }
.brand__tag {
  display: none;
  padding-left: 12px; border-left: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; font-size: .82rem; line-height: 1.25;
  letter-spacing: .12em; text-transform: uppercase; color: var(--navy-700);
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  display: block; padding: 10px 13px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem; color: var(--ink);
  transition: color .2s, background .2s;
}
.nav__link:hover { background: var(--navy-100); color: var(--navy-700); }
.nav__link.is-active { color: var(--green-600); }

.header__cta { display: flex; align-items: center; gap: 10px; }

/* The in-menu WhatsApp button belongs to the mobile drawer only */
.nav > .btn { display: none; }

.nav-scrim {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(8, 26, 58, .5);
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s;
}
.nav-scrim.is-visible { opacity: 1; visibility: visible; }

.nav-toggle {
  display: none;
  width: 46px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: var(--radius-sm); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px;
  background: var(--navy-800); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg) translateY(-1px); }

/* Footer ----------------------------------------------------------------- */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); padding-top: 64px; }
.footer h3 { color: #fff; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; }
.footer a { color: rgba(255, 255, 255, .74); }
.footer a:hover { color: var(--green-500); }
.footer__grid {
  display: grid; gap: 34px;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  padding-bottom: 46px;
}
.footer__logo { width: 210px; height: auto; margin-bottom: 18px; }
.footer__list li + li { margin-top: 10px; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 20px 0; font-size: .88rem;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
