/* =============================================
   BLANC DENTAL CLINIC — styles.css
   Palette: Navy #1E3A5F | Gold #C9A84C | Ivory #FAFAF8
   ============================================= */

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

:root {
  --navy:       #1E3A5F;
  --navy-mid:   #2D5A8E;
  --navy-light: #EEF3F9;
  --gold:       #C9A84C;
  --gold-light: #F0E4B8;
  --ivory:      #FAFAF8;
  --white:      #FFFFFF;
  --text:       #2C2C2C;
  --text-muted: #6B7280;
  --border:     #E5E7EB;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.14);
  --radius:     12px;
  --radius-lg:  20px;
  --transition: 0.3s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--ivory);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.2rem; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, video { display: block; max-width: 100%; }
address { font-style: normal; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-pad { padding: 6rem 0; }

/* ── Gold text ── */
.gold-text { color: var(--gold); }

/* ── Section Headers ── */
.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.section-header { text-align: center; max-width: 660px; margin: 0 auto 3.5rem; }
.section-sub { color: var(--text-muted); margin-top: 0.75rem; font-size: 1.05rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: #b8952f;
  border-color: #b8952f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}
.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.82rem;
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-sm:hover { background: var(--navy-mid); border-color: var(--navy-mid); }
.btn-full { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.navbar.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: 0.65rem 0;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.85; }
.logo-blanc { color: var(--gold); }
.logo-dental { color: var(--white); transition: color var(--transition); }
.navbar.scrolled .logo-dental { color: var(--navy); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.navbar.scrolled .nav-links a { color: var(--text); }
.navbar.scrolled .nav-links a:hover { color: var(--navy); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 0.55rem 1.3rem;
  border-radius: 50px;
  font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #b8952f !important; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--navy); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0d1f33 0%, #1E3A5F 45%, #2D5A8E 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(45,90,142,0.4) 0%, transparent 60%);
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 8rem 1.5rem 4rem;
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero-sub {
  color: rgba(255,255,255,0.78);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.65); margin-top: 0.2rem; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text h2 { color: var(--navy); margin-bottom: 1.25rem; }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; font-size: 1.02rem; line-height: 1.75; }
.about-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.about-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; font-weight: 500; }
.check { color: var(--gold); font-size: 1rem; }

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.about-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.about-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.about-card-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.about-card h3 { color: var(--navy); font-size: 1rem; margin-bottom: 0.5rem; }
.about-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* ══════════════════════════════════════════
   TREATMENTS
══════════════════════════════════════════ */
.treatments { background: var(--ivory); }
.treatment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.treatment-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.treatment-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Cards without video get icon at top */
.treatment-card:not(.treatment-card--video) .treatment-icon {
  font-size: 2.5rem;
  padding: 2rem 2rem 0;
}
.treatment-body {
  padding: 1.5rem 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.treatment-body h3 { color: var(--navy); font-size: 1.25rem; }
.treatment-desc { color: var(--text-muted); font-size: 0.93rem; line-height: 1.7; }
.treatment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.meta-tag {
  background: var(--navy-light);
  color: var(--navy);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
}

.treatment-steps {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.treatment-steps summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  user-select: none;
}
.treatment-steps summary::before { content: '▶'; font-size: 0.6rem; transition: transform 0.2s; }
.treatment-steps[open] summary::before { transform: rotate(90deg); }
.treatment-steps ol {
  margin-top: 0.75rem;
  padding-left: 1.2rem;
  list-style: decimal;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.treatment-steps ol li { font-size: 0.875rem; color: var(--text-muted); line-height: 1.55; }
.treatment-symptoms {
  font-size: 0.84rem;
  color: var(--text-muted);
  background: var(--ivory);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--gold);
}
.treatment-symptoms strong { color: var(--navy); }

/* Video treatment cards */
.treatment-card--video { flex-direction: column; }
.treatment-video-wrap {
  position: relative;
  background: #050d1a;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.treatment-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-badge {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  color: #7dd3fc;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  border: 1px solid rgba(125,211,252,0.3);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.holo-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: #38bdf8;
  border-radius: 50%;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.6); }
}

/* Placeholder when video not yet available */
.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #050d1a, #0f2545);
  color: #7dd3fc;
  gap: 0.75rem;
  padding: 2rem;
  text-align: center;
}
.video-placeholder svg { opacity: 0.5; }
.video-placeholder p { font-size: 0.82rem; opacity: 0.7; }

