/* MADM Media + Marketing — shared stylesheet
   Matches live madmmedia.com design system:
   navy #020F2A / footer navy #0F1F33 / surface #F4F6F9 / accent #4A9FD4
   Headings+UI: Sora / Body: Source Sans Pro */

:root {
  --navy: #020F2A;
  --navy-2: #0F1F33;
  --white: #FFFFFF;
  --surface: #F4F6F9;
  --accent: #4A9FD4;
  --ink: #020F2A;
  --muted: #5B6478;
  --muted-on-dark: #C7CCDA;
  --line: #E4E7EE;
  --radius: 10px;
  --max: 1100px;
  --font-head: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Eyebrow: divider rule + caps label, matches live site's literal-caps style */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 42px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.section--navy .eyebrow, .section--dark .eyebrow { color: var(--surface); }
.section-head.center .eyebrow { justify-content: center; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 16px; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); font-weight: 400; }
h3 { font-size: 1.2rem; font-weight: 600; }
.section--navy h1, .section--navy h2, .section--navy h3,
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
p { margin: 0 0 16px; color: var(--muted); }
.lede { font-size: 1.2rem; color: var(--muted); }
.section--navy .lede, .section--dark .lede,
.section--navy p, .section--dark p { color: var(--muted-on-dark); }

/* Buttons — accent blue, 5px radius (not a pill), matches live CTAs */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--primary, .btn--on-dark { background: var(--accent); color: var(--white); }

/* Header — fixed overlay, white logo/nav always (site design), scrim for legibility over any section */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(2,15,42,0.72), rgba(2,15,42,0.55));
  backdrop-filter: saturate(160%) blur(10px);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.logo { display: inline-flex; text-decoration: none; }
.logo img { height: 34px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-nav a:not(.btn) {
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--white);
}
.main-nav a:not(.btn):hover { color: var(--accent); }
.main-nav .btn { padding: 11px 22px; font-size: 0.9rem; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
}

/* Sections */
section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section--navy, .section--dark { background: var(--navy); }
.section--surface { background: var(--surface); }
.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Hero */
.hero {
  padding: 200px 0 100px;
  background: var(--navy) url('../images/hero-bg.jpg') center / cover no-repeat;
}
.hero .container { max-width: 820px; }
.hero h1, .hero h2, .hero h3, .hero .eyebrow { color: var(--white); }
.hero p, .hero .lede { color: var(--muted-on-dark); }
.trust-bar {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}
.hero--solid { background-image: none; }

/* Cards / grids */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 25px 20px 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; }
/* Cards always sit on a white surface regardless of section, so force ink/muted text even inside dark sections */
.section--navy .card h3, .section--dark .card h3 { color: var(--ink); }
.section--navy .card p, .section--dark .card p { color: var(--muted); }
.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--navy); }
.section--navy .stat .num, .section--dark .stat .num { color: var(--white); }
.stat .label { font-family: var(--font-head); font-size: 0.9rem; color: var(--muted); font-weight: 400; }
.section--navy .stat .label, .section--dark .stat .label { color: var(--muted-on-dark); }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--ink);
}
.checklist li::before { content: "✓"; color: var(--accent); font-weight: 800; flex-shrink: 0; }
.section--navy .checklist li, .section--dark .checklist li { color: var(--white); }

/* Step block — full-width alternating sections (Our Approach) */
.step-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.step-block .visual {
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 40px;
  background: rgba(74,159,212,0.06);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}
.section--navy .step-block .visual { background: rgba(255,255,255,0.06); color: var(--white); border-color: rgba(255,255,255,0.3); }

/* Process steps (numbered list) */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.step:first-child { border-top: none; }
.step .step-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--navy);
  font-family: var(--font-head);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.step h3 { margin-bottom: 6px; }
.step p { margin-bottom: 0; }

/* Comparison block (replaces static "Instead of / You have" graphic) */
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.comparison .col { border-radius: var(--radius); padding: 28px; }
.comparison .col--before { background: var(--surface); border: 1px dashed var(--line); }
.comparison .col--after { background: var(--navy); color: var(--white); }
.comparison .col h3 { margin-bottom: 14px; }
.comparison .col--before h3 { color: var(--navy); }
.comparison .col--after h3 { color: var(--white); }
.comparison ul { list-style: none; margin: 0; padding: 0; }
.comparison li { padding: 8px 0; border-top: 1px solid rgba(0,0,0,0.06); font-weight: 600; color: var(--muted); }
.comparison .col--after li { border-top: 1px solid rgba(255,255,255,0.15); color: var(--muted-on-dark); }
.comparison li:first-child { border-top: none; }

