/* ── CASTLE ROCK DENTAL CENTER — Shared Stylesheet ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a3557;
  --navy-light: #244873;
  --teal: #2a8c7e;
  --teal-light: #3aada0;
  --teal-pale: #e8f5f4;
  --gold: #c9974a;
  --white: #ffffff;
  --off-white: #f8f7f4;
  --gray-light: #edecea;
  --gray-mid: #8a8a8a;
  --gray-dark: #3d3d3d;
  --text: #222222;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); font-size: 16px; line-height: 1.7; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* CONTAINERS */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* TOP BAR */
.top-bar { background: var(--navy); color: rgba(255,255,255,0.85); font-size: 13.5px; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.top-bar a { color: rgba(255,255,255,0.85); transition: color 0.2s; }
.top-bar a:hover { color: var(--gold); }
.top-bar .sep { margin: 0 10px; opacity: 0.3; }

/* HEADER */
header { background: var(--white); border-bottom: 1px solid var(--gray-light); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: -0.3px; }
.logo-tagline { font-size: 11.5px; font-weight: 500; color: var(--teal); letter-spacing: 2px; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 4px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--gray-dark); padding: 8px 12px; border-radius: 6px; transition: background 0.2s, color 0.2s; white-space: nowrap; }
.nav-link:hover, .nav-link.active { background: var(--teal-pale); color: var(--teal); }
.btn-appt { background: var(--teal); color: var(--white) !important; padding: 9px 20px; border-radius: 6px; font-weight: 600; font-size: 14px; transition: background 0.2s; margin-left: 8px; }
.btn-appt:hover { background: var(--teal-light); }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; font-size: 24px; color: var(--navy); }

/* PAGE HERO (interior pages) */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #2d6a5e 100%); color: var(--white); padding: 60px 0; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.15; }
.page-hero-content { position: relative; z-index: 1; }
.page-eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); font-weight: 700; line-height: 1.15; margin-bottom: 16px; }
.page-hero p { font-size: 17px; font-weight: 300; opacity: 0.88; max-width: 560px; line-height: 1.7; }
.breadcrumb { font-size: 13px; opacity: 0.6; margin-bottom: 16px; }
.breadcrumb a { color: inherit; }
.breadcrumb a:hover { opacity: 1; }

