/* =============================================================
   Huk Media — Shared stylesheet
   Used by index.html, influencers.html, admin.html
   ============================================================= */

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #2E2A29;
  --navy-2: #403A39;
  --navy-3: #565150;
  --coral: #E60410;
  --coral-dark: #B80009;
  --coral-soft: #FDE3E4;
  --cream: #FAF8F6;
  --white: #FFFFFF;
  --ink: #2E2A29;
  --muted: #656060;
  --muted-2: #918B8A;
  --border: #E5E0DD;
  --border-2: #D3CCC8;
  --error: #C8341A;
  --success: #137A4A;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow-sm: 0 2px 6px rgba(46, 42, 41, 0.06);
  --shadow-md: 0 12px 30px rgba(46, 42, 41, 0.10);
  --shadow-lg: 0 28px 60px rgba(46, 42, 41, 0.18);
  --t: 220ms cubic-bezier(.2,.7,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 880px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--coral);
  margin-bottom: 14px;
}
.section-head .eyebrow,
.creator-teaser .eyebrow {
  font-size: 1rem;
  letter-spacing: 0.22em;
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  transition: transform var(--t), background var(--t), box-shadow var(--t), color var(--t), border-color var(--t);
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(230, 4, 16, 0.32);
}
.btn-primary:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(230, 4, 16, 0.40);
}
.btn-light {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

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

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn-danger {
  background: transparent;
  color: var(--error);
  border-color: var(--error);
}
.btn-danger:hover { background: var(--error); color: var(--white); }

.btn-block { display: flex; width: 100%; justify-content: center; padding: 18px 24px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--white);
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--t), gap var(--t);
}
.text-link:hover { border-color: var(--coral); gap: 12px; }
.text-link.dark { color: var(--ink); }
.text-link.dark:hover { border-color: var(--coral); }

/* ---------- Header / Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(46, 42, 41, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo img { height: 52px; width: auto; display: block; }
footer .logo img { height: 42px; }
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--coral) 100%);
  position: relative;
  flex-shrink: 0;
}
.logo-mark::after {
  content: "";
  position: absolute; inset: 6px;
  border-radius: 4px;
  background: var(--cream);
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 2px;
  transition: color var(--t);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--coral);
  transition: right var(--t);
}
.nav-links a:hover { color: var(--coral); }
.nav-links a:hover::after { right: 0; }
.nav-links a.is-active { color: var(--coral); }
.nav-links a.is-active::after { right: 0; }

.nav .btn {
  padding: 11px 20px;
  font-size: 0.92rem;
}

/* Hamburger toggle — hidden above the 720px breakpoint */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-xs);
  color: var(--ink);
  transition: color var(--t), background var(--t);
}
.nav-toggle:hover { color: var(--coral); background: rgba(46, 42, 41, 0.04); }
.nav-toggle:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--t), opacity var(--t), top var(--t);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 7px; }
.nav-toggle-bars span:nth-child(3) { top: 14px; }

/* Bars morph into an X while the drawer is open */
header.nav-open .nav-toggle-bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
header.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
header.nav-open .nav-toggle-bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(1100px 600px at 85% -10%, rgba(230, 4, 16, 0.55), transparent 60%),
              radial-gradient(900px 700px at 0% 100%, rgba(101, 96, 95, 0.42), transparent 55%),
              linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: clamp(60px, 9vw, 100px) 0 clamp(56px, 8vw, 88px);
  isolation: isolate;
}
/* Photo-background hero.
   Layer order is top-to-bottom: scrim over photo over fallback gradient.
   Set --hero-image inline on the section; if unset, the fallback shows. */
.hero--photo {
  min-height: clamp(420px, 62vh, 580px);
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(95deg,
      rgba(46, 42, 41, 0.90) 0%,
      rgba(46, 42, 41, 0.74) 38%,
      rgba(46, 42, 41, 0.40) 72%,
      rgba(46, 42, 41, 0.30) 100%),
    radial-gradient(760px 520px at 88% 88%, rgba(230, 4, 16, 0.26), transparent 62%),
    var(--hero-image, none),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  background-size: cover, cover, cover, cover;
  background-position: center, center, center 38%, center;
  background-repeat: no-repeat;
}
.hero-copy { max-width: 660px; }
.hero .eyebrow {
  color: var(--coral);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.65),
    0 1px 3px rgba(0, 0, 0, 0.55);
}
.hero h1 {
  color: var(--white);
  max-width: 14ch;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--coral); }
