/* EnnVision Coaching — custom, mobile-first stylesheet
   Palette: maroon #8c1f2a, cream #f4eee5. Type: Open Sans.
   This file is edited directly (no build step). */

:root {
  --maroon: #8c1f2a;
  --maroon-dark: #6f1822;
  --maroon-deep: #5c141d;
  --cream: #f4eee5;
  --ink: #2c2a28;
  --muted: #5f5b57;
  --line: #e6ded2;
  --white: #ffffff;
  --container: 1140px;
  --radius: 4px;
  --shadow: 0 18px 40px -24px rgba(0,0,0,.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  background: var(--white);
  scroll-padding-top: 80px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.15rem); color: var(--maroon); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
em { font-style: italic; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.container--narrow { max-width: 760px; }
.center { text-align: center; }
.section { padding: clamp(48px, 4vw + 32px, 84px) 0; }
.section--cream { background: var(--cream); }
.section__title { margin-bottom: .7em; }
.section__title--center { text-align: center; margin-bottom: 1.4em; }
.rte > :last-child { margin-bottom: 0; }
.rte strong { color: inherit; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { flex: 0 0 auto; min-width: 0; }
.brand img { display: block; height: auto; width: auto; max-height: 46px; max-width: 100%; }
.nav { flex: 0 0 auto; }
.nav__list { list-style: none; display: flex; align-items: center; flex-wrap: nowrap; justify-content: flex-end; gap: 18px; margin: 0; padding: 0; }
.nav__cta .btn { padding: 12px 18px; }
.nav__list > li > a:not(.btn) {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem;
  letter-spacing: .01em; padding: 6px 0; position: relative; white-space: nowrap;
}
.nav__list > li > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--maroon); transition: right .25s ease;
}
.nav__list > li > a:not(.btn):hover::after { right: 0; }
.nav__cta { margin-left: 4px; }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none;
  font-weight: 700; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase;
  padding: 13px 26px; border-radius: var(--radius); border: 2px solid var(--maroon);
  transition: background .2s, color .2s, border-color .2s, transform .05s;
  line-height: 1; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--maroon); color: #fff; }
.btn--solid:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); }
.btn--ghost { background: transparent; color: var(--maroon); }
.btn--ghost:hover { background: var(--maroon); color: #fff; }
.btn--light { background: #fff; color: var(--maroon); border-color: #fff; }
.btn--light:hover { background: var(--cream); border-color: var(--cream); }
.section .btn, .hero .btn { margin-top: 8px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: clamp(420px, 64vh, 620px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; background-size: cover; background-position: center 28%; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.12) 45%, rgba(0,0,0,.62) 100%); }
.hero__inner { position: relative; width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px clamp(34px, 5vw, 64px); color: #fff; text-align: center; }
.hero__title { font-size: clamp(2.1rem, 1.2rem + 4.2vw, 4rem); color: #fff; margin: 0 0 .25em; text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.hero__sub { font-size: clamp(1rem, .9rem + .5vw, 1.25rem); max-width: 620px; margin: 0 auto; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.hero__sub p { margin: 0; }

/* ---------- split (text + media) ---------- */
.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(28px, 4vw, 56px); }
.split__body { flex: 1 1 380px; min-width: 0; }
.split__media { flex: 1 1 320px; min-width: 0; }
.split__media img { width: 100%; border-radius: 8px; box-shadow: var(--shadow); }
@media (min-width: 880px) {
  .split__media { flex: 0 1 44%; max-width: 44%; position: sticky; top: 96px; }
  .split__body { flex: 1 1 0; }
}

/* ---------- dark sections (services + testimonials) ---------- */
.section--dark { position: relative; color: #fff; background: var(--maroon-deep); }
.section--dark::before {
  content: ""; position: absolute; inset: 0;
  background: url(../images/texture.jpg) center/cover, var(--maroon);
  background-blend-mode: multiply; opacity: .92; z-index: 0;
}
.section--dark > .container { position: relative; z-index: 1; }
.section--dark h2, .section--dark h3 { color: #fff; }

/* services cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: clamp(24px, 3vw, 38px); }
.card { text-align: center; }
.card__media { margin: 0 auto 18px; width: 100%; max-width: 260px; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; box-shadow: 0 14px 30px -16px rgba(0,0,0,.6); border: 4px solid rgba(255,255,255,.14); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__title { margin-bottom: .5em; font-size: 1.25rem; letter-spacing: .01em; }
.card__text { margin: 0; color: rgba(255,255,255,.86); font-size: .96rem; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); align-items: start; } .card__media { max-width: 230px; } }

/* testimonials */
.quotes { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: 1fr; gap: clamp(20px, 2.5vw, 30px); }
.quote { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 30px 26px 26px; position: relative; }
.quote::before { content: "\201C"; position: absolute; top: 2px; left: 18px; font-size: 4.2rem; line-height: 1; color: rgba(255,255,255,.18); font-family: Georgia, serif; }
.quote__text { font-style: italic; margin: 10px 0 18px; color: rgba(255,255,255,.95); }
.quote__author { margin: 0; font-weight: 700; font-size: .95rem; }
.quote__role { display: block; font-weight: 400; font-style: italic; font-size: .85rem; color: rgba(255,255,255,.7); }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--maroon-deep); color: rgba(255,255,255,.92); text-align: center; padding: clamp(44px, 4vw, 64px) 0; }
.site-footer::before {
  content: ""; position: absolute; inset: 0;
  background: url(../images/texture.jpg) center/cover, var(--maroon);
  background-blend-mode: multiply; opacity: .92; z-index: 0;
}
.footer__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer__brand img { height: 64px; width: auto; margin-bottom: 6px; }
.footer__addr, .footer__email { margin: 0; font-size: .96rem; }
.footer__email a { color: #fff; }
.site-footer .btn { margin: 14px 0 6px; }
.footer__copy { margin: 14px 0 0; font-size: .82rem; color: rgba(255,255,255,.6); letter-spacing: .03em; }

/* ---------- mobile nav ---------- */
@media (max-width: 1079px) {
  .brand { flex: 0 1 auto; }
  .brand img { max-height: 40px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 40px; padding: 0 9px; background: none; border: 0; cursor: pointer;
    flex: 0 0 auto;
  }
  .nav-toggle span { height: 2px; background: var(--maroon); border-radius: 2px; transition: transform .25s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease; box-shadow: 0 16px 24px -18px rgba(0,0,0,.4);
  }
  .nav.is-open { max-height: 80vh; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 22px 22px; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__list > li > a:not(.btn) { display: block; padding: 14px 2px; font-size: 1rem; }
  .nav__list > li > a:not(.btn)::after { display: none; }
  .nav__cta { border-bottom: 0 !important; margin: 14px 0 0; }
  .nav__cta .btn { display: block; text-align: center; }
  .nav__cta + .nav__cta { margin-top: 10px; }
}
@media (min-width: 1080px) { .nav { max-height: none !important; } }

/* reduce motion */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
