/* ============================================
   Duluth Dental Studio — Web 2.0 Property Stylesheet
   Palette:  #1E3A5F navy / #E8A33D amber / #2F8F7B teal
             #FAF7F2 ivory surface / #22262B ink / #5C6570 slate
   Type:     Playfair Display (headings) + Nunito Sans (body)
   Signature: angled "ribbon" section dividers + pill tags
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,600&family=Nunito+Sans:wght@400;600;700;800&display=swap');

:root {
  --navy-900: #1E3A5F;
  --navy-700: #2A4C78;
  --teal: #2F8F7B;
  --amber: #E8A33D;
  --amber-dark: #C9852A;
  --ivory: #FAF7F2;
  --card: #FFFFFF;
  --ink: #22262B;
  --slate: #5C6570;
  --line: #E4DFD6;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1160px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 2.4vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 16px; color: var(--slate); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(47,143,123,0.12);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.btn-primary { background: var(--amber); color: var(--navy-900); }
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-1px); }

.btn-outline { background: transparent; border-color: rgba(250,247,242,0.55); color: var(--ivory); }
.btn-outline:hover { background: var(--ivory); color: var(--navy-900); }

.btn-outline-dark { background: transparent; border-color: var(--navy-900); color: var(--navy-900); }
.btn-outline-dark:hover { background: var(--navy-900); color: var(--ivory); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 42px; width: auto; border-radius: 8px; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--navy-900); }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-weight: 700; color: var(--ink); font-size: 0.95rem;
  padding: 4px 0; position: relative;
}
.nav-links a[aria-current="page"] { color: var(--teal); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  background: var(--amber); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-weight: 700; text-decoration: none; color: var(--navy-900); font-size: 0.92rem; }

@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
}

/* ---------- Ribbon divider (signature shape) ---------- */
.ribbon {
  height: 46px;
  margin-top: -1px;
}
.ribbon svg { width: 100%; height: 100%; display: block; }

/* ---------- Hero ---------- */
.hero { background: var(--navy-900); color: var(--ivory); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 64px 24px 88px;
}
.hero h1 { color: var(--ivory); }
.hero p.lede { color: #C9D6E6; font-size: 1.06rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.hero-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3.3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 850px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 44px 24px 56px; }
  .hero-media { order: -1; }
}

.page-banner { background: var(--navy-900); color: var(--ivory); padding: 60px 0 74px; }
.page-banner h1 { color: var(--ivory); margin-bottom: 8px; }
.page-banner p { color: #C9D6E6; margin: 0; }

/* ---------- Sections ---------- */
section { padding: 68px 0; }
.section-card-bg { background: #F1ECE1; }
.section-head { max-width: 620px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.cols-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  border-top: 4px solid var(--teal);
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 0.94rem; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.mv-block { background: var(--card); border-radius: var(--radius); padding: 30px; border-left: 4px solid var(--amber); }

/* ---------- Doctor bio ---------- */
.doctor { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; }
@media (max-width: 700px) { .doctor { grid-template-columns: 1fr; } }
.doctor-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--teal); color: #ffffff; text-align: center; padding: 60px 0; }
.cta-band h2 { color: #ffffff; }
.cta-band p { color: #E4F3EF; max-width: 50ch; margin: 0 auto; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; }
@media (max-width: 850px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: none; }
.info-list .icon {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  background: rgba(232,163,61,0.16); color: var(--amber-dark);
  display: flex; align-items: center; justify-content: center;
}
.info-list strong { display: block; color: var(--navy-900); font-family: var(--font-display); font-weight: 700; }

form.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--navy-900); margin-bottom: 6px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.95rem; background: #fff; color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.map-cta { margin-top: 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--ivory); padding: 52px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--font-display); color: var(--ivory); margin: 0 0 14px; font-size: 1.05rem; }
.footer-grid p, .footer-grid a { color: #C9D6E6; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: var(--amber); }

.social-row { display: flex; flex-wrap: wrap; gap: 10px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(250,247,242,0.28);
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.social-row a:hover { background: var(--amber); border-color: var(--amber); }
.social-row a span { font-family: var(--font-body); font-weight: 800; font-size: 0.7rem; color: var(--ivory); }
.social-row a:hover span { color: var(--navy-900); }

.footer-bottom {
  border-top: 1px solid rgba(250,247,242,0.15); padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: #9FB2C7;
}
.footer-bottom a { color: #9FB2C7; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
