/* Quillmere Dental — a sample dental practice site by Beacon Solutions. Not a real business. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url(fonts/plus-jakarta-sans-latin-wght-normal.woff2) format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbfdfc;
  --ink: #10302f;
  --ink-2: #26504d;
  --teal: #1f6f6a;
  --teal-2: #185a56;
  --mint: #e2f2ed;
  --mint-2: #cde8e0;
  --line: #dbe8e4;
  --sun: #f3b94d;
  --muted: #587370;
  --sans: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4.5vw, 44px);
  color-scheme: light;
}

*, *::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; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-weight: 750; letter-spacing: -0.025em; word-spacing: 0.08em; line-height: 1.1; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; margin: -1px; }
section { scroll-margin-top: 12px; }
.muted { color: var(--muted); }

/* ── the sample banner: first thing on the page, never hidden ───────────────────── */
.sample-banner { background: var(--ink); color: #dcefe9; font: 500 0.8125rem/1.45 var(--sans); padding: 9px var(--gutter); text-align: center; }
.sample-banner strong { color: var(--sun); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; margin-right: 4px; }

/* ── header ───────────────────────────────────────────────────────────────────────── */
.top { background: rgba(251, 253, 252, .92); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 28px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--teal); color: #fff; }
.brand-mark svg { width: 28px; height: 28px; }
.brand-name { font-weight: 500; font-size: 1.1875rem; letter-spacing: -0.02em; }
.brand-name b { font-weight: 800; color: var(--teal); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.9375rem; color: var(--ink-2); padding: 9px 14px; border-radius: 10px; white-space: nowrap; }
.nav a:hover { background: var(--mint); color: var(--ink); }

/* ── buttons ──────────────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border-radius: 12px; font-weight: 700; font-size: 0.9375rem; text-decoration: none; white-space: nowrap; transition: background-color .2s ease; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-2); }
.btn-soft { background: var(--mint); color: var(--ink); }
.btn-soft:hover { background: var(--mint-2); }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 1.0625rem; border-radius: 14px; }

/* ── hero ─────────────────────────────────────────────────────────────────────────── */
.hero { background: linear-gradient(180deg, var(--bg) 0%, #f1f9f6 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 7vw, 96px); }
.kicker { display: inline-block; font-weight: 700; font-size: 0.875rem; color: var(--teal); background: var(--mint); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.03em; line-height: 1.02; max-width: 15ch; }
.lede { font-size: clamp(1.125rem, 2vw, 1.3125rem); line-height: 1.6; color: var(--muted); max-width: 44ch; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.facts li { font-weight: 600; }
.facts span { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hero-art { margin: 0; width: min(100%, 440px); justify-self: center; }
.hero-art .blob { fill: var(--mint); }
.hero-art .sun { fill: var(--sun); }
.hero-art .big-tooth path { fill: #fff; stroke: var(--teal); stroke-width: 7; stroke-linejoin: round; }
.hero-art .big-tooth .shine { fill: none; stroke: var(--mint-2); stroke-width: 9; stroke-linecap: round; }
.hero-art .spark path { stroke: var(--teal); stroke-width: 6; stroke-linecap: round; }

/* ── bands ────────────────────────────────────────────────────────────────────────── */
.band { padding-block: clamp(56px, 8vw, 104px); }
.band-mint { background: var(--mint); }
.band-ink { background: var(--ink); color: #eaf5f1; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.section-head p { color: var(--muted); max-width: 44ch; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: var(--mint-2); transform: translateY(-2px); }
.ico { width: 44px; height: 44px; color: var(--teal); background: var(--mint); border-radius: 12px; padding: 7px; margin-bottom: 18px; }
.card h3 { font-size: 1.1875rem; margin-bottom: 8px; }
.card p { color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.steps li { background: #fff; border-radius: 20px; padding: 28px; position: relative; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; margin-bottom: 18px; }
.steps h3 { font-size: 1.25rem; margin-bottom: 8px; }
.steps p { color: var(--muted); }

.hours-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.hours-grid h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 14px; }
.hours-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours-table th, .hours-table td { padding: 15px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.hours-table th { font-weight: 700; }
.hours-table td { text-align: right; }
.hours-table tr:first-child th, .hours-table tr:first-child td { border-top: 2px solid var(--ink); }
.hours-table .off { color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 80px); align-items: center; }
.contact-grid h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.address { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; margin: 18px 0 12px; }
.soft { color: #a9c9c2; max-width: 40ch; }
.contact-actions { display: grid; gap: 12px; }
.big-link { display: block; text-decoration: none; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 18px 22px; font-weight: 700; font-size: clamp(1.0625rem, 2.2vw, 1.375rem); overflow-wrap: anywhere; transition: background-color .2s ease; }
.big-link:hover { background: rgba(255, 255, 255, .12); }
.big-link span { display: block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sun); margin-bottom: 4px; }

/* ── footer ───────────────────────────────────────────────────────────────────────── */
.foot { padding-block: 40px 48px; font-size: 0.9375rem; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px 64px; }
.foot strong { font-weight: 800; }
.foot a { text-underline-offset: 3px; }
.foot-note { color: var(--muted); border-left: 3px solid var(--sun); padding-left: 18px; }

.call-bar { display: none; }

/* ── tablet ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .top-row { flex-wrap: wrap; gap: 8px 16px; padding-block: 14px 8px; min-height: 0; }
  .top-call { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0 -8px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── phone ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  body { padding-bottom: 76px; }
  .top-call { display: none; }
  .nav { margin: 0; justify-content: space-between; overflow: visible; }
  .nav a { padding: 8px 6px; font-size: 0.875rem; }
  .hero-grid, .hours-grid, .contact-grid, .foot-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { padding-top: 28px; }
  .hero-art { width: min(58%, 220px); justify-self: end; margin-top: -8px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .call-bar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20;
    min-height: 56px; align-items: center; justify-content: center;
    border-radius: 16px; background: var(--teal); color: #fff; font-weight: 800; font-size: 1.0625rem;
    text-decoration: none; box-shadow: 0 12px 30px rgba(16, 48, 47, .3);
  }
}
