/*
 * Page and section layout for the SPromoter theme. Component look-and-feel (colour,
 * type, buttons, cards, tags, inputs) comes from tokens.css; this file positions
 * those components into the 16 views specified in the design handoff README.
 */

/* ── Layout primitives ──────────────────────────────────────────────── */

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

.band { margin-inline: calc(50% - 50vw); }
.band-accent { background: var(--color-accent-100); border-block: 1px solid var(--color-divider); }
.band-neutral { background: var(--color-neutral-100); border-block: 1px solid var(--color-divider); }
.band > .container { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }

.kicker {
  display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent-700); margin: 0 0 18px;
}
.kicker--center { text-align: center; }

.tnum { font-feature-settings: 'tnum' 1; }

/* ── Header ──────────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 20; background: var(--color-bg);
  padding-inline: max(20px, calc((100% - 1180px) / 2 + 20px));
  padding-block: var(--space-3);
  flex-wrap: wrap; gap: 8px;
}
.site-header .nav-brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.site-header .nav-brand img { height: 26px; width: auto; display: block; }
.site-header .nav-links { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.site-header .nav-links li { display: contents; }
.site-header .nav-cta { margin-left: var(--space-2); }
.nav-toggle { display: none; }

/* ── Footer ──────────────────────────────────────────────────────────── */

.site-footer {
  padding: 40px 0 56px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px; font-size: 14px; line-height: 1.7; color: var(--color-neutral-700);
}
.site-footer .footer-brand img { height: 24px; width: auto; display: block; margin-bottom: 12px; }
.site-footer h6 { margin-bottom: 8px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: var(--color-accent-700); }

/* ── Dark CTA band (Home + every Service page) ──────────────────────── */

.cta-band { margin-inline: calc(50% - 50vw); background: var(--color-dark-bg); }
.cta-band__inner {
  padding: clamp(48px, 6vw, 80px) clamp(20px, 5vw, 64px);
  display: grid; gap: 24px clamp(24px, 5vw, 72px); align-items: center;
}
.cta-band--left .cta-band__inner { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cta-band--left .cta-band__action { justify-self: start; }
.cta-band--center .cta-band__inner { text-align: center; }
.cta-band__copy h2 { font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; margin: 0 0 14px; max-width: 20ch; color: var(--color-neutral-100); }
.cta-band--center .cta-band__copy h2 { margin-inline: auto; }
.cta-band__copy p { font-size: 16px; line-height: 1.7; margin: 0; max-width: 54ch; color: var(--color-neutral-300); }
.cta-band--center .cta-band__copy p { margin-inline: auto; margin-bottom: 28px; }

/* ── Home ────────────────────────────────────────────────────────────── */

.hero-home { padding: clamp(44px, 7vw, 104px) 0 60px; }
.hero-home .kicker { margin-bottom: 20px; }
.hero-home h1 {
  font-weight: 400; font-size: clamp(42px, 6.2vw, 86px); line-height: 1.08;
  letter-spacing: -0.01em; margin: 0 0 28px; margin-left: -0.042em; max-width: 18ch;
}
.hero-home h1 span { display: block; }
.hero-home p.lede { font-size: 17px; line-height: 1.65; max-width: 58ch; margin: 0; color: var(--color-neutral-800); }
.hero-home .hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: 32px; }

.platforms-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px; }
.platforms-band h2 { font-weight: 400; font-size: 30px; line-height: 1.2; margin: 0 0 12px; }
.platforms-band p { font-size: 15.5px; line-height: 1.65; margin: 0; color: var(--color-neutral-800); }

