/* Meridian Dental — sample site by ACE Websites
   Calm clinical: porcelain white, slate ink, calm blue accent,
   Manrope throughout, soft 10px corners, published-fee table. */

:root {
  --porcelain: #f4f6f8;
  --paper: #ffffff;
  --slate: #243244;
  --ink: #1c2733;
  --muted: #5d6b7a;
  --line: #dde4ea;
  --blue: #2e6f95;
  --blue-dark: #245a7a;
  --blue-soft: #e4eef4;
  --radius: 10px;
  --max: 64rem;
  --pad: clamp(1.25rem, 4vw, 2.25rem);
  --bar-h: 3.5rem;
  --sans: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-bottom: var(--bar-h);
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); }

::selection { background: #cfe2ee; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5vw, 3.15rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.15rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.9rem;
}

.fine {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 1.75rem;
}

/* Topbar */

.topbar {
  background: var(--slate);
  color: rgba(244, 246, 248, 0.82);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 2.25rem;
  font-size: 0.8rem;
}

.topbar a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.topbar a:hover { text-decoration: underline; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.brand b { font-weight: 800; }

.brand-mark {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--blue);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.6rem);
  font-size: 0.85rem;
  font-weight: 600;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav a:hover { color: var(--ink); }

.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: background 0.15s ease !important;
}

.nav-cta:hover { background: var(--blue-dark); color: #fff !important; }

/* Buttons */

.btn {
  display: inline-block;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--blue);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.text-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.text-link:hover { color: var(--ink); text-decoration-color: var(--blue); }

/* Hero */

.hero { padding-block: clamp(3rem, 8vw, 5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.dek {
  color: var(--muted);
  max-width: 34rem;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: 1.6rem 0 1.75rem;
  flex-wrap: wrap;
}

.hero-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-trust li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--blue);
  flex: none;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--blue-soft);
}

/* Specs strip */

.specs {
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.specs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-block: 1.1rem;
}

.specs-row .label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.specs-row b {
  font-size: 0.95rem;
  font-weight: 700;
}

/* Sections */

.section { padding-block: clamp(3rem, 7vw, 4.5rem); }

.section.alt { background: var(--paper); }

.section-head { max-width: 38rem; margin-bottom: 2.25rem; }

.section-lede { color: var(--muted); }

/* Timeline (first visit) */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: step;
}

.timeline li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline li:first-child { border-top: 1px solid var(--line); }

.tl-time {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  height: fit-content;
  text-align: center;
  white-space: nowrap;
}

.tl-body h3 { margin-bottom: 0.25rem; }

.tl-body p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Fee table */

.fees {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.95rem;
}

.fees th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.85rem 1.1rem;
  background: var(--porcelain);
  border-bottom: 1px solid var(--line);
}

.fees th:last-child { text-align: right; }

.fees td {
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.fees tr:last-child td { border-bottom: 0; }

.fees td:last-child {
  text-align: right;
  font-weight: 800;
  white-space: nowrap;
}

.fees tbody tr:hover { background: var(--blue-soft); }

/* Band */

.band {
  background: var(--slate);
  color: rgba(244, 246, 248, 0.85);
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.band-inner { max-width: 40rem; }

.band h2 { color: #fff; }

.band p { margin-bottom: 1.6rem; }

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-grid p { color: var(--muted); }

.checklist {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.checklist li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.6rem;
  align-items: start;
}

.checklist li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--blue);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--blue-soft);
}

/* Quote */

.quote-band {
  background: var(--blue-soft);
  padding-block: clamp(2.5rem, 6vw, 3.75rem);
}

.quote-band blockquote {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 44rem;
}

.quote-attr {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.contact-lede { color: var(--muted); max-width: 30rem; }

.contact-list {
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.contact-list div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.contact-list dt {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-top: 0.2rem;
}

.contact-list dd {
  margin: 0;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-list a { text-decoration: none; font-weight: 700; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.appt-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 1.85rem);
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.appt-form label {
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.55rem;
}

.appt-form .opt { color: var(--muted); font-weight: 500; }

.appt-form input,
.appt-form select,
.appt-form textarea {
  font: inherit;
  font-size: 0.92rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--porcelain);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.appt-form input:focus,
.appt-form select:focus,
.appt-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}

.appt-form textarea { resize: vertical; }

.appt-form .btn { margin-top: 1rem; justify-self: start; }

/* Footer */

.site-footer {
  background: var(--slate);
  color: rgba(244, 246, 248, 0.7);
  padding-block: 2.5rem;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  margin: 0 0 0.2rem;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}

.footer-note { margin: 0; }

.footer-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
}

/* Sample bar (ACE Websites) */

.sample-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--slate);
  color: rgba(244, 246, 248, 0.85);
  border-top: 2px solid var(--blue);
}

.sample-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--bar-h);
  padding-block: 0.5rem;
}

.sample-bar p { margin: 0; }

.sample-bar b { color: #8ec1de; }

.sample-bar a {
  flex: none;
  color: #fff;
  background: var(--blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 0.95rem;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.sample-bar a:hover { background: var(--blue-dark); }

html.framed .sample-bar { display: none; }
html.framed body { padding-bottom: 0; }

/* Responsive */

@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo img, .about-photo img { aspect-ratio: 16 / 10; }
  .timeline li { grid-template-columns: 5rem 1fr; gap: 1rem; }
}

@media (max-width: 720px) {
  .nav a:not(.nav-cta) { display: none; }
  .topbar-inner span { display: none; }
  .specs-row { grid-template-columns: 1fr 1fr; gap: 1.1rem; }
  .timeline li { grid-template-columns: 1fr; gap: 0.5rem; }
  .tl-time { justify-self: start; }
  .fees thead { display: none; }
  .fees, .fees tbody, .fees tr, .fees td { display: block; width: 100%; }
  .fees tr {
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--line);
  }
  .fees td {
    padding: 0.15rem 0;
    border: 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }
  .fees td::before {
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .fees td:first-child {
    font-weight: 700;
    font-size: 0.98rem;
    margin-bottom: 0.25rem;
  }
  .fees td:first-child::before { display: none; }
  .fees td:last-child { justify-content: flex-start; }
  .sample-bar-inner { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  body { padding-bottom: 5.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