.hero p.lede {
  color: rgba(255,255,255,0.78);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  max-width: 56ch;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* Compact hero variant for sub-pages */
.hero--compact {
  padding: clamp(52px, 7vw, 78px) 0 clamp(44px, 6vw, 62px);
}
.hero--compact h1 { max-width: 18ch; }

/* ---------- Section base ---------- */
section { padding: clamp(48px, 6vw, 80px) 0; }
section.section--tight { padding: clamp(40px, 5vw, 60px) 0; }
.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.05rem; margin-top: 14px; }

/* ---------- Social proof ---------- */
.social-proof {
  background: var(--white);
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sp-label {
  text-align: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 24px;
  font-weight: 600;
}
.logo-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  align-items: center;
}
.client-logo {
  height: 120px;
  border-radius: var(--radius-sm);
  background: #ECE7DD;
  color: #97907F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background var(--t), color var(--t), transform var(--t);
}
.client-logo:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
/* Real logo images: full color, optically balanced by capping height */
.client-logo.has-img { background: transparent; padding: 8px 12px; }
.client-logo.has-img:hover { background: transparent; }
.client-logo.has-img img {
  max-height: 80px;
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform var(--t);
}
.client-logo.has-img:hover img { transform: translateY(-2px); }
/* Per-logo tuning so mixed aspect ratios read at similar visual weight.
   Retuned after the logos were trimmed to their marks — the old values were
   sized for the original files, which had large white margins baked in. */
.client-logo.has-img img[alt="Planet Fitness"] { max-height: 80px; }
.client-logo.has-img img[alt="Hennessy"]       { max-height: 56px; }
.client-logo.has-img img[alt="MGM Resorts"]    { max-height: 36px; }
.client-logo.has-img img[alt="GEICO"]          { max-height: 38px; }
.client-logo.has-img img[alt="Verizon"]        { max-height: 34px; }

/* Header logo image slot — replaces .logo-mark when you add a real file */


/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 0 30px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--coral-soft);
  color: var(--coral-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 22px;
  font-size: 1.1rem;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card:hover .service-icon { background: var(--coral); color: var(--white); }
.service-icon { transition: background var(--t), color var(--t); }
.service-card h3 { margin: 0 26px 10px; font-size: 1.18rem; }
.service-card p { margin: 0 26px; font-size: 0.96rem; line-height: 1.6; }

/* Photo header on each service card */
.service-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: 24px;
  background: var(--border);
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms cubic-bezier(.2,.7,.2,1);
}
.service-card:hover .service-media img { transform: scale(1.05); }

/* ---------- Results ---------- */
.results { background: var(--navy); color: var(--white); }
.results h2 { color: var(--white); }
.results .section-head p { color: rgba(255,255,255,0.72); }
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.result-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform var(--t), border-color var(--t), background var(--t);
}
.result-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230,4,16,0.55);
  background: linear-gradient(180deg, rgba(230,4,16,0.10) 0%, rgba(255,255,255,0.02) 100%);
}
.result-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.58);
  margin-bottom: 18px;
  font-weight: 600;
}
.result-stat {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--coral);
  margin-bottom: 6px;
  line-height: 1.05;
}
.result-card h3 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.result-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

/* ---------- How we work ---------- */
.about-media {
  margin-bottom: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--border);
  box-shadow: var(--shadow-sm);
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px 26px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--t), box-shadow var(--t);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  font-size: 1rem;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 0.18em;
  margin-bottom: 22px;
  display: inline-block;
}
.step h3 { margin-bottom: 12px; font-size: 1.6rem; }
.step p { font-size: 0.98rem; }

