/* ===== Essential Beauty Clinic — shared styles ===== */

:root {
  --cream: #faf8fb;
  --cream-deep: #f1eaf7;
  --ink: #2b2430;
  --ink-soft: #6b6270;
  --rose: #7c4fbf;
  --rose-deep: #55298a;
  --line: #e3d9ee;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 36, 48, 0.1);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  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; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; color: var(--ink-soft); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

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

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.logo span { color: var(--rose-deep); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}
.nav-links a.active,
.nav-links a:hover { color: var(--rose-deep); }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 820px) {
  .nav-links {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--cream);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    transform: translateY(-110%);
    transition: transform 0.25s ease;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
}

/* ---- Hero ---- */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}
.hero p.lead {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 1.1rem;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-hero {
  padding: 56px 0 40px;
  text-align: center;
  background: var(--cream-deep);
  border-bottom: 1px solid var(--line);
}
.page-hero p { max-width: 620px; margin: 0 auto; }
.page-hero .hero-actions { margin-top: 24px; }

/* ---- Sections ---- */
section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--cream-deep); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 40px; }

/* ---- Cards ---- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.card .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
}
.card a.card-link {
  font-weight: 600;
  color: var(--rose-deep);
  font-size: 0.9rem;
}

.steps .card { text-align: center; }
.steps .card img { height: 84px; width: auto; margin: 0 auto 18px; }
.steps .card p { margin: 0; }

/* ---- Service list rows ---- */
.service-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.service-row:last-child { border-bottom: none; }
.service-row h4 { margin: 0 0 4px; font-family: var(--sans); font-weight: 700; font-size: 1.02rem; }
.service-row .desc { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.service-row .price {
  white-space: nowrap;
  font-weight: 700;
  color: var(--rose-deep);
  font-family: var(--serif);
  font-size: 1.05rem;
}
.price-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 24px;
  font-style: italic;
}

/* ---- Testimonial ---- */
.testimonial {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.testimonial blockquote {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  margin: 0 0 16px;
  color: var(--ink);
}
.testimonial cite { color: var(--ink-soft); font-style: normal; font-size: 0.9rem; }

/* ---- Split ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split-media {
  background: var(--cream-deep);
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  border: 1px dashed var(--line);
  text-align: center;
  padding: 24px;
}

.split-media.has-photo {
  border: none;
  background: transparent;
  padding: 0;
}
.split-media.has-photo img {
  max-height: 420px;
  width: auto;
  margin: 0 auto;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ---- Booking panel ---- */
.booking-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.booking-panel .btn { margin: 6px; }
.placeholder-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--cream-deep);
  border-radius: 10px;
  padding: 12px 16px;
}

/* ---- Review highlights (local preview only, see script.js) ---- */
html.review-mode [data-review] {
  outline: 3px dashed #d9a400;
  outline-offset: 4px;
  background: #fff3b0;
}
html.review-mode [data-review="remove"] {
  outline-color: #d62828;
  background: #ffdcdc;
}
html.review-mode [data-review]::before {
  content: "CHECK WITH LOUISE";
  display: block;
  width: fit-content;
  margin: 0 auto 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #d9a400;
  color: #fff;
  font: 700 0.7rem/1.4 var(--sans);
  letter-spacing: 0.06em;
  font-style: normal;
}
html.review-mode [data-review="remove"]::before {
  content: "NOT FOR FINAL SITE";
  background: #d62828;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: #efe8e0;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: #efe8e0;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer p, .site-footer a { color: #c9beb3; font-size: 0.92rem; }
.site-footer a:hover { color: var(--rose); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.8rem;
  color: #9b8f85;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.list-plain { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }

/* ---- Course detail pages ---- */
.back-link { display: inline-block; margin-bottom: 16px; font-size: 0.9rem; font-weight: 600; color: var(--rose-deep); }
.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}
.course-body h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.course-body h2:first-child { margin-top: 0; }
.course-body ul { padding-left: 1.2em; margin: 0 0 16px; color: var(--ink-soft); }
.course-body li { margin-bottom: 6px; }
.course-body .sign-off { font-family: var(--serif); font-size: 1.3rem; color: var(--rose-deep); margin-top: 24px; }
.course-aside { position: sticky; top: 100px; }
.course-aside .price { font-family: var(--serif); font-size: 2.2rem; color: var(--rose-deep); margin: 4px 0 12px; }
.course-aside dl { margin: 0 0 20px; font-size: 0.92rem; }
.course-aside dt { font-weight: 600; color: var(--ink); }
.course-aside dd { margin: 0 0 10px; color: var(--ink-soft); }
.course-aside .btn { display: block; text-align: center; margin-top: 10px; }
@media (max-width: 860px) {
  .course-layout { grid-template-columns: 1fr; gap: 32px; }
  .course-aside { position: static; order: -1; }
}
.course-callout {
  margin: 20px 0 8px;
  padding: 20px 24px;
  background: var(--cream-deep);
  border-left: 3px solid var(--rose);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.course-callout p { margin: 0; color: var(--ink); }
.course-callout strong { font-family: var(--serif); font-size: 1.1rem; display: block; margin-bottom: 4px; }
.course-callout .callout-link { display: table; margin-top: 10px; font-weight: 600; font-size: 0.92rem; color: var(--rose-deep); }
.course-callout .callout-link:hover { text-decoration: underline; }

/* Terms & Conditions */
.terms { max-width: 760px; }
.terms-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.terms-jump a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--rose-deep); text-decoration: none; background: #fff; }
.terms-jump a:hover { border-color: var(--rose); }
.terms .course-body h2 { scroll-margin-top: 90px; padding-top: 8px; border-top: 1px solid var(--line); }
.terms .course-body h2:first-child { border-top: 0; padding-top: 0; }
.terms .course-body h3 { font-size: 1.1rem; margin: 24px 0 6px; }
.terms .course-body p a, .terms .course-body li a { color: var(--rose-deep); }
.terms-updated { font-size: .85rem; color: var(--ink-soft); margin-top: 24px; }
.terms-next { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.text-link { color: var(--rose-deep); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--rose); }
.grid-3.grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
@media (max-width: 860px) { .grid-3.grid-2 { grid-template-columns: 1fr; } }
