/* ============================================================
   KOTÉ — kote-shared.css
   Design tokens, shared components, and utilities loaded on
   every KOTÉ page template. Astra's own styles are loaded
   separately by the parent theme.
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  --kote-espresso:    #120a05;
  --kote-dark:        #1e1108;
  --kote-terra:       #c05a28;
  --kote-terra-light: #d97842;
  --kote-gold:        #c9933f;
  --kote-cream:       #f2e8d5;
  --kote-cream-dim:   #d9c9a8;

  /* Per-region accents */
  --kote-veracruz:     #3a7a22;
  --kote-veracruz-mid: #7dba56;
  --kote-chiapas:      #b07820;
  --kote-chiapas-mid:  #d4a84a;
  --kote-oaxaca:       #a82814;
  --kote-oaxaca-mid:   #e06a50;
  --kote-trinity:      #2a3050;
  --kote-trinity-mid:  #a0b0e8;

  /* Layout */
  --kote-section-pad: 7rem 3rem;
  --kote-nav-height:  72px;

  /* Typography */
  --font-display: 'Bodoni Moda', Georgia, serif;
  --font-body:    'Karla', system-ui, sans-serif;
  --font-serif:   'Cormorant Garamond', Georgia, serif;
}

/* ── RESET (scoped to kote-page wrapper) ── */
.kote-page *,
.kote-page *::before,
.kote-page *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── SUPPRESS ASTRA CHROME on KOTÉ templates ────────────────
   Belt-and-suspenders alongside the PHP hook removals in
   functions.php. Catches edge cases (caching, Astra Pro
   elements, sticky headers) that hooks might miss.
   ──────────────────────────────────────────────────────── */
body:has(.kote-page) #masthead,
body:has(.kote-page) .site-header,
body:has(.kote-page) .ast-above-header,
body:has(.kote-page) .ast-below-header,
body:has(.kote-page) .ast-desktop-header,
body:has(.kote-page) .ast-mobile-header,
body:has(.kote-page) #ast-hfb-header,
body:has(.kote-page) .hfb-header,
body:has(.kote-page) #colophon,
body:has(.kote-page) .site-footer,
body:has(.kote-page) .ast-above-footer,
body:has(.kote-page) .ast-below-footer,
body:has(.kote-page) .astra-breadcrumbs,
body:has(.kote-page) .ast-breadcrumbs-wrapper,
body:has(.kote-page) .entry-header,
body:has(.kote-page) .ast-page-title-bar {
  display: none !important;
}

/* Remove Astra's body top padding (added for its sticky header) */
body:has(.kote-page) {
  background: var(--kote-espresso) !important;
  padding-top: 0 !important;
  margin-top:  0 !important;
}

/* Ensure Astra's content wrapper doesn't add unwanted spacing */
body:has(.kote-page) #content,
body:has(.kote-page) #primary,
body:has(.kote-page) .ast-container,
body:has(.kote-page) .site-content {
  padding: 0 !important;
  margin:  0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* ── BODY BASE ── */
body {
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}

.kote-page {
  color: var(--kote-cream);
}

/* ── NAVIGATION ── */
.kote-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999; /* above Astra's z-index of 9997 */
  height: var(--kote-nav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3rem;
  background: linear-gradient(to bottom, rgba(18,10,5,0.96), transparent);
  transition: background 0.4s;
}

.kote-nav.is-scrolled {
  background: rgba(18,10,5,0.97);
  box-shadow: 0 1px 0 rgba(242,232,213,0.05);
}

.kote-nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600; letter-spacing: 0.25em;
  color: var(--kote-cream); text-decoration: none; flex-shrink: 0;
}

.kote-nav__links { display: flex; gap: 2.5rem; list-style: none; }
.kote-nav__links a {
  font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--kote-cream-dim); text-decoration: none; transition: color 0.3s;
}
.kote-nav__links a:hover,
.kote-nav__links a[aria-current="page"] { color: var(--kote-terra-light); }

.kote-nav__cta {
  font-family: var(--font-body);
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--kote-espresso); background: var(--kote-terra);
  padding: 0.6rem 1.4rem; text-decoration: none; flex-shrink: 0; transition: background 0.3s;
}
.kote-nav__cta:hover { background: var(--kote-terra-light); color: var(--kote-espresso); }

