/* CloserFlow custom styles — additions on top of the Webflow export.
   Brand: #A08778 (taupe), #DCD2C8 (sand), black, white. */

:root {
  --cf-taupe: #a08778;
  --cf-sand: #dcd2c8;
  --cf-black: #1a1a1a;
  --cf-white: #ffffff;
  --cf-error: #b3261e;
  --cf-header-offset: 6.5rem;
}

[id] { scroll-margin-top: var(--cf-header-offset); }

/* ---------- Hero photo (replaces the intro video) ---------- */
.cf-hero-photo,
.cf-hero-photo-mobile { display: block; }
.cf-hero-photo { position: absolute; inset: 0; }
.cf-hero-photo .cf-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* keeps the face in frame on wide screens; adjust once the final portrait arrives */
  object-position: var(--cf-hero-focus, 58% 20%);
  background-color: var(--cf-sand);
}
/* soft shade so the white headline stays readable over the photo */
.hero_background.desktop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgb(26 26 26 / 55%) 0%, rgb(26 26 26 / 15%) 40%, rgb(26 26 26 / 0%) 65%);
}
.hero_background.desktop { overflow: hidden; }
.hero_content { position: relative; z-index: 1; }
.cf-hero-photo-mobile { display: none; }

@media screen and (max-width: 767px) {
  /* mobile: the portrait photo fills the whole first screen, text sits at the bottom */
  .hero_background.desktop { display: block; }
  .hero_section, .hero_content { min-height: 100svh; }
  .hero_content { justify-content: flex-end; padding-bottom: var(--_spacing---space--6); }
  .hero_text { color: var(--cf-white); }
  .cf-hero-photo .cf-hero-img { object-position: var(--cf-hero-focus-mobile, 50% 15%); }
  .hero_background.desktop::after {
    background: linear-gradient(to top, rgb(26 26 26 / 80%) 0%, rgb(26 26 26 / 45%) 38%, rgb(26 26 26 / 0%) 62%);
  }
}

/* ---------- Navigation ---------- */
/* "Join the Camp" menu CTA: solid black button, same height as "Book a meeting",
   with the spots-left counter as a badge on its top edge */
.nav_links_link.cf-nav-secondary {
  position: relative;
  flex: none;
  justify-content: center;
  align-items: center;
  height: 3em;
  padding: 0 1.15em;
  border-radius: var(--radius--small);
  background-color: var(--cf-black);
  color: var(--cf-white);
  font-weight: var(--_typography---font--primary-bold);
  white-space: nowrap;
  overflow: visible;
  transition: background-color .2s ease, transform .2s ease;
}
/* hover: lift + shadow, arrow slides in, badge turns taupe */
.nav_links_link.cf-nav-secondary { transition: background-color .25s ease, transform .25s cubic-bezier(.165,.84,.44,1), box-shadow .25s ease; }
.nav_links_link.cf-nav-secondary > span:first-child { display: inline-block; transition: transform .25s cubic-bezier(.165,.84,.44,1); }
.nav_links_link.cf-nav-secondary::after {
  content: "→";
  position: absolute;
  right: .6em;
  top: 50%;
  opacity: 0;
  transform: translate(-.35em, -50%);
  transition: opacity .2s ease, transform .25s cubic-bezier(.165,.84,.44,1);
}
.cf-nav-badge { transition: background-color .25s ease, color .25s ease, transform .25s cubic-bezier(.165,.84,.44,1); }
@media (hover: hover) {
  .nav_links_link.cf-nav-secondary:hover {
    background-color: var(--swatch--dark-500-main);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgb(26 26 26 / 22%);
  }
  .nav_links_link.cf-nav-secondary:hover > span:first-child { transform: translateX(-.55em); }
  .nav_links_link.cf-nav-secondary:hover::after { opacity: 1; transform: translate(0, -50%); }
  .nav_links_link.cf-nav-secondary:hover .cf-nav-badge { background-color: var(--cf-taupe); color: var(--cf-white); }
}
.nav_links_link.cf-nav-secondary:active { transform: translateY(0); box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .nav_links_link.cf-nav-secondary, .nav_links_link.cf-nav-secondary::after, .nav_links_link.cf-nav-secondary > span:first-child, .cf-nav-badge { transition: none; }
  .nav_links_link.cf-nav-secondary:hover { transform: none; }
}
.nav_links_link.cf-nav-secondary:focus-visible { outline: 2px solid var(--cf-black); outline-offset: 2px; }
.cf-nav-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -55%);
  padding: .3em .55em;
  border-radius: var(--radius--round, 100vw);
  background-color: var(--cf-sand);
  color: var(--cf-black);
  box-shadow: 0 0 0 2px var(--swatch--light-200-main);
  font-size: .65em;
  font-weight: var(--_typography---font--primary-bold);
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}
.nav_desktop_wrap .nav_menu_desktop, .nav_desktop_wrap .nav_links_wrap, .nav_desktop_wrap .cf-nav-item-button { overflow: visible; }
/* the menu item wrapper has top padding for the text links; the button fills it instead */
.nav_desktop_wrap .cf-nav-item-button { padding-top: 0; padding-bottom: 0; align-items: center; }
.nav_links_link.is-active,
.nav_links_link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; text-decoration-color: var(--cf-taupe); }
.nav_links_link.cf-nav-secondary.is-active,
.nav_links_link.cf-nav-secondary[aria-current="page"] { text-decoration: none; box-shadow: 0 0 0 2px var(--cf-taupe); }
.button_main.is-active { box-shadow: 0 0 0 2px var(--cf-taupe); }

