/* ===========================
   MOMENTUM DENTAL CARE
   Main Stylesheet
   =========================== */

/* --- Variables --- */
:root {
  --primary: #1B4332;
  --primary-dark: #132d23;
  --accent: #2D9D8F;
  --accent-light: #3bbfb0;
  --green-light: #5cb85c;
  --text-dark: #1a1a1a;
  --text-mid: #444444;
  --text-light: #777777;
  --bg-light: #f8f9fa;
  --bg-section: #f0f4f2;
  --white: #ffffff;
  --border: #e0e0e0;
  --gold: #f5a623;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 8px;
  --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.7;
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.3;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; color: var(--text-mid); }
p:last-child { margin-bottom: 0; }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}
.section-title { margin-bottom: 1rem; }
.section-subtitle { color: var(--text-mid); max-width: 600px; margin: 0 auto 2.5rem; font-size: 1.05rem; }
.text-center { text-align: center; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-white:hover { background: transparent; color: var(--white); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--primary); }
.btn-accent { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-light); border-color: var(--accent-light); color: var(--white); }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-dark { background: var(--primary); }
.section-dark h2, .section-dark h3, .section-dark p { color: var(--white); }
.section-dark .section-label { color: var(--accent-light); }
.section-gray { background: var(--bg-section); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* --- Placeholders --- */
.img-placeholder {
  background: linear-gradient(135deg, #d0e8e4, #b0d4ce);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  min-height: 250px;
}
.img-placeholder-sm { min-height: 180px; }
.img-placeholder-lg { min-height: 400px; }
.img-placeholder-hero { min-height: 500px; border-radius: 12px; }

/* ===========================
   HEADER
   =========================== */
.site-header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.header-top { background: var(--primary); color: var(--white); font-size: 0.85rem; padding: 0.4rem 0; text-align: center; }
.header-top a { color: var(--white); }
.header-top a:hover { color: var(--accent-light); }
.header-main { padding: 1rem 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.site-logo img { height: 65px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 0; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 0.3rem; padding: 0.6rem 0.9rem; font-size: 0.9rem; font-weight: 600; color: var(--text-dark); transition: var(--transition); white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link svg { width: 14px; height: 14px; transition: transform 0.3s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 4px); left: 0; background: var(--white); box-shadow: 0 8px 30px rgba(0,0,0,0.12); border-radius: var(--radius); padding: 0.5rem 0; min-width: 220px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: var(--transition); z-index: 200; border-top: 3px solid var(--accent); }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 0.6rem 1.2rem; font-size: 0.88rem; color: var(--text-dark); font-weight: 500; transition: var(--transition); }
.dropdown a:hover { background: var(--bg-section); color: var(--accent); padding-left: 1.5rem; }
.mega-dropdown { min-width: 700px; left: -200px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 1.5rem; }
.mega-col { padding: 0 1rem; border-right: 1px solid var(--border); }
.mega-col:last-child { border-right: none; }
.mega-col-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); padding: 0 0 0.6rem 0; margin-bottom: 0.3rem; border-bottom: 2px solid var(--bg-section); display: block; }
.mega-dropdown a { padding: 0.35rem 0; font-size: 0.85rem; }
.mega-dropdown a:hover { background: none; color: var(--accent); padding-left: 0.5rem; }
.header-cta { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.header-phone { display: flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.95rem; color: var(--primary); }
.header-phone svg { color: var(--accent); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--primary); transition: var(--transition); }

/* ===========================
   HERO
   =========================== */
.hero { padding: 5rem 0; background: linear-gradient(135deg, #f8fffe 0%, #e8f5f2 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; display: block; }
.hero-title { color: var(--primary); margin-bottom: 1.25rem; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-mid); margin-bottom: 2rem; max-width: 480px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-rating { display: flex; align-items: center; gap: 0.75rem; }
.hero-stars { display: flex; gap: 2px; }
.hero-stars svg { width: 20px; height: 20px; fill: var(--gold); color: var(--gold); }
.hero-rating-text { font-size: 0.9rem; color: var(--text-mid); font-weight: 500; }
.hero-rating-text strong { color: var(--primary); }
.hero-image { position: relative; }
.hero-badge { position: absolute; bottom: 1.5rem; left: -1rem; background: var(--white); border-radius: var(--radius); padding: 0.75rem 1.2rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; font-weight: 600; color: var(--primary); }
.hero-badge svg { color: var(--accent); width: 24px; height: 24px; }
.page-hero { background: linear-gradient(135deg, var(--primary) 0%, #2d6e56 100%); padding: 4rem 0; color: var(--white); text-align: center; }
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 600px; margin: 0 auto 1.5rem; }
.breadcrumb { display: flex; justify-content: center; gap: 0.5rem; font-size: 0.85rem; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.5); }

/* ===========================
   CARDS
   =========================== */
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.card-body { padding: 1.5rem; }
.card-body h3 { margin-bottom: 0.5rem; }
.card-body p { font-size: 0.9rem; }
.card-icon { width: 56px; height: 56px; background: var(--bg-section); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.card-icon svg { width: 26px; height: 26px; color: var(--accent); }
.momentum-card { text-align: center; padding: 2rem 1.5rem; }
.momentum-card .card-icon { margin: 0 auto 1rem; background: rgba(45,157,143,0.1); }
.momentum-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.doctor-card { text-align: center; }
.doctor-card .doctor-name { font-size: 1.3rem; margin-bottom: 0.25rem; }
.doctor-card .doctor-title { color: var(--accent); font-size: 0.9rem; font-weight: 600; margin-bottom: 0.75rem; }
.testimonial-card { padding: 2rem; }
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 0.75rem; }
.testimonial-stars svg { width: 16px; height: 16px; fill: var(--gold); color: var(--gold); }
.testimonial-text { font-style: italic; font-size: 0.95rem; margin-bottom: 1rem; }
.testimonial-author { font-weight: 700; font-size: 0.9rem; color: var(--primary); }
.testimonial-source { font-size: 0.8rem; color: var(--text-light); }

/* ===========================
   INFO BAR
   =========================== */
.info-bar { background: var(--primary); padding: 2rem 0; color: var(--white); }
.info-bar-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.info-bar-item { display: flex; align-items: flex-start; gap: 1rem; }
.info-bar-icon { width: 48px; height: 48px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-bar-icon svg { width: 22px; height: 22px; color: var(--accent-light); }
.info-bar-text h4 { color: var(--white); font-size: 1rem; margin-bottom: 0.25rem; font-family: var(--font-body); }
.info-bar-text p { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin: 0; }
.info-bar-text a { color: var(--accent-light); }

/* ===========================
   FORMS
   =========================== */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--primary); }
.form-control { width: 100%; padding: 0.8rem 1rem; border: 2px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 0.95rem; color: var(--text-dark); transition: var(--transition); background: var(--white); }
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,157,143,0.15); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; padding: 1rem; border-radius: var(--radius); display: none; }