.services-grid-section { padding: 60px 0 44px; }
.services-grid-section .kicker { margin-bottom: 16px; }
.services-grid-section h2 { font-weight: 400; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.15; margin: 0 0 36px; margin-left: -0.042em; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.services-grid .card { text-decoration: none; color: inherit; }
.services-grid .card:hover { border-color: var(--color-accent); }

.creative-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px clamp(24px, 5vw, 80px); align-items: center; padding: 52px 0 68px; }
.creative-split .kicker { margin-bottom: 16px; }
.creative-split h2 { font-weight: 400; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.18; margin: 0 0 20px; }
.creative-split p { font-size: 15.5px; line-height: 1.65; margin: 0 0 16px; max-width: 48ch; color: var(--color-neutral-800); }
.creative-split p:last-of-type { margin-bottom: 0; }
.creative-split .plate { width: min(460px, 100%); justify-self: end; aspect-ratio: 4 / 3; }

.how-we-work { padding: 60px 0; }
.how-we-work .kicker { margin-bottom: 24px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 36px; }
.steps-grid > div { border-top: 1px solid var(--color-divider); padding-top: 16px; }
.steps-grid .step-n { display: block; font-family: var(--font-heading); font-size: 34px; line-height: 1.1; color: var(--color-accent); margin-bottom: 10px; }
.steps-grid h3 { font-weight: 400; font-size: 24px; line-height: 1.25; margin: 0 0 8px; }
.steps-grid p { font-size: 15px; line-height: 1.6; margin: 0; color: var(--color-neutral-800); }

.testimonial { padding: 56px 0 64px; }
.testimonial blockquote { font-family: var(--font-heading); font-weight: 400; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.35; margin: 0; max-width: 34ch; }
.testimonial figcaption { font-size: 15.5px; line-height: 1.65; margin: 28px 0 0; color: var(--color-neutral-700); }

/* ── Generic inner-page hero (Services / Case studies / Pricing / About / Notes) ── */

.page-hero { padding: clamp(40px, 6vw, 84px) 0 44px; }
.page-hero .kicker { margin-bottom: 18px; }
.page-hero h1 { font-weight: 400; font-size: clamp(38px, 5vw, 66px); line-height: 1.1; margin: 0 0 24px; margin-left: -0.042em; max-width: 20ch; }
.page-hero p.lede { font-size: 17px; line-height: 1.65; max-width: 58ch; margin: 0; color: var(--color-neutral-800); }

/* ── Services index ─────────────────────────────────────────────────── */

.service-group { border-top: 1px solid var(--color-divider); padding: 44px 0; }
.service-group__row { display: flex; flex-wrap: wrap; gap: 32px clamp(24px, 5vw, 72px); }
.service-group__heading { flex: 1 1 240px; min-width: 0; }
.service-group__heading h2 { font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; margin: 0 0 14px; }
.service-group__heading p { font-size: 15.5px; line-height: 1.65; margin: 0; max-width: 40ch; color: var(--color-neutral-800); }
.service-group__list { flex: 2 1 340px; min-width: 0; }
.service-group__item {
  border-bottom: 1px solid var(--color-divider); padding: 14px 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px;
  text-decoration: none; color: inherit;
}
.service-group__item:hover { background: var(--color-accent-100); }
.service-group__item h3 { font-weight: 600; font-size: 19px; line-height: 1.35; margin: 0; }
.service-group__item p { font-size: 15px; line-height: 1.6; margin: 0; color: var(--color-neutral-800); }

/* ── Service detail (nine instances, one template) ──────────────────── */

