/* =====================================================================
   Consultant Oral Surgeon: shared seasonal styles
   Colours change automatically with the season (see assets/js/seasonal.js)
   ===================================================================== */

/* ---------- seasonal palettes (same family as vahecooper.com) ---------- */
:root, [data-season="autumn"] {
  --bg-1: #faf1e6; --bg-2: #f2dcc2; --bg-3: #e6bf98;
  --ink: #33200f; --name: #b65a24; --soft: #8d6547; --alt: #8a3b2a;
  --card: rgba(255, 251, 245, 0.82); --card-solid: #fffaf3;
  --line: rgba(51, 32, 15, 0.13); --shadow: rgba(90, 50, 20, 0.14);
}
[data-season="winter"] {
  --bg-1: #f2f7fb; --bg-2: #d9e6f1; --bg-3: #bacfe2;
  --ink: #142a42; --name: #3a72ad; --soft: #5f7f9e; --alt: #2c5d8f;
  --card: rgba(255, 255, 255, 0.82); --card-solid: #ffffff;
  --line: rgba(20, 42, 66, 0.12); --shadow: rgba(30, 60, 100, 0.14);
}
[data-season="christmas"] {
  --bg-1: #f8f4ee; --bg-2: #ece3d6; --bg-3: #dccdb8;
  --ink: #1c2a22; --name: #a3262e; --soft: #66746a; --alt: #2f6b4f;
  --card: rgba(255, 253, 249, 0.84); --card-solid: #fffdf9;
  --line: rgba(28, 42, 34, 0.12); --shadow: rgba(40, 30, 20, 0.14);
}
[data-season="spring"] {
  --bg-1: #f7faf4; --bg-2: #e6f0df; --bg-3: #d3e5cc;
  --ink: #1f3326; --name: #4f8a63; --soft: #6f8b78; --alt: #b5597a;
  --card: rgba(255, 255, 255, 0.82); --card-solid: #ffffff;
  --line: rgba(31, 51, 38, 0.12); --shadow: rgba(40, 70, 50, 0.12);
}
[data-season="summer"] {
  --bg-1: #a9d3f2; --bg-2: #d3e9f8; --bg-3: #f5ead3;
  --ink: #12304a; --name: #2a7ab8; --soft: #3f6a8a; --alt: #d0782a;
  --card: rgba(255, 255, 255, 0.82); --card-solid: #ffffff;
  --line: rgba(18, 48, 74, 0.12); --shadow: rgba(30, 70, 110, 0.12);
}
:root { --ease: cubic-bezier(0.16, 1, 0.3, 1); --wide: 1120px; --read: 40rem; }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; min-height: 100vh; font-family: "Montserrat", Arial, sans-serif; font-weight: 500;
  color: var(--ink); line-height: 1.7; overflow-x: hidden;
  background: var(--bg-1);
}
/* sky gradient on its own fixed layer (works on iPhones) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 60%, var(--bg-3) 100%);
}
[data-season="summer"] body::before {
  background: radial-gradient(circle at 88% 5%, rgba(255, 253, 240, 0.98) 0, rgba(255, 249, 225, 0.7) 4.5%, rgba(255, 246, 215, 0.25) 12%, rgba(255, 246, 215, 0) 24%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 55%, var(--bg-3) 100%);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--name); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--card-solid); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 12px; }
.wrap { width: min(var(--wide), calc(100% - 40px)); margin: 0 auto; }
body.menu-open { overflow: hidden; }

/* ---------- background layers ---------- */
.watermark {
  position: fixed; left: 50%; top: 52%; z-index: 0; pointer-events: none;
  width: min(80vmin, 760px); aspect-ratio: 1; transform: translate(-50%, -50%); opacity: 0.035;
}
#weather { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.tree { position: fixed; bottom: 0; z-index: 1; pointer-events: none; display: none; width: clamp(110px, 15vw, 220px); }
.tree.l { left: clamp(4px, 3vw, 40px); }
.tree.r { right: clamp(4px, 3vw, 40px); transform: scaleX(-1); }
[data-season="christmas"] body.has-trees .tree { display: block; }
@media (max-width: 700px) { .tree { width: 64px; opacity: 0.85; } }
.twinkle { animation: twinkle 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.twinkle.d2 { animation-delay: 0.9s; } .twinkle.d3 { animation-delay: 1.8s; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.site, .site-header { position: relative; z-index: 2; }

/* ---------- the logo: one image, recoloured per season ---------- */
.mark {
  display: block; background: var(--name);
  -webkit-mask: url("../images/logo-mark.png") center / contain no-repeat;
          mask: url("../images/logo-mark.png") center / contain no-repeat;
  transition: background 600ms ease;
}
.watermark.mark { background: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg-1) 78%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 200ms ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { width: 34px; height: 34px; }
.brand-name { font-weight: 900; text-transform: uppercase; letter-spacing: -0.04em; font-size: 1.02rem; line-height: 1; white-space: nowrap; }
.brand-name span { color: var(--name); }
.links { display: flex; align-items: center; gap: 4px; }
.links a {
  text-decoration: none; font-size: 0.8rem; font-weight: 700; padding: 8px 12px; border-radius: 999px;
  color: var(--soft); transition: color 200ms ease, background 200ms ease;
}
.links a:hover { color: var(--ink); background: var(--line); }
.links a[aria-current="page"] { color: var(--ink); }
.links a.cta { background: var(--ink); color: var(--card-solid); margin-left: 8px; padding: 9px 18px; }
.links a.cta:hover { background: var(--name); }
.menu-toggle { display: none; }
@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 800; font-size: 0.8rem;
    border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 9px 16px; cursor: pointer;
  }
  .links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px 20px 24px; background: var(--bg-1); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all 260ms var(--ease);
  }
  body.menu-open .links { transform: none; opacity: 1; visibility: visible; }
  .links a { font-size: 1rem; padding: 12px 14px; }
  .links a.cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- type ---------- */
