/* ============================================================
   Professional & Health persona — "the framed credential /
   the practice's letterhead"
   Grounded in a plausible real Saskatoon practice:
   Stonebridge Dental Care, a family + cosmetic dental office on
   the growing south side. These regulated professions (dentists,
   chiropractors, accountants) convert on CREDIBILITY, not visual
   excitement — the trust vernacular is the DOCUMENT: the framed
   diploma, the college registration, the engraved seal, the
   letterhead, the appointment card.

   Deliberately NOT the "clean SaaS / medical template" default
   (grey-blue #F5F7FA ground, #2563EB primary blue, Inter
   everywhere, glassy rounded floating cards, trust badges in the
   footer): here the ground is a warm-cool paper, the accent is a
   verdigris ENGRAVED-SEAL teal (+ tiny antique-gilt), the display
   face is a literary transitional serif that reads like fine
   letterpress on a certificate, and the TRUST band is the LEAD
   structural moment — a full-bleed dark credential panel carrying
   a display-scale rating numeral and a monogram seal — not an
   afterthought strip.

   Token system:
     --paper    #F6F7F5  warm-cool paper ground (off SaaS grey)
     --ink      #16302C  deep pine-ink — hero + credential band
     --seal     #2C6E63  verdigris engraved-seal teal — accent
     --seal-deep#1F544B  deeper teal — hover / borders
     --slate    #5A6B68  muted eucalyptus-grey — body / captions
     --gilt     #B08A3E  restrained antique gold — stars + seal ring
   Type roles:
     display  Newsreader     (literary transitional serif — calm,
                              letterpress-certificate authority)
     body     Instrument Sans(humanist grotesque — clean, not Inter)
     data     IBM Plex Mono  (engraved-on-the-certificate readout)
   Signature:
     the engraved credential seal — a CSS gilt-ringed monogram
     medallion in the credential band, echoed as the nav brand mark.
   ============================================================ */

:root {
  --paper: #F6F7F5;
  --paper-panel: #FBFCFB;
  --ink: #16302C;
  --ink-deep: #0F2320;
  --seal: #2C6E63;
  --seal-deep: #1F544B;
  --slate: #5A6B68;
  --slate-soft: #7A8A87;
  --gilt: #B08A3E;
  --gilt-soft: #C7A85E;

  --line: #D8DEDA;
  --line-ink: rgba(255, 255, 255, 0.16);

  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1100px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

/* --- accessibility --- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--seal);
  color: #fff;
  font-family: var(--font-data);
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

a { color: inherit; }

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

/* ============================================================
   Signature: engraved credential seal (shared building block)
   Concentric gilt keylines + verdigris field. Used at nav scale
   and at medallion scale.
   ============================================================ */
.brand__seal,
.trust__medallion,
.gallery__fallback-seal,
.engrave-rule__seal {
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, var(--seal) 0%, var(--seal-deep) 100%);
  box-shadow:
    inset 0 0 0 1px var(--gilt),
    inset 0 0 0 4px var(--seal-deep),
    inset 0 0 0 5px rgba(199, 168, 94, 0.55);
  position: relative;
  flex: none;
}
.brand__seal::after,
.trust__medallion::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 1px solid rgba(199, 168, 94, 0.7);
}

/* ============================================================
   Hero — quiet, letterhead-calm. No stock photo; the type and
   the rating carry it.
   ============================================================ */
.hero {
  background:
    linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
  color: #EAF0ED;
  padding-bottom: clamp(3rem, 7vw, 5rem);
  position: relative;
}
.hero::before {
  /* faint engraved guilloché-style hairline at the top edge */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--seal) 0%, var(--gilt) 50%, var(--seal) 100%);
}

.nav {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.4rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.brand__seal {
  width: 30px;
  height: 30px;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  color: #F4F8F6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav .cta {
  font-family: var(--font-data);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #EAF0ED;
  border: 1px solid var(--line-ink);
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}
.nav .cta:hover {
  border-color: var(--gilt-soft);
  background: rgba(199, 168, 94, 0.08);
}

.hero-body {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem) var(--pad) 0;
}
.eyebrow {
  font-family: var(--font-data);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gilt-soft);
  margin: 0 0 1rem;
}
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 6.5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  color: #F7FAF8;
  max-width: 16ch;
}
.tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.32rem);
  color: #C4D2CD;
  max-width: 46ch;
  margin: 0 0 2rem;
  line-height: 1.55;
}

/* --- primary CTA --- */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  color: #fff;
  background: var(--seal);
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--seal-deep);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
  transition: background 0.2s, transform 0.1s;
}
.cta-primary:hover { background: var(--seal-deep); }
.cta-primary:active { transform: translateY(1px); }
.cta-primary__mark { font-size: 1.05em; line-height: 1; }
.cta-primary--wide { margin-top: 0.5rem; }

