/* =========================================================
   Meralli LLC — layout.css
   Top bar, header, hero, page sections, footer
   ========================================================= */

/* ---------- 1. Top bar ---------- */
.topbar {
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--topbar-h);
}
.topbar__list {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.topbar__list li { margin: 0; }
.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}
.topbar__link:hover { color: var(--lime-300); }
.topbar__link svg { flex: none; width: 15px; height: 15px; }

.topbar__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  color: var(--lime-300);
  letter-spacing: 0.02em;
}
.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime-400);
  flex: none;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--lime-400);
  opacity: 0.6;
  animation: pulse 2.2s var(--ease-out) infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.6); opacity: 0.8; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- 2. Header / navigation ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}
.header.is-stuck {
  background: rgba(14, 46, 36, 0.94);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  box-shadow: 0 10px 34px rgba(7, 26, 20, 0.28);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  margin-right: auto;
}
.brand img { height: 38px; width: auto; }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__list li { margin: 0; }
.nav__link {
  position: relative;
  display: block;
  padding: 10px 14px;
  border-radius: var(--r-xs);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  font-weight: 550;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav__link:hover,
.nav__link:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}
.nav__link.is-active { color: var(--lime-300); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime-400);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.nav-toggle {
  display: none;
  flex: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-xs);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: background var(--t-fast) var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform var(--t) var(--ease), top var(--t) var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  background: var(--green-950);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t);
}
.mobile-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
}
.mobile-nav__list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.mobile-nav__list li {
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-nav__link {
  display: block;
  padding: 16px 4px;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.22rem;
  font-weight: 600;
}
.mobile-nav__link:hover { color: var(--lime-300); }
.mobile-nav__footer {
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}
.mobile-nav__footer a { color: var(--lime-300); }
.mobile-nav .btn { width: 100%; }

/* ---------- 3. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(132, 204, 22, 0.20), transparent 62%),
    radial-gradient(700px 500px at 4% 92%, rgba(34, 106, 83, 0.42), transparent 60%),
    linear-gradient(160deg, var(--green-900) 0%, var(--green-950) 100%);
  color: rgba(255, 255, 255, 0.76);
  padding-block: clamp(56px, 7vw, 104px) clamp(64px, 8vw, 118px);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--lime-400); }
.hero__text {
  max-width: 620px;
  font-size: clamp(1.02rem, 0.96rem + 0.34vw, 1.2rem);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 34px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}
.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero__points li {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.82);
}
.hero__points svg {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--lime-400);
}

.hero__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__media .photo { width: 100%; max-width: 620px; }

.hero__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-lg);
  animation: float 6s var(--ease) infinite;
}
.hero__badge--tl { top: 2%; left: -2%; }
.hero__badge--br { bottom: 4%; right: -1%; animation-delay: -3s; }
.hero__badge b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.12rem;
  line-height: 1.15;
  color: var(--green-900);
}
.hero__badge span {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero__badge i {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--lime-100);
  color: var(--green-700);
}
.hero__badge i svg { width: 20px; height: 20px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ---------- 4. Stats strip ---------- */
.stats {
  position: relative;
  z-index: 2;
  margin-top: -46px;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.stat {
  padding: 30px 24px;
  background: var(--white);
  text-align: center;
}
.stat__value {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--green-900);
  letter-spacing: -0.03em;
}
.stat__value .unit { color: var(--lime-500); }
.stat__label {
  display: block;
  margin-top: 9px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- 5. Common grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

/* ---------- 6. Coverage visual ---------- */
.coverage__visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(150deg, var(--green-900), var(--green-950));
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 16px;
  box-shadow: var(--shadow-md);
}

/* ---------- 7. CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  /* Photo sits under a heavy brand-coloured wash so the text keeps full contrast. */
  background:
    radial-gradient(620px 380px at 82% 18%, rgba(132, 204, 22, 0.22), transparent 62%),
    linear-gradient(115deg, rgba(14, 46, 36, 0.97) 0%, rgba(7, 26, 20, 0.90) 58%, rgba(7, 26, 20, 0.70) 100%),
    url("../img/loading-dock-1800.jpg") center / cover no-repeat,
    var(--green-950);
  color: rgba(255, 255, 255, 0.78);
}
.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.35em; }
.cta-band__text { max-width: 620px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; flex: none; }

