/* =========================================================
   Minto Dental Surgery — "Calm clinical warmth"
   Editorial-medical: eucalyptus + warm off-white + coral
   Fraunces (display serif) / Mulish (body)
   ========================================================= */

:root {
  --ink: #16302c;
  --ink-soft: #3d5a54;
  --paper: #fbf8f1;
  --paper-2: #f3ede0;
  --mint-900: #0f5e57;
  --mint-700: #1a7c72;
  --mint-400: #5ad1bf;
  --mint-100: #d9f1ec;
  --coral: #ef7a63;
  --coral-soft: #f9d9d0;
  --line: rgba(15, 94, 87, 0.16);
  --shadow: 0 18px 50px -22px rgba(16, 48, 44, 0.45);
  --shadow-sm: 0 8px 24px -14px rgba(16, 48, 44, 0.4);
  --radius: 22px;
  --radius-lg: 34px;
  --maxw: 1120px;
  --ff-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-body: "Mulish", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(60rem 40rem at 110% -10%, rgba(90, 209, 191, 0.16), transparent 60%),
    radial-gradient(50rem 35rem at -10% 8%, rgba(239, 122, 99, 0.10), transparent 55%);
  background-attachment: fixed;
}

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

a { color: var(--mint-700); text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.55rem); }

p { margin: 0 0 1.1rem; max-width: 64ch; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: 1rem; top: -3.5rem;
  background: var(--mint-900); color: #fff;
  padding: 0.7rem 1.1rem; border-radius: 0 0 12px 12px;
  z-index: 100; transition: top 0.2s ease;
}
.skip:focus { top: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 248, 241, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--ff-display); font-weight: 600; font-size: 1.2rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.brand svg { width: 38px; height: 38px; flex: none; }
.brand small {
  display: block; font-family: var(--ff-body); font-weight: 600;
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mint-700);
}

.nav-toggle {
  display: none; align-items: center; gap: 0.5rem;
  background: var(--mint-900); color: #fff; border: 0;
  font: inherit; font-weight: 700; cursor: pointer;
  padding: 0.55rem 0.9rem; border-radius: 999px;
}
.nav-toggle .bars { width: 18px; height: 12px; position: relative; }
.nav-toggle .bars span,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: #fff; border-radius: 2px;
}
.nav-toggle .bars span { top: 5px; }
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars::after { bottom: 0; }

.nav { display: flex; align-items: center; gap: 0.4rem; }
.nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 600;
  padding: 0.5rem 0.85rem; border-radius: 999px; font-size: 0.96rem;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav a:hover { background: var(--mint-100); color: var(--mint-900); }
.nav a[aria-current="page"] { color: var(--mint-900); background: var(--mint-100); }
.nav .cta {
  background: var(--coral); color: #fff; margin-left: 0.4rem;
}
.nav .cta:hover { background: #e2664f; color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 0.85rem 1.5rem; border-radius: 999px; border: 0;
  font-size: 1rem; transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.btn-primary { background: var(--mint-900); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--mint-700); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--mint-900);
  box-shadow: inset 0 0 0 1.6px var(--mint-900);
}
.btn-ghost:hover { background: var(--mint-100); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(3rem, 2rem + 6vw, 6rem) 0 clamp(2.5rem, 2rem + 4vw, 4.5rem); overflow: clip; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mint-700); background: var(--mint-100);
  padding: 0.4rem 0.9rem; border-radius: 999px; margin-bottom: 1.3rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.hero p.lead { font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem); color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; margin-top: 2.4rem;
  padding-top: 1.6rem; border-top: 1px dashed var(--line);
}
.hero-meta div strong { font-family: var(--ff-display); font-size: 1.6rem; display: block; color: var(--mint-900); }
.hero-meta div span { font-size: 0.85rem; color: var(--ink-soft); }

/* hero art card */
.hero-art {
  position: relative; aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 80% 10%, #ffffff 0%, var(--mint-100) 55%, var(--mint-400) 130%);
  box-shadow: var(--shadow);
  overflow: hidden; isolation: isolate;
}
.hero-art .blob { position: absolute; inset: 0; }
.hero-art .tooth { position: absolute; width: 56%; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.hero-art .grain {
  position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-art .badge {
  position: absolute; bottom: 1.2rem; left: 1.2rem; right: 1.2rem;
  background: rgba(251, 248, 241, 0.92); border-radius: 18px;
  padding: 0.9rem 1.1rem; display: flex; align-items: center; gap: 0.8rem;
  box-shadow: var(--shadow-sm);
}
.hero-art .badge svg { width: 34px; height: 34px; flex: none; }
.hero-art .badge strong { display: block; font-family: var(--ff-display); }
.hero-art .badge span { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- section scaffolding ---------- */
.section { padding: clamp(3rem, 2rem + 5vw, 5.5rem) 0; }
.section.alt { background: var(--paper-2); }
.section-head { max-width: 60ch; margin-bottom: 2.6rem; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head p { color: var(--ink-soft); }
.center { text-align: center; margin-inline: auto; }

/* ---------- service cards ---------- */
.cards { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card::after {
  content: ""; position: absolute; inset: auto -40% -50% auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--mint-100), transparent 70%); opacity: 0.8;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--mint-400); }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--mint-100); color: var(--mint-900); margin-bottom: 1rem; position: relative; z-index: 1;
}
.card .ico svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 0.4rem; position: relative; z-index: 1; }
.card p { font-size: 0.96rem; color: var(--ink-soft); margin-bottom: 0; position: relative; z-index: 1; }
.card .tag { position: relative; z-index: 1; display:inline-block; margin-top: 0.9rem; font-size: 0.8rem; font-weight:700; color: var(--coral); }