/* ===========================
   ACCORDION
   =========================== */
.accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }
.accordion-btn { width: 100%; background: none; border: none; padding: 1.25rem 1.5rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--primary); text-align: left; transition: var(--transition); }
.accordion-btn:hover { background: var(--bg-section); }
.accordion-btn svg { flex-shrink: 0; transition: transform 0.3s; width: 20px; height: 20px; color: var(--accent); }
.accordion-btn.open svg { transform: rotate(180deg); }
.accordion-body { padding: 0 1.5rem 1.25rem; display: none; }
.accordion-body.open { display: block; }

/* ===========================
   GALLERY
   =========================== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item { border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; }
.tab-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; border-bottom: 2px solid var(--border); }
.tab-btn { padding: 0.75rem 1.25rem; background: none; border: none; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; color: var(--text-mid); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: var(--transition); }
.tab-btn:hover { color: var(--accent); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===========================
   MEMBERSHIP PLANS
   =========================== */
.plan-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border: 2px solid var(--border); transition: var(--transition); }
.plan-card.featured { border-color: var(--accent); transform: scale(1.03); }
.plan-card:hover { box-shadow: var(--shadow-hover); }
.plan-header { background: var(--primary); padding: 2rem; text-align: center; }
.plan-card.featured .plan-header { background: var(--accent); }
.plan-header h3 { color: var(--white); margin-bottom: 0; font-size: 1.3rem; }
.plan-price { text-align: center; padding: 1.5rem; border-bottom: 1px solid var(--border); }
.plan-price .price { font-size: 2.5rem; font-weight: 800; color: var(--primary); font-family: var(--font-heading); }
.plan-price .period { font-size: 0.9rem; color: var(--text-light); }
.plan-features { padding: 1.5rem; }
.plan-features li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.5rem 0; font-size: 0.9rem; border-bottom: 1px solid var(--bg-section); }
.plan-features li:last-child { border-bottom: none; }
.plan-features svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.plan-footer { padding: 1.5rem; text-align: center; }

/* ===========================
   STATS BAR
   =========================== */
.stats-bar { background: var(--accent); padding: 3rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 2rem; }
.stat-item h3 { color: var(--white); font-size: 2.5rem; margin-bottom: 0.25rem; }
.stat-item p { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin: 0; }

/* ===========================
   CTA BANNER
   =========================== */
.cta-banner { background: var(--primary); padding: 4rem 0; text-align: center; }
.cta-banner h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-banner .btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===========================
   FOOTER
   =========================== */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer-heading { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.25rem; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent-light); padding-left: 4px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; font-size: 0.9rem; }
.footer-contact svg { width: 16px; height: 16px; color: var(--accent-light); flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: var(--accent-light); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-link { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); transition: var(--transition); }
.social-link:hover { background: var(--accent); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent-light); }

/* ===========================
   MISC
   =========================== */
.highlight-box { background: var(--bg-section); border-left: 4px solid var(--accent); padding: 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.highlight-box h4 { margin-bottom: 0.5rem; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 0.75rem 0; font-size: 0.95rem; }
.hours-table .day { font-weight: 600; color: var(--primary); width: 40%; }
.closed { color: var(--text-light); }
.page-content { padding: 4rem 0; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-rating { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .info-bar-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 768px) {
  .main-nav, .header-phone { display: none; }
  .menu-toggle { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .mega-dropdown { display: none; }
  .mobile-nav { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--white); z-index: 2000; overflow-y: auto; padding: 1rem; }
  .mobile-nav.open { display: block; }
  .mobile-nav-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
  .mobile-nav-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); }
  .mobile-nav-links a { display: block; padding: 0.8rem 0; font-size: 1rem; font-weight: 600; color: var(--primary); border-bottom: 1px solid var(--bg-section); }
  .mobile-nav-sub { padding-left: 1rem; }
  .mobile-nav-sub a { font-weight: 400; font-size: 0.9rem; color: var(--text-mid); }
  .mobile-section-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--accent); padding: 0.75rem 0 0.25rem; letter-spacing: 0.08em; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
