/* ============================================================
   Northgate Dental — calm blue & white, clear typography
   ============================================================ */

:root {
  --bg: #f4ead8;            /* warm cream base (default) */
  --ink: #3a2415;           /* rich coffee brown */
  --accent: #6b1f1a;        /* deep burgundy */
  --secondary: #5a5e3a;     /* natural olive */

  /* calm blue & white palette */
  --blue-900: #1c3a5e;
  --blue-700: #2d5a8a;
  --blue-500: #4a7fb5;
  --blue-100: #eef2f7;
  --white: #ffffff;

  --serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 55ch;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  transition: background 0.4s ease;
  -webkit-font-smoothing: antialiased;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--pad);
  background: rgba(244, 234, 216, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(58, 36, 21, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--blue-700);
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.brand-name { font-size: 0.95rem; letter-spacing: 0.02em; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible { border-bottom-color: var(--blue-500); color: var(--blue-700); }

.site-nav .nav-cta {
  border: 1px solid var(--blue-700);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  color: var(--blue-700);
  background: transparent;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: var(--blue-700);
  color: var(--white);
  border-bottom-color: var(--blue-700);
}

/* ============ MAIN LAYOUT ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding-top: clamp(4rem, 10vw, 7rem);
  padding-bottom: clamp(4rem, 10vw, 7rem);
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-700);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 6.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
  color: var(--ink);
}

.hero-lede {
  font-size: 1.05rem;
  max-width: 46ch;
  color: rgba(58, 36, 21, 0.85);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--blue-700);
  color: var(--white);
}
.btn-primary:hover,
.btn-primary:focus-visible { background: var(--blue-900); }

.btn-ghost {
  background: transparent;
  color: var(--blue-700);
  border-color: var(--blue-700);
}
.btn-ghost:hover,
.btn-ghost:focus-visible { background: var(--blue-100); }

/* ============ DICTATED QUOTE (signature) ============ */
.hero-aside {
  margin-top: 3rem;
  padding: 1.6rem 1.8rem;
  border-left: 3px solid var(--blue-500);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0 12px 12px 0;
}

.dictated {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--blue-900);
}

.dictated-word {
  display: inline-block;
  opacity: 0;
  animation: dictate 0.4s ease forwards;
}

@keyframes dictate {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dictated-word::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--blue-500);
  animation: caret 0.9s steps(1) infinite;
}

@keyframes caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ============ SECTION HEADS ============ */
.section-head { margin-bottom: 2.5rem; }

.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  color: var(--ink);
  margin-bottom: 0.8rem;
}

.section-sub {
  color: rgba(58, 36, 21, 0.8);
  max-width: 50ch;
}

/* ============ SERVICES ============ */
.services { background: var(--blue-100); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(28, 58, 94, 0.12);
  border-radius: 12px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 2px 10px rgba(28, 58, 94, 0.05);
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 0.5rem;
}

.service-card p { color: rgba(58, 36, 21, 0.85); font-size: 0.92rem; }

.service-card .service-note {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-700);
}

/* ============ ABOUT ============ */
.about-body p {
  margin-bottom: 1.2rem;
  color: rgba(58, 36, 21, 0.88);
}

.about-aside {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.fact-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(28, 58, 94, 0.15);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  text-align: center;
}

.fact-number {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--blue-700);
}

.fact-label {
  font-size: 0.8rem;
  color: rgba(58, 36, 21, 0.75);
  margin-top: 0.3rem;
}

/* ============ CONTACT ============ */
.contact { background: var(--blue-100); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.contact-details h3,
.booking h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 1rem;
}

.contact-details address {
  font-style: normal;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.wayfinding {
  font-size: 0.9rem;
  color: rgba(58, 36, 21, 0.8);
  margin-bottom: 1.4rem;
  max-width: 44ch;
}

.contact-line {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.contact-label {
  display: inline-block;
  width: 4.5rem;
  font-weight: 600;
  color: var(--blue-700);
}

.contact-line a { color: var(--ink); }
.contact-line a:hover { color: var(--blue-700); }

.hours { margin-top: 1.8rem; }

.hours h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 0.8rem;
}

.hours ul { list-style: none; }

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(28, 58, 94, 0.15);
  font-size: 0.9rem;
}

.hours li span:first-child { color: rgba(58, 36, 21, 0.7); }

/* ============ BOOKING FORM ============ */
.booking {
  background: var(--white);
  border: 1px solid rgba(28, 58, 94, 0.12);
  border-radius: 14px;
  padding: 1.8rem;
  box-shadow: 0 4px 16px rgba(28, 58, 94, 0.07);
}

.booking-intro {
  font-size: 0.9rem;
  color: rgba(58, 36, 21, 0.8);
  margin-bottom: 1.4rem;
}

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 0.35rem;
}

.field .optional {
  font-weight: 400;
  color: rgba(58, 36, 21, 0.5);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--blue-100);
  border: 1px solid rgba(28, 58, 94, 0.2);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(74, 127, 181, 0.2);
}

.field textarea { resize: vertical; }

.form-status {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--blue-700);
  font-weight: 500;
}

/* ============ FOOTER ============ */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem var(--pad) 3rem;
  border-top: 1px solid rgba(58, 36, 21, 0.12);
  font-size: 0.85rem;
  color: rgba(58, 36, 21, 0.75);
  line-height: 1.8;
}

.site-footer .muted { color: rgba(58, 36, 21, 0.55); }

.attribution a { color: rgba(58, 36, 21, 0.55); }
.attribution a:hover { color: var(--blue-700); }

/* ============ FOCUS VISIBLE ============ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
}

/* ============ RESPONSIVE ============ */
@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (min-width: 1080px) {
  .hero-aside {
    position: absolute;
    right: -22vw;
    top: 50%;
    transform: translateY(-50%);
    width: 20vw;
    min-width: 260px;
  }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { transition: none; }
  .dictated-word {
    opacity: 1;
    animation: none;
  }
  .dictated-word::after { animation: none; }
  .btn { transition: none; }
  .btn:active { transform: none; }
}
