/* ═══════════════════════════════════════════════
   Dental Surgery Associates — Shared Stylesheet
   ═══════════════════════════════════════════════ */

:root {
  --navy:    #1a2f6e;
  --navy-dk: #111f4d;
  --navy-lt: #2a45a0;
  --cream:   #f5f6fb;
  --gold:    #d4a017;
  --gold-lt: #f0c040;
  --text:    #1e1e1e;
  --muted:   #6b7280;
  --white:   #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
h1,h2,h3,h4,h5 { font-family: 'Cormorant Garamond', serif; }

/* ── TOP BAR ── */
.topbar {
  background: var(--navy-dk);
  font-size: .78rem;
  letter-spacing: .04em;
  color: rgba(255,255,255,.7);
}
.topbar a { color: rgba(255,255,255,.7); text-decoration: none; }
.topbar a:hover { color: var(--gold-lt); }
.topbar .social-icons a { margin-left: .6rem; font-size: 1rem; }

/* ── NAVBAR ── */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,.07);
  padding: 0;
}
.navbar-nav .nav-link {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy) !important;
  padding: 1.4rem .85rem !important;
  position: relative;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px;
  background: var(--gold);
  transition: left .25s, right .25s;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { left: .85rem; right: .85rem; }
.btn-appt {
  background: var(--navy) !important;
  color: var(--white) !important;
  border-radius: 2px !important;
  padding: .5rem 1.2rem !important;
  margin-left: .8rem;
  transition: background .2s !important;
}
.btn-appt:hover { background: var(--gold) !important; }
.btn-appt::after { display: none !important; }

/* ── PAGE HERO BANNER ── */
.page-hero {
  background: linear-gradient(100deg, var(--navy-dk) 0%, var(--navy) 60%, rgba(212,160,23,.25) 100%);
  padding: 5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(212,160,23,.08);
}
.page-hero::after {
  content: '';
  position: absolute;
  right: 80px; bottom: -120px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.page-hero .breadcrumb { background: none; padding: 0; margin: 0; }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a {
  color: rgba(255,255,255,.55);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}
.page-hero .breadcrumb-item.active { color: var(--gold-lt); }
.page-hero .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,.3); }
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-top: .8rem;
}
.page-hero h1 em { font-style: italic; color: var(--gold-lt); }
.page-hero .title-bar {
  width: 52px; height: 3px;
  background: var(--gold);
  margin-top: 1.2rem;
}

/* ── SECTION HELPERS ── */
.section-tag {
  display: inline-block;
  color: var(--navy);
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: .5rem;
}
.section-tag.light { color: var(--gold-lt); }
.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.15;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-title.light { color: var(--white); }
.title-rule {
  width: 48px; height: 2px;
  background: var(--gold);
  margin: 1rem 0 1.5rem;
}
.title-rule.centered { margin: 1rem auto 1.5rem; }

/* ── BUTTONS ── */
.btn-primary-dsa {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: .8rem 2rem;
  font-size: .83rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
  transition: background .2s, transform .2s;
}
.btn-primary-dsa:hover { background: var(--gold); color: var(--white); transform: translateY(-2px); }
.btn-outline-dsa {
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: .75rem 1.8rem;
  font-size: .83rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
  transition: all .2s;
}
.btn-outline-dsa:hover { background: var(--navy); color: var(--white); }

/* ── CHECK LIST ── */
.check-list { list-style: none; padding: 0; }
.check-list li {
  display: flex; align-items: flex-start; gap: .7rem;
  margin-bottom: .7rem; font-size: .9rem; color: var(--muted);
  line-height: 1.6;
}
.check-list li i { color: var(--gold); font-size: 1rem; flex-shrink: 0; margin-top: .15rem; }

/* ── CONTACT INFO ── */
.contact-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.1rem;
}
.contact-form .form-control,
.contact-form textarea,
.contact-form select {
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: .8rem 1rem;
  font-size: .88rem;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form .form-control:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,47,110,.1);
  outline: none;
}
.btn-send {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: .85rem 2.4rem;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background .2s;
  cursor: pointer;
}
.btn-send:hover { background: var(--gold); }