/* ---------- Testimonial ---------- */
.testimonial {
  background: var(--white);
  position: relative;
  padding-top: clamp(40px, 4.4vw, 58px);
  padding-bottom: clamp(40px, 4.4vw, 58px);
}
.placeholder-flag {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: #FFF4E6;
  color: #B25F12;
  border: 1px dashed #E8B576;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
}
.quote-wrap {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.quote-mark {
  font-size: 3.1rem;
  line-height: 1;
  color: var(--coral);
  font-family: Georgia, serif;
  margin-bottom: -6px;
}
blockquote {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.attribution {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral) 0%, var(--navy) 100%);
}
.avatar--logo {
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: hidden;
}
.avatar--logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.attribution-text { text-align: left; }
.attribution-text strong { display: block; color: var(--ink); font-weight: 700; }
.attribution-text span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Creator teaser (homepage) ---------- */
.creator-teaser {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-top: clamp(44px, 4.6vw, 60px);
  padding-bottom: clamp(44px, 4.6vw, 60px);
}
.creator-teaser-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.creator-teaser h2 { margin-bottom: 16px; }
.creator-teaser p.lede {
  font-size: 1.08rem;
  margin-bottom: 28px;
  color: var(--muted);
}
.benefits-list {
  list-style: none;
  margin-bottom: 32px;
}
.benefits-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  font-weight: 500;
  color: var(--ink);
  font-size: 1rem;
}
.benefit-bullet {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--coral-soft);
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.creator-teaser-visual {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  max-height: 460px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.creator-teaser-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px 300px at 80% 20%, rgba(230,4,16,0.45), transparent 60%),
    radial-gradient(300px 240px at 10% 90%, rgba(255,255,255,0.10), transparent 60%);
}
.creator-teaser-visual img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.creator-teaser-visual::before { display: none; }

/* ---------- "Why partner with us" strip ---------- */
.value-props {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.value-props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.value-prop {
  text-align: left;
  padding: 8px 4px;
}
.value-prop .vp-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 0.16em;
  margin-bottom: 12px;
  display: inline-block;
}
.value-prop h3 { font-size: 1.15rem; margin-bottom: 8px; }
.value-prop p { font-size: 0.96rem; }

/* ---------- Final CTA ---------- */
.final-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,4,16,0.30) 0%, transparent 65%);
  top: -200px; right: -150px;
  pointer-events: none;
}
.final-cta::after {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(40,80,160,0.30) 0%, transparent 65%);
  bottom: -200px; left: -150px;
  pointer-events: none;
}
.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 18px;
}
.final-cta p {
  color: rgba(255,255,255,0.78);
  font-size: 1.1rem;
  max-width: 56ch;
  margin: 0 auto 36px;
}
.final-cta .btn {
  padding: 18px 32px;
  font-size: 1.02rem;
}

/* ---------- Footer ---------- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.72);
  padding: 44px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 18px;
}
.footer-brand { max-width: 320px; }
.footer-brand .logo { color: var(--white); margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.92rem; }

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.93rem;
  transition: color var(--t);
}
.footer-col a:hover { color: var(--coral); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* =============================================================
   FORM STYLES (used on influencers.html)
   ============================================================= */

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 56px);
  box-shadow: var(--shadow-md);
}

.form-section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.form-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.form-section:last-of-type {
  padding-bottom: 0;
}

.form-section-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--coral);
  margin-bottom: 6px;
  display: block;
}
.form-section-hint {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 22px;
  margin-top: 0;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.field label .req {
  color: var(--coral);
  margin-left: 2px;
}
.field label .opt {
  color: var(--muted-2);
  font-weight: 500;
  font-size: 0.78rem;
  margin-left: 6px;
  letter-spacing: 0.04em;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  font-size: 0.98rem;
  font-family: inherit;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--border-2);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--coral);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(230, 4, 16, 0.14);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230F1A2C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px;
  padding-right: 44px;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.5;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--error);
  background: #FFF4F1;
}
.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus {
  box-shadow: 0 0 0 4px rgba(200, 52, 26, 0.14);
}

.error-msg {
  font-size: 0.84rem;
  color: var(--error);
  margin-top: 8px;
  font-weight: 500;
  display: none;
}
.field.has-error .error-msg { display: block; }