/* ══════════════════════════════════════════
   TEAM
══════════════════════════════════════════ */
.team { background: var(--white); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.team-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}
.team-card h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 0.25rem; }
.team-role { font-size: 0.8rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.35rem; }
.team-qual { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.35rem; font-weight: 500; }
.team-exp { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.team-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

/* ══════════════════════════════════════════
   LOCATIONS
══════════════════════════════════════════ */
.locations {
  background: var(--navy);
  color: var(--white);
}
.locations .section-header h2 { color: var(--white); }
.locations .section-sub { color: rgba(255,255,255,0.65); }
.locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.location-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background var(--transition), box-shadow var(--transition);
}
.location-card:hover {
  background: rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.location-city {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}
.location-flagship {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,168,76,0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  display: inline-block;
  width: fit-content;
}
.location-card address p { font-size: 0.88rem; color: rgba(255,255,255,0.78); line-height: 1.6; }
.location-phone { font-size: 0.88rem; color: rgba(255,255,255,0.78); }
.location-hours { font-size: 0.8rem; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* ══════════════════════════════════════════
   APPOINTMENT
══════════════════════════════════════════ */
.appointment { background: var(--ivory); }
.appt-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.appt-info h2 { color: var(--navy); margin-bottom: 1rem; }
.appt-info p { color: var(--text-muted); font-size: 1rem; line-height: 1.75; margin-bottom: 1.5rem; }
.appt-perks { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
.appt-perks li { font-size: 0.9rem; color: var(--text); }
.appt-contact p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.4rem; }

.appt-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--ivory);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}
.form-group input.invalid,
.form-group select.invalid {
  border-color: #ef4444;
}
.form-group textarea { resize: vertical; }
.error-msg {
  font-size: 0.78rem;
  color: #ef4444;
  display: none;
}
.error-msg.visible { display: block; }
.form-success {
  background: #dcfce7;
  color: #166534;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  display: none;
}
.form-success.visible { display: block; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: #0d1f33;
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-top: 0.75rem; max-width: 280px; }
.footer-logo { display: inline-block; margin-bottom: 0.5rem; }
.social-links { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.social-links a svg { width: 16px; height: 16px; }
.social-links a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { font-size: 0.875rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--gold); }
.footer-col p { font-size: 0.875rem; margin-bottom: 0.4rem; }
.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.4); }

/* ══════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .section-pad { padding: 4rem 0; }
  h2 { font-size: 1.75rem; }

  /* Navbar mobile */
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -8px 0 32px rgba(0,0,0,0.15);
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-links a { color: var(--text) !important; font-size: 1rem; }
  .nav-cta { background: var(--gold) !important; color: var(--navy) !important; }

  .hero-content { padding: 7rem 1.5rem 3rem; }
  .hero-stats { gap: 1.5rem; }
  .stat-num { font-size: 1.5rem; }
  .hero-btns { gap: 0.75rem; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-cards { grid-template-columns: 1fr 1fr; }

  .treatment-grid { grid-template-columns: 1fr; }

  .team-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .team-card { padding: 1.5rem 1rem; }

  .locations-grid { grid-template-columns: 1fr 1fr; }

  .appt-grid { grid-template-columns: 1fr; gap: 2rem; }
  .appt-form { padding: 1.75rem; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 1rem; }
  .stat-divider { display: none; }
  .about-cards { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: 1fr; }
}
