:root {
  --color-bg: #faf5ea;
  --color-text: #33301f;
  --color-sage: #7c8463;
  --color-sage-dark: #5e6549;
  --color-blush: #e3a6a1;
  --color-blush-dark: #c97f7a;
  --color-card-bg: #fffdf8;
  --color-border: #e6ddc6;
  --color-olive: #3d4230;
  --color-blush-light: #f3d8d5;
  --font-display: 'Marcellus', 'Georgia', serif;
  --font-body: 'PT Serif', Georgia, 'Times New Roman', serif;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
}

.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-sage-dark);
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
}

a {
  color: var(--color-blush-dark);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--color-sage);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--color-sage-dark);
}

/* Header / nav */

.site-header {
  background: transparent;
  border-bottom: none;
}

.site-nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.nav-logo img {
  height: 120px;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-sage-dark);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--color-blush-dark);
}

.nav-links a.active {
  text-decoration: underline;
}

/* Home: nav floats over the full-bleed hero photo */
body.nav-overlay .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}

body.nav-overlay main {
  padding-top: 0;
}

/* Home + Services: nav sits on a photo or the dark olive band, needs light text */
body.nav-light .nav-links a {
  color: #fff;
}

body.nav-light .nav-links a.active,
body.nav-light .nav-links a:hover {
  color: var(--color-blush);
}

/* Services: solid olive header flows directly into the olive intro band below it */
body.page-services .site-header {
  background: var(--color-olive);
}

body.page-services main {
  padding-top: 0;
}

/* Flash messages */

.flash-messages {
  max-width: 960px;
  margin: 1rem auto 0;
  padding: 0 1.5rem;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.flash-success {
  background: #e4f0dd;
  color: #3f5c2e;
}

.flash-error {
  background: #f6e2df;
  color: #93362c;
}

/* Hero / background sections */

.hero,
.enrollment-banner {
  background-size: cover;
  background-position: center;
  border-radius: 0;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero {
  margin-top: 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 12, 0.15), rgba(20, 18, 12, 0.5));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.enrollment-banner {
  min-height: 60vh;
}

.enrollment-banner-content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6%;
  width: 44%;
  max-width: none;
  background: var(--color-blush-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
  border-radius: 0;
}

@media (max-width: 720px) {
  .enrollment-banner {
    min-height: 0;
  }

  .enrollment-banner-content {
    position: static;
    width: 100%;
    left: auto;
    padding: 2rem 1.5rem;
  }
}

.tagline-banner {
  text-align: center;
  padding: 1.5rem 1rem;
}

.tagline-banner h2 {
  font-size: 2rem;
  color: var(--color-blush-dark);
}

/* About */

body.page-about {
  background: #fff;
}

body.page-about main {
  max-width: 1100px;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.about h1 {
  font-size: 2.75rem;
}

.about-body {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.about-photo {
  width: 46%;
  min-width: 320px;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
  clip-path: url(#cloud-mask);
}

@supports not (clip-path: url(#cloud-mask)) {
  .about-photo {
    border-radius: 1.5rem;
  }
}

.about-bio {
  flex: 1;
  min-width: 280px;
  font-size: 1.05rem;
}

/* Services */

.services-intro {
  background: var(--color-olive);
  padding: 3rem 1.5rem 4rem;
}

.services-intro-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.services-intro-inner h1 {
  color: #fff;
}

.services-intro-inner p {
  color: rgba(255, 255, 255, 0.92);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.service-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.service-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-blush-dark);
}

.enrollment-requirements {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
}

.policy-note {
  font-size: 0.9rem;
  color: #6b6555;
}

.services-cta {
  text-align: center;
  padding: 2rem 0;
}

/* Contact */

body.page-contact {
  background: var(--color-blush-light);
}

body.page-contact main {
  max-width: 1100px;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.contact {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.contact-copy {
  flex: 1 1 420px;
}

.contact-photo {
  flex: 1 1 420px;
}

.contact-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  object-fit: cover;
}

@media (max-width: 800px) {
  .contact {
    flex-direction: column;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-form label {
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  padding: 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}

.contact-form input.field-invalid,
.contact-form textarea.field-invalid {
  border-color: #93362c;
}

.contact-form button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */

.site-footer {
  background: var(--color-blush);
  padding: 3rem 1.5rem;
  color: var(--color-text);
  font-size: 1rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.footer-email a {
  color: var(--color-text);
  font-size: 1.05rem;
  text-decoration: none;
}

.footer-email a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
