/* ============================================================
   AMO Growth — restoration theme
   Brand: bold red (#ed303c) + growth green (#35d56a) + charcoal
   Fonts: Exo (headings) + Open Sans (body)
   Framework: Bootstrap 5 (CDN) + this custom layer
   ============================================================ */

:root {
  --amo-red: #ed303c;
  --amo-red-dark: #c81f2a;
  --amo-red-soft: #fdeaeb;
  --amo-green: #35d56a;
  --amo-green-dark: #1fae50;
  --amo-ink: #1f2024;
  --amo-ink-2: #282828;
  --amo-charcoal: #181a1f;
  --amo-gray: #5d6470;
  --amo-gray-light: #8a909c;
  --amo-line: #e7e9ee;
  --amo-bg: #ffffff;
  --amo-bg-alt: #f6f7f9;
  --amo-radius: 14px;
  --amo-radius-sm: 9px;
  --amo-shadow: 0 12px 40px rgba(24, 26, 31, 0.10);
  --amo-shadow-sm: 0 6px 22px rgba(24, 26, 31, 0.08);
  --amo-font-head: 'Exo', system-ui, sans-serif;
  --amo-font-body: 'Open Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--amo-font-body);
  color: var(--amo-ink);
  background: var(--amo-bg);
  line-height: 1.7;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .heading {
  font-family: var(--amo-font-head);
  font-weight: 800;
  color: var(--amo-ink);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.3rem); margin: 2.4rem 0 1rem; }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); margin: 1.6rem 0 .7rem; font-weight: 700; }

p { margin-bottom: 1.1rem; }
a { color: var(--amo-red); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--amo-red-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* Responsive images everywhere */
.media-frame {
  border-radius: var(--amo-radius);
  overflow: hidden;
  box-shadow: var(--amo-shadow);
}

/* ---------- Layout helpers ---------- */
.container-amo { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4.5rem 0; }
.section-alt { background: var(--amo-bg-alt); }
.section-dark { background: var(--amo-charcoal); color: #e9ebef; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.lead { font-size: 1.22rem; color: var(--amo-gray); font-weight: 400; }
.eyebrow {
  display: inline-block;
  font-family: var(--amo-font-head);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amo-red);
  margin-bottom: .6rem;
}
.section-dark .eyebrow { color: var(--amo-green); }

/* ---------- Navbar ---------- */
.amo-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--amo-line);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.amo-brand {
  font-family: var(--amo-font-head);
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--amo-ink) !important;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.amo-brand .mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--amo-red);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 900; font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(237, 48, 60, .35);
}
.amo-brand .mark::after { content: "A"; }
.amo-nav .nav-link {
  font-family: var(--amo-font-head);
  font-weight: 600;
  font-size: .98rem;
  color: var(--amo-ink) !important;
  padding: .5rem .9rem !important;
  border-radius: 8px;
}
.amo-nav .nav-link:hover { color: var(--amo-red) !important; background: var(--amo-red-soft); text-decoration: none; }
.amo-nav .nav-link.active { color: var(--amo-red) !important; }

