/* ==========================================================================
   AdsRunner 2.0 — shared stylesheet
   Editorial, restrained, light. Red used sparingly as accent only.
   ========================================================================== */

:root{
  --bg: #FAF8F4;
  --bg-alt: #F1EEE8;
  --ink: #1C1B19;
  --ink-soft: #5B5852;
  --hairline: #E3DFD6;
  --red: #EC1C24;
  --white: #FFFFFF;
  --max: 1160px;
  --gutter: clamp(24px, 6vw, 96px);
  --serif-headline: "Fraunces", serif; /* unused, kept sans-only per brief */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; overflow-x: hidden; }

body{
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Typography ---------- */

.eyebrow{
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin: 0 0 20px;
}

h1, h2, h3{
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

h1{ font-size: clamp(36px, 5.6vw, 68px); }
h2{ font-size: clamp(28px, 4vw, 46px); }
h3{ font-size: clamp(19px, 2vw, 22px); font-weight: 600; }

p{ margin: 0; }

.lede{
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-soft);
  max-width: 620px;
  line-height: 1.7;
}

.body-copy{
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 640px;
  line-height: 1.75;
}

.stat-line{
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.rule{
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* ---------- Header / nav ---------- */

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  max-width: 1320px;
  padding-left: clamp(20px, 4vw, 56px);
  padding-right: clamp(20px, 4vw, 56px);
}

.logo{ display: flex; align-items: center; }

.logo-img{
  height: 24px;
  width: auto;
  display: block;
}

.footer-logo-img{
  height: 22px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

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

.main-nav{
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-divider{
  display: block;
  width: 1px;
  height: 22px;
  background: var(--hairline);
  flex: none;
}

.main-nav a{
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.62;
  white-space: nowrap;
  transition: opacity 0.2s ease, color 0.2s ease;
  position: relative;
}

.main-nav a:hover{ opacity: 1; }

.main-nav a.active{ opacity: 1; }

.main-nav a.active::after{
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -30px;
  height: 2px;
  background: var(--red);
}

/* mobile-only CTA rendered inside main-nav; keep it looking like a button, not a nav link */
.main-nav a.btn{
  display: none;
  opacity: 1;
  text-transform: none;
  letter-spacing: normal;
  font-size: 14px;
  color: var(--white);
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 2px;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary{
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn-primary:hover{
  background: var(--red);
  border-color: var(--red);
}

.btn-ghost{
  border-color: var(--hairline);
  color: var(--ink);
}

.btn-ghost:hover{ border-color: var(--ink); }

.nav-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span{
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Sections ---------- */

section{
  padding: clamp(64px, 9vw, 140px) 0;
}

.section-alt{ background: var(--bg-alt); }

.section-head{
  max-width: 720px;
  margin-bottom: 56px;
}

.two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 100px);
  align-items: start;
}

/* ---------- Hero ---------- */

.hero{
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(60px, 8vw, 120px);
}

.hero .eyebrow{ margin-bottom: 28px; }

.hero h1{ max-width: 900px; }

.hero h1 .accent{ color: var(--red); }

.hero-sub{
  margin-top: 20px;
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 780px;
}

.hero-copy{
  margin-top: 40px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 620px;
  line-height: 1.8;
}

.hero-actions{
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.text-link{
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.text-link:hover{ border-color: var(--red); color: var(--red); }

/* ---------- Page hero (interior pages) ---------- */

.page-hero{
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.page-hero h1{ max-width: 820px; }

.page-hero .lede{ margin-top: 24px; }

/* ---------- Pillars / grid cards ---------- */

.grid-4{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.grid-2{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

/* Auto-flowing card grid for lists that don't divide evenly into 2, 3 or 4 (e.g. five items) */
.grid-cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.pillar{
  background: var(--bg);
  padding: 40px 32px;
}

.pillar .num{
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.06em;
}

.pillar h3{ margin-bottom: 14px; }

.pillar p{
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.capability-card{
  background: var(--bg);
  padding: 48px 40px;
}

.capability-card .num{
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.capability-card h3{
  font-size: 24px;
  margin-bottom: 16px;
}

.capability-card p{
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 24px;
}

.tag-list{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag{
  font-size: 12.5px;
  color: var(--ink-soft);
  border: 1px solid var(--hairline);
  padding: 6px 12px;
  border-radius: 2px;
}

/* ---------- Big statement blocks ---------- */

.statement{
  text-align: left;
}

.statement h2{
  max-width: 820px;
}

.statement-lines{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 0;
}

.statement-lines span{
  display: block;
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}

.statement-lines span.accent{ color: var(--red); }

/* ---------- Leadership (portrait + copy) ---------- */

.leader-grid{
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
}

.leader-photo{
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--hairline);
  filter: grayscale(1);
}

/* ---------- Team grid (four-up portrait cards) ---------- */

.team-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.team-photo{
  width: 100%;
  max-width: 140px;
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  margin-bottom: 24px;
}

.team-card h3{ margin-bottom: 4px; }

.team-role{
  font-size: 12.5px;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.team-bio{
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ---------- Dashboard / product figure ---------- */

.dashboard-figure{
  margin: 0;
  max-width: 920px;
}

.dashboard-image{
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--hairline);
}

.dashboard-figure figcaption{
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ---------- Photographic feature (full-bleed editorial image) ---------- */

.photo-feature{
  position: relative;
  margin: 0;
  width: 100%;
  overflow: hidden;
  height: clamp(340px, 44vw, 620px);
  background: var(--ink);
}

.photo-feature img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}

.photo-feature::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,27,25,0) 55%, rgba(28,27,25,0.32) 100%);
  pointer-events: none;
}

.photo-feature::before{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--red);
  z-index: 2;
}

.photo-feature--tall{ height: clamp(300px, 38vw, 520px); }
.photo-feature--tall img{ object-position: center 44%; }

/* Lighter early pacing break — smaller than the two primary photographic moments */
.photo-feature--structure{ height: clamp(240px, 30vw, 440px); }
.photo-feature--structure img{ object-position: center 46%; }

/* ---------- Testimonials ---------- */

.testimonial-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.testimonial{
  background: var(--bg-alt);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}

.testimonial-quote{
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 24px;
  flex-grow: 1;
}

.testimonial-name{
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.testimonial-role{
  font-size: 13px;
  color: var(--ink-soft);
}

/* single attributed quote, used inline as evidence for a specific claim */
.quote-block{
  border-left: 2px solid var(--red);
  padding: 4px 0 4px 28px;
  margin-top: 40px;
  max-width: 640px;
}

.quote-block .testimonial-quote{ margin-bottom: 16px; }

/* ---------- Case studies ---------- */

.case-study{
  padding: 56px 0;
  border-top: 1px solid var(--hairline);
}

.case-study:last-child{ border-bottom: 1px solid var(--hairline); }

.case-meta{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 18px;
}

.case-tag{
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.case-num{
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
}

.case-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 28px;
}

.case-grid h4{
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  font-weight: 600;
  margin: 0 0 10px;
}

.case-grid p{
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ---------- Diagnostic questions (Why Ads Runner) ---------- */

.diagnostic-list{ margin-top: 40px; }

.diagnostic-item{
  padding: 40px 0;
  border-top: 1px solid var(--hairline);
}
.diagnostic-item:last-child{ border-bottom: 1px solid var(--hairline); }

.diagnostic-item .num{
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.diagnostic-item p{
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 780px;
}

/* ---------- Legal content (Privacy / Terms / Indemnities) ---------- */

.legal-content{ max-width: 760px; }

.legal-meta{
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}
.legal-meta strong{ color: var(--ink); }
.legal-meta div{ margin-bottom: 4px; }

.legal-content h2{
  font-size: clamp(20px, 2.4vw, 26px);
  margin-top: 52px;
  margin-bottom: 16px;
}
.legal-content h2:first-of-type{ margin-top: 0; }

.legal-content p{
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: none;
}

.legal-content ul, .legal-content ol{
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal-content li{ margin-bottom: 8px; }

.legal-content .legal-footnote{
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Contact form ---------- */

.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
  max-width: 640px;
}

.field{ display: flex; flex-direction: column; gap: 8px; }
.field.full{ grid-column: 1 / -1; }

.field label{
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.field input,
.field textarea{
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink);
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus{
  outline: none;
  border-color: var(--red);
}

.field textarea{ resize: vertical; min-height: 90px; }

.submit-row{ margin-top: 8px; }

/* ---------- CTA band ---------- */

.cta-band{
  text-align: left;
}

.cta-band h2{ max-width: 760px; }
.cta-band .lede{ margin-top: 18px; }
.cta-band .hero-actions{ margin-top: 40px; }

/* ---------- Footer ---------- */

.site-footer{
  border-top: 1px solid var(--hairline);
  padding: 64px 0 40px;
}

.footer-top{
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.footer-brand .logo{ margin-bottom: 10px; }

.footer-tagline{
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-nav{
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col h5{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin: 0 0 16px;
  font-weight: 600;
}

.footer-col a{
  display: block;
  font-size: 14px;
  padding: 5px 0;
  color: var(--ink);
  opacity: 0.8;
}
.footer-col a:hover{ opacity: 1; color: var(--red); }

.footer-brandline{
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}

.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-bottom .legal-links{ display: flex; gap: 20px; }
.footer-bottom .legal-links a{ opacity: 0.8; }
.footer-bottom .legal-links a:hover{ opacity: 1; color: var(--red); }

/* ---------- Booking modal (Book a conversation) ---------- */

.booking-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 25, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.booking-modal-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

body.booking-modal-open{ overflow: hidden; }

.booking-modal{
  background: var(--bg);
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
}

.booking-modal-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
  z-index: 1;
}
.booking-modal-close:hover{ color: var(--red); }

.booking-modal-head{
  padding: 32px 40px 20px;
  border-bottom: 1px solid var(--hairline);
}
.booking-modal-head h3{ font-size: 22px; margin: 6px 0 12px; }
.booking-modal-copy{ font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

.booking-modal-frame{
  flex: 1;
  min-height: 440px;
  position: relative;
  background: var(--white);
}
.booking-modal-frame iframe{
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: none;
  display: block;
}
.booking-modal-loading{
  padding: 60px 40px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0;
}

.booking-modal-fallback{
  padding: 16px 40px 24px;
  font-size: 13px;
  border-top: 1px solid var(--hairline);
  text-align: center;
  margin: 0;
}

@media (max-width: 640px){
  .booking-modal{ max-height: 92vh; }
  .booking-modal-head{ padding: 28px 24px 16px; }
  .booking-modal-frame{ min-height: 55vh; }
  .booking-modal-frame iframe{ min-height: 55vh; }
  .booking-modal-fallback{ padding: 14px 24px 20px; }
}

/* ---------- Reveal on scroll ---------- */

.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 1220px){
  .main-nav{
    position: fixed;
    inset: 84px 0 0 0;
    height: calc(100vh - 84px);
    height: calc(100dvh - 84px);
    overflow-y: auto;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px var(--gutter);
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav a.active::after{ display: none; }
  .main-nav a{ font-size: 15px; opacity: 0.85; }
  .nav-toggle{ display: block; }
  .nav-right .nav-cta{ display: none; }
  .nav-right .nav-divider{ display: none; }
  .main-nav a.btn{ display: inline-flex; }

  .two-col{ grid-template-columns: 1fr; }
  .grid-4{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .testimonial-grid{ grid-template-columns: 1fr; }
  .leader-grid{ grid-template-columns: 1fr; }
  .leader-photo{ max-width: 220px; }
  .team-grid{ grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .case-grid{ grid-template-columns: 1fr; gap: 24px; }
  .form-grid{ grid-template-columns: 1fr; }
  .footer-nav{ gap: 28px; }
  .case-meta{ flex-direction: column; align-items: flex-start; gap: 6px; }
}