/* mobile menu: comfortable 48px tap targets */
.mobile_menu_dropdown_content .nav_links_link { min-height: 48px; }
.mobile_menu_dropdown_content .nav_links_link.cf-nav-secondary { width: 100%; height: auto; min-height: 52px; margin: 1em 0 .5em; padding: .75em 1em; font-size: var(--_typography---font-size--b0); }
.mobile_menu_dropdown_content .cf-nav-badge { left: auto; right: 1em; transform: translateY(-50%); font-size: .75em; }
.mobile_menu_dropdown_content .button_main { min-height: 48px; }
.dropdown-toggle { min-width: 48px; min-height: 48px; }

/* ---------- Forms (qualification, quiz gate, contact) ---------- */
.cf-form { display: flex; flex-direction: column; gap: var(--_spacing---space--4); }
.cf-required-note { font-size: var(--_typography---font-size--b05); opacity: .8; margin: 0; }
.cf-field { display: flex; flex-direction: column; gap: .5em; margin: 0; padding: 0; border: 0; min-width: 0; }
.cf-label, .cf-field legend { font-weight: var(--_typography---font--primary-medium); padding: 0; }
.cf-input {
  width: 100%;
  min-height: 3em;
  padding: .75em 1em;
  font: inherit;
  color: inherit;
  background: var(--cf-white);
  border: 1.5px solid var(--cf-sand);
  border-radius: var(--radius--small);
  appearance: none;
}
textarea.cf-input { min-height: calc(4 * 1.5em + 1.5em); resize: vertical; line-height: 1.5; }
.cf-input::placeholder { color: color-mix(in srgb, currentColor 50%, transparent); }
.cf-input:focus-visible,
.cf-choice input:focus-visible + span,
.cf-check input:focus-visible { outline: 2px solid var(--cf-taupe); outline-offset: 2px; border-color: var(--cf-taupe); }
.cf-input[aria-invalid="true"] { border-color: var(--cf-error); }
.cf-error { color: var(--cf-error); font-size: var(--_typography---font-size--b05); margin: 0; min-height: 0; }
.cf-error:empty { display: none; }

.cf-choices { display: flex; flex-direction: column; gap: .5em; }
.cf-choice { display: flex; align-items: center; gap: .75em; min-height: 48px; padding: .5em 1em; border: 1.5px solid var(--cf-sand); border-radius: var(--radius--small); background: var(--cf-white); cursor: pointer; }
.cf-choice:has(input:checked) { border-color: var(--cf-taupe); background: color-mix(in srgb, var(--cf-sand) 35%, white); }
.cf-choice input { accent-color: var(--cf-taupe); width: 1.15em; height: 1.15em; margin: 0; }
.cf-field.is-invalid .cf-choice { border-color: var(--cf-error); }

.cf-check { display: flex; align-items: flex-start; gap: .75em; cursor: pointer; line-height: 1.4; }
.cf-check input { accent-color: var(--cf-taupe); width: 1.25em; height: 1.25em; margin: .1em 0 0; flex: none; }
.cf-check a { text-decoration: underline; text-underline-offset: .2em; }
.cf-check.is-invalid { color: var(--cf-error); }

/* honeypot: hidden from people, visible to bots */
.cf-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.cf-submit { align-self: flex-start; min-width: 14em; }
.cf-submit[disabled] { opacity: .5; pointer-events: none; }
.cf-form-status { margin: 0; }
.cf-form-status.is-error { color: var(--cf-error); }