/* Callout */
.callout {
  border-left: 4px solid var(--accent);
  background: var(--surface);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}
.callout strong { color: var(--navy); display: block; margin-bottom: 4px; font-family: var(--font-head); }

/* Byline */
.byline { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 0.95rem; margin-top: 24px; }
.section--navy .byline, .section--dark .byline { color: var(--white); }

/* Small founder credibility photo — sits beside/above a byline, not a hero-sized image */
.byline-with-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}
.byline-with-photo img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}
.byline-with-photo .byline { margin-top: 0; text-align: left; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .container { max-width: 640px; }
.cta-band .tagline { margin-top: 16px; font-family: var(--font-head); font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.section--navy.cta-band .tagline, .section--dark.cta-band .tagline,
.section--navy .cta-band .tagline, .section--dark .cta-band .tagline { color: var(--muted-on-dark); }

/* Lists (who this is for / not for) */
.check-list, .x-list { list-style: none; margin: 0; padding: 0; }
.check-list li, .x-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.check-list li:last-child, .x-list li:last-child { border-bottom: none; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.x-list li::before { content: "✕"; position: absolute; left: 0; color: var(--muted); font-weight: 800; }

/* Footer */
.site-footer { background: var(--navy-2); color: var(--muted-on-dark); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--white); font-family: var(--font-head); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 16px; }
.site-footer .logo img { height: 30px; }
.footer-tagline { margin-top: 14px; font-size: 0.95rem; }
.footer-tagline strong { display: block; color: var(--white); font-family: var(--font-head); }
.footer-contact p { color: var(--muted-on-dark); margin-bottom: 6px; }
.social-links { display: flex; gap: 14px; margin-top: 16px; }
.social-links a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
}
.social-links a:hover { background: var(--accent); border-color: var(--accent); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { text-decoration: none; color: var(--muted-on-dark); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #8D95AC;
}
.footer-bottom a { color: #8D95AC; text-decoration: underline; }

/* Form page */
.form-shell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.availability-note { background: var(--surface); border-radius: var(--radius); padding: 28px; }

/* Blog index */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.empty-state { border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px; text-align: center; color: var(--muted); }

/* Legal */
.legal h2 { margin-top: 40px; font-size: 1.4rem; font-weight: 600; }
.legal ol, .legal ul { color: var(--muted); }

/* Photo placeholder — clearly-marked stand-in for a real photo to be swapped in later */
.photo-placeholder {
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  background: rgba(74,159,212,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
  min-height: 160px;
}
.photo-placeholder__icon { font-size: 2.2rem; line-height: 1; }
.photo-placeholder__label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: 220px;
}
.section--navy .photo-placeholder, .section--dark .photo-placeholder {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.4);
}
.section--navy .photo-placeholder__label, .section--dark .photo-placeholder__label { color: var(--white); }

/* Founder section */
.founder-block { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.founder-block .photo-placeholder { aspect-ratio: 4 / 5; min-height: 0; }
.founder-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
}
.founder-credentials { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 10px; }
.founder-credentials li {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.founder-credentials li::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* Results / proof section */
.result-card { text-align: center; }
.result-card .photo-placeholder { min-height: 90px; margin-bottom: 16px; padding: 16px; }
.result-card .photo-placeholder__icon { font-size: 1.6rem; }
.result-card .photo-placeholder__label { font-size: 0.68rem; }
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}
.logo-placeholder {
  width: 150px;
  height: 64px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 8px;
}

/* FAQ */
.faq-list { display: grid; gap: 0; margin-top: 8px; }
.faq-item { border-top: 1px solid var(--line); padding: 24px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin-bottom: 8px; font-size: 1.05rem; }
.faq-item p { margin-bottom: 0; }
.section--navy .faq-item, .section--dark .faq-item { border-color: rgba(255,255,255,0.15); }

/* Responsive */
@media (max-width: 860px) {
  .site-header .inner { padding: 14px 24px; }
  .main-nav {
    position: fixed; inset: 64px 0 auto 0;
    background: var(--navy-2);
    flex-direction: column; align-items: stretch;
    padding: 20px 24px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: all 0.2s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .main-nav .btn { margin-top: 12px; text-align: center; }
  .nav-toggle { display: block; }
  .grid--2, .grid--3, .grid--4, .step-block, .founder-block { grid-template-columns: 1fr; }
  .founder-block .photo-placeholder { aspect-ratio: 16 / 10; max-width: 320px; margin: 0 auto; }
  .comparison { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 140px 0 64px; }
}
