/* ==========================================================================
   layout.css — page structure: background, header, hero, sections, footer
   --------------------------------------------------------------------------
   Structural/positional rules only. Reusable widgets (buttons, cards,
   badges) live in components.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Ambient background
   Two blurred colour blobs plus a faint grid, fixed behind everything.
   Both are pointer-events:none so they never intercept clicks.
   -------------------------------------------------------------------------- */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.32;
  z-index: 0;
  pointer-events: none;
}

.glow.a {
  width: 640px;
  height: 640px;
  background: var(--accent-3);
  top: -240px;
  left: -180px;
}

.glow.b {
  width: 540px;
  height: 540px;
  background: var(--accent-2);
  bottom: -260px;
  right: -160px;
  opacity: 0.2;
}

/* Faint graph-paper grid, masked so it fades out below the hero. */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(207, 226, 214, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(207, 226, 214, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
}

/* Content sits above the ambient layers. */
main {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Logo swaps white/black automatically — see the <picture> in index.html. */
.logo-mark {
  height: 46px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.logo-mark img,
.logo-mark picture {
  height: 46px;
  width: auto;
  display: block;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-name b {
  color: var(--accent); /* the "·" separator */
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Hero
   Two columns on desktop: copy on the left, delivery animation on the right.
   Collapses to a single centred column on tablet — see responsive.css.
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 30px;
  align-items: center;
  padding: 40px 0 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.3rem);
  font-weight: 800;
  line-height: 1.04;
  margin-bottom: 20px;
}

/* Gradient-filled words inside headings (e.g. "Adrash"). */
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.sub {
  max-width: 520px;
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  color: var(--muted);
  margin-bottom: 14px;
}

.hero .loc {
  color: var(--muted-2);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero .loc svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* --------------------------------------------------------------------------
   Generic section scaffolding
   Every content block below the hero uses .sec + .sec-head.
   -------------------------------------------------------------------------- */
.sec {
  padding: 72px 0;
}

.sec-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.sec-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.sec-head h2 .g {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sec-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Small uppercase label above a section heading. */
.eyebrow {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow.olive {
  color: var(--accent); /* used by the Customer section */
}

/* --------------------------------------------------------------------------
   App showcase rows (illustration + copy, side by side)
   Add .rev to flip the illustration to the right (used by Courier).
   -------------------------------------------------------------------------- */
.app-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.app-row.rev .anim-card {
  order: 2;
}

.app-copy h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.app-copy .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 22px;
}

/* --------------------------------------------------------------------------
   "How it works" step grid and "Local by design" feature grid
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* --------------------------------------------------------------------------
   Contact band + footer
   -------------------------------------------------------------------------- */
.band {
  text-align: center;
  padding: 60px 40px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

/* Olive glow bleeding in from the top of the band. */
.band::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--accent-3);
  filter: blur(120px);
  opacity: 0.25;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
}

.band > * {
  position: relative;
  z-index: 1; /* keep content above the ::after glow */
}

.band h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 14px;
}

.band p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 26px;
}

.contact-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

footer {
  text-align: center;
  padding: 44px 0 30px;
  color: var(--muted-2);
  font-size: 0.86rem;
}

footer .stack {
  margin-top: 8px;
  font-size: 0.78rem;
  color: rgba(108, 122, 114, 0.7);
}
