/* ============================================
   SouthEnd Dental Care — Warm Contemporary
   Charlotte, NC | South End
   ============================================ */

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

:root {
  --teal-deep: #1a4a4a;
  --teal-mid: #2a6b6b;
  --teal-light: #3a8b8b;
  --ivory: #faf5ef;
  --ivory-warm: #f5ece0;
  --gold: #c4973b;
  --gold-light: #d4ad5a;
  --sage: #8aab7f;
  --charcoal: #2c2c2c;
  --charcoal-light: #5a5a5a;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(26,74,74,0.08);
  --shadow-md: 0 4px 20px rgba(26,74,74,0.12);
  --shadow-lg: 0 8px 40px rgba(26,74,74,0.16);
  --radius: 8px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--charcoal);
  background-color: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Skip Link */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--gold); color: var(--white);
  padding: 12px 24px; border-radius: var(--radius);
  z-index: 9999; font-weight: 700; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--teal-deep);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; }
p { margin-bottom: 1rem; }

a {
  color: var(--teal-mid); text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--gold); }
a:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px;
}

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
@media (max-width: 768px) { .section { padding: 56px 0; } }

.section-label {
  display: inline-block; font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--gold); margin-bottom: 12px;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250,245,239,0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,74,74,0.08);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--teal-deep);
}
.logo-icon {
  width: 38px; height: 38px; background: var(--teal-deep);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em;
}
.logo-text span { color: var(--gold); }

.nav-main { display: flex; align-items: center; gap: 32px; }
.nav-main a {
  font-size: 0.9rem; font-weight: 500; color: var(--charcoal);
  text-decoration: none; position: relative; padding: 4px 0;
}
.nav-main a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: width var(--transition);
}
.nav-main a:hover::after, .nav-main a.active::after { width: 100%; }
.nav-main a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.nav-cta {
  background: var(--teal-deep); color: var(--white) !important;
  padding: 10px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--teal-mid); transform: translateY(-1px); }
.nav-cta:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Mobile Nav */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative; flex-shrink: 0;
}
.nav-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--teal-deep);
  position: absolute; left: 4px; transition: var(--transition);
}
.nav-toggle span:nth-child(1) { top: 8px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-toggle.active span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-main {
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--ivory); flex-direction: column;
    padding: 24px; gap: 16px;
    border-bottom: 1px solid rgba(26,74,74,0.1);
    transform: translateY(-120%);
    transition: transform var(--transition); z-index: 999;
  }
  .nav-main.open { transform: translateY(0); }
  .nav-cta { text-align: center; width: 100%; display: block; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden; background: var(--teal-deep);
  margin-top: 72px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 1;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.3;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(135deg, rgba(26,74,74,0.92) 0%, rgba(42,107,107,0.78) 50%, rgba(26,74,74,0.88) 100%);
}
.hero-pattern {
  position: absolute; inset: 0; z-index: 3; opacity: 0.04;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(196,151,59,1) 40px, rgba(196,151,59,1) 41px);
}
.hero-content {
  position: relative; z-index: 4;
  max-width: 680px; padding: 0 24px;
  margin-left: max(24px, calc((100vw - 1200px) / 2 + 24px));
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(196,151,59,0.15); border: 1px solid rgba(196,151,59,0.3);
  padding: 8px 18px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 500; color: var(--gold-light);
  margin-bottom: 28px; animation: fadeSlideUp 0.8s ease both;
}
.hero-badge::before {
  content: ''; width: 8px; height: 8px;
  background: var(--gold); border-radius: 50%;
}
.hero h1 {
  color: var(--white); margin-bottom: 20px;
  animation: fadeSlideUp 0.8s ease 0.15s both;
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero-subtitle {
  color: rgba(255,255,255,0.8); font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7; margin-bottom: 36px;
  animation: fadeSlideUp 0.8s ease 0.3s both;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeSlideUp 0.8s ease 0.45s both;
}

@media (max-width: 768px) {
  .hero { min-height: 85vh; }
  .hero-content { margin-left: 0; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: all var(--transition);
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover {
  background: var(--gold-light); color: var(--white);
  transform: translateY(-2px); box-shadow: 0 4px 16px rgba(196,151,59,0.4);
}

.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--white); color: var(--white); transform: translateY(-2px); }

.btn-outline-dark { background: transparent; color: var(--teal-deep); border: 2px solid var(--teal-deep); }
.btn-outline-dark:hover { background: var(--teal-deep); color: var(--white); transform: translateY(-2px); }

.btn-teal { background: var(--teal-deep); color: var(--white); }
.btn-teal:hover {
  background: var(--teal-mid); color: var(--white);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}

.btn-white { background: var(--white); color: var(--teal-deep); }
.btn-white:hover {
  background: var(--ivory); color: var(--teal-deep);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}

/* ============================================
   INTRO STRIP
   ============================================ */
.intro-strip { background: var(--white); border-bottom: 1px solid rgba(26,74,74,0.06); }
.intro-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px; text-align: center;
}
.intro-item { padding: 20px; }
.intro-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal-mid));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; color: var(--gold-light); font-size: 1.4rem;
}
.intro-item h3 { margin-bottom: 8px; font-size: 1.1rem; }
.intro-item p { color: var(--charcoal-light); font-size: 0.92rem; margin-bottom: 0; }