/* ---------- Buttons ---------- */
.btn { font-family: var(--amo-font-head); font-weight: 700; border-radius: 50px; padding: .7rem 1.6rem; letter-spacing: .01em; }
.btn-primary { background: var(--amo-red); border-color: var(--amo-red); color: #fff; box-shadow: 0 8px 22px rgba(237,48,60,.30); }
.btn-primary:hover { background: var(--amo-red-dark); border-color: var(--amo-red-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(237,48,60,.38); }
.btn-green { background: var(--amo-green); border-color: var(--amo-green); color: #06351a; }
.btn-green:hover { background: var(--amo-green-dark); border-color: var(--amo-green-dark); color: #fff; }
.btn-outline-light-amo { border: 2px solid rgba(255,255,255,.6); color: #fff; }
.btn-outline-light-amo:hover { background: #fff; color: var(--amo-ink); }
.btn-ghost { color: var(--amo-red); border: 2px solid var(--amo-red); }
.btn-ghost:hover { background: var(--amo-red); color: #fff; }
.btn { transition: all .18s ease; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1b1d22 0%, #2a2d34 60%, #1b1d22 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(237,48,60,.30), transparent 60%),
    radial-gradient(50% 70% at 10% 90%, rgba(53,213,106,.22), transparent 60%);
  pointer-events: none;
}
.hero .container-amo { position: relative; z-index: 2; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.82); }
.hero-img { border-radius: var(--amo-radius); box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.hero-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-weight: 600; font-family: var(--amo-font-head);
  padding: .35rem .9rem; border-radius: 50px; font-size: .85rem; margin-bottom: 1.1rem;
}
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amo-green); box-shadow: 0 0 10px var(--amo-green); }

/* page hero for interior pages (lighter) */
.page-hero { background: var(--amo-bg-alt); border-bottom: 1px solid var(--amo-line); padding: 3.2rem 0 2.6rem; }
.page-hero .eyebrow { color: var(--amo-red); }

/* ---------- Cards ---------- */
.amo-card {
  background: #fff;
  border: 1px solid var(--amo-line);
  border-radius: var(--amo-radius);
  padding: 1.7rem;
  height: 100%;
  box-shadow: var(--amo-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.amo-card:hover { transform: translateY(-4px); box-shadow: var(--amo-shadow); }
.amo-card .icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--amo-red-soft); color: var(--amo-red);
  font-size: 1.35rem; margin-bottom: 1rem;
}
.amo-card.green .icon { background: rgba(53,213,106,.14); color: var(--amo-green-dark); }
.amo-card h3 { margin-top: 0; }

/* case study card */
.case-card { border-radius: var(--amo-radius); overflow: hidden; border: 1px solid var(--amo-line); background: #fff; box-shadow: var(--amo-shadow-sm); height: 100%; }
.case-card .case-body { padding: 1.5rem; }
.tag {
  display: inline-block; font-family: var(--amo-font-head); font-weight: 700;
  font-size: .72rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--amo-green-dark); background: rgba(53,213,106,.13);
  padding: .25rem .6rem; border-radius: 6px; margin: 0 .3rem .4rem 0;
}

/* article body */
.article-body { max-width: 820px; }
.article-body img { border-radius: var(--amo-radius); box-shadow: var(--amo-shadow); margin: 1.5rem 0; }
.article-body ul, .article-body ol { margin: 0 0 1.2rem 1.1rem; }
.article-body li { margin-bottom: .5rem; }
.article-body h2 { padding-top: .3rem; }
.article-body a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* metric strip */
.metric { text-align: center; }
.metric .num { font-family: var(--amo-font-head); font-weight: 900; font-size: 2.6rem; color: var(--amo-red); line-height: 1; }
.section-dark .metric .num { color: var(--amo-green); }
.metric .label { color: var(--amo-gray); font-size: .95rem; margin-top: .3rem; }
.section-dark .metric .label { color: rgba(255,255,255,.7); }

/* ---------- Contact form ---------- */
.contact-form { max-width: 620px; }
.contact-form .form-row { margin-bottom: 1.1rem; }
.contact-form label { font-family: var(--amo-font-head); font-weight: 600; display: block; margin-bottom: .35rem; font-size: .95rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--amo-line);
  border-radius: var(--amo-radius-sm); font-family: var(--amo-font-body); font-size: 1rem;
  background: #fff; transition: border-color .15s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--amo-red); box-shadow: 0 0 0 3px rgba(237,48,60,.12); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--amo-red) 0%, #ff5a64 100%); color: #fff; border-radius: 20px; padding: 3rem 2rem; box-shadow: var(--amo-shadow); }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band .lead { color: rgba(255,255,255,.92); }

/* ---------- Footer ---------- */
.amo-footer { background: var(--amo-charcoal); color: #c4c8d0; padding: 3.5rem 0 1.6rem; }
.amo-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.amo-footer a { color: #c4c8d0; }
.amo-footer a:hover { color: #fff; text-decoration: none; }
.amo-footer .brand-line { font-family: var(--amo-font-head); font-weight: 900; font-size: 1.4rem; color: #fff; display: inline-flex; align-items: center; gap: .5rem; }
.amo-footer .brand-line .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--amo-red); display: grid; place-items: center; color: #fff; font-weight: 900; }
.amo-footer .brand-line .mark::after { content: "A"; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.4rem; padding-top: 1.4rem; font-size: .88rem; color: #8a909c; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-family: var(--amo-font-head); font-weight: 900; font-size: clamp(5rem, 18vw, 10rem); color: var(--amo-red); line-height: 1; }

/* ---------- Utilities ---------- */
.text-red { color: var(--amo-red) !important; }
.text-green { color: var(--amo-green-dark) !important; }
.bg-soft { background: var(--amo-red-soft); }
.divider { height: 4px; width: 60px; background: var(--amo-red); border-radius: 4px; margin: 1rem 0 1.6rem; }
.section-dark .divider { background: var(--amo-green); }
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.in { opacity: 1; transform: none; }

@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .hero .container-amo { padding-top: 3rem; padding-bottom: 3rem; }
  .cta-band { padding: 2.2rem 1.4rem; }
}
