/* Texoma Wellness Club — public site
   Colors: clay #C46C60, sage #849C80, charcoal #48484C, cream #FAF7F2
   Headlines: Comfortaa (lowercase). Body, nav, buttons: Poppins.
*/

@font-face {
  font-family: Comfortaa;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/comfortaa-regular.woff2") format("woff2");
}

@font-face {
  font-family: Comfortaa;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/comfortaa-medium.woff2") format("woff2");
}

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/poppins-regular.woff2") format("woff2");
}

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/poppins-medium.woff2") format("woff2");
}

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/poppins-semibold.woff2") format("woff2");
}

:root {
  --clay: #c46c60;
  --clay-hover: #a8574d;
  --clay-text: #8f433c;
  --sage: #849c80;
  --sage-deep: #6f8a6b;
  --charcoal: #48484c;
  --charcoal-soft: #5c5c62;
  --cream: #faf7f2;
  --cream-deep: #f1ece4;
  --white: #ffffff;
  --hero-wash: rgba(250, 247, 242, 0.32);
  --font-display: Comfortaa, "Segoe UI", sans-serif;
  --font-body: Poppins, "Segoe UI", sans-serif;
  --header-h: 5.25rem;
  --content: 72rem;
  --pad: 1.25rem;
  --shadow-focus: 0 0 0 3px var(--cream), 0 0 0 5px var(--charcoal);
  --radius: 0.55rem;
  --ease: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--clay-text);
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--clay-text);
}

a:hover {
  color: var(--clay);
}

:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--charcoal);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0.85rem var(--pad);
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.logo:hover {
  color: inherit;
}

.logo-emblem {
  width: auto;
  height: 3.35rem;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.18rem;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.85rem;
  color: var(--charcoal);
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.logo-tagline {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  white-space: nowrap;
}

.logo-rule {
  display: block;
  width: 2.15rem;
  height: 1.5px;
  background: var(--sage);
  flex-shrink: 0;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 400;
  font-size: 1rem;
  padding: 0.35rem 0;
  position: relative;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--clay-text);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1rem;
  height: 1px;
  background: var(--clay);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 0.4rem;
  flex-shrink: 0;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.35rem;
  height: 1.75px;
  background: var(--charcoal);
  border-radius: 1px;
  position: absolute;
  left: 50%;
  top: 50%;
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle-bar {
  transform: translate(-50%, -50%);
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
}

.nav-toggle-bar::before {
  transform: translate(-50%, -6px);
}

.nav-toggle-bar::after {
  transform: translate(-50%, 6px);
}

body.nav-open .nav-toggle-bar {
  background: transparent;
}

body.nav-open .nav-toggle-bar::before {
  transform: translate(-50%, 0) rotate(45deg);
}

body.nav-open .nav-toggle-bar::after {
  transform: translate(-50%, 0) rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 0.9rem 2.15rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform 0.15s ease;
}

.btn-clay {
  background: var(--clay);
  color: var(--white);
  border-color: var(--clay);
}

.btn-clay:hover,
.btn-clay:focus-visible {
  background: var(--clay-hover);
  border-color: var(--clay-hover);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--white);
  color: var(--clay-text);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--header-h));
  min-height: calc(100vh - var(--header-h));
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #e2e0dc;
  background-image: url("assets/hero.jpg");
  background-size: cover;
  background-position: center;
}

/* Light cream wash so the clay headline stays readable when the photo is swapped. */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-wash);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem var(--pad) 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.75rem, 6vw, 4.35rem);
  color: var(--clay-text);
  margin: 0 auto 1.15rem;
}

.hero h1 .hero-line {
  display: block;
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 1.85vw, 1.35rem);
  line-height: 1.45;
  color: var(--clay-text);
  margin: 0 0 1.85rem;
  max-width: 46rem;
  text-transform: lowercase;
}

.hero-curve {
  position: relative;
  z-index: 2;
  line-height: 0;
  margin-top: auto;
  pointer-events: none;
}

.curve-svg {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1440 / 422.67;
}

/* ---------- Pillars ---------- */