/* ── ACCORDION (FAQ) ── */
.accordion-button {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: var(--navy) !important;
  background: var(--white) !important;
  font-size: .92rem;
}
.accordion-button:not(.collapsed) { color: var(--gold) !important; box-shadow: none !important; }
.accordion-item { border: none; border-bottom: 1px solid #e5e5e5; border-radius: 0 !important; }
.accordion-body { font-size: .88rem; color: var(--muted); line-height: 1.8; }

/* ── TESTIMONIAL CARD ── */
.testi-card {
  background: var(--cream);
  border-radius: 4px;
  padding: 2.2rem 2rem;
  position: relative;
  height: 100%;
  border-bottom: 3px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.testi-card:hover { border-color: var(--gold); box-shadow: 0 8px 30px rgba(26,47,110,.1); }
.testi-card::before {
  content: '\201C';
  font-family: 'Cormorant Garamond', serif;
  font-size: 6rem;
  color: var(--navy);
  opacity: .08;
  position: absolute;
  top: -.6rem; left: 1.2rem;
  line-height: 1;
}
.testi-stars { color: var(--gold); font-size: .85rem; margin-bottom: .8rem; }
.testi-card p { font-size: .9rem; color: var(--muted); line-height: 1.8; font-style: italic; position: relative; }
.testi-card .testi-name { font-weight: 600; color: var(--navy); font-size: .85rem; letter-spacing: .05em; }

/* ── TEAM CARD ── */
.team-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26,47,110,.08);
  transition: box-shadow .25s, transform .25s;
}
.team-card:hover { box-shadow: 0 12px 40px rgba(26,47,110,.15); transform: translateY(-4px); }
.team-card .card-img {
  width: 100%; height: 280px;
  object-fit: cover;
  object-position: top;
}
.team-card .card-body { padding: 1.6rem; }
.team-card .card-name { font-size: 1.3rem; color: var(--navy); margin-bottom: .2rem; }
.team-card .card-role {
  font-size: .75rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: .8rem;
}
.team-card .card-bio { font-size: .87rem; color: var(--muted); line-height: 1.75; }
.team-card-placeholder {
  background: linear-gradient(135deg, var(--cream), #e8eaf6);
  width: 100%; height: 280px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(26,47,110,.2); font-size: 4rem;
}

/* ── SERVICE DETAIL ── */
.service-detail-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26,47,110,.07);
  margin-bottom: 3rem;
}
.service-detail-card .svc-img {
  width: 100%; height: 300px;
  object-fit: cover;
}
.service-detail-card .svc-body { padding: 2.5rem; }
.service-detail-card h3 {
  font-size: 1.8rem; color: var(--navy);
  margin-bottom: 1rem;
}
.service-detail-card p { font-size: .9rem; color: var(--muted); line-height: 1.85; margin-bottom: 1rem; }
.service-detail-card h5 { font-size: 1.1rem; color: var(--navy); margin: 1.4rem 0 .8rem; }
.service-detail-card ul { padding-left: 1.2rem; }
.service-detail-card ul li { font-size: .88rem; color: var(--muted); line-height: 1.8; margin-bottom: .3rem; }
.svc-num-badge {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; font-weight: 600;
  color: var(--white);
  background: var(--gold);
  padding: .25rem .7rem;
  border-radius: 2px;
  letter-spacing: .1em;
  margin-bottom: .8rem;
}

/* ── GALLERY ── */
.gallery-masonry {
  columns: 3;
  column-gap: 12px;
}
.gallery-masonry .gal-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 3px;
  overflow: hidden;
  display: block;
}
.gallery-masonry .gal-item img {
  width: 100%; display: block;
  transition: transform .4s ease, filter .3s;
  filter: brightness(.97);
}
.gallery-masonry .gal-item:hover img { transform: scale(1.04); filter: brightness(1.05); }
@media (max-width: 768px) {
  .gallery-masonry { columns: 2; }
}
@media (max-width: 480px) {
  .gallery-masonry { columns: 1; }
}

/* ── FOOTER ── */
footer {
  background: #07121f;
  color: rgba(255,255,255,.55);
  padding: 4rem 0 2rem;
  font-size: .85rem;
}
footer h6 {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: 1.2rem;
}
footer a { color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--gold-lt); }
footer .footer-links li { margin-bottom: .5rem; }
.footer-social a {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  font-size: 1rem;
  margin-right: .4rem;
  transition: background .2s, border-color .2s;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.footer-divider { border-color: rgba(255,255,255,.08); margin: 2.5rem 0 1.5rem; }
.footer-bottom { font-size: .78rem; color: rgba(255,255,255,.3); }

/* ── SCROLL TOP ── */
#scrollTop {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--navy);
  border: none; border-radius: 50%;
  color: var(--white); font-size: 1.1rem;
  display: none; align-items: center; justify-content: center;
  cursor: pointer; z-index: 999;
  box-shadow: 0 4px 20px rgba(26,47,110,.35);
  transition: background .2s;
}
#scrollTop:hover { background: var(--gold); }
#scrollTop.show { display: flex; }

/* ── FADE UP ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

/* ── MISC ── */
.bg-cream { background: var(--cream); }
.bg-navy  { background: var(--navy-dk); }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
