/* Pure Smile RDH Clinic — site styles
   Palette is taken from the logo: plum script on a blush background. */
:root {
  --plum: #633a6b;          /* logo colour — headings, buttons, links */
  --plum-deep: #3a2140;     /* hero overlays, dark sections */
  --mauve: #84608b;         /* "dark" accent sections (white text) */
  --blush: #efece7;         /* logo background — header, light sections */
  --blush-deep: #e1dcd4;    /* borders, dividers on blush */
  --petal: #f7eef7;         /* text on dark photo heroes */
  --ink: #33222f;           /* body text */
  --white: #ffffff;

  --font-heading: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Pontano Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 58px);
  --content: 1320px;
  --header-h: 113px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--plum);
  margin: 0 0 0.5em;
  line-height: 1.25;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 4.25rem); line-height: 1.23; }
h3 { font-size: clamp(1.8rem, 3.2vw, 2.975rem); line-height: 1.3; }
h4 { font-size: clamp(1.3rem, 1.9vw, 1.7rem); line-height: 1.37; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 32px;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--plum);
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--plum); color: var(--white); border-color: var(--plum); }
.btn--wide { min-width: min(100%, 320px); }
.on-dark .btn { color: var(--white); }
.on-dark .btn:hover { background: var(--white); color: var(--plum); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blush);
  border-bottom: 1px solid var(--blush-deep);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
  padding: 0 var(--gutter);
}
.main-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a {
  color: var(--plum);
  text-decoration: none;
  font-size: 17px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: currentColor; }

/* Logo is pre-cropped to the wordmark; its background matches --blush. */
.logo img { height: 92px; width: auto; }
.logo-fallback { display: none; text-align: center; color: var(--plum); text-decoration: none; line-height: 1.1; }
.logo-fallback .script { font-family: "Great Vibes", cursive; font-size: 40px; }
.logo-fallback .sub { display: block; font-family: "Montserrat", sans-serif; font-weight: 700; letter-spacing: .12em; font-size: 12px; }
.logo.is-missing img { display: none; }
.logo.is-missing .logo-fallback { display: block; }

.header-actions { justify-self: end; }
.header-actions .btn { min-height: 52px; padding: 12px 22px; }

.menu-toggle {
  display: none;
  justify-self: end;
  width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer; padding: 10px;
}
.menu-toggle span { display: block; height: 1.5px; background: var(--plum); margin: 7px 0; transition: transform .25s, opacity .25s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--blush);
  padding: 32px var(--gutter);
  overflow-y: auto;
}
.mobile-menu ul { list-style: none; margin: 0 0 32px; padding: 0; }
.mobile-menu li a { display: block; font-family: var(--font-heading); font-size: 32px; color: var(--plum); text-decoration: none; padding: 6px 0; }
.menu-open .mobile-menu { display: block; }

@media (max-width: 960px) {
  :root { --header-h: 84px; }
  .header-inner { grid-template-columns: 44px 1fr 44px; }
  .main-nav, .header-actions { display: none; }
  .menu-toggle { display: block; grid-column: 3; grid-row: 1; }
  .logo { grid-column: 2; grid-row: 1; }
  .logo img { height: 68px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 132px) var(--gutter); }
.section--white { background: var(--white); }
.section--light { background: var(--blush); }
.section--dark { background: var(--mauve); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--deep { background: var(--plum-deep); color: var(--petal); }
.section--deep h1, .section--deep h2 { color: var(--petal); }
.container { max-width: var(--content); margin: 0 auto; }
.narrow { max-width: 980px; margin: 0 auto; }
.center { text-align: center; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
.stack-cta { margin-top: 48px; }

/* Full-height photo hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--gutter);
  color: var(--white);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero--bottom { align-items: flex-end; }
.hero > img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--plum-deep);
  opacity: var(--overlay, 0.4);
}
.hero h1, .hero h2, .hero h4 { color: var(--petal); }
.hero-content { max-width: 980px; }
.hero-content .kicker { margin-bottom: 0.2em; }
.hero-title { font-size: clamp(2.2rem, 4.6vw, 4.25rem); font-weight: 600; letter-spacing: 0.01em; }
.hero-content p { font-size: clamp(1.05rem, 1.6vw, 1.45rem); text-transform: uppercase; line-height: 1.8; }
.hero-content p strong { color: var(--petal); }

/* Two columns: image + text */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: var(--content);
  margin: 0 auto;
}
.split--top { align-items: start; }
.split img { width: 100%; height: 100%; max-height: 700px; object-fit: cover; }
.split .text h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split .media-last { order: 2; }
}


/* Services grid (services page) */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 88px) clamp(32px, 4vw, 64px);
  max-width: 980px;
  margin: 56px auto 0;
  text-align: center;
}
.services-grid h4 { text-transform: uppercase; }
.services-grid p { font-size: 15px; }
@media (max-width: 760px) { .services-grid { grid-template-columns: 1fr; } }

/* Team card (home page) */
.team-card { max-width: 760px; margin: 40px auto 0; text-align: center; }
.team-card h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }

