/* =========================================================
   Northwest Dental Studio — site styles
   Clean, professional medical aesthetic.
   ========================================================= */

:root {
  /* Brand palette */
  --color-bg: #ffffff;
  --color-surface: #f6f9fb;
  --color-surface-alt: #eef4f8;
  --color-text: #0e2433;
  --color-text-muted: #5a6b78;
  --color-border: #d9e3ea;

  --color-primary: #0a6e8a;       /* deep medical teal-blue */
  --color-primary-dark: #075368;
  --color-primary-tint: #e3f1f5;
  --color-accent: #2eb7c4;        /* highlight teal */

  /* Type */
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-serif: "Source Serif Pro", Georgia, "Times New Roman", serif;

  /* Layout */
  --container: 1140px;
  --container-prose: 760px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(14, 36, 51, 0.06), 0 2px 8px rgba(14, 36, 51, 0.04);
  --shadow-md: 0 4px 12px rgba(14, 36, 51, 0.08), 0 12px 28px rgba(14, 36, 51, 0.06);
}

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--color-text); margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.005em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container--prose { max-width: var(--container-prose); }

.muted { color: var(--color-text-muted); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}
.lede { font-size: 1.15rem; color: var(--color-text-muted); max-width: 60ch; }

/* Skip link */
.skip-link {
  position: absolute; left: -1000px; top: 0;
  background: var(--color-primary); color: #fff; padding: 0.5rem 0.75rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--ghost:hover { background: var(--color-primary-tint); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 80px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--color-text); }
.brand:hover { text-decoration: none; }
.brand__mark { color: var(--color-primary); display: inline-flex; }
.brand__mark svg { width: 38px; height: 38px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 700; font-size: 1.28rem; letter-spacing: -0.01em; }
.brand__suffix { font-size: 0.88rem; color: var(--color-text-muted); letter-spacing: 0.04em; margin-top: 0.1rem; }
@media (max-width: 480px) {
  .brand__name { font-size: 1.05rem; }
  .brand__suffix { font-size: 0.78rem; }
  .brand__mark svg { width: 32px; height: 32px; }
}

.primary-nav { display: flex; align-items: center; }
.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 0.25rem; align-items: center;
}
.nav-list a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-list a:hover { background: var(--color-surface); text-decoration: none; }
.nav-list a[aria-current="page"] { color: var(--color-primary); background: var(--color-primary-tint); }
.nav-cta {
  background: var(--color-primary) !important;
  color: #fff !important;
  margin-left: 0.5rem;
}
.nav-cta:hover { background: var(--color-primary-dark) !important; }

