/**
 * Kendra visual system — presentation overlay for the existing GTTG website.
 *
 * Aesthetic only on the existing page structure (Squarespace exports and
 * first-party pages). Does not replace form handlers, API contracts, checkout,
 * member hub auth, or consent mechanisms.
 *
 * Token / component source: Kendra public-concept main.css (also mirrored as
 * apps/web/assets/kendra-main.css for reference). Prefer this overlay over
 * wholesale HTML transplants.
 */
:root {
  --gttg-ink: #171715;
  --gttg-paper: #f4f2ed;
  --gttg-white: #faf8f3;
  --gttg-red: #ff3937;
  --gttg-red-hover: #ff625d;
  --gttg-line: #cbc8c0;
  --gttg-deep: #151514;
  --gttg-coffee: #242322;
  --gttg-nav: #e3e0db;
  --gttg-display: pragmatica-extended, "Helvetica Neue", Arial, sans-serif;
  --gttg-body: "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Remap Squarespace theme HSL tokens toward Kendra palette */
  --black-hsl: 60, 4.55%, 8.63%;
  --white-hsl: 42.86, 41.18%, 96.67%;
  --accent-hsl: 42.86, 24.14%, 94.31%;
  --lightAccent-hsl: 42.86, 41.18%, 96.67%;
  --darkAccent-hsl: 60, 2.44%, 8.04%;
  --safeLightAccent-hsl: 42.86, 24.14%, 94.31%;
  --safeDarkAccent-hsl: 60, 4.55%, 8.63%;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  color: var(--gttg-ink);
  background: var(--gttg-paper);
  font-family: var(--gttg-body);
}

/* Display / heading weight toward Kendra display face */
h1,
h2,
h3,
h4,
.header-nav-item a,
.header-title-text,
.sqs-block-button-element,
.newsletter-form-button,
.newsletter-form-header-title {
  font-family: var(--gttg-display);
}

/* Existing brand accent spans (#EE3A39 / #EF3B39) → Kendra red */
.sqsrte-text-color--custom {
  color: var(--gttg-red) !important;
}