.service-hero .container { padding: clamp(44px, 6vw, 88px) clamp(20px, 5vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px clamp(24px, 5vw, 72px); align-items: start; }
.service-hero.band-accent { border-top: 0; border-bottom: 1px solid var(--color-divider); }
.service-hero .kicker { margin-bottom: 18px; }
.service-hero h1 { font-weight: 400; font-size: clamp(38px, 5vw, 66px); line-height: 1.08; margin: 0; margin-left: -0.042em; max-width: 14ch; }
.service-hero .intro { font-size: 16.5px; line-height: 1.7; margin: 0 0 24px; color: var(--color-neutral-800); text-align: justify; hyphens: auto; }
.service-hero .hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.outcome-strip { border-top: 1px solid var(--color-accent-300); }
.outcome-strip .container { padding: 22px clamp(20px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: center; }
.outcome-strip .outcome { display: flex; align-items: center; gap: 10px; font-size: 14.5px; line-height: 1.5; color: var(--color-accent-800); }
.outcome-strip .sp-check { flex: none; color: var(--color-accent-600); }

.service-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px clamp(24px, 5vw, 72px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; }
.service-why h2 { font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1.2; margin: 0 0 18px; max-width: 20ch; }
.service-why p { font-size: 15.5px; line-height: 1.7; margin: 0 0 14px; max-width: 46ch; color: var(--color-neutral-800); text-align: justify; hyphens: auto; }
.service-why p:last-of-type { margin-bottom: 0; }
.service-why .plate { width: min(460px, 100%); justify-self: end; aspect-ratio: 4 / 3; }

.receive-band .container { padding: clamp(44px, 6vw, 80px) clamp(20px, 5vw, 64px); }
.receive-band .kicker { text-align: center; margin-bottom: 14px; }
.receive-band h2 { font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.15; margin: 0 auto 16px; text-align: center; max-width: 18ch; }
.receive-band > .container > p { font-size: 15.5px; line-height: 1.7; margin: 0 auto 44px; text-align: center; max-width: 62ch; color: var(--color-neutral-800); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px clamp(32px, 6vw, 88px); }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
  flex: none; width: 38px; height: 38px; border: 1px solid var(--color-accent); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; color: var(--color-accent-700);
}
.feature-body { min-width: 0; }
.feature-body h3 { font-weight: 600; font-size: 19px; line-height: 1.35; margin: 0 0 6px; }
.feature-body p { font-size: 15px; line-height: 1.6; margin: 0; color: var(--color-neutral-800); }

.cadence-faqs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px clamp(24px, 5vw, 72px); padding: clamp(40px, 6vw, 72px) 0; }
.cadence-faqs h2 { font-weight: 400; font-size: 30px; line-height: 1.2; margin: 0 0 18px; }
.cadence-row { border-bottom: 1px solid var(--color-divider); padding: 13px 0; display: flex; gap: 16px; justify-content: space-between; align-items: baseline; }
.cadence-row .what { font-size: 15.5px; line-height: 1.6; color: var(--color-neutral-800); }
.cadence-row .tag { flex: none; }
.cadence-note { font-size: 15px; line-height: 1.6; color: var(--color-neutral-700); margin: 20px 0 0; }
.faq-row { border-bottom: 1px solid var(--color-divider); padding: 14px 0; }
.faq-row h3 { font-weight: 600; font-size: 19px; line-height: 1.35; margin: 0 0 6px; }
.faq-row p { font-size: 15px; line-height: 1.6; margin: 0; color: var(--color-neutral-800); }

.phases-section { border-top: 1px solid var(--color-divider); padding: clamp(40px, 5vw, 64px) 0; }
.phases-section .kicker { margin-bottom: 28px; }
.phases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; }
.phase { border-top: 2px solid var(--color-accent-300); padding-top: 16px; }
.phase .phase-n { display: block; font-family: var(--font-heading); font-size: 32px; line-height: 1.1; color: var(--color-accent); margin-bottom: 8px; }
.phase h3 { font-weight: 600; font-size: 20px; line-height: 1.3; margin: 0 0 6px; }
.phase p { font-size: 15px; line-height: 1.6; margin: 0; color: var(--color-neutral-800); }

.other-services { border-top: 1px solid var(--color-divider); padding: clamp(36px, 5vw, 56px) 0; }
.other-services .kicker { margin-bottom: 20px; }
.other-services-list { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.other-services-list a { text-decoration: none; }

/* ── Case studies ────────────────────────────────────────────────────── */

.case-study { border-top: 1px solid var(--color-divider); padding: 40px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px clamp(24px, 5vw, 72px); }
.case-study h2 { font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1.18; margin: 16px 0 14px; }
.case-study .body { font-size: 15.5px; line-height: 1.65; margin: 0 0 16px; max-width: 44ch; color: var(--color-neutral-800); }
.case-study .quote { font-size: 15px; line-height: 1.6; margin: 0; color: var(--color-neutral-700); }
.case-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 24px; align-content: start; }
.case-metric { border-top: 1px solid var(--color-divider); padding-top: 12px; }
.case-metric .value { display: block; font-family: var(--font-heading); font-size: 40px; line-height: 1.1; color: var(--color-accent-700); }
.case-metric .label { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral-700); margin-top: 8px; }