/* --- hero status stamp (small, echoes; the big rating lives in TRUST) --- */
.status-stamp {
  margin: 1.8rem 0 0;
  font-family: var(--font-data);
  font-size: 0.9rem;
  color: #B7C7C2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.stars { color: var(--gilt-soft); letter-spacing: 0.08em; }
.status-stamp__val { color: #F4F8F6; font-weight: 600; }
.status-stamp__sep { color: var(--slate-soft); }
.status-stamp__hours { color: #B7C7C2; }

/* ============================================================
   Engraved rule — double keyline with a small centered seal.
   The letterhead divider between hero and credential band.
   ============================================================ */
.engrave-rule {
  position: relative;
  height: 34px;
  background: var(--ink-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.engrave-rule::before,
.engrave-rule::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--line-ink);
}
.engrave-rule::before { top: 13px; }
.engrave-rule::after { bottom: 13px; }
.engrave-rule__seal {
  width: 18px;
  height: 18px;
  z-index: 1;
  box-shadow:
    inset 0 0 0 1px var(--gilt),
    inset 0 0 0 3px var(--seal-deep);
}
.engrave-rule--foot {
  background: var(--paper);
  height: 24px;
}
.engrave-rule--foot::before { top: 11px; background: var(--line); }
.engrave-rule--foot::after { bottom: 11px; background: var(--line); }

/* ============================================================
   SECTION:TRUST_BAR — THE CREDENTIAL PANEL
   Full-bleed dark band, the highest-contrast + tallest moment
   after the hero. Carries the display-scale rating numeral and
   the engraved medallion. This is where prominence is spent.
   ============================================================ */
.trust {
  background:
    linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
  color: #EAF0ED;
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.trust__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.trust__eyebrow {
  font-family: var(--font-data);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gilt-soft);
  margin: 0 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-ink);
}

/* rating block: medallion + display-scale numeral */
.trust__score {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  margin-bottom: 2.5rem;
}
.trust__medallion {
  width: clamp(72px, 12vw, 104px);
  height: clamp(72px, 12vw, 104px);
}
.trust__rating {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.trust__rating-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.2rem, 9vw, 5.2rem);
  line-height: 0.9;
  color: #F7FAF8;
  letter-spacing: -0.02em;
}
.trust__rating-stars {
  color: var(--gilt);
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  letter-spacing: 0.14em;
}
.trust__rating-count {
  font-family: var(--font-data);
  font-size: 0.9rem;
  color: #B7C7C2;
  margin-top: 0.35rem;
}

/* credential lines — each a sealed record with a gilt check */
.trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 2.5rem;
}
.trust__item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 1.02rem;
  color: #E4ECE9;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-ink);
}
.trust__check {
  font-family: var(--font-body);
  color: var(--gilt);
  font-weight: 700;
  flex: none;
  font-size: 0.95em;
}

/* ============================================================
   SECTION:GALLERY
   ============================================================ */
.gallery {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--pad) clamp(1rem, 3vw, 2rem);
}
.eyebrow--section {
  color: var(--seal);
  margin-bottom: 1.6rem;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}
.shot {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-panel);
}
.shot--lead {
  grid-column: span 2;
  grid-row: span 2;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot__attr {
  position: absolute;
  left: 0; bottom: 0;
  font-family: var(--font-data);
  font-size: 0.68rem;
  color: #EAF0ED;
  background: rgba(15, 35, 32, 0.72);
  padding: 0.3rem 0.55rem;
  letter-spacing: 0.01em;
}

/* GALLERY:FALLBACK — engraved placeholder card (letterhead language) */
.gallery__fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 320px;
  text-align: center;
  background:
    repeating-linear-gradient(
      -45deg,
      var(--paper-panel) 0 12px,
      #F1F3F1 12px 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--line);
  padding: 2rem;
}
.gallery__fallback-seal {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, var(--seal) 0%, var(--seal-deep) 100%);
  box-shadow:
    inset 0 0 0 1px var(--gilt),
    inset 0 0 0 4px var(--seal-deep),
    inset 0 0 0 5px rgba(199, 168, 94, 0.55);
}
.gallery__fallback-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--ink);
}
.gallery__fallback-note {
  font-family: var(--font-data);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--slate);
}

/* ============================================================
   SECTION:REVIEWS
   ============================================================ */
.reviews {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad);
}
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.review {
  margin: 0;
  background: var(--paper-panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--seal);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.review__stars {
  color: var(--gilt);
  letter-spacing: 0.1em;
  font-size: 0.95rem;
}
.review__text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--ink);
}
.review__author {
  font-family: var(--font-data);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--slate);
  margin-top: auto;
}

/* ============================================================
   SECTION:HOURS
   ============================================================ */
.hours {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) var(--pad) clamp(3rem, 7vw, 5rem);
  text-align: center;
}
.hours__row {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-data);
  font-size: 0.95rem;
  color: var(--slate);
  margin-bottom: 0.5rem;
}
.hours__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--seal);
  box-shadow: 0 0 0 3px rgba(44, 110, 99, 0.18);
}
.hours__label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}
.hours__val { color: var(--ink); }
.hours__addr {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 1.75rem;
}

/* ============================================================
   Footer
   ============================================================ */
.foot {
  background: var(--paper);
  padding: 1.75rem var(--pad) 2.5rem;
  text-align: center;
}
.foot p {
  max-width: var(--wrap);
  margin: 0 auto;
  font-family: var(--font-data);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--slate-soft);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 720px) {
  .trust__list { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .shot--lead { grid-column: span 1; grid-row: span 1; }
  .reviews__grid { grid-template-columns: 1fr; }
  .display { max-width: 100%; }
}

@media (max-width: 480px) {
  .nav .cta { display: none; }
  .trust__score { flex-direction: column; align-items: flex-start; }
}

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