/* -------------------------------------------------------------------------- */
/* Header — dark sticky presentation                                          */
/* -------------------------------------------------------------------------- */
#header.header,
header.header,
.header .header-announcement-bar-wrapper,
.header .header-inner {
  background-color: var(--gttg-deep) !important;
  background-image: none !important;
  color: var(--gttg-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.header .header-nav-item a,
.header .header-nav-folder-title,
.header .header-menu-nav-item a,
.header .header-burger-btn,
.header .burger-inner > div {
  color: var(--gttg-nav) !important;
}

.header .header-nav-item a:hover,
.header .header-menu-nav-item a:hover {
  color: #ff8e87 !important;
}

.header .header-actions .sqs-button-element--primary,
.header .header-actions-action .btn,
.header .header-actions .btn {
  background: var(--gttg-red) !important;
  border: 1px solid var(--gttg-red) !important;
  color: #121212 !important;
  border-radius: 3px !important;
  font-family: var(--gttg-display);
  font-size: 10px;
  letter-spacing: 0.22px;
  font-weight: 700;
  text-transform: uppercase;
  min-height: 39px;
  padding: 9px 14px !important;
}

.header .header-actions .sqs-button-element--primary:hover,
.header .header-actions-action .btn:hover {
  background: var(--gttg-red-hover) !important;
  border-color: var(--gttg-red-hover) !important;
}

/* Mobile menu drawer */
.header-menu,
.header-menu-bg,
.header-menu-nav-folder {
  background: var(--gttg-deep) !important;
  color: var(--gttg-white);
}

/* -------------------------------------------------------------------------- */
/* Section backgrounds                                                        */
/* -------------------------------------------------------------------------- */
.page-section.bright,
.page-section[data-section-theme="bright"] {
  background-color: var(--gttg-paper) !important;
  color: var(--gttg-ink);
}

.page-section.black-bold,
.page-section[data-section-theme="black-bold"],
.page-section.dark,
.page-section[data-section-theme="dark"],
.page-section.dark-bold,
.page-section[data-section-theme="dark-bold"] {
  background-color: var(--gttg-coffee) !important;
}

/* -------------------------------------------------------------------------- */
/* Buttons / CTAs — Kendra red solid treatment                                */
/* -------------------------------------------------------------------------- */
.sqs-button-element--primary,
.sqs-block-button-element--primary,
a.sqs-block-button-element.sqs-button-element--primary,
button.sqs-button-element--primary,
.newsletter-form-button {
  background: var(--gttg-red) !important;
  background-color: var(--gttg-red) !important;
  border: 1px solid var(--gttg-red) !important;
  color: #121212 !important;
  border-radius: 3px !important;
  font-family: var(--gttg-display);
  font-weight: 700;
  letter-spacing: 0.22px;
  text-transform: uppercase;
  box-shadow: none !important;
}

.sqs-button-element--primary:hover,
.sqs-block-button-element--primary:hover,
a.sqs-block-button-element.sqs-button-element--primary:hover,
button.sqs-button-element--primary:hover,
.newsletter-form-button:hover {
  background: var(--gttg-red-hover) !important;
  background-color: var(--gttg-red-hover) !important;
  border-color: var(--gttg-red-hover) !important;
  color: #121212 !important;
}

.sqs-button-element--secondary,
.sqs-block-button-element--secondary {
  border-radius: 3px !important;
  border-color: #777 !important;
  background: transparent !important;
  color: inherit !important;
  font-family: var(--gttg-display);
  font-weight: 700;
  letter-spacing: 0.22px;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/* Forms / newsletter                                                         */
/* -------------------------------------------------------------------------- */
.newsletter-block,
.newsletter-form-wrapper,
.newsletter-form {
  font-family: var(--gttg-body);
}

.newsletter-form-header-title {
  letter-spacing: 0.08em;
}

.newsletter-form-field-wrapper input,
.newsletter-form-field-element,
.form-wrapper input[type="text"],
.form-wrapper input[type="email"],
.form-wrapper input[type="tel"],
.form-wrapper textarea {
  border-radius: 3px !important;
  border-color: var(--gttg-line) !important;
  background: var(--gttg-white) !important;
  color: var(--gttg-ink) !important;
}

/* -------------------------------------------------------------------------- */
/* Cards / images / spacing polish                                            */
/* -------------------------------------------------------------------------- */
.sqs-block-image img,
.fluid-image-container img,
.image-block-wrapper img {
  border-radius: 0;
}

.sqs-block-html a:not(.sqs-block-button-element) {
  text-underline-offset: 0.18em;
}

/* Footer sections */
#footer-sections,
#footer-sections .page-section {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

#footer-sections a:hover {
  color: #ff8e87 !important;
}

/* Focus ring closer to concept (blue accessibility ring retained) */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid #3482fe;
  outline-offset: 4px;
}

/* -------------------------------------------------------------------------- */
/* Mobile / responsive polish                                                 */
/* -------------------------------------------------------------------------- */
@media (max-width: 780px) {
  .header .header-actions .sqs-button-element--primary,
  .header .header-actions-action .btn {
    min-height: 36px;
    padding: 8px 12px !important;
    font-size: 10px;
  }
}

/* -------------------------------------------------------------------------- */
/* Burger / mobile controls on dark header                                    */
/* -------------------------------------------------------------------------- */
.header .burger-inner > div,
.header .header-burger-btn .burger-inner > div,
.header .burger--active .burger-inner > div {
  background-color: var(--gttg-nav) !important;
}

.header .header-title-logo img {
  max-height: 72px;
}

/* -------------------------------------------------------------------------- */
/* Nav active / focus polish                                                  */
/* -------------------------------------------------------------------------- */
.header .header-nav-item--active > a,
.header .header-menu-nav-item--active > a {
  color: #ff8e87 !important;
}

.header a:focus-visible,
.header button:focus-visible {
  outline: 3px solid #3482fe;
  outline-offset: 3px;
}

/* -------------------------------------------------------------------------- */
/* Text blocks / hierarchy                                                    */
/* -------------------------------------------------------------------------- */
.sqs-html-content h1,
.sqs-html-content h2,
.sqs-html-content h3,
.sqs-text-block-container h1,
.sqs-text-block-container h2,
.sqs-text-block-container h3 {
  font-family: var(--gttg-display);
  letter-spacing: -0.02em;
}

.sqs-html-content p,
.sqs-text-block-container p {
  font-family: var(--gttg-body);
}

/* -------------------------------------------------------------------------- */
/* Disabled / aria-disabled CTAs                                              */
/* -------------------------------------------------------------------------- */
.sqs-button-element--primary[aria-disabled="true"],
.sqs-block-button-element[aria-disabled="true"],
button.sqs-button-element--primary:disabled,
.newsletter-form-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

/* -------------------------------------------------------------------------- */
/* Free-guide chrome when present                                             */
/* -------------------------------------------------------------------------- */
[data-gttg-free-guide] .sqs-button-element--primary,
#free-guide .sqs-button-element--primary {
  background: var(--gttg-red) !important;
  color: #121212 !important;
  border-radius: 3px !important;
}

/* -------------------------------------------------------------------------- */
/* Footer rhythm                                                              */
/* -------------------------------------------------------------------------- */
#footer-sections .sqs-html-content a,
#footer-sections a {
  text-underline-offset: 0.16em;
}

