/* Montvero sample bar */
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
.mds-bar {
  position: sticky; top: 0; z-index: 100;
  display: flex; flex-wrap: wrap; gap: .5rem 1rem;
  align-items: center; justify-content: space-between;
  padding: .5rem 1rem; background: #111; color: #fff;
  font: 500 .875rem/1.3 system-ui, sans-serif;
}
.mds-bar a { color: #fff; }
.mds-bar a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mds-bar .mds-bar-cta {
  background: #25d366; color: #111; font-weight: 700;
  padding: .4rem .8rem; border-radius: 999px; text-decoration: none;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Sandown Family Dental */
:root {
  --teal: #0e7c86;
  --teal-deep: #0a5f67;
  --navy: #12263a;
  --slate: #4b5d6e;
  --pale: #eaf6f6;
  --line: #d3e4e6;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: #fff; color: var(--navy);
  font: 400 1.0625rem/1.65 'Albert Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--teal); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3rem); }
p { margin: 0 0 1em; }

.btn {
  display: inline-block; padding: .95rem 1.7rem; border-radius: .9rem;
  background: var(--teal); color: #fff; text-decoration: none; font-weight: 600;
  transition: background .2s ease-out, transform .2s ease-out;
}
.btn:hover { background: var(--teal-deep); transform: translateY(-1px); }

.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem;
  padding: 1.1rem var(--gutter);
}
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.wordmark svg { color: var(--teal); flex: none; }
.top nav { display: flex; flex-wrap: wrap; gap: .25rem 1.6rem; }
.top nav a { text-decoration: none; font-weight: 500; color: var(--slate); padding: .25rem 0; }
.top nav a:hover { color: var(--teal-deep); }

/* Hero */
.hero {
  display: grid; gap: 2.5rem clamp(2rem, 5vw, 4.5rem); align-items: center;
  margin: 0 clamp(.5rem, 2vw, 1.5rem); border-radius: 2rem; background: var(--pale);
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3.5rem);
}
@media (min-width: 920px) { .hero { grid-template-columns: 1fr 1fr; } }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
.hero-text p { color: var(--slate); font-size: 1.125rem; max-width: 31rem; margin: 1.5rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.call { font-weight: 700; font-size: 1.25rem; text-decoration: none; font-variant-numeric: tabular-nums; }
.call:hover { color: var(--teal-deep); }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 1.5rem; }
.hours-card {
  position: absolute; left: 1rem; bottom: 1rem; max-width: 17.5rem;
  display: grid; gap: .1rem; padding: 1.1rem 1.25rem; border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 10px 20px -14px rgb(0 0 0 / .35);
  font-size: .9375rem; line-height: 1.45;
}
.hours-card strong { font-size: 1.0625rem; }
.hours-card span:nth-child(2) { font-weight: 600; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.urgent { margin-top: .5rem; padding-top: .6rem; border-top: 1px solid var(--line); color: var(--slate); }
@media (max-width: 520px) { .hours-card { position: static; max-width: none; margin-top: .75rem; box-shadow: none; background: #fff; } }

/* Sections */
main > section:not(.hero) { padding: clamp(4rem, 9vw, 7rem) var(--gutter); }

.intro { color: var(--slate); max-width: 34rem; margin: 1rem 0 2.5rem; }
.treatments { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.treatments li {
  display: grid; gap: .25rem 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr auto; align-items: baseline;
}
.treatments h3 { font-size: 1.25rem; letter-spacing: -.015em; }
.treatments p { grid-column: 1 / -1; grid-row: 2; margin: 0; color: var(--slate); max-width: 36rem; }
.treatments span { font-weight: 700; color: var(--teal-deep); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 860px) {
  .treatments li { grid-template-columns: 17rem 1fr auto; }
  .treatments p { grid-column: 2; grid-row: 1; }
  .treatments li:hover { background: linear-gradient(90deg, transparent, var(--pale) 20%, var(--pale) 80%, transparent); }
}

/* Team */
main > .practitioners { background: var(--navy); color: #fff; border-radius: 2rem; margin: 0 clamp(.5rem, 2vw, 1.5rem); }
.practitioners ::selection { background: #fff; color: var(--navy); }
.practitioners h2 { margin-bottom: 3rem; }
.practitioners ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3rem 2.5rem; }
@media (min-width: 760px) { .practitioners ul { grid-template-columns: repeat(3, 1fr); } }
.practitioners img { width: 100%; max-width: 20rem; aspect-ratio: 1; object-fit: cover; border-radius: 1.5rem; }
.practitioners h3 { font-size: 1.4rem; margin: 1.5rem 0 .25rem; }
.qual { color: #7fd3da; font-weight: 600; font-size: .9375rem; margin-bottom: .75rem; }
.practitioners li p:last-child { color: #c3cfda; margin: 0; max-width: 22rem; }

/* Hours and medical aid */
.info { display: grid; gap: 3.5rem clamp(2rem, 6vw, 6rem); }
@media (min-width: 860px) { .info { grid-template-columns: 1fr 1fr; } }
.info h2 { margin-bottom: 1.5rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .95rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
td { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.schemes { list-style: none; margin: 1.5rem 0; padding: 0; columns: 2; column-gap: 2rem; }
.schemes li { padding: .6rem 0 .6rem 1.4rem; position: relative; font-weight: 600; break-inside: avoid; }
.schemes li::before {
  content: ''; position: absolute; left: 0; top: 1.05em; width: .7rem; height: .4rem;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg);
}
.note { color: var(--slate); margin: 0; }

/* Contact */
main > .contact {
  display: grid; gap: 2.5rem clamp(2rem, 6vw, 5rem); align-items: center;
  background: var(--pale); border-radius: 2rem 2rem 0 0; margin: 0 clamp(.5rem, 2vw, 1.5rem);
}
@media (min-width: 860px) { main > .contact { grid-template-columns: 1fr 1fr; } }
.contact img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 1.5rem; }
.contact h2 { margin-bottom: 1rem; }
.contact p { color: var(--slate); max-width: 28rem; }
.contact .btn { font-size: 1.25rem; font-variant-numeric: tabular-nums; margin: .5rem 0 2rem; }
address { font-style: normal; font-weight: 500; margin-bottom: 1rem; }
.text-link { color: var(--teal-deep); font-weight: 600; overflow-wrap: anywhere; }

.footer {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between;
  padding: 1.75rem var(--gutter); color: var(--slate); font-size: .9375rem;
}
.footer span:first-child { font-weight: 700; color: var(--navy); }
