/* Elm Dental — Cork dental studio */
:root {
  --ink: #16191f;
  --ink-soft: #2a3038;
  --muted: #5c6570;
  --line: #e4e2dc;
  --paper: #f5f3ee;
  --white: #fcfbf8;
  --teal: #2f6f6a;
  --teal-deep: #1f4f4b;
  --clay: #a67c52;
  --max: 1120px;
  --header-h: 74px;
  --font: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; border: none; background: none; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.35rem;
}
@media (min-width: 768px) { .container { padding-inline: 2rem; } }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.55rem;
}
h1, h2, h3 {
  font-family: var(--font);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -0.022em;
}
.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 40ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.88rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 1px;
  transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-block { width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(245, 243, 238, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}
.logo {
  font-family: var(--font);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.logo em {
  font-style: normal;
  color: var(--teal);
}
.main-nav { display: none; }
.nav-list { display: flex; gap: 1.7rem; align-items: center; }
.nav-link {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--muted);
}
.nav-link:hover,
.nav-link.is-active { color: var(--ink); }
.header-cta { display: none; }
.nav-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--white);
}
.hamburger {
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s, top 0.2s;
}
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 899px) {
  .main-nav {
    display: block;
    position: fixed;
    left: 0; right: 0;
    top: var(--header-h);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0 1rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 49;
    max-height: 70vh;
    overflow-y: auto;
  }
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    display: block;
    padding: 1rem 1.35rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 1.05rem;
  }
}
@media (min-width: 900px) {
  .main-nav {
    display: block;
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-list { flex-direction: row; }
  .nav-link { border: 0; padding: 0; font-size: 0.87rem; color: var(--muted); }
}

.hero {
  padding: 2.4rem 0 3.4rem;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: end;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.25rem;
    align-items: center;
  }
  .hero { padding: 3.4rem 0 4.4rem; }
}
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.5rem);
  margin-bottom: 1rem;
  max-width: 12ch;
}
.hero .lead { margin-bottom: 1.7rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.85rem;
}
.hero-note {
  font-size: 0.88rem;
  color: var(--muted);
  border-left: 3px solid var(--teal);
  padding-left: 0.85rem;
  max-width: 34ch;
}
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 1px;
  filter: contrast(1.02) saturate(0.9);
}
@media (min-width: 900px) {
  .hero-photo img { aspect-ratio: 5/6; max-height: 560px; }
}
.hero-photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(transparent, rgba(22, 25, 31, 0.88));
  color: rgba(255,255,255,0.88);
  font-size: 0.82rem;
}
.hero-photo-caption strong {
  display: block;
  color: #fff;
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
  font-family: var(--font);
}

.strip {
  background: var(--teal-deep);
  color: rgba(255,255,255,0.72);
  padding: 1.1rem 0;
  font-size: 0.88rem;
}
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
}
.strip strong { color: #fff; }

.section {
  padding: 3.4rem 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 420px;
}
@media (min-width: 768px) { .section { padding: 4.6rem 0; } }
.section-head {
  max-width: 36rem;
  margin-bottom: 2.2rem;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.65rem;
}
.section-head p { color: var(--muted); }

.service-mosaic {
  display: grid;
  gap: 1.2rem;
}
@media (min-width: 820px) {
  .service-mosaic {
    grid-template-columns: 1.2fr 0.9fr;
    grid-template-rows: auto auto;
    gap: 1.3rem;
  }
  .service-mosaic article:first-child { grid-row: span 2; }
}
.svc {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.55rem 1.4rem;
  display: flex;
  flex-direction: column;
}
.svc-meta {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.55rem;
}
.svc h3 {
  font-size: 1.4rem;
  margin-bottom: 0.55rem;
}
.svc p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.15rem;
  flex: 1;
}
.svc-price {
  font-family: var(--font);
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 1rem;
}
.svc-price span {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 880px) {
  .split {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3.5rem;
  }
  .split.is-reverse { direction: rtl; }
  .split.is-reverse > * { direction: ltr; }
}
.split-photo img {
  width: 100%;
  aspect-ratio: 6/5;
  object-fit: cover;
  border-radius: 1px;
  filter: contrast(1.02) saturate(0.9);
}
.split-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  margin-bottom: 0.85rem;
}
.split-body p {
  color: var(--muted);
  margin-bottom: 1rem;
}
.checklist {
  display: grid;
  gap: 0.55rem;
  margin: 1.2rem 0 1.5rem;
}
.checklist li {
  display: flex;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.45rem;
  background: var(--teal);
  flex-shrink: 0;
}

.quotes {
  display: grid;
  gap: 1.4rem;
}
@media (min-width: 800px) {
  .quotes {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.6rem;
  }
  .quotes blockquote:nth-child(2) { transform: translateY(1.15rem); }
}
.quotes blockquote {
  background: var(--white);
  border-top: 3px solid var(--teal);
  padding: 1.3rem 1.15rem 1.2rem;
}
.quotes p {
  font-family: var(--font);
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 0.95rem;
}
.quotes footer { font-size: 0.85rem; color: var(--muted); }
.quotes strong {
  display: block;
  color: var(--ink);
  font-family: var(--sans);
}

.page-hero {
  padding: 2.7rem 0 2.4rem;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: var(--muted);
  max-width: 44ch;
}

.stack { border-top: 1px solid var(--line); }
.stack-row {
  display: grid;
  gap: 1rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) {
  .stack-row {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
  }
}
.stack-row h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}
.stack-row p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 50ch;
}
.stack-side { text-align: left; }
@media (min-width: 720px) { .stack-side { text-align: right; } }
.stack-side .price {
  font-family: var(--font);
  font-size: 1.4rem;
  color: var(--ink);
  display: block;
  margin-bottom: 0.65rem;
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 880px) {
  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3.5rem;
  }
}
.contact-aside h2 {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
}
.contact-aside p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.detail + .detail { margin-top: 1.1rem; }
.detail strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.2rem;
}
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem;
}
.form-card h2 {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 560px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.75rem 0.85rem;
  border-radius: 1px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}
.field input.is-invalid {
  border-color: #b42318;
  background: #fef3f2;
}
.form-success {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: #eef6f4;
  border: 1px solid #c5ddd8;
  color: var(--teal-deep);
  font-size: 0.92rem;
}
.form-success.is-visible { display: block; }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-top: 0.5rem;
}
.hours-table td {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.hours-table td:last-child {
  text-align: right;
  color: var(--muted);
}

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.62);
  padding: 3rem 0 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 280px;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand .logo {
  color: #fff;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.footer-brand p {
  font-size: 0.92rem;
  max-width: 30ch;
}
.footer-col h3 {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.85rem;
  font-weight: 700;
}
.footer-col a {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: rgba(255,255,255,0.68);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.32);
}

.bg-white { background: var(--white); }

.sticky-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: var(--ink);
  padding: 0.65rem 1rem;
  gap: 0.55rem;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.15);
}
@media (max-width: 899px) {
  .sticky-bar { display: flex; }
  .sticky-bar .btn { flex: 1; }
  body { padding-bottom: 64px; }
}