#footer-sections .page-section.dark-bold,
#footer-sections .page-section[data-section-theme="dark-bold"] {
  background-color: var(--gttg-deep) !important;
}

/* -------------------------------------------------------------------------- */
/* Search / utility pages                                                     */
/* -------------------------------------------------------------------------- */
body.search-page,
body[class*="collection-type-search"] {
  background: var(--gttg-paper);
  color: var(--gttg-ink);
}


/* -------------------------------------------------------------------------- */
/* Kendra source-bound polish (from docs/.../main.css @ fa526da)              */
/* -------------------------------------------------------------------------- */
#header.header,
header.header {
  min-height: 76px;
}

.header .header-nav-item a,
.header .header-menu-nav-item a {
  font-size: 13px;
  font-weight: 610;
  letter-spacing: 0;
}

#footer-sections,
#footer-sections .page-section.dark-bold,
#footer-sections .page-section[data-section-theme="dark-bold"],
#footer-sections .page-section.black-bold,
#footer-sections .page-section[data-section-theme="black-bold"] {
  background-color: #171715 !important;
  color: var(--gttg-white);
}

#footer-sections a {
  color: #d9d6ce;
}

.sqs-button-element--primary,
.sqs-block-button-element--primary,
.newsletter-form-button {
  min-height: 46px;
  gap: 12px;
  padding: 12px 19px !important;
  font-size: 11px;
  letter-spacing: 0.22px;
}

/* First-party pages that include this stylesheet */
header.site {
  background: #151514 !important;
  color: #faf8f3 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16) !important;
  min-height: 72px;
}
header.site a { color: #e3e0db !important; }
header.site a:hover { color: #ff8e87 !important; }


/* -------------------------------------------------------------------------- */
/* Sitewide cohesion addendum (post homepage-structure restore)               */
/* -------------------------------------------------------------------------- */

/* Compact sticky chrome closer to Kendra single-row header */
#header.header,
header.header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .header-title-logo img {
  max-height: 40px;
}

/* Paper body + soft section rhythm */
body:not([data-gttg-member-hub]) {
  background: var(--gttg-paper);
}

.page-section.bright .section-background,
.page-section[data-section-theme="bright"] .section-background {
  background-color: var(--gttg-paper) !important;
}

/* Outline / secondary CTAs on dark sections need light text */
.page-section.black-bold .sqs-button-element--secondary,
.page-section.dark .sqs-button-element--secondary,
.page-section.dark-bold .sqs-button-element--secondary,
.page-section[data-section-theme="black-bold"] .sqs-button-element--secondary,
.page-section[data-section-theme="dark"] .sqs-button-element--secondary,
.page-section[data-section-theme="dark-bold"] .sqs-button-element--secondary {
  color: #faf8f3 !important;
  border-color: #777 !important;
}

/* First-party secondary buttons on dark headers */
header.site .outline,
header.site a.outline {
  color: #faf8f3 !important;
}

/* Form status affordance used by gttg-form-intake.js */
[data-gttg-intake-status][data-gttg-intake-state="ok"] { color: #0a7a32; }
[data-gttg-intake-status][data-gttg-intake-state="error"] { color: #b00020; }
[data-gttg-intake-status][data-gttg-intake-state="pending"] { color: #555; }

/* Cookie banner (Squarespace Static) — restyle only, do not replace controls */
.sqs-cookie-banner-v2,
.sqs-cookie-banner-v2-component,
[class*="cookie-banner"] {
  font-family: var(--gttg-body);
}

.sqs-cookie-banner-v2 .sqs-cookie-banner-v2-accept,
.sqs-cookie-banner-v2 button[data-action="accept"] {
  background: var(--gttg-red) !important;
  color: #121212 !important;
  border-radius: 3px !important;
  border: 1px solid var(--gttg-red) !important;
}

/* Visual-acceptance board stays out of marketing chrome */
body.gttg-visual-acceptance {
  background: var(--gttg-paper);
}

/* Mobile site navigation: mirror the main stylesheet menu behaviour so
   every Kendra page with a header nav collapses to a labelled menu button
   on narrow viewports instead of overflowing the header. */
@media (max-width: 780px) {
  header.site .wrap { flex-wrap: wrap; }
  header.site .menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; background: none; border: 1px solid rgba(250,248,243,.35); color: #faf8f3; border-radius: 3px; padding: 8px 12px; font: inherit; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
  header.site nav.site-nav { display: none; width: 100%; }
  header.site nav.site-nav.open { display: block; }
  header.site nav.site-nav ul { flex-direction: column; gap: 2px; padding-bottom: 12px; }
  header.site nav.site-nav a { display: block; padding: 10px 0; }
}

