/* ==========================================================================
   DoctorGoodBack — site styles
   --------------------------------------------------------------------------
   To change the look of the whole site, edit the values in :root below.
   Everything else reads from these.
   ========================================================================== */

:root {
  /* Colours (taken from the DoctorGoodBack mascot) */
  --paper:   #fbf8f2;   /* page background */
  --card:    #ffffff;   /* boxes / panels */
  --ink:     #15202b;   /* main text */
  --muted:   #5b6670;   /* secondary text */
  --line:    #e5ddcf;   /* thin borders */
  --sky:     #cdeafb;   /* soft blue behind the mascot */
  --blue:    #1c6db0;   /* links and buttons */
  --blue-dk: #12528a;
  --glove:   #ffd23f;   /* yellow highlight */
  --badge:   #d6352b;   /* red, used sparingly */

  /* Type */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --wrap: 1120px;
  --radius: 14px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dk); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .9em;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.mark { background: linear-gradient(transparent 62%, var(--glove) 62%); padding: 0 .1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid var(--blue);
  background: var(--blue); color: #fff; transition: background .15s, color .15s;
}
.btn:hover { background: var(--blue-dk); border-color: var(--blue-dk); color: #fff; }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.ghost:hover { background: var(--blue); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 242, .94);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 42px; }
.brand span { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; }
.brand b { color: var(--blue); font-weight: 600; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 10px 12px; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--sky); color: var(--ink); }
.nav .btn { margin-left: 8px; min-height: 42px; padding: 0 18px; color: #fff; }
.nav .btn:hover { background: var(--blue-dk); color: #fff; }
.menu-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); font-size: 1.3rem; cursor: pointer;
}

@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero p.lead { margin-bottom: 1.6em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; justify-self: center; width: min(100%, 420px); }
.hero-art .disc {
  aspect-ratio: 1; border-radius: 50%; background: var(--sky);
  display: grid; place-items: center; padding: 11%;
}
.hero-art .disc img { width: 100%; }
.hero-art .sticker {
  position: absolute; right: -4px; top: 6%;
  background: var(--glove); color: var(--ink); border-radius: 999px;
  padding: 10px 18px; font-weight: 800; transform: rotate(-6deg);
  box-shadow: 0 6px 18px rgba(21, 32, 43, .12);
}

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { width: min(80%, 320px); order: -1; }
}