/* ---------- 8. Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

/* ---------- 9. Footer ---------- */
.footer {
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.94rem;
  padding-top: clamp(52px, 6vw, 84px);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
  padding-bottom: 48px;
}
.footer__brand img { height: 40px; margin-bottom: 20px; }
.footer__about { max-width: 340px; line-height: 1.7; margin-bottom: 22px; }
.footer h4 {
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer__list { margin: 0; padding: 0; list-style: none; }
.footer__list li { margin-bottom: 11px; }
.footer__list a { color: rgba(255, 255, 255, 0.62); }
.footer__list a:hover { color: var(--lime-300); }
.footer__contact li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  line-height: 1.6;
}
.footer__contact svg {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 4px;
  color: var(--lime-400);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.48);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__legal li { margin: 0; }
.footer__legal a { color: rgba(255, 255, 255, 0.6); }
.footer__legal a:hover { color: var(--lime-300); }

.socials { display: flex; gap: 10px; }
.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.socials a:hover {
  background: var(--lime-400);
  border-color: var(--lime-400);
  color: var(--green-950);
}
.socials svg { width: 18px; height: 18px; }

/* ---------- 10. Inner / legal pages ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(52px, 6vw, 88px);
  background:
    radial-gradient(700px 400px at 80% 10%, rgba(132, 204, 22, 0.18), transparent 60%),
    linear-gradient(150deg, var(--green-900), var(--green-950));
  color: rgba(255, 255, 255, 0.72);
}
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p { max-width: 640px; color: rgba(255, 255, 255, 0.7); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: rgba(255, 255, 255, 0.3); }
.breadcrumbs a { color: rgba(255, 255, 255, 0.72); }
.breadcrumbs a:hover { color: var(--lime-300); }

.legal {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: clamp(32px, 4vw, 60px);
  align-items: start;
  padding-block: clamp(52px, 6vw, 88px);
}
.legal__toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--light);
}
.legal__toc h2 {
  font-size: 0.8rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.legal__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  font-size: 0.89rem;
}
.legal__toc li { margin-bottom: 9px; counter-increment: toc; }
.legal__toc a { color: var(--ink-soft); display: flex; gap: 9px; }
.legal__toc a::before {
  content: counter(toc);
  flex: none;
  min-width: 20px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.legal__toc a:hover { color: var(--green-700); }

.legal__body { max-width: 760px; }
.legal__body h2 {
  font-size: clamp(1.28rem, 1.1rem + 0.7vw, 1.6rem);
  margin-top: 2.4em;
  margin-bottom: 0.6em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 {
  font-size: 1.06rem;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}
.legal__body ul { padding-left: 1.15em; }
.legal__body li { margin-bottom: 0.55em; }

.legal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 16px 20px;
  margin-bottom: 34px;
  border-left: 3px solid var(--lime-400);
  background: var(--light);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.9rem;
}
.legal__meta span { color: var(--muted); }
.legal__meta b { color: var(--green-900); }

/* ---------- 11. Utility / status pages ---------- */
.status-page {
  display: grid;
  place-items: center;
  min-height: 64vh;
  text-align: center;
  padding-block: clamp(56px, 8vw, 110px);
}
.status-page__icon {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 0 auto 28px;
  border-radius: 26px;
  background: var(--lime-100);
  color: var(--green-700);
}
.status-page__icon svg { width: 44px; height: 44px; }
.status-page p { max-width: 520px; margin-inline: auto; }
.status-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}
