/* ========================================
   HOUSE DENTAL — SHARED STYLES
   Color direction: Peter Attia inspired
   Deep navy + warm cream + burgundy accent
   Desktop-first, 65+ audience
   ======================================== */

:root {
  --navy: #0A2540;
  --navy-light: #163B5E;
  --cream: #F7F3ED;
  --cream-dark: #EDE8E0;
  --burgundy: #7A2D3C;
  --burgundy-light: #9B3E50;
  --gold: #C5A55A;
  --gold-muted: #B8985A;
  --text-dark: #1A1A2E;
  --text-body: #3A3A4E;
  --text-muted: #6A6A7E;
  --text-light: #E8E4DC;
  --text-on-navy: #F0ECE4;
  --white: #FFFFFF;
  --border-light: #DDD8CE;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --section-padding: 100px 0;
  --container-padding: 0 40px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 400;
}

a {
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
a:hover { border-bottom-color: var(--burgundy); }

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary {
  display: inline-block;
  padding: 16px 36px;
  background: var(--burgundy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  border-bottom: none;
}
.btn-primary:hover { background: var(--burgundy-light); border-bottom: none; }

.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--burgundy);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 2px solid var(--burgundy);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-secondary:hover { background: var(--burgundy); color: var(--white); border-bottom: 2px solid var(--burgundy); }

.btn-light {
  display: inline-block;
  padding: 16px 36px;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  border-bottom: none;
}
.btn-light:hover { background: var(--white); border-bottom: none; }

/* ========================================
   NAVIGATION
   ======================================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(10, 37, 64, 0.08); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--navy);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-bottom: none;
  height: 40px;
  transition: opacity 0.2s;
}
.nav-logo span { color: var(--burgundy); }
.nav-logo img { height: 34px; width: auto; display: block; }
.nav-logo:hover { opacity: 0.8; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  color: var(--text-body);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-bottom: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); border-bottom: none; }

.nav-cta {
  padding: 10px 24px !important;
  background: var(--burgundy);
  color: var(--white) !important;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--burgundy-light); }

/* Services Mega Menu Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: pointer; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 1em; opacity: 0.85; }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid #D6E0E8;
  border-top: 3px solid #00BBB5;
  border-radius: 2px;
  box-shadow: 0 16px 48px rgba(0, 41, 86, 0.12);
  padding: 36px 40px;
  display: none;
  min-width: 780px;
  z-index: 200;
  margin-top: 12px;
}
.nav-dropdown:hover .dropdown-menu,
.dropdown-menu:hover { display: flex; gap: 36px; }

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
  display: none;
}
.nav-dropdown:hover::after { display: block; }

.dropdown-column { min-width: 200px; flex: 1; }
.dropdown-column h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #00BBB5;
  letter-spacing: -0.005em;
}
.dropdown-column h5 a { color: var(--navy); border-bottom: none; text-decoration: none; }
.dropdown-column h5 a:hover { color: var(--burgundy); }
.dropdown-column ul { list-style: none; padding: 0; margin: 0; }
.dropdown-column ul li { margin-bottom: 6px; }
.dropdown-column ul li a {
  font-size: 0.82rem;
  color: var(--text-body);
  text-decoration: none;
  border-bottom: none;
  padding: 4px 0;
  display: block;
  transition: color 0.2s;
}
.dropdown-column ul li a:hover { color: var(--burgundy); }
.dropdown-divider {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.dropdown-divider a {
  font-size: 0.82rem;
  color: var(--burgundy);
  font-weight: 500;
  text-decoration: none;
  border-bottom: none;
}
.dropdown-divider a:hover { text-decoration: underline; }

/* ========================================
   RESOURCES MEGA MENU
   Rail (categories) + content (articles) + CTA (quiz) + footer
   ======================================== */
.nav-dropdown--mega-resources { position: relative; }
.dropdown-menu--mega-resources {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid #D6E0E8;
  border-top: 3px solid #00BBB5;
  border-radius: 2px;
  box-shadow: 0 16px 48px rgba(0, 41, 86, 0.12);
  display: none;
  width: 1080px;
  max-width: calc(100vw - 60px);
  z-index: 200;
  margin-top: 12px;
  padding: 0;
  grid-template-columns: 22% 48% 30%;
  grid-template-rows: auto auto;
}
.nav-dropdown--mega-resources:hover .dropdown-menu--mega-resources,
.dropdown-menu--mega-resources:hover { display: grid; }

.mega-rail {
  background: #F7FAFB;
  padding: 22px 0;
  list-style: none;
  margin: 0;
  border-right: 1px solid #E5EDF1;
}
.mega-rail li { margin: 0; }
.mega-rail .mega-cat {
  display: block;
  padding: 13px 22px 13px 25px;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: none;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  letter-spacing: -0.005em;
}
.mega-rail .mega-cat:hover,
.mega-rail .mega-cat:focus {
  background: #E7F5F4;
  border-left-color: #00BBB5;
  color: var(--navy);
}
.mega-rail .mega-cat[data-cat="dental-health"] {
  background: #E7F5F4;
  border-left-color: #00BBB5;
}
.dropdown-menu--mega-resources:has(.mega-cat:not([data-cat="dental-health"]):hover) .mega-cat[data-cat="dental-health"] {
  background: transparent;
  border-left-color: transparent;
}

.mega-content {
  padding: 26px 32px 22px;
  min-height: 280px;
  position: relative;
}
.mega-panel { display: none; }
.mega-panel[data-cat="dental-health"] { display: block; }
.dropdown-menu--mega-resources:has(.mega-cat[data-cat="dental-issues"]:hover) .mega-panel { display: none; }
.dropdown-menu--mega-resources:has(.mega-cat[data-cat="dental-issues"]:hover) .mega-panel[data-cat="dental-issues"] { display: block; }
.dropdown-menu--mega-resources:has(.mega-cat[data-cat="procedures"]:hover) .mega-panel { display: none; }
.dropdown-menu--mega-resources:has(.mega-cat[data-cat="procedures"]:hover) .mega-panel[data-cat="procedures"] { display: block; }
.dropdown-menu--mega-resources:has(.mega-cat[data-cat="whole-body"]:hover) .mega-panel { display: none; }
.dropdown-menu--mega-resources:has(.mega-cat[data-cat="whole-body"]:hover) .mega-panel[data-cat="whole-body"] { display: block; }
.dropdown-menu--mega-resources:has(.mega-cat[data-cat="in-the-media"]:hover) .mega-panel { display: none; }
.dropdown-menu--mega-resources:has(.mega-cat[data-cat="in-the-media"]:hover) .mega-panel[data-cat="in-the-media"] { display: block; }

.mega-panel h5 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #00BBB5;
  letter-spacing: -0.005em;
}
.mega-articles {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.mega-articles li { margin: 0; }
.mega-articles a {
  display: block;
  padding: 9px 12px;
  margin: 0 -12px;
  font-size: 0.9rem;
  color: var(--text-body);
  text-decoration: none;
  border-bottom: none;
  border-radius: 4px;
  line-height: 1.5;
  transition: background 0.15s, color 0.15s;
}
.mega-articles a:hover {
  background: #F4F8FA;
  color: var(--navy);
}
.mega-view-all {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  font-weight: 600;
  padding: 6px 0;
  letter-spacing: 0.01em;
  transition: border-color 0.15s;
}
.mega-view-all:hover { border-bottom-color: var(--burgundy); }

.mega-cta {
  background: #002956;
  color: #eaf2f7;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mega-cta-eyebrow {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}
.mega-cta p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #cfd9e2;
  margin: 0 0 20px;
}
.mega-cta-btn {
  display: inline-block;
  background: #00BBB5;
  color: #fff !important;
  padding: 12px 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: none;
  align-self: flex-start;
  transition: background 0.2s;
  letter-spacing: 0.01em;
}
.mega-cta-btn:hover { background: #00A19C; border-bottom: none; }

.mega-footer {
  grid-column: 1 / -1;
  padding: 12px 32px;
  background: #FAFAF7;
  border-top: 1px solid #E5EDF1;
  text-align: right;
}
.mega-footer a {
  font-size: 0.82rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: border-color 0.15s;
}
.mega-footer a:hover { border-bottom-color: var(--navy); }

.nav-dropdown--mega-resources::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
  display: none;
}
.nav-dropdown--mega-resources:hover::after { display: block; }

/* ========================================
   PAGE BODY CONTENT
   ======================================== */

.page-body {
  padding: var(--section-padding);
  background: var(--white);
}

.page-body .container {
  max-width: 820px;
}

.page-body h2 {
  font-size: 1.8rem;
  color: var(--navy);
  margin: 56px 0 20px;
  letter-spacing: -0.01em;
}

.page-body h2:first-child { margin-top: 0; }

.page-body h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin: 36px 0 12px;
}