h1, h2, h3 { line-height: 1.05; margin: 0; }
.display {
  font-weight: 900; text-transform: uppercase; letter-spacing: -0.06em;
  font-size: clamp(2.3rem, 6vw, 4.6rem); line-height: 0.88;
}
.display span { color: var(--name); display: block; }
.title { font-weight: 900; text-transform: uppercase; letter-spacing: -0.045em; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 0.95; }
.title span { color: var(--name); }
.lead { font-size: clamp(1rem, 1.5vw, 1.12rem); font-weight: 600; max-width: var(--read); }
.muted { color: var(--soft); }
.small { font-size: 0.85rem; }
.prose p { max-width: var(--read); margin: 0 0 1.1em; }

/* ---------- page structure ---------- */
main { display: block; }
.page-head { text-align: center; padding: clamp(48px, 8vw, 96px) 0 clamp(30px, 5vw, 56px); }
.page-head .lead { margin: 22px auto 0; }
.page-head .mark { width: 74px; height: 74px; margin: 0 auto 22px; }
.section { padding: clamp(36px, 6vw, 72px) 0; }
.section-head { text-align: center; margin-bottom: clamp(24px, 4vw, 40px); }
.section-head p { margin: 14px auto 0; max-width: var(--read); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 32px);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }

/* ---------- buttons (colour spreads from the pointer on hover) ---------- */
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  --c: var(--name);
  position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  min-width: 170px; padding: 15px 28px; border-radius: 999px; text-decoration: none; cursor: pointer;
  font: inherit; font-size: 0.76rem; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink); background: var(--card); border: 2px solid var(--line);
  box-shadow: 0 10px 26px var(--shadow);
  transition: color 360ms ease, border-color 360ms ease, transform 360ms var(--ease);
}
.btn.solid { background: var(--ink); color: var(--card-solid); border-color: var(--ink); }
.btn.alt { --c: var(--alt); }
.btn::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), var(--c), color-mix(in srgb, var(--c) 75%, #000));
  clip-path: circle(0% at var(--x, 50%) var(--y, 50%)); transition: clip-path 520ms var(--ease);
}
.btn:hover, .btn:focus-visible { color: #fff; border-color: var(--c); transform: translateY(-2px); }
.btn:hover::before, .btn:focus-visible::before { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); }
.text-link { font-weight: 800; color: var(--name); text-decoration: none; border-bottom: 1px solid currentColor; }
.text-link:hover { color: var(--ink); }

/* ---------- home ---------- */
.hero { min-height: calc(100vh - 70px); min-height: calc(100svh - 70px); display: grid; place-items: center; text-align: center; padding: 40px 0 56px; }
.disc {
  width: clamp(150px, 16vw, 220px); aspect-ratio: 1; margin: 0 auto clamp(24px, 3.5vw, 38px); border-radius: 50%;
  background: var(--card-solid); display: grid; place-items: center; box-shadow: 0 24px 60px var(--shadow);
}
.disc .mark { width: 70%; height: 70%; }
.wordmark { font-weight: 900; text-transform: uppercase; white-space: nowrap; font-size: clamp(2.6rem, 8vw, 6.6rem); line-height: 0.8; letter-spacing: -0.075em; }
.wordmark .last { color: var(--name); margin-left: 0.07em; }
.role { margin: 26px 0 0; font-weight: 900; text-transform: uppercase; letter-spacing: 0.14em; font-size: clamp(0.95rem, 1.7vw, 1.3rem); }
.creds { margin: 10px 0 0; font-weight: 700; letter-spacing: 0.08em; font-size: clamp(0.66rem, 1vw, 0.8rem); color: var(--soft); text-transform: uppercase; }
.hero .lead { margin: 22px auto 0; }
@media (max-width: 560px) { .wordmark { font-size: 12.4vw; } }

