/* Avenmark Media — corporate site styles.
   Mobile-first. Design system lifted and extended from the approved mockup. */

/* Self-hosted Inter (variable) — no render-blocking third-party request. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-variable.woff2") format("woff2");
}

:root {
  --ink: #172027;
  --muted: #5c6871;
  --line: #dde5df;
  --canvas: #f7f8f5;
  --surface: #ffffff;
  --teal: #0b7a68;
  --teal-deep: #0a6357;
  --blue: #315fbc;
  --coral: #e85f4d;
  --gold: #c99a2e;
  --mint: #dff4ec;
  --sky: #eaf1ff;
  --peach: #ffe8df;
  --shadow: 0 18px 48px rgba(23, 32, 39, 0.12);
  --shadow-sm: 0 10px 28px rgba(23, 32, 39, 0.06);
  --radius: 8px;
  --radius-lg: 14px;
  --maxw: 1120px;
  --focus: 0 0 0 3px rgba(11, 122, 104, 0.35);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, p { margin: 0; }

img, svg { max-width: 100%; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
}
.skip-link:focus { left: 12px; }

.wrap {
  width: min(var(--maxw), calc(100% - 32px));
  margin-inline: auto;
}

.page {
  background:
    linear-gradient(180deg, #ffffff 0, #ffffff 420px, var(--canvas) 421px);
}

.arrow { font-weight: 700; }

/* ── Header / nav ─────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(221, 229, 223, 0.86);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 760;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.brand-name { white-space: nowrap; display: inline-flex; }
.brand-sub { color: var(--muted); font-weight: 680; }

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: block;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before { position: absolute; top: -6px; left: 0; }
.nav-toggle-bar::after { position: absolute; top: 6px; left: 0; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

.navlinks {
  display: none;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 640;
}
.navlinks a:not(.nav-cta) { padding: 6px 2px; }
.navlinks a.is-active { color: var(--ink); }
.navlinks a:not(.nav-cta):hover { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 720;
  white-space: nowrap;
}
.nav-cta:hover { background: #0c161d; }

/* Mobile dropdown menu */
.nav-open .navlinks {
  display: flex;
  position: fixed;
  inset: 68px 0 auto 0;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 12px 16px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 16px;
}
.nav-open .navlinks a:not(.nav-cta) {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 680;
}
.nav-open .navlinks .nav-cta { margin-top: 10px; min-height: 48px; }

/* ── Buttons + generic ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 760;
  font-size: 15px;
  box-shadow: 0 1px 0 rgba(23, 32, 39, 0.04);
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { border-color: var(--teal); background: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); }

.text-link {
  color: var(--teal);
  font-weight: 720;
  border-bottom: 1px solid transparent;
}
.text-link:hover { border-bottom-color: currentColor; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--teal);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  gap: 28px;
  padding: 48px 0 30px;
}

.page-title { display: grid; gap: 16px; }

h1 {
  max-width: 760px;
  font-size: clamp(42px, 12vw, 88px);
  line-height: 0.96;
  font-weight: 820;
  letter-spacing: -1px;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(17px, 4.4vw, 19px);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.hero-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 16px;
  background: var(--line);
}

.signal { min-height: 128px; padding: 18px; background: #fff; }
.signal strong { display: block; font-size: 28px; line-height: 1; margin-bottom: 8px; letter-spacing: -0.5px; }
.signal span { color: var(--muted); font-size: 13px; line-height: 1.35; font-weight: 630; }
.signal--teal strong { color: var(--teal); }
.signal--blue strong { color: var(--blue); }
.signal--coral strong { color: var(--coral); }
.signal--gold strong { color: var(--gold); }

/* ── Page hero (inner pages) ──────────────────────────────────────────────── */
.page-hero { padding: 48px 0 26px; }
.page-hero--tight h1 { font-size: clamp(38px, 10vw, 72px); }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: 32px 0; }
.section-head { display: grid; gap: 10px; margin-bottom: 20px; }

