/* Saltbush Dental Studio – sample website by WebStudioNova (fictional business). Bright, soft, reassuring. */

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin-variable.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal-900: #0b3f3d;
  --teal-700: #0e5e5a;
  --teal-500: #1f8a80;
  --mint-100: #e6f5f0;
  --mint-200: #cdeee4;
  --mint-400: #7fd1bd;
  --sand-50: #fbf8f3;
  --sand-100: #f4eee4;
  --coral: #d9644a;
  --coral-dark: #b84c34;
  --ink: #1d2b2d;
  --slate: #51625f;
  --line: #e1e8e5;
  --white: #ffffff;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 40px -22px rgba(11, 63, 61, .35);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand-50);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); }
a:hover { color: var(--teal-900); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--teal-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 850; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 12px; top: -60px; padding: 10px 16px; background: var(--teal-900); color: #fff; border-radius: 10px; z-index: 2000; }
.skip-link:focus { top: 48px; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-mint { background: var(--mint-100); }
.section-sand { background: var(--sand-100); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-500); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--slate); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 800; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; font-family: inherit; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 22px -12px rgba(217, 100, 74, .8); }
.btn-primary:hover { background: var(--coral-dark); color: #fff; transform: translateY(-1px); }
.btn-soft { background: var(--white); color: var(--teal-700); border-color: var(--mint-200); }
.btn-soft:hover { border-color: var(--teal-500); color: var(--teal-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 900; background: rgba(251, 248, 243, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--teal-900); }
.brand img { width: 44px; height: 44px; }
.brand-name { font-weight: 900; font-size: 1.15rem; line-height: 1.1; }
.brand-name small { display: block; font-weight: 700; font-size: .78rem; color: var(--teal-500); letter-spacing: .08em; text-transform: uppercase; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.main-nav a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; }
.main-nav a:hover { background: var(--mint-100); color: var(--teal-900); }
.main-nav a[aria-current="page"] { background: var(--mint-200); color: var(--teal-900); }
.main-nav .nav-cta { margin-left: 8px; }
.main-nav .nav-cta a { background: var(--coral); color: #fff; padding: 10px 20px; }
.main-nav .nav-cta a:hover { background: var(--coral-dark); color: #fff; }
.nav-toggle { display: none; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--mint-200); background: var(--white); color: var(--teal-900); font: inherit; font-weight: 800; cursor: pointer; }
.nav-toggle-bars { display: inline-grid; gap: 4px; }
.nav-toggle-bars span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; background: radial-gradient(1200px 520px at 85% 10%, var(--mint-200), transparent 60%), var(--sand-50); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--teal-500); }
.hero .lead { margin-bottom: 28px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: var(--slate); font-weight: 700; }
.hero-points li { display: flex; gap: 10px; align-items: center; }
.tick { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mint-200); color: var(--teal-700); }
.tick svg { width: 14px; height: 14px; }
.hero-media { position: relative; }
.hero-media img { border-radius: 40px 40px 40px 140px; box-shadow: var(--shadow); aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.hero-badge { position: absolute; left: -26px; bottom: 34px; display: flex; gap: 12px; align-items: center; padding: 14px 18px; background: var(--white); border-radius: 18px; box-shadow: var(--shadow); max-width: 260px; }
.hero-badge strong { display: block; color: var(--teal-900); }
.hero-badge span { font-size: .9rem; color: var(--slate); }
.badge-icon { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--mint-100); color: var(--teal-700); }
.badge-icon svg { width: 24px; height: 24px; }

/* Info strip */
.info-strip { margin-top: -48px; position: relative; z-index: 2; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.info-item { display: flex; gap: 14px; padding: 24px 26px; align-items: flex-start; }
.info-item + .info-item { border-left: 1px solid var(--line); }
.info-item h3 { font-size: 1rem; margin-bottom: 2px; }
.info-item p { margin: 0; color: var(--slate); font-size: .95rem; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.card { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--slate); margin-bottom: 0; }
.card-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--mint-100); color: var(--teal-700); margin-bottom: 18px; }
.card-icon svg { width: 26px; height: 26px; }
.card-link { display: inline-block; margin-top: 14px; font-weight: 800; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .tick { margin-top: 2px; }
.check-list + .btn-row { margin-top: 32px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; counter-reset: step; }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 30px 28px 28px; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--teal-700); color: #fff; font-weight: 900; margin-bottom: 16px; }
.step p { color: var(--slate); margin: 0; }

/* Call to action band */
.cta-band { border-radius: 32px; padding: 52px 56px; background: linear-gradient(135deg, var(--teal-700), var(--teal-900)); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: var(--mint-200); margin: 0; max-width: 560px; }

/* Page hero (inner pages) */
.page-hero { padding: 64px 0 56px; background: radial-gradient(900px 400px at 90% 0%, var(--mint-200), transparent 60%), var(--sand-50); border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-bottom: 0; }

/* Treatments page */
.treatment-group + .treatment-group { margin-top: 64px; }
.treatment-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.treatment { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.treatment p { color: var(--slate); margin-bottom: 0; }
.treatment .meta { margin-top: 12px; font-size: .9rem; font-weight: 700; color: var(--teal-500); }

/* FAQ */
.faq { max-width: 820px; margin: 36px auto 0; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--teal-900); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--teal-500); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--slate); margin: 0 0 18px; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; }
.form-card { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 800; font-size: .95rem; color: var(--teal-900); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--sand-50); color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-500); background: #fff; box-shadow: 0 0 0 4px var(--mint-100); }
.was-checked .field :invalid { border-color: #c2412a; background: #fff6f3; }
.field .hint { font-size: .85rem; color: var(--slate); }
.form-note { font-size: .9rem; color: var(--slate); margin: 16px 0 0; }
.form-card .btn { margin-top: 22px; }
.detail-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.detail-card + .detail-card { margin-top: 20px; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.hours td { text-align: right; color: var(--slate); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.map-placeholder { margin-top: 16px; border-radius: var(--radius-sm); aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--teal-700); font-weight: 700; font-size: .95rem; background: repeating-linear-gradient(45deg, var(--mint-100) 0 14px, var(--mint-200) 14px 28px); }

/* Notices */
.notice { margin-top: 32px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--sand-100); color: var(--slate); font-size: .92rem; border-left: 4px solid var(--teal-500); }

/* Footer */
.site-footer { background: var(--teal-900); color: var(--mint-200); padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: var(--mint-200); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer p { margin: 0 0 8px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 900; font-size: 1.1rem; margin-bottom: 12px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(205, 238, 228, .2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }

/* Gentle entrance animation */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s ease both; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .hero-copy > *:nth-child(4) { animation-delay: .24s; }
  .hero-media { animation: rise .9s .1s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Tablet */
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--sand-50); border-bottom: 1px solid var(--line); display: none; padding: 12px 20px 20px; box-shadow: var(--shadow); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav .nav-cta { margin: 8px 0 0; }
  .main-nav .nav-cta a { text-align: center; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-media { order: 0; }
  .hero-badge { left: 16px; }
  .card-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 80px; }
  .info-grid, .card-grid, .steps, .treatment-list, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .info-item + .info-item { border-left: 0; border-top: 1px solid var(--line); }
  .cta-band { padding: 36px 26px; }
  .form-card { padding: 26px 20px; }
  .brand-name small { display: none; }
  .hero-badge { position: relative; left: auto; bottom: auto; z-index: 1; margin: -40px 16px 0; }
}
