/* ============================================
   Emma Crosbie Wellness - Stylesheet
   A calm, feel-good aesthetic inspired by the
   brand's soft rainbow mandala mark.
   ============================================ */

:root {
  /* Palette - soft pastel rainbow (from the brand mark) + warm neutrals */
  --cream:        #FBF6EE;
  --cream-deep:   #F3ECE0;
  --ink:          #3C3430;
  --ink-soft:     #6B6058;
  --blush:        #F3C9CE;
  --peach:        #F6D4B4;
  --gold:         #F2E3A8;
  --sage:         #B9D2B2;
  --sage-deep:    #8CB086;
  --sky:          #BBD8E8;
  --lavender:     #D7C7E6;
  --rose:         #CE8A96;
  --rose-deep:    #B96E7C;
  --white:        #FFFFFF;

  --rainbow: linear-gradient(90deg, var(--blush), var(--peach), var(--gold), var(--sage), var(--sky), var(--lavender));

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Quicksand', 'Trebuchet MS', sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(60, 52, 48, 0.08);
  --shadow-lg: 0 20px 50px rgba(60, 52, 48, 0.14);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

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

/* Grid/flex items default to min-width:auto, which can force overflow
   on narrow screens - reset so every layout can shrink properly. */
.hero-grid > *,
.two-col > *,
.footer-grid > *,
.grid > * {
  min-width: 0;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--rose-deep); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--rose); }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--rose-deep);
  font-weight: 600;
  margin-bottom: 0.9em;
}

.rainbow-rule {
  height: 4px;
  width: 72px;
  border-radius: 4px;
  background: var(--rainbow);
  margin: 0 auto 1.4em;
}
.rainbow-rule.left { margin: 0 0 1.4em; }

.lede {
  font-size: 1.18rem;
  max-width: 680px;
}
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--rose-deep);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--rose); color: var(--white); }

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }

.btn-soft {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.btn-soft:hover { background: var(--peach); }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(60, 52, 48, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--ink);
  font-weight: 600;
  min-width: 0;
  flex: 1 1 0%;
  overflow: hidden;
}
.brand img { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; }
.brand span.sub { display: block; font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--rose-deep); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

@media (max-width: 480px) {
  .brand { font-size: 1.1rem; }
  .brand img { width: 34px; height: 34px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding-top: 4px;
  padding-bottom: 4px;
}
.nav-links a.active,
.nav-links a:hover { color: var(--rose-deep); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  border-radius: 3px;
  background: var(--rainbow);
}

.nav-cta { white-space: nowrap; padding-left: 5px; padding-right: 5px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex: 0 0 auto;
  min-width: 42px;
}
.nav-toggle span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; }

@media (max-width: 1180px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-cta { margin-top: 6px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 24px 110px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rainbow);
  opacity: 0.16;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-image { order: -1; width: 100%; max-width: 420px; margin: 0 auto; }
}

/* ---------- Page header (non-home) ---------- */
.page-hero {
  position: relative;
  padding: 70px 24px 60px;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rainbow);
  opacity: 0.18;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-image {
  margin-top: 36px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-height: 420px;
}
.page-hero-image img { width: 100%; height: 420px; object-fit: cover; }

/* ---------- Sections ---------- */
section { padding: 86px 0; }
.section-alt { background: var(--white); }
.section-tint { background: var(--cream-deep); }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.card-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}

.icon-blush    { background: var(--blush); }
.icon-peach    { background: var(--peach); }
.icon-gold     { background: var(--gold); }
.icon-sage     { background: var(--sage); }
.icon-sky      { background: var(--sky); }
.icon-lavender { background: var(--lavender); }

.media-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.media-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.media-card .media-body { padding: 24px; }

/* ---------- Quote / banner ---------- */
.banner {
  position: relative;
  padding: 90px 24px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-deep), var(--lavender) 60%, var(--sky));
  overflow: hidden;
}
.banner h2 { color: var(--white); }
.banner p { color: rgba(255,255,255,0.92); }
.banner .container { max-width: 760px; }

/* ---------- Pull quote / signature ---------- */
.pull-quote {
  position: relative;
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  padding-left: 28px;
  margin: 1.8em 0;
  line-height: 1.5;
}
.pull-quote::before {
  content: "";
  position: absolute;
  left: 0; top: 0.1em; bottom: 0.1em;
  width: 4px;
  border-radius: 4px;
  background: var(--rainbow);
}
.signature {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--rose-deep);
  margin-top: 0.4em;
}

/* ---------- Reviews / testimonials ---------- */
.reviews-head {
  text-align: center;
  margin: 56px 0 28px;
}
.reviews-head h3 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  margin: 0;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-stars {
  color: var(--rose-deep);
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  line-height: 1;
}
.review-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  flex: 1;
}
.review-card footer {
  margin-top: 4px;
}
.review-card cite {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.92rem;
}
@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ---------- Timeline / list ---------- */
.timeline-item {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(60,52,48,0.08);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-dot {
  flex-shrink: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--rose-deep);
  margin-top: 7px;
}

/* ---------- Social / Instagram cards ---------- */
.social-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.social-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.social-card .ig-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blush), var(--peach), var(--rose-deep));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.social-card .ig-icon svg { width: 26px; height: 26px; fill: var(--white); }
.social-card .ig-text strong { display: block; color: var(--ink); font-size: 1.02rem; }
.social-card .ig-text span { color: var(--ink-soft); font-size: 0.88rem; }
.social-card .ig-go { margin-left: auto; color: var(--rose-deep); font-weight: 700; }

.linktree-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 44px 36px;
  text-align: center;
}
.linktree-panel .tree-emoji { font-size: 2.4rem; margin-bottom: 10px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow-lg);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 7px;
  color: var(--ink);
}
.form-row .required { color: var(--rose-deep); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(60,52,48,0.15);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--rose-deep);
  background: var(--white);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }

.captcha-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--cream-deep);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.captcha-box .captcha-sum {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  white-space: nowrap;
}
.captcha-box input { max-width: 110px; }
.captcha-refresh {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--rose-deep);
}

.honeypot-field { position: absolute; left: -9999px; opacity: 0; }

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

.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-top: 18px;
  font-weight: 600;
}
.form-status.success { display: block; background: var(--sage); color: #28421f; }
.form-status.error { display: block; background: var(--blush); color: #6b1e26; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #E8E1D8;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 38px; height: 38px; border-radius: 50%; }
.footer-brand span { font-family: var(--font-heading); font-size: 1.2rem; color: var(--white); }
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer a { color: #CFC6BA; }
.site-footer a:hover { color: var(--peach); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #B4AA9D;
}

/* ---------- Utility ---------- */
.tag {
  display: inline-block;
  background: var(--cream-deep);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 8px 8px 0;
}
.badge-row { margin: 20px 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}
.rounded-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rounded-img img { width: 100%; height: 100%; object-fit: cover; }

.stat-row { display: flex; gap: 36px; flex-wrap: wrap; margin: 28px 0; }
.stat-row .stat strong { display: block; font-family: var(--font-heading); font-size: 2.1rem; color: var(--rose-deep); }
.stat-row .stat span { font-size: 0.85rem; color: var(--ink-soft); }

.brochure-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--cream-deep);
  border: 1.5px dashed var(--rose-deep);
  border-radius: var(--radius);
  padding: 30px 32px;
}
