/* =============================================
   4030 DENTAL — Styles
   Palette: Emerald (#047857 / #065F46 / #D1FAE5)
            Cream (#FFFBF0 / #F5F0E8 / #E8DFD0)
   ============================================= */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --emerald-50:  #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;

  --cream-50:  #FFFBF0;
  --cream-100: #F5F0E8;
  --cream-200: #E8DFD0;
  --cream-300: #D4C8B4;

  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-400:  #94a3b8;
  --gray-500:  #64748b;
  --gray-600:  #475569;
  --gray-700:  #334155;
  --gray-800:  #1e293b;
  --gray-900:  #0f172a;

  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  background: var(--cream-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--emerald-600); }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--gray-900);
  line-height: 1.2;
}

.section-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--emerald-700);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 600px;
  line-height: 1.7;
}

.section-header--center { text-align: center; }
.section-header--center .section-sub { margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-emerald {
  background: var(--emerald-700);
  color: var(--white);
  border-color: var(--emerald-700);
}
.btn-emerald:hover {
  background: var(--emerald-600);
  border-color: var(--emerald-600);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-cream {
  background: var(--cream-100);
  color: var(--emerald-800);
  border-color: var(--cream-200);
}
.btn-cream:hover {
  background: var(--cream-200);
  color: var(--emerald-900);
  transform: translateY(-2px);
}

.btn-outline-cream {
  background: transparent;
  color: var(--cream-50);
  border-color: rgba(255,251,240,.5);
}
.btn-outline-cream:hover {
  background: rgba(255,251,240,.12);
  border-color: var(--cream-50);
  color: var(--cream-50);
}

.btn-sm { padding: 8px 18px; font-size: .82rem; }
.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,251,240,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-200);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
}
.logo-mark {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--emerald-700);
  letter-spacing: -.02em;
}
.logo-word {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--gray-800);
  letter-spacing: .02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
}
.nav-links a:not(.btn):hover { color: var(--emerald-700); }
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald-600);
  transition: width var(--transition);
}
.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger { position: relative; }
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--emerald-900);
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(6,78,59,.96) 0%, rgba(4,120,87,.88) 50%, rgba(5,150,105,.80) 100%),
    url('https://images.pexels.com/photos/33394283/pexels-photo-33394283.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--emerald-200);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--emerald-400, #34d399);
}

.hero-headline {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  color: var(--white);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}

.hero-sub {
  font-size: 1.08rem;
  color: rgba(255,255,255,.8);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-note {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .03em;
}

/* Hero stat cards */
.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 400px;
}
.stat-card {
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform var(--transition), background var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.16);
}
.stat-card--1 { grid-column: 1 / -1; }
.stat-card--4 { grid-column: 1 / -1; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
  letter-spacing: .04em;
}

/* ── Services ── */
.services {
  padding: 100px 0;
  background: var(--cream-50);
}
.services .section-header { margin-bottom: 56px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--cream-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald-600), var(--emerald-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--emerald-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--emerald-700);
}
.service-icon svg { width: 28px; height: 28px; }

.service-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}
.service-card p {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ── About ── */
.about {
  padding: 100px 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-image-wrap img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  background: var(--emerald-100);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.about-content .section-title { margin-bottom: 20px; }
.about-text {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 28px 0 36px;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--gray-700);
}
.check-icon {
  width: 20px;
  height: 20px;
  color: var(--emerald-600);
  flex-shrink: 0;
}

/* ── Patient Info ── */
.patient-info {
  padding: 100px 0;
  background: var(--cream-100);
}
.patient-info .section-header { margin-bottom: 56px; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--cream-200);
  transition: all var(--transition);
}
.info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.info-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--emerald-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
}
.info-card-icon svg { width: 26px; height: 26px; }
.info-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}
.info-card p {
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.75;
}
.info-card em { color: var(--emerald-700); }

/* ── CTA ── */
.cta {
  padding: 80px 0;
  background: var(--emerald-800);
  position: relative;
  overflow: hidden;
}
.cta-pattern {
  position: absolute;
  inset: 0;
  opacity: .06;
  background-image: radial-gradient(circle at 2px 2px, var(--white) 1px, transparent 0);
  background-size: 32px 32px;
}
.cta-card {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--white);
  margin-bottom: 16px;
}
.cta-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  margin-bottom: 36px;
}
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ── Contact ── */
.contact {
  padding: 100px 0;
  background: var(--cream-50);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-text {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 32px;
}
.contact-details { margin-bottom: 32px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.contact-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--gray-800);
  min-width: 60px;
}
.contact-icon {
  width: 20px;
  height: 20px;
  color: var(--emerald-600);
  flex-shrink: 0;
}
.contact-item dd a {
  color: var(--gray-600);
  font-size: .92rem;
  line-height: 1.6;
}
.contact-item dd a:hover { color: var(--emerald-700); }

.contact-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.contact-map img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.map-link {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: var(--white);
  color: var(--gray-800);
  font-size: .82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.map-link:hover {
  background: var(--emerald-700);
  color: var(--white);
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--cream-200);
  box-shadow: var(--shadow-sm);
}
.form-title {
  font-size: 1.3rem;
  margin-bottom: 28px;
  color: var(--gray-900);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  color: var(--gray-800);
  background: var(--cream-50);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-privacy {
  font-size: .78rem;
  color: var(--gray-400);
  margin-top: 14px;
  text-align: center;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success hidden { display: none; }
.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--emerald-600);
}
.form-success h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--gray-900);
}
.form-success p {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.7;
}
.form-success a { color: var(--emerald-700); font-weight: 600; }

/* ── Footer ── */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.6);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo-word { color: var(--white); }
.footer-brand p {
  margin-top: 16px;
  font-size: .9rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer-links h4,
.footer-contact h4 {
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
}
.footer-links a:hover { color: var(--white); }
.footer-contact p {
  font-size: .88rem;
  line-height: 1.8;
}
.footer-contact a { color: rgba(255,255,255,.7); }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--white); }

/* ── Mobile Nav ── */
@media (max-width: 900px) {
  .nav-toggle { display: block; z-index: 110; }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--cream-50);
    flex-direction: column;
    align-items: stretch;
    padding: 90px 32px 32px;
    gap: 0;
    box-shadow: -8px 0 30px rgba(0,0,0,.15);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 100;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--cream-200);
  }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 20px; text-align: center; }
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }
  .nav-overlay.active { opacity: 1; pointer-events: all; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-cards { max-width: 100%; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-wrap { order: -1; max-width: 480px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-cards { grid-template-columns: 1fr 1fr; }
  .stat-card--1, .stat-card--4 { grid-column: auto; }
  .services-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .about-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-form-wrap { padding: 28px 20px; }
  .cta-actions { flex-direction: column; align-items: center; }
}