/* ── Pricing ─────────────────────────────────────────────────────────── */

.pricing-tiers { padding: 16px 0 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.pricing-tiers .card { display: flex; flex-direction: column; gap: 14px; }
.pricing-tiers .card-title { font-size: 28px; }
.pricing-tiers .price { font-family: var(--font-heading); font-size: 34px; line-height: 1.1; margin: 0; }
.pricing-tiers .tier-items { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
.pricing-tiers .tier-items span { border-top: 1px solid var(--color-divider); padding: 10px 0; font-size: 15px; line-height: 1.55; color: var(--color-neutral-800); }
.pricing-tiers .btn { margin-top: auto; }

/* ── About ───────────────────────────────────────────────────────────── */

.about-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px clamp(24px, 5vw, 72px); align-items: center; padding: 0 0 56px; }
.about-split h2 { font-weight: 400; font-size: 30px; line-height: 1.2; margin: 0 0 16px; }
.about-split p { font-size: 15.5px; line-height: 1.65; margin: 0 0 14px; max-width: 46ch; color: var(--color-neutral-800); }
.about-split p:last-of-type { margin-bottom: 0; }
.about-split .plate { width: min(440px, 100%); justify-self: end; aspect-ratio: 4 / 3; }
.about-values { padding: 48px 0 64px; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 36px; }
.values-grid h3 { font-weight: 400; font-size: 26px; line-height: 1.25; margin: 0 0 10px; }
.values-grid p { font-size: 15.5px; line-height: 1.65; margin: 0; color: var(--color-neutral-800); text-align: justify; hyphens: auto; }

/* ── Notes (blog index) ─────────────────────────────────────────────── */

.notes-list { padding: 16px 0 64px; }
.notes-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 40px;
  border-top: 1px solid var(--color-divider); padding: 22px 0; text-decoration: none; color: inherit;
}
.notes-row:hover { background: var(--color-accent-100); }
.notes-row .meta { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-700); }
.notes-row h2 { font-weight: 400; font-size: 28px; line-height: 1.25; margin: 10px 0 0; }
.notes-row .excerpt { font-size: 15.5px; line-height: 1.65; margin: 0; color: var(--color-neutral-800); align-self: center; }

/* ── Contact ─────────────────────────────────────────────────────────── */

.contact-section { padding: clamp(40px, 6vw, 84px) 0 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px clamp(24px, 5vw, 80px); }
.contact-section h1 { font-weight: 400; font-size: clamp(38px, 5vw, 62px); line-height: 1.1; margin: 0 0 24px; margin-left: -0.042em; max-width: 16ch; }
.contact-section .lede { font-size: 17px; line-height: 1.65; max-width: 46ch; margin: 0 0 24px; color: var(--color-neutral-800); }
.contact-details { border-top: 1px solid var(--color-divider); padding-top: 16px; font-size: 15.5px; line-height: 1.8; color: var(--color-neutral-800); }
.contact-form { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-form .form-notice { padding: 12px 14px; border: 1px solid var(--color-accent-300); background: var(--color-accent-100); color: var(--color-accent-800); border-radius: var(--radius-md); font-size: 14px; }

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border: 1px solid var(--color-divider); border-radius: var(--radius-md);
    background: transparent; cursor: pointer; order: 3;
  }
  .site-header .nav-links {
    order: 4; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 4px;
    max-height: 0; overflow: hidden; width: 100%;
  }
  .site-header.is-open .nav-links { max-height: 400px; padding-top: 8px; }
  .site-header .nav-cta { order: 2; }
}
