/* ================================================================
   SMILE PLUS DENTAL CLINIC — SHARED STYLESHEET
   ================================================================ */

/* Self-hosted fonts (latin subset) — no third-party requests */
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Serif Display';
  src: url('fonts/dm-serif-display.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --teal:      #0A9080;
  --teal-h:    #087A6C;
  --teal-lt:   #E4F4F1;
  --teal-mid:  #A8D9D2;
  --navy:      #13253E;
  --navy-lt:   #1D3A5C;
  --text:      #1A2C3D;
  --muted:     #637080;
  --border:    #DDE8F0;
  --bg:        #F4F8FA;
  --surface:   #FFFFFF;
  --wa:        #22C55E;
  --wa-h:      #16A34A;
  --gold:      #F5B731;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --sh-sm: 0 2px 8px rgba(15,40,70,.06);
  --sh-md: 0 4px 20px rgba(15,40,70,.10);
  --sh-lg: 0 8px 40px rgba(15,40,70,.14);
  --bar-h: 70px;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bar-h);
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
input, select, textarea { font-family: inherit; }

/* ── Layout ────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: 1100px; margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 56px; }

/* ── Typography ────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(28px, 8vw, 48px); }
h2 { font-size: clamp(22px, 5vw, 34px); }
h3 { font-size: clamp(17px, 3.5vw, 21px); }
p { text-wrap: pretty; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

/* ── Header ────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 8px;
}
.logo { display: flex; align-items: center; gap: 9px; }
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--teal);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; line-height: 1;
  flex-shrink: 0;
}
.logo-copy { display: flex; flex-direction: column; line-height: 1.15; }
.logo-copy strong { font-size: 15px; font-weight: 700; color: var(--navy); }
.logo-copy small { font-size: 11px; color: var(--muted); font-weight: 400; }

/* Mobile menu */
.nav-links {
  display: none;
  position: absolute;
  top: 62px; left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: 2px;
  padding: 8px 20px 16px;
  box-shadow: 0 8px 20px rgba(15,40,70,.08);
}
.nav-links.open { display: flex; }
.nav-links a {
  display: block;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: background .15s;
}
.nav-links a:hover,
.nav-links a.active { background: var(--teal-lt); color: var(--teal); }
.nav-links a.active { font-weight: 600; }

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px; transition: .2s;
}

/* Desktop nav */
.nav-cta { display: none; }

@media (min-width: 768px) {
  .burger { display: none; }
  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    border: none;
    padding: 0;
    gap: 2px;
    box-shadow: none;
  }
  .nav-cta { display: inline-flex; }
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 22px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: transform .2s, box-shadow .2s, background .15s;
  white-space: nowrap;
}
.btn-p { background: var(--teal); color: white; }
.btn-p:hover { background: var(--teal-h); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-wa { background: var(--wa); color: white; }
.btn-wa:hover { background: var(--wa-h); transform: translateY(-1px); }
.btn-s { background: var(--teal-lt); color: var(--teal); border: 1px solid var(--teal-mid); }
.btn-s:hover { background: var(--teal-mid); }
.btn-o { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-o:hover { background: var(--teal-lt); }
.btn-n { background: var(--navy); color: white; }
.btn-n:hover { background: var(--navy-lt); transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Cards ─────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}

/* ── Trust Badge ───────────────────────────────────────────────── */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1.5px solid var(--teal-mid);
  border-radius: 100px;
  padding: 7px 16px 7px 10px;
}
.stars { display: flex; gap: 1px; }
.star { font-size: 15px; line-height: 1; color: var(--gold); }
.trust-info { font-size: 13.5px; line-height: 1.3; }
.trust-info b { color: var(--navy); font-weight: 700; }
.trust-info span { color: var(--muted); }

/* ── Image Placeholder ─────────────────────────────────────────── */
.img-ph {
  width: 100%;
  background: #EAF2F8;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent, transparent 12px,
    rgba(0,0,0,.022) 12px, rgba(0,0,0,.022) 24px
  );
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #90AABC;
  font-size: 12px;
  text-align: center;
  padding: 16px;
  user-select: none;
}

/* ── Real Clinic Photos ────────────────────────────────────────── */
.clinic-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-lg);
  background: #EAF2F8;
}

/* ── Sticky Bottom Bar ─────────────────────────────────────────── */
.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(15,40,70,.10);
  padding: 11px 20px calc(11px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 10px;
}
.sticky-bar .btn {
  flex: 1;
  font-size: 14.5px;
  padding: 12px 10px;
}

/* ── Footer ────────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.60);
  padding: 36px 0;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-weight: 600;
  font-size: 15px;
}
.footer-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--teal);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: rgba(255,255,255,.5); transition: color .15s; }
footer a:hover { color: white; }
.footer-copy { color: rgba(255,255,255,.28); font-size: 12px; }

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .sticky-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ── Shared Form ───────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}
.form-label .req { color: var(--teal); }
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  -webkit-appearance: none;
}
.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(10,144,128,.12);
}
.form-control::placeholder { color: #AABBC9; }

/* ── Page Hero Banner ──────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lt) 100%);
  padding-block: 48px 44px;
  color: white;
}
.page-hero .eyebrow { color: var(--teal-mid); }
.page-hero h1 { color: white; font-size: clamp(26px, 6vw, 40px); }
.page-hero p { color: rgba(255,255,255,.7); max-width: 48ch; margin-top: 10px; font-size: 16px; }

/* ── Utility ───────────────────────────────────────────────────── */
.text-muted { color: var(--muted); }
.text-teal  { color: var(--teal); }
.text-navy  { color: var(--navy); }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