@media (max-width: 768px) { .intro-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ============================================
   ABOUT PREVIEW
   ============================================ */
.about-preview { background: var(--ivory); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.about-image-wrap { position: relative; }
.about-image-wrap img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-image-accent {
  position: absolute; top: -16px; left: -16px;
  width: 100%; height: 100%;
  border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p { color: var(--charcoal-light); font-size: 1rem; }

@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ============================================
   SERVICES
   ============================================ */
.services-section {
  background: var(--teal-deep); position: relative; overflow: hidden;
}
.services-section::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(196,151,59,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.services-section .section-label { color: var(--gold-light); }
.services-section h2 { color: var(--white); margin-bottom: 48px; }

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 32px 28px;
  transition: all var(--transition);
}
.service-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.service-card-icon {
  width: 44px; height: 44px;
  background: rgba(196,151,59,0.15); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); font-size: 1.2rem; margin-bottom: 18px;
}
.service-card h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 10px; }
.service-card p { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.6; margin-bottom: 0; }

/* Services page — light cards */
.services-light { background: var(--ivory); }
.services-light::before { display: none; }
.services-light .service-card {
  background: var(--white); border: 1px solid rgba(26,74,74,0.08);
}
.services-light .service-card:hover { background: var(--white); box-shadow: var(--shadow-lg); }
.services-light .service-card h3 { color: var(--teal-deep); }
.services-light .service-card p { color: var(--charcoal-light); }
.services-light .service-card-icon { background: rgba(26,74,74,0.08); color: var(--teal-deep); }
.services-light h2 { color: var(--teal-deep); }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 30px, rgba(255,255,255,0.05) 30px, rgba(255,255,255,0.05) 31px);
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 28px; position: relative; }
.cta-banner .btn { position: relative; }

/* ============================================
   CONTACT
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info-list { list-style: none; margin-top: 24px; }
.contact-info-list li {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid rgba(26,74,74,0.08);
}
.contact-info-list li:last-child { border-bottom: none; }
.contact-icon {
  width: 44px; height: 44px; background: var(--teal-deep);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); flex-shrink: 0; font-size: 1rem;
}
.contact-info-list .label {
  font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--charcoal-light); margin-bottom: 2px;
}
.contact-info-list .value { font-weight: 600; color: var(--teal-deep); font-size: 1.05rem; }
.contact-info-list a.value { text-decoration: none; }
.contact-info-list a.value:hover { color: var(--gold); }

.contact-form {
  background: var(--white); padding: 40px;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.contact-form h3 { margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.88rem; font-weight: 600;
  color: var(--charcoal); margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 16px;
  border: 1px solid rgba(26,74,74,0.15); border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  color: var(--charcoal); background: var(--ivory);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(26,74,74,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
}

/* ============================================
   PAGE HERO (interior pages)
   ============================================ */
.page-hero {
  background: var(--teal-deep); padding: 120px 0 60px;
  margin-top: 72px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; opacity: 0.04;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(196,151,59,1) 40px, rgba(196,151,59,1) 41px);
}
.page-hero h1 { color: var(--white); position: relative; animation: fadeSlideUp 0.6s ease both; }
.page-hero .breadcrumb {
  margin-top: 12px; font-size: 0.9rem;
  color: rgba(255,255,255,0.5); position: relative;
}
.page-hero .breadcrumb a { color: var(--gold-light); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-content { background: var(--white); }
.about-content-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 60px; align-items: start;
}
.about-story h2 { margin-bottom: 20px; }
.about-story p { color: var(--charcoal-light); font-size: 1.02rem; margin-bottom: 1.2rem; }

.about-sidebar {
  background: var(--ivory); padding: 32px;
  border-radius: var(--radius); border-left: 4px solid var(--gold);
}
.about-sidebar h3 { margin-bottom: 16px; }
.about-sidebar ul { list-style: none; }
.about-sidebar li {
  padding: 10px 0; border-bottom: 1px solid rgba(26,74,74,0.06);
  font-size: 0.95rem; color: var(--charcoal-light);
  display: flex; align-items: center; gap: 10px;
}
.about-sidebar li::before {
  content: ''; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%; flex-shrink: 0;
}

@media (max-width: 768px) { .about-content-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Values Grid */
.values-section { background: var(--ivory); }
.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; margin-top: 40px;
}
.value-card {
  background: var(--white); padding: 32px;
  border-radius: var(--radius); text-align: center;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal-mid));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; color: var(--gold-light); font-size: 1.3rem;
}
.value-card h3 { margin-bottom: 8px; }
.value-card p { color: var(--charcoal-light); font-size: 0.92rem; margin-bottom: 0; }

@media (max-width: 768px) { .values-grid { grid-template-columns: 1fr; } }

/* ============================================
   MAP
   ============================================ */
.map-section { height: 360px; background: var(--teal-deep); position: relative; overflow: hidden; }
.map-section iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.8) contrast(1.1); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.6); padding: 60px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-text {
  color: var(--white); font-size: 1.3rem; margin-bottom: 12px; display: block;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 360px; }
.footer-links h4, .footer-contact h4 {
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gold-light); margin-bottom: 18px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-links a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.footer-contact p { font-size: 0.9rem; margin-bottom: 6px; }
.footer-contact a { color: rgba(255,255,255,0.6); }
.footer-contact a:hover { color: var(--gold-light); }
.footer-contact a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 0.82rem; }

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.stagger-children > * {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-children.visible > * { opacity: 1; transform: translateY(0); }

@media print {
  .site-header, .nav-toggle, .hero-bg, .hero-overlay, .hero-pattern { display: none; }
  body { color: #000; background: #fff; }
}
