/*
 * Mike Thomas DDS: same look as the 2010-era live site (theme/style.css), rebuilt mobile-first and wider.
 * Palette and fonts are the original ones; only sizes/widths/spacing were scaled up (see decisions.md).
 * Where the original gold (#b18965) on cream failed WCAG AA for normal-size text, the darker --gold-ink is used.
 */
:root {
  --cream: #fdfde2;
  --gold: #b18965;        /* original link/text gold */
  --gold-ink: #7d5a3a;    /* AA-contrast gold for small text on cream (5.99:1) */
  --gold-logo: #8f6a48;   /* logo/brand gold on cream: 4.70:1 (original #b18965 was 3.06:1, at the 3:1 large-text edge) */
  --gold-panel: #c9a37f;  /* panel headings on #3e3e3e: 4.60:1 (original gold 3.38:1) */
  --focus: #1a73e8;       /* focus ring on cream (4.36:1) */
  --focus-dark: #ffd54f;  /* focus ring on black/dark panels (14.9:1 on black, 7.6:1 on #3e3e3e) */
  --gold-line: #a27c5d;
  --black: #000;
  --hours-text: #fcfce4;
  --panel: #3e3e3e;
  --panel-dark: #3c3c3c;
  --frame: #494949;
  --banner-bg: #d8d7c3;
  --promo: #ff8a80;       /* original "red" promo text, lightened for AA on the dark panel */
  --error: #ffcccc;       /* original .jsvalidation color */
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Arial, Helvetica, sans-serif;
  --max: 1240px;
  --side: 270px;
  --gap: clamp(.75rem, 2vw, 1.25rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--gold-ink);
  font: 1.0625rem/1.5 var(--sans);
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.site-header :focus-visible, .content :focus-visible, .hours :focus-visible, .site-footer :focus-visible, .skip:focus-visible { outline-color: var(--focus-dark); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.nowrap { white-space: nowrap; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--black); color: var(--hours-text); padding: .75rem 1rem; font-weight: bold;
}
.skip:focus { left: .5rem; top: .5rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: .625rem var(--gap) 1.5rem; }

/* ---- Header bar (header.gif: black rounded bar with lotus art) ---- */
.site-header {
  background: var(--black) url(../img/header-lotus.png) no-repeat left top / auto 100%;
  background-image: image-set(url(../img/header-lotus.webp) type("image/webp"), url(../img/header-lotus.png) type("image/png"));
  border-radius: 12px;
  color: var(--gold);
  font-weight: bold;
  padding: .75rem 1rem .625rem;
  min-height: 96px;
}
.site-header .address {
  margin: 0 0 0 auto; text-align: right; font-size: 1rem; line-height: 1.3;
  padding-bottom: .4rem; border-bottom: 2px solid var(--gold-line);
  max-width: 46rem;
}
.site-header .address span { display: block; }
@media (max-width: 999px) {
  /* keep the lotus art but dim it behind the text where they overlap (contrast) */
  .site-header {
    background-image: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)), url(../img/header-lotus.png);
    background-image: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)), image-set(url(../img/header-lotus.webp) type("image/webp"), url(../img/header-lotus.png) type("image/png"));
    background-size: auto, auto 100%; background-repeat: no-repeat; background-position: left top;
  }
}
@media (max-width: 759px) {
  .site-header { text-align: center; }
  .site-header .address { text-align: center; margin: 0 auto; }
  .nav { justify-content: center; }
  .side-photos img { width: calc(50% - .75rem); }
}
.site-header .phone { font-size: 1.625rem; text-decoration: none; display: inline-block; margin-top: .15rem; }
.nav { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem .35rem; }
.nav a {
  display: block; color: var(--gold); text-decoration: none; font-size: 1rem;
  padding: .3rem .6rem; border-radius: 7px; line-height: 1.3;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--cream); color: var(--gold-ink); }