h2 {
  max-width: 760px;
  font-size: clamp(28px, 7.5vw, 50px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.section-copy { max-width: 680px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.section-more { margin-top: 18px; }

/* ── Cards: grids ─────────────────────────────────────────────────────────── */
.brand-grid,
.service-grid,
.brand-detail-grid,
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.brand-detail-grid,
.service-detail-grid { padding-bottom: 8px; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.brand-card {
  display: grid;
  gap: 14px;
  align-content: start;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
a.brand-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #cfdacf;
}

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }

.brand-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 14px;
  font-weight: 840;
  letter-spacing: -0.3px;
  background: var(--mint);
}
.brand-icon--mint { background: var(--mint); }
.brand-icon--sky { background: var(--sky); }
.brand-icon--peach { background: var(--peach); }
.brand-icon--gold { background: #fff3c9; }
.brand-icon--plus { background: #eef2ee; color: var(--muted); }

.status {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.status--live { color: var(--teal); }
.status--build { color: var(--gold); }

h3 { font-size: 21px; line-height: 1.18; font-weight: 800; letter-spacing: -0.3px; }

.card p { color: var(--muted); line-height: 1.5; font-size: 15px; }
.card-category { color: var(--ink) !important; font-weight: 700; font-size: 13px !important; }

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  color: var(--ink);
  font-weight: 760;
  font-size: 14px;
}
a.brand-card:hover .arrow { color: var(--teal); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  color: var(--teal);
  font-weight: 740;
  font-size: 14px;
}
.card-link:hover { color: var(--teal-deep); }

.detail-card { display: grid; gap: 12px; align-content: start; }
.detail-card--future { background: #fbfcfb; }

.meta-row { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f2f5f1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}
.pill--link {
  background: var(--mint);
  color: var(--teal-deep);
  border: 1px solid transparent;
}
.pill--link:hover { border-color: var(--teal); }

/* ── Service cards ────────────────────────────────────────────────────────── */
.service-card { display: grid; gap: 14px; align-content: start; }
.service-card .number { color: var(--coral); font-size: 13px; font-weight: 840; letter-spacing: 0.5px; }

.service-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.service-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 15px; line-height: 1.4; }

.check {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
}

/* ── Proof band ───────────────────────────────────────────────────────────── */
.proof-band {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.proof-band h2 { color: #fff; }
.proof-band p { color: rgba(255, 255, 255, 0.76); font-size: 16px; line-height: 1.55; margin-top: 12px; }

.proof-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.proof-list li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.92); font-weight: 600; font-size: 15px; }
.dot { width: 10px; height: 10px; border-radius: 999px; background: var(--coral); flex: 0 0 auto; }

.note-band {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
}
.note-band p { color: var(--muted); font-size: 16px; line-height: 1.6; }

/* ── CTA panel ────────────────────────────────────────────────────────────── */
.footer-cta { padding: 30px 0 56px; }
.cta-panel {
  display: grid;
  gap: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow);
}
.cta-panel h2 { font-size: clamp(24px, 6vw, 34px); }

.email {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--teal-deep);
  font-weight: 780;
  word-break: break-word;
}
.email:hover { background: #cfeee2; }
.email--lg { min-height: 52px; font-size: 18px; }

/* ── Contact ──────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; gap: 12px; padding-bottom: 56px; }
.contact-card { display: grid; gap: 14px; }
.contact-card h2,
.contact-aside h2 { font-size: 22px; }
.contact-types { display: grid; gap: 10px; margin-top: 4px; }
.contact-types-label { color: var(--muted); font-size: 14px; font-weight: 600; }
.contact-aside { display: grid; gap: 14px; align-content: start; background: #fbfcfb; }
.muted-note { color: var(--muted); font-size: 14px; }

/* ── Prose (about / legal / editorial) ────────────────────────────────────── */
.prose {
  display: block;
  max-width: 720px;
  padding-bottom: 56px;
}
.prose > * + * { margin-top: 18px; }
.prose-lead { font-size: 19px; line-height: 1.55; color: var(--ink); font-weight: 600; }
.prose p { color: var(--muted); font-size: 16px; line-height: 1.65; }
.prose h2 { font-size: clamp(22px, 5vw, 28px); margin-top: 34px; letter-spacing: -0.4px; }
.prose strong { color: var(--ink); }
.prose-list { display: grid; gap: 10px; margin: 0; padding-left: 0; list-style: none; }
.prose-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.prose-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
}
.inline-cta {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.inline-cta p { color: var(--muted); font-size: 16px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 44px 0 28px;
}
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-tagline { color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 320px; }
.footer-email { color: var(--teal); font-weight: 720; width: fit-content; }
.footer-email:hover { border-bottom: 1px solid currentColor; }

.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-h { font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--ink); font-weight: 800; }
.footer-col a { color: var(--muted); font-size: 15px; font-weight: 600; width: fit-content; }
.footer-col a:hover { color: var(--ink); }

.footer-base {
  display: grid;
  gap: 10px;
  padding: 22px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-base p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.footer-disclosure { max-width: 760px; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (min-width: 760px) {
  .wrap { width: min(var(--maxw), calc(100% - 64px)); }
  .nav-toggle { display: none; }
  .navlinks { display: flex; }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.72fr);
    align-items: center;
    padding: 72px 0 60px;
  }

  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .service-grid,
  .brand-detail-grid,
  .service-detail-grid { grid-template-columns: repeat(3, 1fr); }

  .proof-band { grid-template-columns: 1.1fr 0.9fr; align-items: center; padding: 34px; }
  .proof-band p { margin-top: 0; }

  .cta-panel { grid-template-columns: 1fr auto; align-items: center; padding: 32px; }

  .page-hero { padding: 72px 0 32px; }

  .contact-grid { grid-template-columns: 1.3fr 1fr; align-items: start; }

  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 0.8fr; gap: 32px; padding-top: 52px; }
  .footer-base { grid-auto-flow: column; justify-content: space-between; align-items: center; }
}

@media (min-width: 1040px) {
  .brand-detail-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
