/* ==========================================================================
   East Grove Family Dental — custom styles
   ========================================================================== */

:root {
  --green-deep: #1f3a16;
  --green: #2f5522;
  --green-bright: #5f9a3f;
  --blue: #2661ad;
  --gold: #cf9b3a;
  --gold-bright: #e3b658;
  --cream: #faf7ef;
  --paper: #ffffff;
  --tint: #eef3e6;
  --ink: #1c2419;
  --muted: #5c6857;
  --line: rgba(28, 36, 25, .12);
  --radius: 18px;
  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4,
.font-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.01em;
}

a { color: var(--blue); text-decoration-color: rgba(38,97,173,.4); }
a:hover { color: var(--green); }

img { max-width: 100%; }

.text-muted-soft { color: var(--muted); }

.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-alt { background: var(--paper); }
.section-tint { background: var(--tint); }

.section-eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  color: var(--green-deep);
  margin-bottom: 1rem;
  line-height: 1.12;
}

.section-lede {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 46rem;
}

/* ---------- Buttons ---------- */
.btn { font-family: var(--font-body); font-weight: 700; border-radius: 999px; padding: .72rem 1.7rem; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: #fff; }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn-outline-green { border: 2px solid var(--green); color: var(--green); background: transparent; }
.btn-outline-green:hover { background: var(--green); color: #fff; }
.btn-outline-cream { border: 2px solid rgba(255,255,255,.85); color: #fff; background: transparent; }
.btn-outline-cream:hover { background: #fff; color: var(--green-deep); }

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(250, 247, 239, .96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: .55rem;
  padding-bottom: .55rem;
}
.navbar-brand { display: flex; align-items: center; gap: .6rem; padding: 0; }
.navbar-brand img { height: 42px; width: auto; display: block; }
.navbar-brand-text { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--green-deep); line-height: 1.05; }
.navbar-brand-text small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .66rem; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; }

.navbar .nav-link {
  font-weight: 700;
  color: var(--ink);
  padding: .5rem .78rem !important;
  font-size: .92rem;
}
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--green); }
.navbar .dropdown-menu { border: none; border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(28,36,25,.25); padding: .5rem; }
.navbar .dropdown-item { border-radius: 8px; font-weight: 600; padding: .5rem .8rem; }
.navbar .dropdown-item:hover { background: var(--tint); color: var(--green-deep); }
.navbar-cta { margin-left: .3rem; }
.navbar-toggler { border: none; padding: .25rem .5rem; }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- Hero (split-panel) ---------- */
.hero {
  display: flex;
  min-height: 100vh;
  flex-wrap: wrap;
}

.hero-panel {
  flex: 1 1 54%;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
  display: flex;
  align-items: center;
  padding: 7.5rem 3.5rem 4rem;
  position: relative;
  overflow: hidden;
  order: 1;
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: -25%;
  left: -15%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(227,182,88,0.14) 0%, rgba(227,182,88,0) 70%);
}

.hero-content { position: relative; z-index: 2; max-width: 560px; }

.hero-eyebrow {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1.2rem;
  display: block;
}

.hero-title {
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.4rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.9);
  margin-bottom: 2.2rem;
  max-width: 480px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-actions .btn { padding: .85rem 1.7rem; font-size: .96rem; }

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  margin: 1.8rem 0 0;
}

.hero-photo {
  flex: 1 1 46%;
  min-height: 340px;
  background: url('img/hero.webp') center 22%/cover no-repeat;
  position: relative;
  order: 2;
}