/* Pill multi-select */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color var(--t), background var(--t), color var(--t), transform var(--t);
}
.pill:hover {
  border-color: var(--coral);
  color: var(--coral);
}
.pill[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.pill[aria-pressed="true"]:hover {
  background: var(--navy-2);
  border-color: var(--navy-2);
}
.pill .check {
  display: none;
  width: 14px; height: 14px;
  flex-shrink: 0;
}
.pill[aria-pressed="true"] .check {
  display: inline-block;
}

/* Custom checkboxes */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
  user-select: none;
}
.checkbox:hover {
  border-color: var(--coral);
  background: var(--white);
}
.checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.checkbox .box {
  width: 20px; height: 20px;
  border-radius: 5px;
  border: 1.5px solid var(--border-2);
  background: var(--white);
  flex-shrink: 0;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t), background var(--t);
}
.checkbox .box::after {
  content: "";
  width: 6px;
  height: 10px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg) scale(0);
  transition: transform var(--t);
  margin-bottom: 2px;
}
.checkbox input:checked + .box {
  background: var(--coral);
  border-color: var(--coral);
}
.checkbox input:checked + .box::after {
  transform: rotate(45deg) scale(1);
}
.checkbox .label {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.checkbox--single {
  grid-column: 1 / -1;
}

/* Consent checkbox */
.consent-row {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: border-color var(--t);
}
.consent-row:hover { border-color: var(--coral); }
.consent-row.has-error { border-color: var(--error); background: #FFF4F1; }
.consent-row input { position: absolute; opacity: 0; pointer-events: none; }
.consent-row .box {
  width: 20px; height: 20px;
  border-radius: 5px;
  border: 1.5px solid var(--border-2);
  background: var(--white);
  flex-shrink: 0;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.consent-row .box::after {
  content: "";
  width: 6px; height: 10px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg) scale(0);
  transition: transform var(--t);
  margin-bottom: 2px;
}
.consent-row input:checked + .box {
  background: var(--coral);
  border-color: var(--coral);
}
.consent-row input:checked + .box::after {
  transform: rotate(45deg) scale(1);
}
.consent-row .label {
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.5;
}

.form-submit {
  margin-top: 36px;
}

/* Success state */
.form-success {
  text-align: center;
  padding: 24px 0;
}
.form-success .success-mark {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--coral-soft);
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 2rem;
  font-weight: 700;
}
.form-success h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.form-success p {
  font-size: 1.02rem;
  max-width: 48ch;
  margin: 0 auto 28px;
  color: var(--muted);
}

/* =============================================================
   ADMIN PAGE
   ============================================================= */

.admin-banner {
  background: #FFF4E6;
  border: 1px dashed #E8B576;
  color: #6B3A0E;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.92rem;
  margin-bottom: 32px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.admin-count {
  font-size: 0.95rem;
  color: var(--muted);
}
.admin-count strong { color: var(--ink); font-weight: 700; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-actions .btn { padding: 11px 18px; font-size: 0.9rem; }

.admin-empty {
  background: var(--white);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
  padding: 64px 24px;
  text-align: center;
}
.admin-empty h3 { margin-bottom: 8px; font-size: 1.2rem; }

.submission-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.submission {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--t);
}
.submission:hover { box-shadow: var(--shadow-sm); }
.submission-header {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 1.1fr 1.4fr 1fr 0.8fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  transition: background var(--t);
  width: 100%;
  text-align: left;
}
.submission-header:hover { background: var(--cream); }
.sh-cell { font-size: 0.92rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-cell .label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 3px;
}
.sh-cell strong { font-weight: 600; color: var(--ink); }
.sh-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  transition: background var(--t), color var(--t), transform var(--t);
}
.submission.is-open .sh-toggle {
  background: var(--coral);
  color: var(--white);
  transform: rotate(180deg);
}

.submission-detail {
  display: none;
  padding: 0 22px 24px;
  border-top: 1px solid var(--border);
}
.submission.is-open .submission-detail { display: block; }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
  margin-top: 22px;
}
.detail-item .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.detail-item .value {
  font-size: 0.96rem;
  color: var(--ink);
  word-break: break-word;
  line-height: 1.5;
}
.detail-item .value.empty { color: var(--muted-2); font-style: italic; }
.detail-item--wide { grid-column: 1 / -1; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink);
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  /* All five client logos stay visible at every width. The old rules here
     hid logos 4 and 5, which was fine for grey placeholders but drops real
     clients off the page on tablet and phone. */
  .logo-row { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .client-logo { height: 96px; }
  .creator-teaser-grid { grid-template-columns: 1fr; gap: 40px; }
  .value-props-grid { grid-template-columns: 1fr; gap: 24px; }
  .submission-header {
    grid-template-columns: 1fr 1fr auto;
    gap: 14px;
  }
  .sh-cell.sh-hide-md { display: none; }
}