/* Booking */
.booking { max-width: 870px; margin: 48px auto 0; }
.booking iframe { width: 100%; min-height: 1000px; border: 0; background: var(--white); }
.booking-fallback {
  background: var(--white);
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
  max-width: 649px;
  margin: 0 auto;
}
.booking-fallback h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.booking-fallback .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* Contact form */
.contact-form { display: grid; gap: 22px; max-width: 649px; margin: 0 auto; text-align: left; }
.contact-form fieldset { border: 0; padding: 0; margin: 0; }
.contact-form legend { padding: 0; margin-bottom: 8px; font-size: 15px; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-size: 15px; }
.contact-form label small { opacity: .7; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%;
  margin-top: 6px;
  padding: 12px;
  font: inherit; font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #c9b9c9;
  border-radius: 0;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--plum); outline-offset: 1px; }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form .btn { justify-self: start; }
.form-status { font-size: 15px; min-height: 1.5em; }
.form-status.ok { color: #2f6b3a; }
.form-status.err { color: #a12a2a; }
@media (max-width: 560px) { .name-row { grid-template-columns: 1fr; } }

.contact-details a { text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--blush); color: var(--plum); padding: 40px var(--gutter); font-size: 15px; }
.footer-inner { max-width: var(--content); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }

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

/* Home hero: checklist, location and tagline (normal case, unlike the CTA line) */
.hero-checks { list-style: none; margin: 0 auto 1em; padding: 0; display: inline-block; text-align: left; font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.7; }
.hero-checks li { padding-left: 1.4em; text-indent: -1.4em; }
.hero-checks li::before { content: "✓"; display: inline-block; width: 1.4em; text-indent: 0; color: var(--petal); }
.hero-content .hero-location { text-transform: none; }
.hero-location a { color: inherit; text-underline-offset: 3px; }
.hero-content .hero-tagline { text-transform: none; font-family: var(--font-heading); font-style: italic; }

/* Services grid: centre a lone last item */
@media (min-width: 761px) {
  .services-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 32px); justify-self: center; }
}

/* Home "Meet our team": cards side by side */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(40px, 5vw, 72px); max-width: 1100px; margin: 0 auto; }
.team-grid .team-card { margin-top: 40px; }

/* Draft placeholders — must be replaced before publishing */
mark.todo { background: #fff3a3; color: #5a4a00; padding: 0 .2em; }

/* Team page */
.team-hero { padding-top: clamp(96px, 12vw, 160px); padding-bottom: clamp(96px, 12vw, 160px); }
.team-hero .kicker { color: var(--petal); opacity: .85; }
.team-hero .lead { color: var(--petal); }
.team-profiles { max-width: 1100px; margin: 0 auto; display: grid; gap: clamp(72px, 9vw, 120px); }
.profile { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.profile--flip { grid-template-columns: 1fr minmax(180px, 300px); }
.profile--flip .monogram { order: 2; }
.monogram {
  aspect-ratio: 1; width: 100%;
  border-radius: 50%;
  background: var(--blush);
  border: 1px solid var(--blush-deep);
  display: grid; place-items: center;
  font-family: "Great Vibes", cursive;
  font-size: clamp(5rem, 11vw, 9rem);
  color: var(--plum);
  line-height: 1;
}
.profile h2 { margin-bottom: .1em; font-size: clamp(2rem, 3.6vw, 3.2rem); }
.profile .role { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--mauve); margin-bottom: 1.4em; }
@media (max-width: 760px) {
  .profile, .profile--flip { grid-template-columns: 1fr; }
  .profile--flip .monogram { order: 0; }
  .monogram { max-width: 180px; margin: 0 auto; }
  .profile .text { text-align: center; }
}

/* Keep phone numbers on one line */
a[href^="tel:"] { white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* Home: short services list */
.service-list { list-style: none; margin: 8px 0 36px; padding: 0; border-top: 1px solid var(--blush-deep); }
.service-list li { padding: 14px 0; border-bottom: 1px solid var(--blush-deep); display: grid; gap: 2px; }
.service-list strong { font-weight: 400; color: var(--plum); text-transform: uppercase; letter-spacing: .04em; font-size: 15px; }
.service-list span { font-size: 15px; line-height: 1.6; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Home: contact strip */
.contact-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-top: 32px; }
.contact-strip .label { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--mauve); margin-bottom: 6px; }
.contact-strip a { text-decoration: none; }
.contact-strip a:hover { text-decoration: underline; }

/* Contact: map */
.map { max-width: 1100px; margin: 32px auto 0; height: clamp(320px, 42vw, 480px); border: 1px solid var(--blush-deep); background: var(--white); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Team: quote + bio */
.pull-quote { margin: 0 0 1.6em; padding: 0 0 0 1.2em; border-left: 2px solid var(--plum); }
.pull-quote p { font-family: var(--font-heading); font-style: italic; font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.6; color: var(--plum); }
.bio p { font-size: 16px; }
@media (max-width: 760px) { .pull-quote { text-align: left; } .bio { text-align: left; } }

/* About: links to team profiles */
.team-link { display: grid; justify-items: center; gap: 8px; text-decoration: none; padding: 24px; }
.team-link h3 { margin: 12px 0 0; }
.team-link .role { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--mauve); }
.team-link:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.monogram--sm { width: 140px; font-size: 4.5rem; }