/* ---------- About ---------- */
.about-photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 18px 40px -20px rgba(28,36,25,.35);
}
.about-photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.about-stat-card {
  height: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  padding: 1.6rem 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-stat-alt { background: var(--blue); }
.about-stat-card i { font-size: 1.9rem; color: var(--gold-bright); margin-bottom: .9rem; }
.about-stat-card h4 { font-size: 1.08rem; margin-bottom: .5rem; color: #fff; }
.about-stat-card p { font-size: .88rem; color: rgba(255,255,255,.82); margin: 0; }

/* ---------- Doctors ---------- */
.doctor-card {
  height: 100%;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: 0 18px 40px -24px rgba(28,36,25,.3);
}
.doctor-avatar {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.doctor-avatar-alt { background: var(--blue); }
.doctor-photo { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: 14px; display: block; margin-bottom: 1.2rem; }
.doctor-card h3 { color: var(--green-deep); margin-bottom: .2rem; }
.doctor-focus { color: var(--gold); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.doctor-card > p { color: var(--muted); }
.doctor-credentials { list-style: none; padding: 0; margin: 1.2rem 0; display: flex; flex-direction: column; gap: .6rem; }
.doctor-credentials li { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; color: var(--ink); }
.doctor-credentials i { color: var(--green); margin-top: .2rem; }
.doctor-personal { font-size: .92rem; font-style: italic; color: var(--muted); margin: 0; }

/* ---------- Services ---------- */
.service-tile {
  height: 100%;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.6rem 1.1rem;
  text-align: center;
  box-shadow: 0 12px 28px -20px rgba(28,36,25,.3);
  transition: transform .15s ease, box-shadow .15s ease;
}
.service-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -18px rgba(28,36,25,.35); }
.service-tile i { display: block; font-size: 1.7rem; color: var(--green); margin-bottom: .7rem; }
.service-tile span { font-weight: 700; font-size: .92rem; color: var(--ink); }

/* ---------- Reviews ---------- */
.stars-row { color: var(--gold); font-size: 1.3rem; letter-spacing: .2rem; margin-bottom: 1rem; }
.badge-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 18px 40px -24px rgba(28,36,25,.3);
}
.badge-card-label { font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.badge-row { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.badge-row img { height: 52px; width: auto; }

/* ---------- Careers ---------- */
.career-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 2.4rem;
  box-shadow: 0 18px 40px -24px rgba(28,36,25,.3);
  border-top: 4px solid var(--gold);
}
.career-card-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.4rem; }
.career-badge { display: inline-block; background: var(--tint); color: var(--green-deep); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; margin-bottom: .6rem; }
.career-card h3 { color: var(--green-deep); margin: 0 0 .3rem; }
.career-sub { color: var(--muted); font-size: .92rem; margin: 0; }
.career-pay { font-family: var(--font-display); font-size: 2.1rem; color: var(--gold); font-weight: 600; white-space: nowrap; }
.career-pay span { font-family: var(--font-body); font-size: .95rem; color: var(--muted); font-weight: 600; }
.perk-pill { display: flex; align-items: center; gap: .5rem; background: var(--tint); border-radius: 12px; padding: .7rem .9rem; font-size: .85rem; font-weight: 700; color: var(--green-deep); }
.perk-pill i { color: var(--gold); }

/* ---------- Patient Forms ---------- */
.form-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--paper);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 12px 28px -20px rgba(28,36,25,.3);
  text-decoration: none;
  color: var(--ink);
  height: 100%;
  transition: transform .15s ease;
}
.form-card:hover { transform: translateY(-2px); color: var(--ink); }
.form-card i { font-size: 1.8rem; color: var(--green); flex-shrink: 0; }
.fc-title { display: block; font-weight: 700; }
.fc-sub { display: block; font-size: .82rem; color: var(--muted); }

/* ---------- Appointment Form ---------- */
.appointment-form {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 18px 40px -24px rgba(28,36,25,.3);
}
.appointment-form .form-control {
  border-radius: 10px;
  border: 1.5px solid var(--line);
  padding: .75rem 1rem;
  font-family: var(--font-body);
}
.appointment-form .form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 .2rem rgba(47,85,34,.15);
}

/* ---------- Contact ---------- */
.contact-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: 0 12px 28px -20px rgba(28,36,25,.3);
}
.contact-row { display: flex; gap: 1rem; margin-bottom: 1.1rem; }
.contact-row:last-child { margin-bottom: 0; }
.contact-row i { color: var(--gold); font-size: 1.2rem; margin-top: .15rem; }
.contact-row a { color: var(--ink); font-weight: 700; text-decoration: none; }
.contact-row a:hover { color: var(--green); }
.cr-label { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.hours-table td:last-child { text-align: right; font-weight: 700; color: var(--green-deep); }
.hours-table tr:last-child td { border-bottom: none; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  min-height: 420px;
  box-shadow: 0 18px 40px -24px rgba(28,36,25,.3);
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: rgba(255,255,255,.82);
  padding: 4rem 0 1.5rem;
}
.site-footer h5 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .95rem; margin-bottom: 1rem; }
.footer-logo-chip {
  display: inline-flex;
  align-items: center;
  background: var(--cream);
  border-radius: 14px;
  padding: .7rem 1.1rem;
  margin-bottom: 1.1rem;
}
.footer-logo-chip img { height: 44px; width: auto; display: block; }
.site-footer p { font-size: .92rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: rgba(255,255,255,.82); text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-links li { font-size: .92rem; }
.footer-social { display: flex; gap: .8rem; margin-top: 1.2rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
}
.footer-social a:hover { background: var(--gold); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .84rem;
}
.footer-powered { color: var(--gold-bright); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.footer-powered:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero { min-height: auto; }
  .hero-panel { order: 2; padding: 3.5rem 1.5rem 3.5rem; flex: 1 1 100%; }
  .hero-photo { order: 1; min-height: 46vh; flex: 1 1 100%; }
  .hero-content { max-width: 100%; }
  .about-photo-card, .about-stat-card { aspect-ratio: 1/1; }
}

@media (max-width: 575.98px) {
  .career-card-header { flex-direction: column; }
  .career-pay { font-size: 1.7rem; }
}