@media (max-width: 720px) {
  /* Hamburger sits furthest right, after the CTA */
  .nav-toggle { display: inline-flex; order: 3; }
  .nav { gap: 8px; }

  /* Nav becomes a drawer that slides out from under the header bar */
  header nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height var(--t), visibility var(--t);
  }
  header.nav-open nav {
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    visibility: visible;
  }
  .nav-links {
    flex-direction: column;
    gap: 0;
    padding: 6px 24px 18px;
  }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a {
    display: block;
    padding: 15px 0;
    font-size: 1.05rem;
    font-weight: 600;
  }
  .nav-links a::after { display: none; }

  .nav .btn { padding: 10px 16px; font-size: 0.85rem; }
  .hero { padding-top: 56px; padding-bottom: 56px; }
  .hero--photo {
    min-height: 0;
    background-image:
      linear-gradient(180deg,
        rgba(46, 42, 41, 0.86) 0%,
        rgba(46, 42, 41, 0.72) 55%,
        rgba(46, 42, 41, 0.80) 100%),
      radial-gradient(500px 380px at 80% 100%, rgba(230, 4, 16, 0.24), transparent 62%),
      var(--hero-image, none),
      linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  }
  .services-grid, .steps { grid-template-columns: 1fr; }
  .logo-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .client-logo { height: 84px; }
  .client-logo.has-img img { max-height: 46px; }
  .client-logo.has-img img[alt="Planet Fitness"] { max-height: 62px; }
  .client-logo.has-img img[alt="Hennessy"]       { max-height: 44px; }
  .client-logo.has-img img[alt="MGM Resorts"]    { max-height: 28px; }
  .client-logo.has-img img[alt="GEICO"]          { max-height: 30px; }
  .client-logo.has-img img[alt="Verizon"]        { max-height: 27px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-top { flex-direction: column; }
  .footer-cols { gap: 32px; }

  .form-grid-2 { grid-template-columns: 1fr; }
  .checkbox-group { grid-template-columns: 1fr; }
  .submission-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .sh-cell.sh-hide-sm { display: none; }
  .detail-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Form delivery states ---------- */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* NOTE: an author `display` rule beats the browser's [hidden] rule, so these
   MUST stay scoped to :not([hidden]) or the banners show permanently. */
.form-error:not([hidden]),
.form-notice:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 20px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  line-height: 1.55;
}
.form-error[hidden],
.form-notice[hidden] { display: none !important; }

/* Server / network failure — something on our end */
.form-error:not([hidden]) {
  border: 1px solid var(--error);
  background: #FDF0ED;
  color: var(--error);
}
.form-error a { color: var(--error); font-weight: 700; text-decoration: underline; }

/* Validation — the person just needs to fix a field */
.form-notice:not([hidden]) {
  border: 1px solid var(--coral);
  background: var(--coral-soft);
  color: var(--ink);
}
.form-notice strong { color: var(--coral-dark); }

/* ---------- Service detail pages ---------- */
.section-head--left { max-width: 100%; margin-left: 0; text-align: left; }
.section-head--left p { margin-left: 0; }
.svc-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.svc-detail {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.svc-detail h3 { font-size: 1.12rem; margin-bottom: 10px; padding-left: 16px; position: relative; }
.svc-detail h3::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral);
}
.svc-detail p { color: var(--muted); font-size: 0.96rem; line-height: 1.65; }
a.service-card { text-decoration: none; color: inherit; display: block; }
a.service-card:hover h3 { color: var(--coral); }

@media (max-width: 720px) {
  .svc-detail-grid { grid-template-columns: 1fr; }
}