/* ---------- Where to find him (locations) ---------- */
.locations {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.locations li { list-style: none; padding: 22px 24px; border-right: 1px solid var(--line); }
.locations li:last-child { border-right: 0; }
.locations ul { display: contents; }
.locations .place { font-weight: 700; font-size: 1.05rem; }
.locations .when { color: var(--muted); }
.locations .status {
  display: inline-block; margin-top: 8px; font-size: .78rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
  background: #eef0f2; color: var(--muted);
}
.locations li.is-now { background: #f2f9fe; }
.locations li.is-now .status { background: var(--blue); color: #fff; }
.locations li.is-closed .place { text-decoration: line-through; text-decoration-color: var(--muted); color: var(--muted); }
@media (max-width: 720px) {
  .locations { grid-template-columns: 1fr; }
  .locations li { border-right: 0; border-bottom: 1px solid var(--line); }
  .locations li:last-child { border-bottom: 0; }
}

/* ---------- The approach (three rows) ---------- */
.approach { margin-top: 40px; }
.approach-row {
  display: grid; grid-template-columns: 260px 1fr; gap: 32px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.approach-row:last-child { border-bottom: 1px solid var(--line); }
.approach-row h3 { font-size: 1.9rem; margin: 0; }
.approach-row h3 small { display: block; font-family: var(--font-body); font-size: .85rem; color: var(--muted); font-weight: 600; margin-top: 6px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--glove) no-repeat center / 11px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%2315202b' stroke-width='2'/%3E%3C/svg%3E");
}
@media (max-width: 720px) {
  .approach-row { grid-template-columns: 1fr; gap: 14px; }
  .ticks { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: start; }
.about-photos { display: grid; gap: 14px; position: sticky; top: 96px; }
.about-photos img { border-radius: var(--radius); }
.about-photos .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-photos .pair img { aspect-ratio: 1; object-fit: cover; }
blockquote.pull {
  margin: 32px 0; padding: 0; font-family: var(--font-head); font-size: 1.7rem; line-height: 1.25;
  font-style: italic;
}
blockquote.pull cite { display: block; font: 600 .95rem var(--font-body); font-style: normal; color: var(--muted); margin-top: 10px; }
@media (max-width: 880px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-photos { position: static; max-width: 460px; }
}

/* ---------- First visit ---------- */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; counter-reset: step; }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
}
.step img { width: 150px; height: 150px; object-fit: cover; object-position: top; border-radius: 10px; background: #f1ede5; }
.step h3 { margin-bottom: .3em; }
.step h3::before { content: counter(step) ". "; color: var(--blue); }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .step { grid-template-columns: 1fr; } .step img { width: 100%; height: 200px; } }

.fee {
  margin-top: 40px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px 32px;
}
.fee .price { font-family: var(--font-head); font-size: 3.4rem; line-height: 1; color: var(--glove); }
.fee h3 { margin: 0 0 .2em; color: #fff; }
.fee p { margin: 0; color: #c9d2da; }
.fee .btn { background: var(--glove); border-color: var(--glove); color: var(--ink); }
.fee .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }
@media (max-width: 720px) { .fee { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- Results ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.split.with-mascot { grid-template-columns: 1fr 200px; align-items: end; }
.split.with-mascot img { border: 0; background: none; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 600px) { .split.with-mascot { grid-template-columns: 1fr 110px; gap: 16px; } }

/* ---------- Video testimonials ---------- */
.videos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 36px; }
@media (max-width: 880px) { .videos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .videos { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.video { text-decoration: none; color: var(--ink); }
.video .thumb { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 2; background: #ddd; }
.video .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.video .thumb::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%; background: rgba(21, 32, 43, .78) no-repeat 56% center / 18px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M0 0l10 6-10 6z' fill='white'/%3E%3C/svg%3E");
  transition: background-color .2s;
}
.video:hover .thumb img { transform: scale(1.04); }
.video:hover .thumb::after { background-color: var(--badge); }
.video span { display: block; font-weight: 700; margin-top: 8px; }

/* ---------- Photo galleries ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 24px 0 0; }
.gallery.wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery a { display: block; border-radius: 10px; overflow: hidden; background: #eee; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s, opacity .3s; }
.gallery.wide img { aspect-ratio: 4 / 3; }
.gallery.contain img { object-fit: contain; background: #fff; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .9rem; color: var(--muted); margin-top: 6px; line-height: 1.35; }
.gallery-group { margin-top: 56px; }
.gallery-group h3 { display: flex; align-items: baseline; gap: 12px; }
.gallery-group h3 small { font: 600 .9rem var(--font-body); color: var(--muted); }

.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.subnav a {
  text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink);
  border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 16px;
}
.subnav a:hover { background: var(--sky); }

/* ---------- Page heading (inner pages) ---------- */
.page-head { padding: 64px 0 8px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px;
}
.contact-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 14px 20px; }
.contact-card dt { font-weight: 700; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; padding-top: .25em; }
.contact-card dd { margin: 0; font-size: 1.1rem; word-break: break-word; }
.phone-big { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); text-decoration: none; color: var(--ink); }
.phone-big:hover { color: var(--blue); }
.notice { background: #fff7d1; border: 1px solid #f0dd8a; border-radius: 12px; padding: 16px 20px; }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d2da; padding: 40px 0; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer a { color: #fff; }

/* ---------- Lightbox (photo viewer opened by js/site.js) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(10, 14, 18, .92); align-items: center; justify-content: center; padding: 56px 72px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); background: #fff; }
.lightbox .lb-caption { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: #e8edf1; font-size: .95rem; }
.lightbox button {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; line-height: 1;
}
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 12px; top: 50%; margin-top: -26px; }
.lightbox .lb-next { right: 12px; top: 50%; margin-top: -26px; }
@media (max-width: 600px) { .lightbox { padding: 64px 8px; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 8px; } }

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