/* SECTION */
section { padding: 72px 0; }
.section-label { font-size: 11.5px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.section-title { font-family: var(--font-display); font-size: clamp(26px, 3.5vw, 38px); font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 16px; }
.section-body { font-size: 17px; color: #555; max-width: 640px; line-height: 1.75; }

/* BUTTONS */
.btn-primary { background: var(--gold); color: var(--white); padding: 13px 28px; border-radius: 6px; font-weight: 600; font-size: 15px; transition: opacity 0.2s, transform 0.15s; display: inline-block; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-teal { background: var(--teal); color: var(--white); padding: 13px 28px; border-radius: 6px; font-weight: 600; font-size: 15px; transition: background 0.2s; display: inline-block; }
.btn-teal:hover { background: var(--teal-light); }
.btn-outline-navy { border: 2px solid var(--navy); color: var(--navy); padding: 11px 26px; border-radius: 6px; font-weight: 600; font-size: 15px; transition: background 0.2s, color 0.2s; display: inline-block; }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* SERVICE LIST (used on family/cosmetic pages) */
.services-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 48px; }
.service-item { background: var(--white); border: 1px solid var(--gray-light); border-radius: 10px; padding: 28px; transition: box-shadow 0.2s, transform 0.2s; }
.service-item:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.service-item-icon { font-size: 32px; margin-bottom: 14px; }
.service-item-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.service-item-desc { font-size: 15px; color: #666; line-height: 1.65; }

/* TWO-COL CONTENT */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.content-img { width: 100%; height: 420px; object-fit: cover; border-radius: 12px; }
.content-img-placeholder { width: 100%; height: 420px; border-radius: 12px; background: var(--teal-pale); display: flex; align-items: center; justify-content: center; font-size: 72px; }

/* FEATURE BULLETS */
.feature-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: #555; line-height: 1.6; }
.feature-list li::before { content: '✓'; color: var(--teal); font-weight: 700; font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* CTA BAND */
.cta-band { background: var(--navy); color: var(--white); padding: 56px 0; text-align: center; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px); font-weight: 700; margin-bottom: 14px; }
.cta-band p { font-size: 17px; opacity: 0.8; margin-bottom: 32px; }
.cta-band .btn-primary { margin: 0 8px; }

/* DOCTOR CARDS */
.doctors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; margin-top: 50px; }
.doctor-card { background: var(--white); border-radius: 14px; overflow: hidden; border: 1px solid var(--gray-light); }
.doctor-img-placeholder { width: 100%; height: 300px; background: linear-gradient(160deg, var(--navy) 0%, var(--teal) 100%); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); font-size: 80px; font-family: var(--font-display); font-weight: 700; }
.doctor-info { padding: 28px; }
.doctor-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.doctor-role { font-size: 12.5px; font-weight: 600; color: var(--teal); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.doctor-bio { font-size: 15px; color: #666; line-height: 1.68; margin-bottom: 16px; }
.doctor-edu { font-size: 13.5px; color: var(--gray-mid); border-top: 1px solid var(--gray-light); padding-top: 14px; }
.doctor-edu strong { color: var(--navy); display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }

/* CONTACT FORM */
.form-wrap { background: var(--off-white); padding: 40px; border-radius: 14px; border: 1px solid var(--gray-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--navy); letter-spacing: 0.3px; }
.form-group input, .form-group select, .form-group textarea { padding: 11px 14px; border: 1.5px solid var(--gray-light); border-radius: 7px; font-size: 15px; font-family: var(--font-body); color: var(--text); background: var(--white); transition: border-color 0.2s; outline: none; width: 100%; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-disclaimer { font-size: 12px; color: var(--gray-mid); margin-bottom: 18px; line-height: 1.5; }
.btn-submit { background: var(--teal); color: var(--white); border: none; padding: 14px 32px; border-radius: 7px; font-size: 15px; font-weight: 600; font-family: var(--font-body); cursor: pointer; width: 100%; transition: background 0.2s; }
.btn-submit:hover { background: var(--teal-light); }

/* INFO ITEMS */
.info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.info-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--teal-pale); color: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.info-label { font-size: 12px; font-weight: 600; color: var(--gray-mid); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.info-value { font-size: 15px; font-weight: 500; color: var(--navy); }
.hours-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 14.5px; margin-top: 6px; }
.hours-grid .day { color: var(--gray-mid); }
.hours-grid .time { color: var(--text); font-weight: 500; }

/* FAQ */
.faq-list { margin-top: 40px; display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--gray-light); }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 20px 0; font-size: 16px; font-weight: 600; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-body); }
.faq-question:hover { color: var(--teal); }
.faq-answer { font-size: 15px; color: #666; line-height: 1.7; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-answer.open { max-height: 300px; padding-bottom: 20px; }
.faq-arrow { font-size: 18px; transition: transform 0.3s; color: var(--teal); }
.faq-arrow.open { transform: rotate(180deg); }

/* INSURANCE LOGOS PLACEHOLDER */
.insurance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 40px; }
.insurance-item { background: var(--white); border: 1px solid var(--gray-light); border-radius: 8px; padding: 20px; text-align: center; font-size: 14px; font-weight: 600; color: var(--navy); }

/* FOOTER */
footer { background: #111e2e; color: rgba(255,255,255,0.7); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo-name { color: var(--white); font-size: 20px; }
.footer-brand .logo-tagline { color: var(--teal-light); }
.footer-brand p { font-size: 14px; margin-top: 14px; line-height: 1.7; }
.footer-col h4 { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-col a:hover { color: var(--teal-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; flex-wrap: wrap; gap: 12px; }
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* MOBILE */
@media (max-width: 860px) {
  .mobile-menu-btn { display: block; }
  nav .nav-link, nav .btn-appt { display: none; }
  nav.open .nav-link, nav.open .btn-appt { display: block; width: 100%; padding: 12px 16px; border-radius: 0; border-bottom: 1px solid var(--gray-light); margin-left: 0; }
  nav.open { flex-direction: column; background: var(--white); position: absolute; top: 100%; left: 0; right: 0; border-bottom: 2px solid var(--gray-light); z-index: 200; }
  header { position: relative; }
  .two-col, .two-col.reverse { grid-template-columns: 1fr; gap: 40px; direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
