/* Collegeville Dental Associates — static rebuild, v2 "boutique modern" pass
   Fraunces for character in headlines, Inter for clean body copy.
   Palette unchanged: navy, teal, warm coral accent, cream background. */

:root {
  --navy: #163544;
  --teal: #2a7d7d;
  --teal-light: #eaf5f4;
  --coral: #e8785a;
  --cream: #fbfaf7;
  --max-width: 1100px;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--cream);
  line-height: 1.65;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; color: var(--navy); }

a { color: var(--teal); }

.btn {
  display: inline-block;
  margin: 0.5rem 0.5rem 0 0;
  padding: 0.85rem 1.75rem;
  background: var(--coral);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 30px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: #d9633f; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(232,120,90,0.35); }

/* Brand wordmark (used in header and footer, no raster logo needed) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand__icon { width: 30px; height: 30px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}
.brand__sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  opacity: 0.75;
}
.brand--header { color: var(--navy); }
.brand--header .brand__icon { color: var(--teal); }
.brand--footer { color: #fff; justify-content: center; margin-bottom: 1rem; }
.brand--footer .brand__icon { color: var(--coral); }

/* Top bar */
.topbar {
  background: #fff;
  border-bottom: 1px solid #e5e0d8;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.topbar__nav a {
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  margin-left: 1.25rem;
}
.topbar__nav a:hover { color: var(--teal); }

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(22,53,68,0.92) 0%, rgba(22,53,68,0.65) 45%, rgba(42,125,125,0.4) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 6rem;
  color: #fff;
}
.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #fff;
  max-width: 720px;
}
.hero h3 {
  font-family: var(--font-body);
  color: var(--teal-light);
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  font-size: 1.2rem;
  margin: 0 0 1rem;
}
.hero p { max-width: 560px; font-size: 1.05rem; color: rgba(255,255,255,0.9); }

/* wave divider at base of hero, transitions into page background */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 90px;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C300,120 900,0 1200,60 L1200,120 L0,120 Z' fill='%23fbfaf7'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* Intro */
.intro {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  text-align: center;
}
.intro h2 { color: var(--teal); font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.intro p { max-width: 700px; margin: 0 auto; font-size: 1.1rem; }

/* Shared two-column content blocks */
.about, .services, .office {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
.about__grid, .services__grid, .office__grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.5rem;
  align-items: center;
}
.services__grid { grid-template-columns: 1fr 340px; }
.services__grid .services__photo { order: 2; }
.services__grid .services__text { order: 1; }

.about__photo, .services__photo, .office__photo {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(22,53,68,0.18);
  transition: transform 0.25s ease;
}
.about__photo:hover, .services__photo:hover, .office__photo:hover { transform: translateY(-4px); }
.about h2, .services h2, .office h2 { margin-top: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.about h3 { color: var(--teal); font-weight: 500; text-transform: none; font-family: var(--font-body); }

.services__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.services__list li {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  padding: 0.75rem 1rem;
  border-radius: 4px;
}
.services__list strong { color: var(--teal); font-family: var(--font-display); }

.office { background: var(--teal-light); max-width: 100%; }
.office__grid { max-width: var(--max-width); margin: 0 auto; }
.office a { color: var(--navy); font-weight: 600; text-decoration: none; }

/* FAQs */
.faqs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}
.faqs h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.faqs__item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e0d8;
}
.faqs__item:last-child { border-bottom: none; }
.faqs__item h3 { color: var(--teal); font-weight: 600; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 3rem 1.25rem;
  background: var(--navy);
  color: #fff;
}
.site-footer p { margin: 0.25rem 0; }
.site-footer a { color: #bfe3e0; }
.site-footer__forms { margin-top: 1.5rem; }
.site-footer__forms h3 { color: #fff; margin-bottom: 0.5rem; font-family: var(--font-body); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; }

/* Responsive */
@media (max-width: 760px) {
  .about__grid, .services__grid, .office__grid { grid-template-columns: 1fr; }
  .services__grid .services__photo, .services__grid .services__text { order: initial; }
  .topbar__nav a { margin-left: 0.85rem; font-size: 0.82rem; }
  .hero { min-height: 100vh; }
}