.page-body p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 20px;
}

.page-body ul, .page-body ol {
  margin: 0 0 24px 24px;
}

.page-body li {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 12px;
}

.page-body a {
  color: var(--burgundy);
  font-weight: 500;
  border-bottom: 1px solid var(--burgundy);
}
.page-body a:hover { border-bottom-width: 2px; }

.page-body strong { color: var(--text-dark); }

.page-body hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 48px 0;
}

/* Patient Story Block */
.patient-story {
  background: var(--cream);
  border-radius: 12px;
  padding: 48px;
  margin: 48px 0;
}

.patient-story blockquote {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--navy);
  line-height: 1.5;
  font-style: italic;
  border: none;
  padding: 0;
  margin: 0 0 20px;
}

.patient-story p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.8;
}

.patient-story cite {
  font-size: 0.82rem;
  color: var(--gold-muted);
  font-style: normal;
  font-weight: 600;
}

/* Treatment Path Cards */
.treatment-paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 32px 0 48px;
}

.treatment-card {
  background: var(--cream);
  border-radius: 8px;
  padding: 28px;
  border: 1px solid var(--border-light);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: block;
}
.treatment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.08);
  border-bottom: 1px solid var(--border-light);
}
.treatment-card h4 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.treatment-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* FAQ Accordion */
.faq-section { margin: 48px 0; }
.faq-section h2 { margin-bottom: 24px; }

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  background: var(--white);
  transition: background 0.2s;
  user-select: none;
}
.faq-question:hover { background: var(--cream); }

