/* Dr Diana Coffey – site styles (no frameworks) */

:root {
  --ink: #181415;
  --text: #656464;
  --muted: #8a8a8a;
  --line: #d9d2ca;
  --white: #ffffff;
  --cream: #f7f4f1;
  --sand: #f0e9e3;
  --linen: #f5eee5;
  --oat: #ebe5da;
  --ivory: #fbf7f0;
  --brown: #997a52;
  --brown-dark: #7d6241;
  --link: #1a5fb4;

  --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-head: "Sorts Mill Goudy", Georgia, "Times New Roman", serif;
  --font-display: "Castoro", Georgia, "Times New Roman", serif;

  --container: 1290px;
  --gutter: 24px;
  --shadow: 0 10px 30px rgba(24, 20, 21, 0.12);
  --header-h: 104px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--brown-dark); }
p { margin: 0 0 1.4em; }
p:last-child { margin-bottom: 0; }
strong { color: #4b4a4a; font-weight: 700; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.5rem); }
h2 { font-size: clamp(1.75rem, 1.5rem + 1vw, 2.2rem); }

:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
.text-center { text-align: center; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 24px;
}
.brand img { width: 345px; max-width: 62vw; height: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 10px;
  color: #6f6e6e; text-decoration: none; font-size: 1.0625rem; line-height: 1.3;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 12px; margin-right: -12px;
  cursor: pointer; color: var(--text);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  :root { --header-h: 76px; }
  .brand img { width: 260px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .site-nav li + li { border-top: 1px solid #eee; }
  .site-nav a { padding: 14px 4px; font-size: 1.0625rem; }
}

/* ---------- Sections & backgrounds ---------- */
.section { padding: clamp(56px, 7vw, 100px) 0; }
.page-top { padding-top: clamp(48px, 7vw, 96px); }

.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-sand { background: var(--sand); }
.bg-linen { background: var(--linen); }
.bg-oat { background: var(--oat); }
.bg-ivory { background: var(--ivory); }
.bg-sand-soft { background: #f3eeea; }
.bg-fade { background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%); }

/* Faint photographic backgrounds used at the top of inner pages */
.bg-image { position: relative; isolation: isolate; }
.bg-image::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: min(800px, 100%); z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.96) 70%, #fff 100%),
    url("../img/bg-texture.jpg") center top / cover no-repeat;
}
.bg-image-about::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.92) 70%, #fff 100%),
    url("../img/bg-about.jpg") center top / cover no-repeat;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-size: 1.125rem; line-height: 1.5; font-weight: 700;
  color: var(--muted);
  margin: 0 0 0.6em;
}
.display { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.4rem); }
.page-heading { margin-bottom: clamp(24px, 3vw, 36px); }
.lead-wide { max-width: 1240px; margin-inline: auto; }

/* ---------- Two-column layout ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.split-media img { width: 100%; }
.photo { box-shadow: var(--shadow); }

/* ---------- Home ---------- */
/* Hero background: same sizing/positions as the original Kadence row */
.hero {
  background: #f0e6e4 url("../img/hero-home.jpg") 76% 25% / contain no-repeat;
}
.hero-inner { padding-top: 80px; padding-bottom: 202px; }
.hero-eyebrow {
  font-family: var(--font-head); color: var(--ink); font-weight: 700;
  font-size: 1.0625rem; margin: 0;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 65px; line-height: 83px; padding-top: 15px;
  font-weight: 400; margin: 0 0 49px;
}
@media (max-width: 1024px) {
  .hero { background-size: cover; background-position: 13% 100%; }
  .hero-title { font-size: 40px; line-height: 48px; }
}
@media (max-width: 767px) {
  .hero {
    background-color: var(--cream); background-size: contain; background-position: 49% 58%;
    text-align: center;
  }
  .hero-inner { padding-bottom: 228px; }
  .hero-title { font-size: 28px; line-height: 32px; padding-top: 27px; }
}

.page-home .split-intro { grid-template-columns: 1.05fr 1fr; padding-inline: clamp(0px, 4vw, 50px); }
.intro-title { font-family: var(--font-body); font-size: 1.6rem; font-weight: 400; margin-bottom: 1.2em; }
.intro-text p { margin-bottom: 2.4em; max-width: 440px; }
.intro-text p:last-child { margin-bottom: 0; }

.conditions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px;
  margin-top: clamp(32px, 4vw, 56px); padding-inline: clamp(0px, 2vw, 40px);
}
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 26px; line-height: 2; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 0.62em;
  width: 9px; height: 5px;
  border-left: 1.5px solid var(--text); border-bottom: 1.5px solid var(--text);
  transform: rotate(-45deg);
}
@media (max-width: 860px) {
  .conditions { grid-template-columns: 1fr; gap: 24px; max-width: 360px; margin-inline: auto; }
}

.split-bio { grid-template-columns: 1fr 1.1fr; align-items: start; }
.split-bio .split-text { max-width: 480px; }
.split-bio .split-media img { max-width: 520px; }
@media (max-width: 860px) {
  .split-bio .split-text { max-width: none; text-align: center; }
  .split-bio .split-media img { margin-inline: auto; }
}

