/* ============================================
   Cedar Park Family Dentistry — shared styles
   ============================================ */

:root {
  --bg: #fdfbf6;
  --bg-soft: #f5f0e6;
  --bg-tint: #eaf4f3;
  --teal: #2c8a82;
  --teal-dark: #1f6d66;
  --teal-light: #d6ebe8;
  --coral: #e8896f;
  --coral-dark: #d36e51;
  --ink: #18313a;
  --ink-soft: #4d626b;
  --ink-dim: #7c8d96;
  --line: #e6dfd2;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- TOP STRIP ---------- */
.topstrip {
  background: var(--teal-dark);
  color: #fff;
  font-size: 13.5px;
  padding: 8px 0;
}
.topstrip-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.topstrip span { display: inline-flex; align-items: center; gap: 6px; }
.topstrip a { color: #fff; opacity: 0.9; }
.topstrip a:hover { opacity: 1; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 246, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px;
  background: var(--teal);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
}
.brand-name {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--ink);
  line-height: 1.05;
}
.brand-sub {
  font-size: 11.5px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a.active { color: var(--teal); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}
.nav-cta {
  background: var(--coral);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--coral-dark); transform: translateY(-1px); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost-light {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.2); }

/* ---------- HERO ---------- */
.hero {
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  margin-bottom: 22px;
}
.hero h1 em {
  color: var(--coral);
  font-style: italic;
}
.hero p {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 20px 50px -15px rgba(28, 64, 73, 0.18);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* sub-hero used on inner pages */
.subhero {
  padding: 70px 0 60px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.subhero h1 {
  font-size: clamp(36px, 4.5vw, 52px);
  margin-bottom: 14px;
}
.subhero p {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 620px;
}
.crumbs {
  font-size: 13px;
  color: var(--ink-dim);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.crumbs a { color: var(--teal); }

/* ---------- COMMON SECTION ---------- */
section { padding: 90px 0; }
.section-eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(32px, 4vw, 46px);
  margin-bottom: 18px;
  max-width: 640px;
}
.section-lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 580px;
  margin-bottom: 56px;
}
.center-text { text-align: center; }
.center-text .section-title, .center-text .section-lede { margin-left: auto; margin-right: auto; }

/* ---------- TRUST BAR ---------- */
.trustbar {
  background: var(--bg-tint);
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trustbar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.trust-num {
  font-family: 'DM Serif Display', serif;
  font-size: 40px;
  color: var(--teal);
  line-height: 1;
}
.trust-label {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-top: 6px;
  font-weight: 500;
}

/* ---------- CARD GRIDS ---------- */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* service card */
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal-light);
  box-shadow: 0 16px 32px -12px rgba(28, 64, 73, 0.15);
}
.service-icon {
  width: 56px; height: 56px;
  background: var(--teal-light);
  color: var(--teal-dark);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 22px;
}
.service-card h3 { font-size: 22px; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 18px; flex: 1; }
.service-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.02em;
}

/* team card */
.team-card {
  text-align: center;
}
.team-photo {
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--bg-soft);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 22px; margin-bottom: 4px; }
.team-role {
  font-size: 13px;
  color: var(--coral);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.team-bio { font-size: 14px; color: var(--ink-soft); }

/* ---------- TWO COL FEATURE ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.split-img {
  aspect-ratio: 5/4;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(28, 64, 73, 0.2);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 16px; }
.split p { font-size: 17px; color: var(--ink-soft); margin-bottom: 14px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-q {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--ink);
}
.faq-a {
  font-size: 15.5px;
  color: var(--ink-soft);
}

/* ---------- TESTIMONIAL ---------- */
.testimonials { background: var(--bg-soft); }
.tcard {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--line);
}
.stars { color: var(--coral); margin-bottom: 14px; letter-spacing: 2px; font-size: 17px; }
.tcard blockquote {
  font-size: 16.5px;
  color: var(--ink);
  margin-bottom: 22px;
  line-height: 1.65;
}
.tcite {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.tcite-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: 'DM Serif Display', serif;
}
.tcite-name { font-weight: 600; font-size: 14.5px; }
.tcite-meta { font-size: 12.5px; color: var(--ink-dim); }

/* ---------- CTA ---------- */
.cta-band {
  background: var(--teal);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -150px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 60%);
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 16px;
  position: relative;
}
.cta-band p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin: 0 auto 30px;
  max-width: 580px;
  position: relative;
}
.cta-band-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- FORM ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: span 2; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- INFO BOXES ---------- */
.info-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.info-box h3 {
  font-size: 21px;
  margin-bottom: 12px;
}
.info-box p, .info-box li { font-size: 15px; color: var(--ink-soft); }
.info-box ul { list-style: none; }
.info-box li {
  padding: 8px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.info-box li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.info-row:last-child { border-bottom: 0; }
.info-row strong { color: var(--ink); font-weight: 600; }

/* ---------- FOOTER ---------- */
footer {
  background: #14272f;
  color: #b9c8ce;
  padding: 60px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-grid h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid a, .footer-grid p { color: #b9c8ce; padding: 4px 0; line-height: 1.7; display: block; }
.footer-grid a:hover { color: var(--coral); }
.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #6e818a;
  font-size: 13px;
}
.footer-brand-mark {
  width: 44px; height: 44px;
  background: var(--teal);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .hero { padding: 50px 0 60px; }
  .nav-links { display: none; }
  .hero-grid, .split, .three-col, .four-col, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .trustbar-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: span 1; }
  .topstrip-inner { font-size: 12.5px; }
}
