/* ═══════════════════════════════════════════════
   KENNEDY SQUARE DENTAL — SHARED STYLES
   ═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

:root {
  --navy:       #162232;
  --navy-mid:   #1e3048;
  --teal:       #28797a;
  --teal-light: #3a9b9c;
  --teal-pale:  #e6f4f4;
  --cream:      #f8f5ef;
  --warm-white: #fefcf8;
  --gold:       #c5964a;
  --gold-light: #f0d9b0;
  --text-dark:  #162232;
  --text-mid:   #3d5166;
  --text-light: #7a90a4;
  --border:     rgba(22,34,50,0.10);
  --shadow-sm:  0 4px 16px rgba(0,0,0,0.06);
  --shadow-md:  0 12px 40px rgba(0,0,0,0.10);
  --shadow-lg:  0 24px 72px rgba(0,0,0,0.14);
  --radius:     3px;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* ── NOTICE BAR ── */
.notice-bar {
  background: var(--teal);
  color: #fff;
  text-align: center;
  padding: 0.55rem 2rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 200;
}
.notice-bar a { color: rgba(255,255,255,0.9); font-weight: 700; text-decoration: none; }
.notice-bar a:hover { text-decoration: underline; }

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254,252,248,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 74px;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-logo { text-decoration: none; display: flex; flex-direction: row; align-items: center; line-height: 1.15; gap: 0.5rem; }
.nav-logo .n-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.nav-logo .n-sub {
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 0.2rem; list-style: none; }
.nav-links li a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  letter-spacing: 0.03em;
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-links li a:hover { color: var(--teal); background: var(--teal-pale); }
.nav-links li a.active { color: var(--teal); font-weight: 600; }

/* Services dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 0.3rem; }
.nav-dropdown > a::after { content: '▾'; font-size: 0.65rem; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0;
  min-width: 220px;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 0.55rem 1.4rem;
  font-size: 0.83rem;
  color: var(--text-mid);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}
.dropdown-menu a:hover { color: var(--teal); background: var(--teal-pale); }

.nav-cta {
  background: var(--navy) !important;
  color: #fff !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  margin-left: 0.5rem;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--teal) !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; z-index: 300; }
.hamburger span { width: 22px; height: 1.5px; background: var(--navy); display: block; transition: all 0.3s; }

/* ── BUTTONS ── */
.btn { display: inline-block; text-decoration: none; cursor: pointer; border: none; font-family: 'DM Sans', sans-serif; border-radius: var(--radius); transition: all var(--transition); }
.btn-primary {
  background: var(--navy);
  color: #fff;
  padding: 0.85rem 2.2rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.btn-primary:hover { background: var(--teal); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(40,121,122,0.3); }

.btn-outline {
  border: 1.5px solid var(--navy);
  color: var(--navy);
  padding: 0.82rem 2.2rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-teal {
  background: var(--teal);
  color: #fff;
  padding: 0.85rem 2.2rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.btn-teal:hover { background: var(--navy); }

.btn-ghost {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: gap var(--transition), color var(--transition);
}
.btn-ghost:hover { gap: 0.8rem; color: var(--navy); }

/* ── SECTION LABELS ── */
.s-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}
.s-label::before { content: ''; width: 28px; height: 1px; background: var(--teal); }

h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 5.5vw, 4.4rem); font-weight: 400; color: var(--navy); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 400; color: var(--navy); }
h3 { font-size: 1.35rem; font-weight: 500; color: var(--navy); }
em.accent { font-style: italic; color: var(--teal); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--navy);
  padding: 90px 8% 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(40,121,122,0.25) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--teal));
}
.page-hero .s-label { color: var(--gold-light); }
.page-hero .s-label::before { background: var(--gold-light); }
.page-hero h1 { color: #fff; max-width: 640px; }
.page-hero p { color: rgba(255,255,255,0.65); font-size: 1rem; line-height: 1.8; max-width: 560px; margin-top: 1.25rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 2rem;
}
.breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal-light); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.visible { opacity: 1; transform: translateY(0); }


/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 70px 8% 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 4%;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 28px;
}
.f-brand .f-logo-main { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; font-weight: 600; color: #fff; display: block; margin-bottom: 0.2rem; }
.f-brand .f-logo-sub { font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-light); display: block; margin-bottom: 1.3rem; }
.f-brand p { font-size: 0.84rem; line-height: 1.8; max-width: 270px; }
.f-col h4 { font-family: 'DM Sans', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin-bottom: 1.25rem; }
.f-col ul { list-style: none; }
.f-col ul li { margin-bottom: 0.55rem; }
.f-col ul li a { font-size: 0.84rem; color: rgba(255,255,255,0.5); text-decoration: none; transition: color var(--transition); }
.f-col ul li a:hover { color: var(--teal-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.76rem; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--teal-light); }

/* ── CONTACT FORM ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); margin-bottom: 0.45rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.82rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--warm-white);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--teal); }
.form-group textarea { height: 130px; resize: vertical; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 5%; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--warm-white);
  z-index: 250;
  flex-direction: column;
  padding: 90px 8% 40px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--navy);
  text-decoration: none;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--teal); }
.mobile-nav .m-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 0.3rem 0 0.3rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.mobile-close {
  position: absolute;
  top: 22px; right: 5%;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy);
  background: none;
  border: none;
}