/* dark sections (contact footer): keep the existing look */
.contact_footer .cf-input { background: transparent; color: var(--swatch--light-100); border-color: var(--swatch--light-200-o20); }
.contact_footer .cf-error, .contact_footer .cf-form-status.is-error { color: #ffb4ab; }
.contact_footer .cf-input[aria-invalid="true"] { border-color: #ffb4ab; }

/* ---------- Standalone pages (apply, thank you, quiz, privacy) ---------- */
.cf-page { background: var(--swatch--light-100); color: var(--cf-black); min-height: 100svh; padding: calc(var(--cf-header-offset) + var(--_spacing---space--6)) 0 var(--_spacing---space--8); }
.cf-page_contain { width: calc(100% - var(--site--margin) * 2); max-width: 44rem; margin: 0 auto; }
.cf-page_contain.is-wide { max-width: 64rem; }
.cf-card { background: var(--cf-white); border: 1.5px solid var(--cf-sand); border-radius: var(--radius--main); padding: var(--_spacing---space--6); }
@media (max-width: 479px) { .cf-card { padding: var(--_spacing---space--4); } }
.cf-eyebrow { color: var(--cf-taupe); }
.cf-calendar { min-height: 700px; border-radius: var(--radius--main); overflow: hidden; background: var(--cf-white); }
.cf-prose h2 { margin: 1.5em 0 .5em; font-size: var(--_typography---font-size--h6); font-weight: 700; }
.cf-prose p, .cf-prose li { line-height: 1.6; margin-bottom: .75em; }
.cf-prose ul { padding-left: 1.25em; }
.cf-prose a { text-decoration: underline; }

.cf-footer { background: var(--swatch--dark-500-main); color: var(--swatch--light-100); padding: var(--_spacing---space--6) 0; }
.cf-footer_contain { width: calc(100% - var(--site--margin) * 2); max-width: var(--max-width--main); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1em 2em; justify-content: space-between; align-items: center; }
.cf-footer_links { display: flex; flex-wrap: wrap; gap: .5em 1.5em; }
.cf-footer a, .cf-linklike { color: inherit; text-decoration: none; opacity: .85; }
.cf-footer a:hover, .cf-linklike:hover { opacity: 1; text-decoration: underline; }
.cf-linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.cf-legal-links { display: flex; flex-wrap: wrap; gap: .5em 1.5em; margin-top: var(--_spacing---space--4); font-size: var(--_typography---font-size--b05); }

/* ---------- Quiz gate + results CTA ---------- */
.step-gate .cf-gate { width: 100%; max-width: 36rem; }
.step-gate .cf-input, .step-gate .cf-choice { background: var(--cf-white); }
.cf-cta {
  margin-top: var(--_spacing---space--6);
  padding: var(--_spacing---space--6);
  border-radius: var(--radius--main);
  background: var(--cf-sand);
  border: 2px solid var(--cf-taupe);
  color: var(--cf-black);
  text-align: left;
}
.cf-cta_heading { font-size: var(--_typography---font-size--h5); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; }
.cf-cta_body { margin: 0 0 1.25em; max-width: 50ch; }
.cf-cta_small { margin: .75em 0 0; font-size: var(--_typography---font-size--b05); }
.cf-results-note { margin: var(--_spacing---space--4) 0 0; font-size: var(--_typography---font-size--b05); }

/* ---------- Cookie banner ---------- */
.cf-consent {
  position: fixed;
  z-index: 1000;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 34rem;
  margin-left: auto;
  padding: 1.25rem;
  background: var(--cf-white);
  color: var(--cf-black);
  border: 1.5px solid var(--cf-sand);
  border-radius: var(--radius--main);
  box-shadow: 0 10px 30px rgb(26 26 26 / 18%);
  font-size: var(--_typography---font-size--b05);
  line-height: 1.5;
}
.cf-consent[hidden] { display: none; }
.cf-consent_title { font-weight: 700; font-size: var(--_typography---font-size--b0); margin: 0 0 .4em; }
.cf-consent p { margin: 0 0 1em; }
.cf-consent a { text-decoration: underline; }
.cf-consent_actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cf-consent_btn { min-height: 44px; padding: 0 1.1em; border-radius: var(--radius--small); font: inherit; font-weight: 700; cursor: pointer; border: 1.5px solid var(--cf-black); background: var(--cf-white); color: var(--cf-black); }
.cf-consent_btn.is-primary { background: var(--cf-black); color: var(--cf-white); }

/* contact form: paragraph field matches the other inputs */
.cf-contact-textarea { height: auto; min-height: calc(3 * 1.5em + 1.6em); padding: .75em 1em; resize: vertical; line-height: 1.5; }
.contact_footer .form_field { padding-left: 1em; padding-right: 1em; }
.contact_footer .cf-field { gap: .35em; }
.contact_footer .cf-label { margin-top: .5em; }
.contact_footer .cf-required-note { color: var(--swatch--light-100); }

/* secondary pages have a light background: dark logo */
body:not([data-page="home"]) .nav_desktop_logo { color: var(--cf-black); }

/* hero CTA under the headline */
.cf-hero-cta { display: flex; }
.cf-hero-cta .button_main { padding-left: 1.5em; padding-right: 1.5em; }
@media screen and (max-width: 767px) {
  .cf-hero-cta .button_main { width: 100%; justify-content: center; }
}

/* "Starts Dec 1" badge on the 7-day challenge menu button */
.button_main.cf-has-badge { position: relative; overflow: visible; }
.cf-badge-dark { background-color: var(--cf-black); color: var(--cf-white); }
.mobile_menu_dropdown_content .button_main.cf-has-badge { margin-top: .6em; }
.mobile_menu_dropdown_content .button_main.cf-has-badge .cf-nav-badge { left: auto; right: 1em; transform: translateY(-50%); font-size: .75em; }

/* desktop hero: keep the headline on the empty left side of the photo */
@media screen and (min-width: 768px) {
  .hero_headline { max-width: min(11ch, 48vw); }
}

/* hero description under the headline */
.cf-hero-sub {
  max-width: 34ch;
  margin: var(--_spacing---space--6) 0 var(--_spacing---space--6);
  font-size: var(--_typography---font-size--b1);
  line-height: 1.3;
  font-weight: var(--_typography---font--primary-regular);
  text-wrap: pretty;
}
.cf-hero-sub { text-shadow: 0 1px 12px rgb(26 26 26 / 25%); }

/* hero: "Explore" text link next to "Book a meeting" */
.cf-hero-cta { flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; }
.cf-hero-more {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 44px;
  padding: 0 .25em;
  color: inherit;
  font-size: var(--_typography---font-size--b0);
  font-weight: var(--_typography---font--primary-bold);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .35em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color .2s ease;
}
.cf-hero-more span { display: inline-block; transition: transform .25s ease; }
@media (hover: hover) {
  .cf-hero-more:hover { text-decoration-color: currentColor; }
  .cf-hero-more:hover span { transform: translateY(3px); }
}
.cf-anchor { height: 0; }
@media screen and (max-width: 767px) {
  .cf-hero-cta .button_main { flex: 1 1 100%; justify-content: center; }
  .cf-hero-more { margin: 0 auto; }
}

/* last headline line: lighter, smaller, one line, brand accent */
.cf-hero-accent {
  display: block;
  margin-top: .18em;
  font-size: .56em;
  font-weight: var(--_typography---font--primary-regular);
  letter-spacing: -.01em;
  white-space: nowrap;
  color: var(--cf-sand);
}

/* "flow" drawn with the logo animation (documents/flow-word_lottie.json, cut from the footer logo) */
.cf-flow-word { display: inline-block; vertical-align: baseline; }
.cf-flow-lottie {
  display: inline-block;
  height: .86em;
  aspect-ratio: 532 / 154;
  margin-left: .04em;
  vertical-align: -.06em;
}
.cf-flow-lottie svg { overflow: visible; }
.cf-flow-lottie path { fill: currentColor; }
.cf-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* "flow" in the brand yellow */
.cf-flow-lottie { color: var(--swatch--brand-500-main, #ffffa5); }
/* line break that only applies on desktop */
@media screen and (max-width: 767px) { .cf-br-desktop { display: none; } }

/* hero: description and buttons appear after the headline's letter animation, which
   Webflow starts when the page has loaded (js/closerflow.js adds .cf-loaded then) */
@keyframes cf-rise-in { from { opacity: 0; transform: translateY(1em); } to { opacity: 1; transform: none; } }
html.w-mod-js .cf-hero-sub, html.w-mod-js .cf-hero-cta { opacity: 0; }
html.w-mod-js.cf-loaded .cf-hero-sub { animation: cf-rise-in .7s cubic-bezier(.165, .84, .44, 1) 1.1s both; }
html.w-mod-js.cf-loaded .cf-hero-cta { animation: cf-rise-in .7s cubic-bezier(.165, .84, .44, 1) 1.35s both; }
@media (prefers-reduced-motion: reduce) {
  html.w-mod-js .cf-hero-sub, html.w-mod-js .cf-hero-cta { opacity: 1; animation: none !important; }
}
