/* ==========================================================================
   Shaina Young Wellness — shared stylesheet
   ========================================================================== */

:root {
  /* Brand palette — sampled from the existing site */
  --purple-deep:   #4A2E6D;   /* headings, logo, primary text on light */
  --purple-mid:    #5F4B85;   /* secondary buttons/accents (Yoga tile) */
  --purple-soft:   #7A6796;   /* muted nav text, captions */
  --gold:          #E0A63E;   /* hero gradient / warm section backgrounds */
  --gold-dark:     #C6862A;   /* gradient edge, hover states */
  --gold-bright:   #EAC94A;   /* primary CTA buttons */
  --gold-bright-dark: #D9B633;
  --cream:         #FFFCF6;   /* page background */
  --white:         #FFFFFF;
  --ink:           #3A3145;  /* body copy */
  --ink-soft:      #6B6478;  /* secondary copy */
  --border:        #EDE3D0;

  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  --max-width: 1180px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--purple-deep);
  margin: 0 0 0.5em 0;
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 0.6em;
  display: block;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--purple-deep);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 72px;
  width: auto;
}

.brand-text {
  font-family: var(--font-display);
  line-height: 1.05;
}

.brand-text .name {
  display: block;
  font-size: 1.5rem;
  color: var(--purple-deep);
  font-weight: 600;
}

.brand-text .tag {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--purple-deep);
}

.main-nav a.active {
  color: var(--purple-deep);
  border-bottom-color: var(--gold-bright);
}

.nav-cta {
  background: var(--purple-deep);
  color: var(--white) !important;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--purple-mid); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--purple-deep);
  border-radius: 2px;
}

@media (max-width: 880px) {
  .main-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border-top: 1px solid var(--border);
  }
  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-toggle { display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  overflow: hidden;
}

.hero-sun {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 84px 0 60px;
  max-width: 720px;
}

.hero h1 {
  color: var(--purple-deep);
}

.hero p.lede {
  font-size: 1.2rem;
  color: var(--purple-deep);
  opacity: 0.9;
  max-width: 560px;
}

.hero-tiles {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.hero-tile {
  flex: 1 1 260px;
  padding: 26px 32px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.15s ease;
}

.hero-tile:hover { filter: brightness(1.05); }

.hero-tile.gold {
  background: var(--gold-bright);
  color: var(--purple-deep);
}
.hero-tile.purple {
  background: var(--purple-mid);
  color: var(--white);
}

/* Simple page header (non-home pages) */
.page-hero {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--purple-deep); margin-bottom: 0.2em; }
.page-hero p { color: var(--purple-deep); opacity: 0.9; font-size: 1.1rem; max-width: 640px; }

/* ==========================================================================
   Sections
   ========================================================================== */

section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

.section-alt {
  background: var(--white);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col.reverse .col-img { order: -1; }
}

.col-img img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
}

.pill-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  color: var(--purple-deep);
  border-bottom: 2px solid var(--gold-bright);
  padding-bottom: 2px;
}
.pill-link:hover { color: var(--purple-mid); }

/* Balance / Body / Breath trio */
.trio-heading {
  text-align: center;
  margin-bottom: 40px;
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 780px) {
  .trio { grid-template-columns: 1fr; gap: 36px; }
}

.trio-item {
  text-align: center;
}

.trio-item img {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
}

.trio-item h3 { margin-bottom: 0.4em; }
.trio-item p { color: var(--ink-soft); font-size: 0.98rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gold-bright);
  color: var(--purple-deep);
}
.btn-secondary {
  background: var(--purple-deep);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--purple-deep);
  border: 2px solid var(--purple-deep);
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }

/* Program / list chips */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 28px 0;
}
@media (max-width: 560px) {
  .chip-grid { grid-template-columns: 1fr; }
}
.chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-weight: 700;
  color: var(--purple-deep);
  display: flex;
  align-items: center;
  gap: 10px;
}
.chip .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold-bright);
  flex-shrink: 0;
}

/* Fast facts list */
.facts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.facts-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  padding-left: 44px;
  position: relative;
}
.facts-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-bright);
}

/* Studio / location card */
.studio-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.studio-card .addr { color: var(--ink-soft); }

/* Callout band */
.callout {
  background: var(--purple-deep);
  color: var(--white);
  text-align: center;
  padding: 56px 0;
}
.callout h2 { color: var(--white); }
.callout p { color: #E7DFF0; max-width: 560px; margin: 0 auto 20px; }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.info-row {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}
.info-row .icon {
  width: 22px;
  flex-shrink: 0;
  color: var(--gold-dark);
  font-weight: 700;
}
.info-row strong { display: block; color: var(--purple-deep); }

form.contact-form {
  display: grid;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 6px;
  font-size: 0.92rem;
}

input, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}
input:focus, textarea:focus {
  outline: 2px solid var(--gold-bright);
  outline-offset: 1px;
  border-color: var(--gold-bright);
}
textarea { resize: vertical; min-height: 130px; }

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.form-status {
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  display: none;
}
.form-status.success {
  display: block;
  background: #EAF6EA;
  color: #2C6B2F;
}
.form-status.error {
  display: block;
  background: #FBEAEA;
  color: #A23A3A;
}

/* Honeypot field (spam trap) */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer-strip {
  width: 100%;
  height: 8px;
  object-fit: cover;
  display: block;
}

.site-footer {
  background: var(--purple-deep);
  color: #D9CFE6;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.footer-brand img { height: 40px; }
.footer-brand span {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 600;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.85rem;
  color: #C6B9DA;
  text-align: center;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