/* ---- Two-column layout ---- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "brand" "banner" "content" "side";
  margin-top: .75rem;
}
.brand { grid-area: brand; padding: .5rem 0 1rem; }
.banner { grid-area: banner; }
.content { grid-area: content; align-self: start; }
.side { grid-area: side; margin-top: 1.5rem; }

.logo { margin: 0; font: 2.25rem/1.05 var(--serif); color: var(--gold); }
.logo a { text-decoration: none; }
.brand .logo { color: var(--gold-logo); }
.tagline { display: block; font: italic .95rem/1.3 var(--sans); color: #000; margin-top: .5rem; }

.hours {
  background: var(--black); color: var(--hours-text); font-weight: bold;
  font-size: 1rem; line-height: 1.35; padding: 1.1rem 1.1rem 1.4rem;
  border-bottom-left-radius: 22px;
}
.hours p { margin: 0 0 .75rem; }
.hours a { color: var(--gold); text-decoration: none; }
.hours a.arrow { display: inline-block; min-height: 24px; padding: .1rem 0; }
.hours a:hover { text-decoration: underline; }
.hours .arrow::before {
  content: ""; display: inline-block; width: 0; height: 0; margin-right: .4rem; vertical-align: 1px;
  border-left: 7px solid var(--gold); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.hours hr { border: 0; border-top: 2px solid var(--gold); margin: 1rem 0; }
.hours table { border-collapse: collapse; }
.hours th, .hours td { padding: .1rem .9rem .1rem 0; vertical-align: top; text-align: left; font-weight: bold; }
.hours caption { padding: .1rem .9rem .1rem 0; text-align: left; font-weight: bold; caption-side: top; }
.hours .forms-link { font-size: 1.125rem; margin: 0; }
.side-photos { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1.75rem 0; }
.side-photos img { width: 220px; }

/* ---- Banner (newbanner.jpg) ---- */
.banner { background: var(--banner-bg); }
.banner img { width: 100%; }