/* Testimonials */
.testimonials .text-center p { color: var(--ink); }
.doctify-logo { display: inline-block; margin-top: -6px; }
.doctify-logo img { width: 91px; }
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
  align-items: start; margin-top: 40px;
}
.review {
  margin: 0; background: var(--white); border-radius: 12px;
  padding: 26px 26px 22px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.review blockquote { margin: 0; color: #222; font-size: 1.0625rem; line-height: 1.7; }
.review-stars { margin: 8px auto 18px; width: 115px; }
.review figcaption {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid #e8e8e8; padding-top: 16px; color: #222;
}
.review figcaption strong { display: block; font-weight: 400; color: #222; font-size: 0.95rem; line-height: 1.3; }
.review figcaption small { font-size: 0.75rem; }
.review figcaption img { width: 40px; height: 40px; border-radius: 50%; }
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

/* ---------- About ---------- */
.prose { font-size: 1.0625rem; }
.float-right { float: right; width: 31%; margin: 0 0 24px 36px; }
@media (max-width: 760px) {
  .float-right { float: none; width: 100%; max-width: 400px; margin: 0 auto 28px; }
}
.split-quals { align-items: start; }
.split-quals .split-media img { max-width: 520px; margin-left: auto; }
.bullets { margin: 0; padding-left: 1.2em; max-width: 450px; font-size: 1.0625rem; }
.bullets li { margin-bottom: 0.15em; }
.bullets li::marker { color: var(--text); }

/* ---------- Services ---------- */
.split-services { grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.question {
  font-family: var(--font-body); font-weight: 700;
  font-size: 1.0625rem; color: #4b4a4a; margin: 0 0 1.4em;
}
.split-services p + .question { margin-top: 0.4em; }
@media (max-width: 860px) {
  .split-services .split-media img { max-width: 440px; margin-inline: auto; }
}

/* ---------- Locations ---------- */
.location { grid-template-columns: 1fr 0.78fr; gap: clamp(32px, 10vw, 140px); }
.location .split-text { max-width: 370px; }
.location-name {
  font-family: var(--font-body); font-weight: 500;
  font-size: 1.85rem; color: var(--ink); margin-bottom: 1.2em;
}
.button {
  display: inline-block; padding: 9px 18px; border-radius: 2px;
  background: var(--brown); color: #fff; text-decoration: none;
  font-size: 1.0625rem; line-height: 1.5;
  transition: background 0.15s;
}
.button:hover { background: var(--brown-dark); color: #fff; }

.gallery { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery a { display: block; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.3s; }
.gallery a:hover img { transform: scale(1.04); }
@media (max-width: 860px) {
  .location .split-text { max-width: none; }
}

/* Lightbox (built by main.js) */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh;
}
.lightbox::backdrop { background: rgba(10, 8, 8, 0.88); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, 0.12); color: #fff; border: 0;
  width: 46px; height: 46px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox-inner { padding: 64px 12px; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 10px; transform: none; } }

/* ---------- Fees ---------- */
.prices { display: flex; flex-wrap: wrap; gap: 60px; margin-top: 40px; }
.price-card {
  width: 348px; max-width: 100%;
  border: 2px solid var(--ink); background: var(--cream);
  text-align: center; padding: 46px 56px 54px; color: #222;
  font-size: 1rem; line-height: 1.6;
}
.price-card h3 {
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.01em; margin: 0;
}
.price-card .price {
  font-family: var(--font-head); font-weight: 700; font-size: 3.6rem; line-height: 1.1;
  font-variant-numeric: oldstyle-nums;
  color: var(--ink); margin: 0.05em 0 0.25em;
}
@media (max-width: 860px) {
  .prices { gap: 28px; justify-content: center; }
  .price-card { padding: 36px 32px 40px; }
}

.faq { margin-top: 24px; }
.faq details { margin-bottom: 6px; }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  background: #f2f2f2; color: #444; padding: 10px 52px 10px 14px; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 18px; height: 2px;
  background: currentColor; transition: transform 0.2s;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary { background: #444; color: #fff; }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { background: #e6e6e6; }
.faq details[open] summary:hover { background: #3a3a3a; }
.faq-answer { padding: 16px 20px 8px; }
.faq-answer p { margin-bottom: 0.6em; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; color: var(--ink);
}
.contact-grid h2 { font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; margin: 0 0 1em; }
.contact-grid p { font-size: 1.0625rem; }
.contact-grid a { color: var(--ink); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } }

.split-booking { grid-template-columns: 1fr 0.95fr; gap: clamp(32px, 8vw, 120px); }
.split-booking .split-text { padding-left: clamp(0px, 4vw, 56px); max-width: 560px; font-size: 1.0625rem; }
.split-booking .split-media img { max-width: 522px; margin-left: auto; }
.underlined {
  font-family: var(--font-body); font-weight: 500; font-size: 2rem; position: relative;
  padding-bottom: 0.45em; margin: 0.5em 0 1.6em;
}
.underlined::after {
  content: ""; position: absolute; left: 40%; bottom: 0; width: 160px; height: 2px; background: #555;
}
@media (max-width: 860px) {
  .split-booking .split-media img { margin-inline: auto; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: #fff; padding: 36px 0; }
.footer-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px 24px;
}
.footer-copy { margin: 0; font-size: 1.0625rem; }
.footer-links {
  list-style: none; margin: 0; padding: 0; max-width: 420px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px;
}
.footer-links a { color: #f6dfaa; text-decoration: none; font-size: 1.0625rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links { margin-inline: auto; flex-direction: column; }
}

/* Single column on small screens – kept last so it beats the per-section column rules */
@media (max-width: 860px) {
  .split,
  .page-home .split-intro { grid-template-columns: 1fr; padding-inline: var(--gutter); }
}

@media print {
  .site-header { position: static; box-shadow: none; }
  .nav-toggle, .site-nav, .gallery { display: none; }
  .site-footer { background: none; color: #000; }
}