/* Mobile nav toggle (CSS only) */
.nav-toggle { display: none; }
.nav-toggle__btn {
  display: none; cursor: pointer;
  width: 36px; height: 36px; padding: 6px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle__btn span { display: block; height: 2px; background: var(--color-text); border-radius: 2px; }

@media (max-width: 820px) {
  .nav-toggle__btn { display: flex; }
  .nav-list {
    position: absolute; top: 80px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 1rem 1rem;
    gap: 0;
    display: none;
  }
  .nav-list a { padding: 0.85rem 0.5rem; border-radius: 0; border-bottom: 1px solid var(--color-border); }
  .nav-list a:last-child { border-bottom: 0; }
  .nav-cta { margin-left: 0; text-align: center; margin-top: 0.5rem; border-radius: var(--radius-sm); }
  .nav-toggle:checked ~ .nav-list { display: flex; }
}

/* ===== Page hero ===== */
.page-hero {
  background: linear-gradient(180deg, var(--color-primary-tint) 0%, #ffffff 100%);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--color-border);
}
.page-hero h1 { max-width: 22ch; }
.page-hero .lede { margin-top: 0.5rem; }
.page-hero--service .eyebrow a { color: var(--color-primary); }
.hero-ctas { margin-top: 1.5rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ===== Home hero ===== */
.home-hero {
  background: linear-gradient(160deg, #0a6e8a 0%, #075368 100%);
  color: #fff;
  padding: 5rem 0 4.5rem;
}
.home-hero h1 { color: #fff; max-width: 18ch; }
.home-hero p { color: rgba(255, 255, 255, 0.9); font-size: 1.15rem; max-width: 60ch; }
.home-hero .eyebrow { color: var(--color-accent); }
.home-hero .hero-ctas .btn--ghost { color: #fff; border-color: #fff; }
.home-hero .hero-ctas .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.home-hero__brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0.25rem 0 0.75rem;
}
.home-hero__brand-suffix {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.55em;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.3em;
  vertical-align: middle;
}
.home-hero h1 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 0.5rem;
}

/* ===== Sections ===== */
.section { padding: 4rem 0; }
.section--alt { background: var(--color-surface); }
.section__head { text-align: center; max-width: 60ch; margin: 0 auto 2.5rem; }
.section__head .eyebrow { display: inline-block; }

/* ===== Card grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}
.card h3 { color: var(--color-primary); margin-bottom: 0.3rem; }
.card p { margin: 0; color: var(--color-text-muted); font-size: 0.95rem; }

/* ===== Value props ===== */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.value h3 {
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}
.value p { color: var(--color-text-muted); font-size: 0.95rem; }
.value__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--color-primary-tint);
  color: var(--color-primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
}

/* ===== Page body / prose ===== */
.page-body { padding: 3rem 0 4rem; }
.container--prose h2 { margin-top: 2.5rem; }
.container--prose h3 { margin-top: 1.75rem; }
.container--prose ul li { margin-bottom: 0.35rem; }

/* ===== FAQ ===== */
.faq details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  background: #fff;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--color-primary); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] { border-color: var(--color-primary); }

/* ===== CTA band ===== */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  padding: 3rem 0;
}
.cta-band h2 { color: #fff; margin-bottom: 0.25rem; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin: 0; }
.cta-band__inner {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: space-between;
}
.cta-band__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cta-band .btn--primary { background: #fff; color: var(--color-primary); }
.cta-band .btn--primary:hover { background: var(--color-primary-tint); color: var(--color-primary-dark); }
.cta-band .btn--ghost { color: #fff; border-color: #fff; }
.cta-band .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* ===== Trust badges row ===== */
.trust-badges {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1.75rem 0;
}
.trust-badges__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.trust-badge__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary-tint);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.trust-badge h3 { font-size: 0.95rem; margin: 0; color: var(--color-text); }
.trust-badge p { font-size: 0.82rem; color: var(--color-text-muted); margin: 0.1rem 0 0; }

/* ===== Materials grid (two-column scannable list) ===== */
.materials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2.5rem;
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 680px) { .materials-grid { grid-template-columns: 1fr; gap: 0.5rem; } }
.materials-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.materials-list li {
  padding: 0.6rem 0 0.6rem 1.75rem;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  font-size: 0.95rem;
}
.materials-list li:last-child { border-bottom: 0; }
.materials-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translateY(-50%);
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 0;
  box-shadow: var(--shadow-sm);
}
.testimonial p {
  font-size: 1.02rem;
  color: var(--color-text);
  margin: 0 0 0.75rem;
  font-style: italic;
}
.testimonial footer {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: normal;
}

/* ===== Send-a-case grid ===== */
.send-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.send-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.send-card h2 { color: var(--color-primary); font-size: 1.2rem; margin-top: 0; }
.send-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--color-primary-tint);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.send-card ul { padding-left: 1.2em; }
.send-card li { margin-bottom: 0.35rem; font-size: 0.93rem; }

/* ===== Related services ===== */
.related-services { padding: 4rem 0; background: var(--color-surface); }
.related-services h2 { margin-bottom: 1.5rem; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info dt {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--color-text-muted); margin-top: 1rem;
}
.contact-info dd { margin: 0.15rem 0 0; font-size: 1.05rem; }

.contact-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-top: 1rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  font: inherit; background: #fff; margin-top: 0.3rem;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-primary);
}
.contact-form button { margin-top: 1.25rem; }
.map-embed { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); }
.map-embed iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ===== Footer ===== */
.site-footer {
  background: #0e2433;
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.6rem; }
.site-footer a { color: #cfe3eb; }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand { font-weight: 700; color: #fff; font-size: 1.05rem; margin-bottom: 0.25rem; }
.site-footer .muted { color: rgba(255, 255, 255, 0.6); }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 0.35rem; font-size: 0.93rem; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* ===== Utility ===== */
.text-center { text-align: center; }
@media (max-width: 600px) {
  .page-hero { padding: 3rem 0 2.5rem; }
  .home-hero { padding: 4rem 0 3.5rem; }
  .section { padding: 3rem 0; }
}