/* ---- Dark content panel ---- */
.content {
  background: var(--panel); color: #fff; margin-top: .375rem;
  padding: .75rem; font-size: 1.125rem; line-height: 1.6;
  border-bottom-left-radius: 26px;
}
.content .border { border: 1px solid #fff; padding: 1rem 1.1rem 1.5rem; min-height: 18rem; border-bottom-left-radius: 18px; }
.content h1, .content .panel-h { font: 2rem/1.2 var(--serif); color: var(--gold-panel); margin: 0 0 1rem; }
.content .panel-h { margin-top: 2rem; }
.content h2 { font-size: 1.25rem; margin: 1.5rem 0 .5rem; }
.content h3, .content h2.h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
/* former <p><em>Question?</em></p> pseudo-headings, now real h2s with the same look */
.content h2.sub { font: italic 1.125rem/1.6 var(--sans); margin: 0 0 1rem; }
.content h2.sub-strong { font-style: normal; font-weight: bold; }
.crumbs ol { list-style: none; margin: 0 0 .75rem; padding: 0; display: flex; flex-wrap: wrap; font-size: .95rem; }
.crumbs li + li::before { content: "\203A"; margin: 0 .45rem; color: var(--gold-panel); }
.content .crumbs a { font-weight: normal; display: inline-block; min-height: 24px; }
.content .crumbs a[aria-current="page"] { text-decoration: none; }
.nap { font-style: normal; margin: 0 0 1rem; }
.content a.directions { display: inline-flex; align-items: center; min-height: 44px; }
.content p { margin: 0 0 1rem; }
.content ul { margin: 0 0 1rem; padding-left: 1.5rem; list-style: circle; }
.content a { color: #fff; font-weight: bold; }
.content a:hover { background: #fff; color: var(--panel-dark); }
.promo { color: var(--promo); }
.action { border: 1px solid #b98567; padding: 1rem; text-align: center; margin: 1.75rem 0 0; }

/* Service pages: article + service menu */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.svc-image { float: right; margin: .35rem 0 .75rem 1rem; border: 3px solid var(--frame); max-width: 45%; }
.svc-article::after { content: ""; display: block; clear: both; }
.content .menu {
  list-style: none; margin: 0; padding: 0 0 0 .75rem; border-left: 1px solid var(--gold);
  font-size: 1rem; line-height: 1.45;
}
.menu a { display: inline-block; padding: .15rem .2rem; min-height: 24px; }
.menu a[aria-current="page"] { background: #fff; color: #7a5f2c; text-decoration: none; }

/* Gallery */
.content .gallery { list-style: none; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gallery img { border: 3px solid var(--frame); width: 100%; max-width: 208px; }

/* Map */
.map { width: 100%; aspect-ratio: 4 / 3; max-width: 760px; border: 0; display: block; background: #2e2e2e; margin-bottom: 1.5rem; }

/* Forms (original: #3c3c3c fields, #b98567 border, #b89567 button) */
.form-msg { color: var(--error); font-weight: bold; text-align: center; border: 1px solid var(--error); padding: .75rem; margin: 0 0 1rem; }
.form-msg p { margin: 0; }
.form-msg ul { text-align: left; margin: .5rem 0 0; list-style: disc; }
.content .form-msg a { color: var(--error); }
.field { margin: 0 0 1rem; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: bold; margin-bottom: .3rem; padding: 0; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1.0625rem; color: #fff; background: var(--panel-dark);
  border: 1px solid #b98567; padding: .55rem .6rem; border-radius: 2px; width: 100%; max-width: 32rem;
}
.field select { width: auto; max-width: none; }
.field textarea { min-height: 11rem; resize: vertical; }
.field .inline { display: flex; flex-wrap: wrap; gap: .5rem; }
.field .err { display: block; color: var(--error); font-size: .95rem; letter-spacing: .5px; margin-top: .25rem; }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.btn {
  font: bold 1.125rem var(--sans); background: #b89567; color: #1e1e1e; border: 1px solid #c3c3c3;
  padding: .7rem 1.4rem; cursor: pointer; border-radius: 2px;
}
.btn:hover { background: #cfae84; }
.content form { max-width: 100%; min-width: 0; }
/* Turnstile: assets/js/turnstile.js renders 'compact' (150px) below 300px. min-height reserves the normal widget's
   65px (less layout shift); overflow-x keeps any oversized iframe inside the form instead of scrolling the page. */
.ts-widget { margin: 0 0 1rem; max-width: 100%; min-height: 65px; overflow-x: auto; }
.appt-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2rem; }

/* ---- Site footer (full width; black bar + gold like the header) ---- */
.site-footer {
  background: var(--black); color: var(--hours-text); border-radius: 12px;
  margin-top: 1.5rem; padding: 1.5rem 1.25rem 1rem; font-size: 1rem; line-height: 1.5;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem 2rem; }
.f-logo, .site-footer .f-logo { font-size: 1.9rem; } /* beats the .logo breakpoints below (no 2-line wrap at >=1000px) */
.f-logo a { display: inline-block; min-height: 44px; }
.f-tagline { margin: .35rem 0 0; font-style: italic; }
.f-h { font: bold 1.0625rem var(--sans); color: var(--gold); margin: 0 0 .5rem; padding-bottom: .35rem; border-bottom: 2px solid var(--gold-line); }
.f-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
.f-nav a, .f-tel {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px;
  color: var(--gold); text-decoration: none; font-weight: bold;
}
.f-nav a:hover, .f-tel:hover, .f-logo a:hover { text-decoration: underline; }
.f-nav a[aria-current="page"] { color: var(--hours-text); }
.site-footer address { font-style: normal; }
.f-tel { font-size: 1.25rem; }
.f-hours table { border-collapse: collapse; }
.f-hours th, .f-hours td { text-align: left; padding: .1rem .9rem .1rem 0; font-weight: bold; vertical-align: top; }
.f-copy { margin: 1.25rem 0 0; padding-top: .75rem; border-top: 1px solid #333; text-align: center; color: var(--gold); font-weight: bold; font-size: .95rem; }

/* ---- Tablet+ ---- */
@media (min-width: 760px) {
  .site-header { padding: .9rem 1.25rem .7rem 300px; }
  .site-header .address span { display: inline; }
  .site-header .phone { margin: 0 0 0 1.5rem; }
  .nav a { font-size: 1.0625rem; }
  .layout {
    grid-template-columns: var(--side) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "brand banner" "side banner" "side content";
    column-gap: .5rem;
  }
  .side { margin-top: 0; }
  .side-photos { flex-direction: column; }
  .side-photos img { width: 100%; max-width: 230px; }
  .content { padding: 1rem; }
  .content .border { padding: 1.4rem 1.6rem 1.8rem; }
}
@media (min-width: 760px) and (max-width: 999px) {
  :root { --side: 220px; }
  .site-header { padding-left: 1.25rem; }
  .logo { font-size: 1.9rem; }
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .footer-grid { grid-template-columns: 1.2fr 1.3fr 1fr 1fr; }
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
  .svc-layout { grid-template-columns: minmax(0, 1fr) 230px; gap: 2.5rem; }
  .svc-layout .menu { align-self: start; margin-top: 3.25rem; }
  .appt-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .logo { font-size: 2.5rem; }
}
@media print {
  .site-header, .side, .banner, .skip, form, .f-nav { display: none !important; }
  .site-footer { background: #fff; color: #000; }
  body, .content { background: #fff; color: #000; }
  .content .border { border: 0; }
}