.pillars {
  background: var(--cream);
  padding: 1.25rem var(--pad) 3.75rem;
  margin-top: -2px;
  position: relative;
  z-index: 3;
}

.pillars-inner {
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 1.5rem;
}

.pillar {
  text-align: center;
  max-width: 18rem;
  margin: 0 auto;
}

.pillar-icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 0.95rem;
  color: var(--sage);
}

.pillar-icon svg {
  width: 100%;
  height: 100%;
}

.pillar h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.2rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--charcoal);
  margin: 0 0 0.45rem;
  line-height: 1.3;
}

.pillar p {
  margin: 0;
  color: var(--charcoal-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---------- Membership band ---------- */

.cta-band {
  background: var(--clay);
  color: var(--white);
  padding: 2.35rem var(--pad);
}

.cta-inner {
  max-width: var(--content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  letter-spacing: -0.02em;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--cream-deep);
  color: var(--charcoal);
  padding: 2.75rem var(--pad) 2.25rem;
}

.footer-inner {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.logo-footer .logo-emblem {
  height: 2.85rem;
}

.logo-footer .logo-name {
  font-size: 1.55rem;
}

.footer-place {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: var(--charcoal-soft);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
  margin: 0.35rem 0;
}

.footer-nav a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--clay-text);
}

.footer-copy {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
}

.footer-disclaimer {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--charcoal-soft);
  max-width: 36rem;
}

/* ---------- Inner pages ---------- */

.page {
  background: var(--cream);
  min-height: calc(100svh - var(--header-h) - 16rem);
}

.page-inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3.5rem var(--pad) 5rem;
}

.page h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin-bottom: 1.25rem;
}

.page p {
  font-size: 1.05rem;
  margin-bottom: 1.15rem;
}

.page .btn {
  margin-top: 0.75rem;
}

.text-link {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* ---------- Breakpoints ---------- */

@media (min-width: 600px) {
  :root {
    --pad: 2rem;
    --header-h: 5.75rem;
  }

  .hero-sub {
    white-space: nowrap;
  }

  .logo-emblem {
    height: 3.7rem;
  }

  .logo-name {
    font-size: 2.05rem;
  }

  .logo-tagline {
    font-size: 0.58rem;
    letter-spacing: 0.24em;
  }

  .pillars-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.75rem 2rem;
    padding: 0 1rem;
  }

  .cta-inner {
    flex-direction: row;
    gap: 2rem;
  }

  .cta-band {
    padding: 2.6rem var(--pad);
  }
}

@media (min-width: 900px) {
  :root {
    --pad: 2.5rem;
  }

  .header-inner {
    padding: 0.9rem var(--pad);
  }

  .logo-emblem {
    height: 3.9rem;
  }

  .hero-content {
    padding: 4.5rem var(--pad) 2rem;
  }

  .pillars {
    padding: 1.5rem var(--pad) 4.5rem;
  }

  .pillars-inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem 1.5rem;
  }

  .pillar {
    max-width: none;
  }
}

@media (max-width: 799px) {
  .nav-toggle {
    display: block;
    z-index: 50;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream);
    border-top: 1px solid var(--cream-deep);
    box-shadow: 0 16px 28px rgba(72, 72, 76, 0.08);
    padding: 0.5rem 0 1.25rem;
    display: none;
  }

  body.nav-open .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.9rem var(--pad);
    font-size: 1.1rem;
  }

  .site-nav a:hover::after,
  .site-nav a[aria-current="page"]::after {
    display: none;
  }

  .header-inner {
    min-height: 4.75rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  :root {
    --header-h: 4.75rem;
  }

  .logo-emblem {
    height: 2.85rem;
  }

  .logo-name {
    font-size: 1.55rem;
  }

  .logo-tagline {
    font-size: 0.45rem;
    letter-spacing: 0.18em;
    gap: 0.35rem;
  }

  .logo-rule {
    width: 1.6rem;
  }

  .hero {
    min-height: 0;
  }

  .hero-content {
    padding: 3.25rem var(--pad) 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
