/* ══════════════════════════════════════════════════════════════
   Collazos Marketing — V2 Skin, round 2
   Trio: cream paper / ink / BRAND GREEN used like Sakazuki's red:
   loud, flat, full-bleed blocks with ink type. Big billboard
   typography. Sections are LAYERS: each one slides up over the
   pinned previous layer with a chevron notch bitten into its top.
══════════════════════════════════════════════════════════════ */

:root {
  --cream:   #FFFFFF; /* pure white sitewide (was off-white #F2EDE3) */
  --cream-2: #FFFFFF;
  --ink:     #121210;
  --ink-70:  rgba(18, 18, 16, 0.74);
  --gblock:  #4DBF2A; /* the brand green, used as a block color */
}

/* ── Base trio ── */
body { background: var(--cream); }
.section-light { background: var(--cream); }
.section-dark  { background: var(--gblock); }
#cta-section { background: var(--ink); }
#contact-form-section { background: #141412; }
footer { background: var(--ink); border-top: 4px solid var(--gblock); }

/* Non-cover heroes: ink with green bloom (part of the trio, not a default) */
.page-hero {
  background:
    radial-gradient(120% 140% at 80% -10%, rgba(77,191,42,0.34) 0%, transparent 52%),
    var(--ink);
}

/* Curtain: green wipe, ink edge */
.page-curtain { background: var(--gblock); }
.page-curtain::after { background: var(--ink); }

/* Nav frost matches paper */
body.subpage #site-nav.scrolled {
  background: #FFFFFF;
  border-bottom: 1px solid rgba(18, 18, 16, 0.12);
}
body.subpage #site-nav.open { background: var(--ink); }