/* ── MARQUEE STRIP ── */
.kote-marquee { background: var(--kote-terra); padding: 0.9rem 3rem; overflow: hidden; white-space: nowrap; }
.kote-marquee__inner { display: inline-flex; gap: 4rem; animation: kote-marquee 20s linear infinite; }
.kote-marquee__item { font-family: var(--font-display); font-style: italic; font-size: 0.85rem; letter-spacing: 0.1em; color: var(--kote-espresso); }

/* ── FULL FOOTER ── */
.kote-footer {
  background: var(--kote-espresso);
  border-top: 1px solid rgba(242,232,213,0.07);
  padding: 4rem 3rem 2rem;
}
.kote-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.kote-footer__brand { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: 0.15em; color: var(--kote-cream); display: block; margin-bottom: 0.8rem; }
.kote-footer__tagline { font-family: var(--font-serif); font-style: italic; font-size: 0.9rem; color: var(--kote-cream-dim); display: block; margin-bottom: 1.2rem; }
.kote-footer__desc { font-size: 0.8rem; line-height: 1.75; color: rgba(242,232,213,0.4); max-width: 280px; }
.kote-footer__col-title { font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--kote-terra-light); display: block; margin-bottom: 1.2rem; }
.kote-footer__links { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.kote-footer__links a { font-size: 0.82rem; color: rgba(242,232,213,0.5); text-decoration: none; transition: color 0.3s; }
.kote-footer__links a:hover { color: var(--kote-cream); }
.kote-footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid rgba(242,232,213,0.07); }
.kote-footer__copy { font-size: 0.7rem; color: rgba(242,232,213,0.25); letter-spacing: 0.05em; }
.kote-footer__socials { display: flex; gap: 1.5rem; }
.kote-footer__socials a { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(242,232,213,0.3); text-decoration: none; transition: color 0.3s; }
.kote-footer__socials a:hover { color: var(--kote-terra-light); }

/* Mini footer (regions page) */
.kote-footer--mini { padding: 2rem 3rem; display: flex; justify-content: space-between; align-items: center; }
.kote-footer--mini .kote-footer__logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: 0.2em; color: var(--kote-cream); text-decoration: none; }
.kote-footer--mini .kote-footer__links { flex-direction: row; gap: 2rem; }
.kote-footer--mini .kote-footer__links a { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(242,232,213,0.35); }

/* ── SHARED BUTTONS ── */
.kote-btn {
  font-family: var(--font-body); font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.6rem; transition: all 0.3s;
}
.kote-btn--primary { color: var(--kote-espresso); background: var(--kote-terra); padding: 1rem 2.5rem; }
.kote-btn--primary:hover { background: var(--kote-terra-light); transform: translateY(-2px); color: var(--kote-espresso); }
.kote-btn--ghost { color: var(--kote-cream-dim); border: 1px solid rgba(242,232,213,0.25); padding: 1rem 2.5rem; }
.kote-btn--ghost:hover { border-color: var(--kote-cream-dim); color: var(--kote-cream); }

/* ── TYPOGRAPHY UTILITIES ── */
.kote-eyebrow { font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--kote-terra-light); display: block; }
.kote-display { font-family: var(--font-display); font-weight: 600; line-height: 1.05; color: var(--kote-cream); }

/* ── SCROLL REVEAL ── */
.kote-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.kote-reveal.is-visible { opacity: 1; transform: translateY(0); }
.kote-reveal--d1.is-visible { transition-delay: 0.15s; }
.kote-reveal--d2.is-visible { transition-delay: 0.30s; }
.kote-reveal--d3.is-visible { transition-delay: 0.45s; }

/* ── KEYFRAMES ── */
@keyframes kote-fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes kote-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes kote-scrollPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 0.8; } }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .kote-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .kote-nav { padding: 0 1.5rem; }
  .kote-nav__links { display: none; }
  .kote-footer { padding: 3rem 1.5rem 1.5rem; }
  .kote-footer__grid { grid-template-columns: 1fr; }
  .kote-footer--mini { flex-direction: column; gap: 1.5rem; text-align: center; padding: 2rem 1.5rem; }
  .kote-footer--mini .kote-footer__links { flex-wrap: wrap; justify-content: center; }
}