.faq-question h3 {
  font-size: 1rem;
  color: var(--navy);
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
}

.faq-arrow {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.active .faq-arrow { transform: rotate(180deg); color: var(--burgundy); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.active .faq-answer { max-height: 400px; }

.faq-answer-inner {
  padding: 0 24px 24px;
}
.faq-answer-inner p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}
.faq-answer-inner p:last-child { margin-bottom: 0; }

/* Section Alternating Backgrounds */
.section-cream { background: var(--cream); padding: var(--section-padding); }
.section-white { background: var(--white); padding: var(--section-padding); }
.section-navy { background: var(--navy); padding: var(--section-padding); color: var(--text-on-navy); }
.section-navy h2 { color: var(--white); }
.section-navy p { color: var(--text-on-navy); }

/* Hero CTA row */
.hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 24px 0;
  flex-wrap: wrap;
}

.hero-phone {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: none;
}

.hero-geo {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 8px;
}

/* Credential / Benefit Grid */
.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 32px 0 48px;
}

.benefit-item h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.benefit-item p {
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Process / Timeline Steps */
.process-steps { margin: 32px 0 48px; counter-reset: step; }

.process-step {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.step-content h3 { margin-top: 6px; }

/* ========================================
   PAGE HERO (inner pages)
   ======================================== */

.page-hero {
  padding: 140px 0 72px;
  background: var(--cream);
}

.page-tier {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: 2.8rem;
  color: var(--navy);
  margin-bottom: 20px;
  max-width: 720px;
  letter-spacing: -0.02em;
}

.page-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.8;
}

/* ========================================
   PAGE CONTENT (placeholder)
   ======================================== */

.page-content {
  padding: var(--section-padding);
  background: var(--white);
}

.content-placeholder {
  min-height: 400px;
  border: 2px dashed var(--border-light);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  text-align: center;
}

.placeholder-label {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.placeholder-route {
  font-size: 0.82rem;
  font-family: monospace;
  color: var(--border-light);
  background: var(--cream);
  padding: 6px 16px;
  border-radius: 4px;
}

/* ========================================
   PAGE CTA
   ======================================== */

.page-cta {
  padding: 80px 0;
  background: var(--navy);
  text-align: center;
}

.page-cta h2 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 12px;
}

.page-cta p {
  font-size: 1rem;
  color: var(--text-on-navy);
  opacity: 0.7;
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  padding: 72px 0 40px;
  background: #061A2E;
  color: var(--text-on-navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-brand span { color: var(--burgundy-light); }

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 260px;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  text-decoration: none;
  border-bottom: none;
  transition: background 0.2s;
}
.footer-social a:hover { background: var(--burgundy); color: var(--white); border-bottom: none; }

.footer-column h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 10px; }

.footer-column a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  border-bottom: none;
  transition: color 0.2s;
}
.footer-column a:hover { color: var(--white); border-bottom: none; }

.footer-bottom {
  border-top: 1px solid var(--navy-light);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  border-bottom: none;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.6); border-bottom: none; }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
  html { font-size: 16px; }

  .page-hero { padding: 120px 0 48px; }
  .page-hero h1 { font-size: 2rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }

  .cta-buttons { flex-direction: column; align-items: center; }

  .benefit-grid { grid-template-columns: 1fr; }
  .treatment-paths { grid-template-columns: 1fr; }
  .process-step { flex-direction: column; gap: 12px; }
  .patient-story { padding: 32px 24px; }
  .patient-story blockquote { font-size: 1.2rem; }
  .page-body h2 { font-size: 1.5rem; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
}