/* ══ BIG BOLD BILLBOARD TYPE ══ */
.page-hero-title {
  font-size: clamp(3.2rem, 8.5vw, 9.5rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
}
.section-heading {
  font-size: clamp(2.8rem, 6.6vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.cta-heading { font-size: clamp(2.8rem, 7.5vw, 7.5rem); line-height: 0.95; text-transform: uppercase; }
.contact-form-heading { font-size: clamp(2.4rem, 5.5vw, 5rem); line-height: 0.98; }
.section-label { font-size: 13px; letter-spacing: 0.42em; }

/* ══ INK TYPE ON GREEN BLOCKS (Sakazuki: black on red) ══ */
.section-dark .section-label { color: var(--ink); }
.section-dark .section-heading.on-dark { color: var(--ink); }
.section-dark .section-sub.on-dark { color: var(--ink-70); }
.section-dark .prose.on-dark p { color: var(--ink-70); }
.section-dark .prose.on-dark .lead { color: var(--ink); }
.section-dark .prose.on-dark .accent { color: #ffffff; }
.section-dark .checklist.on-dark li { color: var(--ink); }
.section-dark .cs-block-label { color: var(--ink); }
.section-dark .cs-pullquote.on-dark { color: var(--ink); }
.section-dark .cs-pullquote.on-dark .accent { color: #ffffff; }
.section-dark .cs-pullquote-author { color: var(--ink-70); }
.section-dark .cs-stat-num { color: var(--ink); }
.section-dark .cs-stat-label { color: var(--ink-70); }
.section-dark .section-heading .accent,
.section-dark .mn-split-accent { color: #ffffff !important; }
.section-dark .mn-split-accent .mn-w {
  background: linear-gradient(100deg, #ffffff 0%, #eaffe0 40%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}
.section-dark .svc-icon, .section-dark .feature-icon { filter: brightness(0); }
.section-dark .feature-card {
  background: rgba(18, 18, 16, 0.07);
  border: 1px solid rgba(18, 18, 16, 0.3);
}
.section-dark .feature-title.on-dark { color: var(--ink); }
.section-dark .feature-body.on-dark { color: var(--ink-70); }
.section-dark .feature-num { color: var(--ink); }
.section-dark .client-chip { color: var(--ink); border-color: rgba(18,18,16,0.4); }
.section-dark .client-chip:hover { color: #fff; border-color: #fff; }
.section-dark .page-hero-meta-num { color: var(--ink); }
/* Green CTAs sitting on green: flip to ink pills */
.section-dark .btn-primary { background: var(--ink); }

/* Ink blocks: explicit light type (do not rely on inherited colors) */
#cta-section .section-label { color: var(--gblock); }
#cta-section .cta-heading { color: var(--cream); }
#cta-section .cta-heading .accent,
#cta-section .mn-split-accent { color: var(--gblock) !important; }
#cta-section .cta-body { color: rgba(242, 237, 227, 0.82); }
#contact-form-section .contact-form-heading { color: var(--cream); }
#contact-form-section .contact-form-sub { color: rgba(242, 237, 227, 0.8); }

/* ── FAQ, Sakazuki pattern: giant title pinned left, questions
   scroll past on the right until the list is finished ── */
#faq { background: var(--cream); }
#faq .mega-word { display: none; } /* the pinned title IS the billboard here */
#faq .section-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.5fr;
  grid-template-rows: auto auto 1fr; /* label, heading, then a stretchable spacer so the sticky pair holds the top */
  column-gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
/* Label + heading become a sticky PAIR pinned to the top of the section
   (just under the nav), then unstick together when the column ends. */
#faq .section-label {
  grid-column: 1; grid-row: 1;
  position: sticky; top: 80px;
  background: var(--cream); padding-bottom: 12px;
  z-index: 2;
}
#faq .section-heading {
  grid-column: 1; grid-row: 2;
  position: sticky; top: 108px;
  font-size: clamp(3.4rem, 8.4vw, 8.4rem); /* a touch smaller so it reads as a header, not a billboard */
  line-height: 0.94;
  margin-bottom: 0;
  background: var(--cream);
  z-index: 1;
}
#faq .faq-grid {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
#faq .section-heading.on-dark { color: var(--ink); }
#faq .faq-q { color: var(--ink); margin-bottom: 14px; padding-right: 36px; }
#faq .faq-a { color: var(--ink-70); line-height: 1.7; }
#faq .faq-item {
  background: var(--cream-2);
  border: 1px solid rgba(18,18,16,0.18);
  padding: 38px 40px;
}
#faq .faq-a a { color: var(--gblock); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (max-width: 899px) {
  #faq .section-inner { display: block; }
  #faq .section-heading { position: static; font-size: clamp(4rem, 16vw, 7rem); margin-bottom: 36px; }
  #faq .faq-item { padding: 28px 26px; }
}

/* ── Sub-page heroes: eyebrow + H1 + sub + CTA all above the fold ── */
body.subpage .page-hero {
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 110px 24px 96px;
  box-sizing: border-box;
}
body.subpage .page-hero-inner { width: 100%; }
body.subpage .page-hero-title { font-size: clamp(2.9rem, 6.8vw, 6.8rem); }
body.subpage .page-hero-sub { font-size: clamp(16px, 1.5vw, 20px); max-width: 620px; }
body.subpage .page-hero-meta { margin-top: 36px; gap: 30px; }
.page-hero-cta { margin-top: 36px; }
@media (max-height: 740px) {
  body.subpage .page-hero-title { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
  body.subpage .page-hero-meta { margin-top: 24px; }
}

/* ══ SHARP GEOMETRY ══ */
.feature-card, .faq-item, .work-card { border-radius: 0; position: relative; }
.feature-card.on-light {
  background: var(--cream-2);
  border: 1px solid rgba(18, 18, 16, 0.18);
}
.feature-card.on-light::after,
#faq .faq-item::after {
  content: "\2726";
  position: absolute;
  top: 14px; right: 16px;
  font-size: 13px;
  color: var(--gblock);
}

/* ══ SECTION TRANSITIONS ══
   Sections scroll normally; a negative margin overlap keeps the
   clip-path cut visible between adjacent sections. */
body.subpage .page-hero { position: static; }
body.subpage section.section,
body.subpage #cta-section,
body.subpage #contact-form-section {
  position: static;
  margin-top: -76px;
  clip-path: polygon(0 0, 42% 0, 50% 56px, 58% 0, 100% 0, 100% 100%, 0 100%);
  padding-top: 150px;
}
body.subpage section.section:first-of-type {
  margin-top: 0;
  clip-path: none !important;
}
body.subpage footer {
  margin-top: -76px;
  clip-path: polygon(0 0, 42% 0, 50% 56px, 58% 0, 100% 0, 100% 100%, 0 100%);
  padding-top: 140px;
}
@media (max-width: 760px) {
  body.subpage section.section,
  body.subpage #cta-section,
  body.subpage #contact-form-section,
  body.subpage footer {
    clip-path: polygon(0 0, 38% 0, 50% 34px, 62% 0, 100% 0, 100% 100%, 0 100%);
    padding-top: 110px;
  }
}

/* ══ VARIED SECTION CUTS (sitewide) ══
   Apply any of these classes to a body.subpage section to override the default
   chevron transition. They bite into the section's top edge, revealing the
   section above through the gap as it scrolls by. */
/* !important is needed to beat the default chevron rule (body.subpage section.section)
   and the higher-specificity ID rules (body.subpage #cta-section, #contact-form-section). */
body.subpage .cut-chevron   { clip-path: polygon(0 0, 42% 0, 50% 62px, 58% 0, 100% 0, 100% 100%, 0 100%) !important; }
body.subpage .cut-diagonal  { clip-path: polygon(0 70px, 100% 0, 100% 100%, 0 100%) !important; }
body.subpage .cut-diagonalr { clip-path: polygon(0 0, 100% 70px, 100% 100%, 0 100%) !important; }
body.subpage .cut-zigzag    { clip-path: polygon(0 0, 16% 44px, 33% 0, 50% 44px, 67% 0, 84% 44px, 100% 0, 100% 100%, 0 100%) !important; }
body.subpage .cut-notch     { clip-path: polygon(0 0, 30% 0, 38% 60px, 62% 60px, 70% 0, 100% 0, 100% 100%, 0 100%) !important; }
body.subpage .cut-peak      { clip-path: polygon(0 62px, 50% 0, 100% 62px, 100% 100%, 0 100%) !important; }
body.subpage .cut-slabL     { clip-path: polygon(0 0, 50% 0, 50% 56px, 100% 56px, 100% 100%, 0 100%) !important; }
body.subpage .cut-slabR     { clip-path: polygon(0 56px, 50% 56px, 50% 0, 100% 0, 100% 100%, 0 100%) !important; }
@media (max-width: 760px) {
  body.subpage .cut-zigzag  { clip-path: polygon(0 0, 25% 30px, 50% 0, 75% 30px, 100% 0, 100% 100%, 0 100%) !important; }
  body.subpage .cut-notch   { clip-path: polygon(0 0, 28% 0, 38% 38px, 62% 38px, 72% 0, 100% 0, 100% 100%, 0 100%) !important; }
}

/* ══ GIANT KINETIC SECTION WORDS (Sakazuki "COLLECTIVE" move) ══
   Full-bleed billboard words at the top of each layer, scrubbed
   horizontally by scroll (assets/v2.js). Painted, not interactive. */
body.subpage section.section,
body.subpage #cta-section,
body.subpage #contact-form-section,
body.subpage footer { overflow-x: clip; }
.mega-word {
  font-family: var(--display, 'Cinzel', serif);
  font-weight: 900;
  font-size: clamp(4.5rem, 13.5vw, 16rem);
  line-height: 0.82;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center; /* word stays centered and readable; overflow bleeds evenly */
  pointer-events: none;
  user-select: none;
  will-change: transform;
  margin: -6px 0 34px 0;
}
.section-light .mega-word { color: var(--ink); }
.section-dark .mega-word { color: var(--cream); }
#faq .mega-word { color: var(--ink); }
#contact-form-section .mega-word { color: var(--cream); opacity: 0.94; }
/* Explicit variants (homepage sections have bespoke backgrounds) */
.mega-word--ink { color: var(--ink) !important; }
.mega-word--cream { color: var(--cream) !important; }
/* Homepage sections that carry traveling words must clip them */
#services, #plan, #testimonials { overflow-x: clip; position: relative; }

/* ══ Marquee band: green, ink borders, slides over the pinned hero ══ */
.cm-marquee {
  position: relative;
  overflow: hidden;
  background: var(--gblock);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 20px 0;
  white-space: nowrap;
}
.cm-marquee-track {
  display: inline-flex;
  width: max-content;
  animation: cmMarquee 26s linear infinite;
}
.cm-marquee-track span {
  font-family: var(--display, 'Cinzel', serif);
  font-weight: 700;
  font-size: clamp(20px, 2.8vw, 34px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding-right: 0.6em;
}
@keyframes cmMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cm-marquee:hover .cm-marquee-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .cm-marquee-track { animation: none; }
  body.subpage .page-hero,
  body.subpage section.section,
  body.subpage #cta-section,
  body.subpage #contact-form-section { position: static; clip-path: none; }
}

/* ── Custom cursor: flip to cream over green blocks (green cursor is invisible on green) ── */
@media (hover: hover) and (pointer: fine) {
  body.mn-cursor-on-green #mn-dot { background: var(--cream); }
  body.mn-cursor-on-green #mn-ring { border-color: rgba(242, 237, 227, 0.65); }
  body.mn-cursor-on-green #mn-ring.is-hover { border-color: rgba(242, 237, 227, 0.95); }
}

/* ══ Footer reveal: full-bleed footer shrinks into a framed card, giant COLLAZOS wordmark behind it ══ */
footer {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  transform: scale(1);
  transform-origin: bottom center;
}
.footer-inner {
  position: relative;
  z-index: 1;
}
/* Full-bleed flex wrapper: centers the oversized word by LAYOUT (no transform,
   immune to webfont-width timing). It spans the whole frame width; the footer's
   own overflow:hidden clips the C/S bleed at the frame edges. */
.footer-wordmark-wrap {
  display: flex;
  justify-content: center;
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-top: clamp(28px, 4vw, 64px);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.footer-wordmark {
  flex: 0 0 auto;
  white-space: nowrap;
  font-family: var(--display, 'Cinzel', serif);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--cream);
  font-size: 17vw; /* wider than the frame: C and S bleed off both edges, like a word punched from negative space */
}
@media (prefers-reduced-motion: reduce) {
  footer { border-radius: 40px 40px 0 0; transform: scale(0.97); }
}