/* ---------- feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 1rem + 4vw, 4rem); align-items: center; }
.panel {
  background: var(--mint-900); color: var(--paper); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 1.4rem + 2vw, 3rem); position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.panel h2, .panel h3 { color: #fff; }
.panel p { color: rgba(251, 248, 241, 0.82); }
.panel .ring { position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(90,209,191,0.25); }
.checklist { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.85rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; }
.checklist .chk {
  flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--mint-400);
  color: var(--mint-900); display: grid; place-items: center; font-weight: 900; font-size: 0.85rem;
}

/* ---------- steps ---------- */
.steps { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); position: relative;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--ff-display); font-size: 1.6rem; color: var(--coral);
  display: block; margin-bottom: 0.6rem;
}
.step h3 { font-size: 1.2rem; }
.step p { font-size: 0.94rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- quote / reassurance ---------- */
.quote {
  background: var(--coral-soft); border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem); text-align: center; position: relative;
}
.quote blockquote {
  font-family: var(--ff-display); font-size: clamp(1.3rem, 1rem + 1.6vw, 2rem);
  line-height: 1.3; margin: 0 auto 1rem; max-width: 22ch; color: var(--ink);
}
.quote cite { font-style: normal; font-weight: 700; color: var(--mint-900); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(80% 120% at 100% 0%, var(--mint-700), var(--mint-900) 70%);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2.2rem, 1.6rem + 3vw, 3.8rem);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { color: rgba(251,248,241,0.85); margin-bottom: 0; }
.cta-band .acts { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: flex-end; }
.cta-band .btn-primary { background: var(--coral); }
.cta-band .btn-primary:hover { background: #e2664f; }
.cta-band .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.6px rgba(255,255,255,0.6); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ---------- contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); box-shadow: var(--shadow-sm);
}
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: 0.75rem 0.9rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--mint-400); box-shadow: 0 0 0 4px var(--mint-100);
}
.note { font-size: 0.82rem; color: var(--ink-soft); }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.info-list .ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--mint-100);
  color: var(--mint-900); display: grid; place-items: center;
}
.info-list .ico svg { width: 22px; height: 22px; }
.info-list strong { display: block; }
.info-list span { color: var(--ink-soft); font-size: 0.94rem; }

.hours { list-style: none; padding: 0; margin: 0.6rem 0 0; }
.hours li { display: flex; justify-content: space-between; padding: 0.45rem 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.hours li span:last-child { color: var(--mint-900); font-weight: 700; }

/* ---------- prose for inner pages ---------- */
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 1.1rem; }
.prose ul li { margin-bottom: 0.5rem; }
.lead-block { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.4rem 0 0; }
.pill { background: var(--mint-100); color: var(--mint-900); padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; }

/* page hero (inner) */
.page-hero { padding: clamp(2.6rem, 2rem + 4vw, 4.5rem) 0 1.5rem; }
.crumbs { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.8rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(251,248,241,0.82); margin-top: 2rem; }
.site-footer a { color: rgba(251,248,241,0.82); text-decoration: none; }
.site-footer a:hover { color: var(--mint-400); }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem;
  padding: clamp(2.6rem, 2rem + 3vw, 4rem) 0 2rem;
}
.foot-brand { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; font-family: var(--ff-display); font-size: 1.2rem; text-decoration: none; margin-bottom: 0.9rem; }
.foot-brand svg { width: 34px; height: 34px; }
.site-footer h4 { font-family: var(--ff-body); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint-400); margin: 0 0 0.9rem; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; font-size: 0.95rem; }
.foot-bottom {
  border-top: 1px solid rgba(251,248,241,0.14); padding: 1.2rem 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem;
  font-size: 0.85rem; color: rgba(251,248,241,0.6);
}

/* ---------- entrance animation ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.24s; }
.reveal.d4 { animation-delay: 0.32s; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin-inline: auto; order: -1; aspect-ratio: 5/4; }
  .split { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .acts { justify-content: flex-start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.25rem 1.2rem;
    box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0.9rem; }
  .nav .cta { margin-left: 0; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
  .brand small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; transition-duration: 0.001ms !important; }
}