.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(18px, 3.5vw, 44px); }
.logos img, .logos a img { height: 34px; width: auto; filter: grayscale(1); opacity: 0.6; transition: filter 300ms ease, opacity 300ms ease; }
.logos a:hover img, .logos img:hover { filter: none; opacity: 1; }
.logos.tall img { height: 44px; }

/* ---------- lists of facts ---------- */
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
.facts li:first-child { border-top: 0; }
.facts strong { font-weight: 800; }
.facts span { color: var(--soft); font-size: 0.9rem; }
@media (max-width: 560px) { .facts li { grid-template-columns: 1fr; } }
.cols { columns: 3 15rem; column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.cols li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.tags li { font-size: 0.74rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--line); }

/* ---------- treatments ---------- */
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.jump a { font-size: 0.8rem; font-weight: 700; text-decoration: none; padding: 8px 15px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.jump a:hover { border-color: var(--name); color: var(--name); }
.treatment { display: grid; grid-template-columns: 260px 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.treatment img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: var(--line); }
.treatment h2 { font-weight: 900; text-transform: uppercase; letter-spacing: -0.035em; font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin-bottom: 12px; }
.treatment p { margin: 0 0 0.9em; }
.treatment .note { font-size: 0.8rem; font-weight: 800; color: var(--name); }
@media (max-width: 720px) { .treatment { grid-template-columns: 1fr; } .treatment img { aspect-ratio: 16 / 9; } }

/* ---------- clinics ---------- */
.clinic { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.clinic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.clinic .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.clinic h3 { font-weight: 900; font-size: 1.15rem; letter-spacing: -0.02em; }
.clinic address { font-style: normal; color: var(--soft); margin-top: 6px; font-size: 0.92rem; }
.clinic .links-row { display: flex; gap: 18px; margin-top: auto; padding-top: 18px; font-size: 0.85rem; }

/* ---------- testimonials ---------- */
.quotes { columns: 2 20rem; column-gap: 16px; }
.quote { break-inside: avoid; margin: 0 0 16px; }
.quote blockquote { margin: 0; font-size: 1.02rem; font-weight: 600; line-height: 1.65; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 3rem; line-height: 0.7; color: var(--name); font-weight: 900; margin-bottom: 6px; }
.quote figcaption { margin-top: 14px; font-size: 0.8rem; font-weight: 700; color: var(--soft); }

/* ---------- information ---------- */
.docs { list-style: none; margin: 14px 0 0; padding: 0; }
.docs a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: 0.93rem; font-weight: 600; }
.docs li:first-child a { border-top: 0; }
.docs a:hover { color: var(--name); }
.docs a span { flex: 0 0 auto; font-size: 0.72rem; font-weight: 800; color: var(--soft); }
.card h3 { font-weight: 900; font-size: 1.05rem; letter-spacing: -0.01em; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 620px) { .form-row, .form-row.three { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 0.8rem; font-weight: 800; }
.field label em { color: var(--name); font-style: normal; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card-solid); color: var(--ink); width: 100%;
}
.field input, .field select { height: 48px; }
.field textarea { resize: vertical; }
.help { font-size: 0.75rem; color: var(--soft); margin: 0; }
.status { min-height: 1.2em; font-size: 0.88rem; font-weight: 700; }
.status.error { color: #a3262e; }
.notice { border-color: color-mix(in srgb, var(--name) 45%, transparent); }

/* ---------- message pages (success / error) ---------- */
.message { min-height: calc(100vh - 70px); display: grid; place-items: center; text-align: center; padding: 40px 0; }

/* ---------- footer ---------- */
.site-footer { position: relative; z-index: 2; padding: 40px 0 34px; text-align: center; font-size: 0.86rem; }
.site-footer .contact { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 30px; font-weight: 600; color: var(--soft); }
.site-footer strong { color: var(--ink); font-weight: 800; margin-right: 6px; }
.site-footer a { text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.site-footer a:hover { color: var(--name); border-color: var(--name); }
.site-footer .social { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-weight: 700; }
.site-footer .copy { margin-top: 14px; font-size: 0.75rem; color: var(--soft); }

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

/* three hero buttons stay in one row on phones, like vahecooper.com */
@media (max-width: 560px) {
  .hero .actions { flex-wrap: nowrap; gap: 8px; }
  .hero .actions .btn { min-width: 0; flex: 1 1 0; padding: 14px 6px; font-size: 0.66rem; letter-spacing: 0.1em; }
}

/* consecutive sections share one gap rather than two */
.section + .section { padding-top: 0; }

/* Santa hats on the logos (added at Christmas only) */
.santa { position: absolute; pointer-events: none; z-index: 3; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.18)); }
.brand, .disc, .page-head .wrap { position: relative; }
.disc .santa { width: 33%; left: 34%; top: 7%; transform: rotate(-10deg); }   /* on the doctor's head */
.brand .santa { width: 17px; left: 9px; top: -6px; transform: rotate(-10deg); }
.page-head .santa { width: 36px; left: calc(50% - 19px); top: -3px; transform: rotate(-10deg); }
