/* South Shore Family Dental — custom styles */

:root {
  --pine: #143530;
  --pine-deep: #0c221e;
  --sand: #f6f1e7;
  --sand-warm: #efe6d3;
  --coral: #d97a54;
  --coral-deep: #c2603c;
  --sage: #cfe0d0;
  --ink: #17231f;
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; }

.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral-deep);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--pine);
}

.section-pad { padding: 5.5rem 0; }

/* ---------- Navbar ---------- */
.navbar-swf {
  background: var(--sand);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(20, 53, 48, 0.08);
  transition: box-shadow 0.2s ease;
}
.navbar-swf.scrolled {
  box-shadow: 0 4px 24px rgba(12, 34, 30, 0.08);
}
.navbar-brand-swf {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--pine) !important;
  line-height: 1.05;
}
.navbar-brand-swf img { height: 38px; width: 38px; }
.navbar-brand-swf .brand-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-deep);
}
.navbar-swf .nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--pine) !important;
  margin: 0 0.5rem;
}
.navbar-swf .nav-link:hover { color: var(--coral-deep) !important; }
.btn-coral {
  background: var(--coral);
  border: none;
  color: #fff !important;
  font-weight: 700;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-coral:hover { background: var(--coral-deep); color: #fff; transform: translateY(-1px); }
.btn-outline-pine {
  border: 1.5px solid var(--pine);
  color: var(--pine);
  font-weight: 700;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.btn-outline-pine:hover { background: var(--pine); color: var(--sand); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(217, 122, 84, 0.18) 0%, rgba(217, 122, 84, 0) 70%),
    linear-gradient(160deg, var(--pine) 0%, var(--pine-deep) 65%, #081714 100%);
}
.hero-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 231, 0.14);
}
.hero-orbit.o1 { width: 620px; height: 620px; top: -180px; right: -160px; }
.hero-orbit.o2 { width: 900px; height: 900px; bottom: -420px; left: -320px; border-color: rgba(217, 122, 84, 0.18); }
.hero-smile {
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: min(38vw, 420px);
  opacity: 0.5;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 2.75rem 2.25rem;
  background: rgba(8, 20, 17, 0.22);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 1.25rem;
}
.hero-eyebrow {
  color: var(--sage);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.8);
}
.hero-title {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin: 0.9rem 0 1.1rem;
  text-shadow: 0 0 4px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,0.95), 0 0 60px rgba(0,0,0,0.8);
}
.hero-subtitle {
  color: var(--sand);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 2rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,0.95), 0 0 40px rgba(0,0,0,0.85);
}
.hero-tagline {
  color: var(--coral);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.9);
}
.hero-cta-row { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.75rem; }

/* ---------- Welcome / About ---------- */
.about-card {
  background: #fff;
  border-radius: 1.1rem;
  padding: 2rem 1.9rem;
  height: 100%;
  border: 1px solid rgba(20, 53, 48, 0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.about-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20, 53, 48, 0.1); }
.about-card .icon-wrap {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--pine);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}
.about-card h3 { font-size: 1.15rem; color: var(--pine); margin-bottom: 0.6rem; }
.about-card p { font-size: 0.94rem; color: #4a5a55; margin-bottom: 0; }

.section-alt { background: var(--pine); color: var(--sand); }
.section-alt .section-title { color: #fff; }
.section-alt .section-eyebrow { color: var(--coral); }

/* ---------- Doctor ---------- */
.doctor-panel {
  background: linear-gradient(150deg, var(--sage) 0%, var(--sand-warm) 100%);
  border-radius: 1.5rem;
  padding: 3rem;
}
.doctor-badge {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.doctor-name { color: var(--pine); font-size: 2.1rem; margin-bottom: 0.15rem; }
.doctor-title { color: var(--coral-deep); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 1.2rem; }

/* ---------- Staff ---------- */
.staff-card {
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: 1.1rem;
  background: #fff;
  border: 1px solid rgba(20, 53, 48, 0.07);
  height: 100%;
}
.staff-avatar {
  width: 76px; height: 76px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--pine);
  color: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 1.6rem;
}
.staff-card h3 { font-size: 1.05rem; color: var(--pine); margin-bottom: 0.25rem; }
.staff-card .role { font-size: 0.85rem; color: var(--coral-deep); font-weight: 700; }

/* ---------- Services ---------- */
.svc-card {
  background: #fff;
  border-radius: 1.1rem;
  border: 1px solid rgba(20, 53, 48, 0.08);
  overflow: hidden;
  height: 100%;
}
.svc-card .svc-head {
  width: 100%;
  text-align: left;
  padding: 1.5rem 1.6rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--pine);
}
.svc-card .svc-head .icon-wrap {
  width: 46px; height: 46px; flex: 0 0 auto;
  border-radius: 0.75rem;
  background: var(--sage);
  color: var(--pine);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.svc-card .svc-head::after {
  content: "\002B";
  margin-left: auto;
  font-size: 1.4rem;
  color: var(--coral-deep);
  transition: transform 0.2s ease;
}
.svc-card .svc-head[aria-expanded="true"]::after { transform: rotate(45deg); }
.svc-card .svc-body { padding: 0 1.6rem 1.6rem; }
.svc-card .svc-body dt {
  font-weight: 700;
  color: var(--pine);
  font-size: 0.92rem;
  margin-top: 0.9rem;
}
.svc-card .svc-body dd {
  font-size: 0.87rem;
  color: #4a5a55;
  margin-bottom: 0;
}

/* ---------- Technology ---------- */
.tech-tile {
  padding: 1.9rem 1.6rem;
  border-radius: 1.1rem;
  background: rgba(246, 241, 231, 0.06);
  border: 1px solid rgba(246, 241, 231, 0.16);
  height: 100%;
}
.tech-tile .icon-wrap {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
}
.tech-tile h3 { color: #fff; font-size: 1.05rem; margin-bottom: 0.5rem; }
.tech-tile p { color: rgba(246, 241, 231, 0.78); font-size: 0.88rem; margin-bottom: 0; }

/* ---------- Resources ---------- */
.resource-card {
  padding: 2rem 1.7rem;
  border-radius: 1.1rem;
  height: 100%;
  background: var(--sand-warm);
  border: 1px solid rgba(20, 53, 48, 0.08);
}
.resource-card .icon-wrap {
  width: 48px; height: 48px;
  border-radius: 0.75rem;
  background: var(--pine);
  color: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.resource-card h3 { font-size: 1.05rem; color: var(--pine); margin-bottom: 0.5rem; }
.resource-card p, .resource-card ul { font-size: 0.89rem; color: #4a5a55; }
.resource-card ul { padding-left: 1.1rem; margin-bottom: 0; }
.resource-card a { color: var(--coral-deep); font-weight: 700; }

/* ---------- FAQ ---------- */
.accordion-swf .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(20, 53, 48, 0.14);
}
.accordion-swf .accordion-button {
  background: transparent;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--pine);
  padding: 1.3rem 0.25rem;
  box-shadow: none !important;
}
.accordion-swf .accordion-button:not(.collapsed) { color: var(--coral-deep); }
.accordion-swf .accordion-button::after { flex-shrink: 0; }
.accordion-swf .accordion-body { padding: 0 0.25rem 1.4rem; color: #4a5a55; font-size: 0.93rem; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff;
  border-radius: 1.1rem;
  padding: 2.4rem;
  height: 100%;
  border: 1px solid rgba(20, 53, 48, 0.07);
  position: relative;
}
.testimonial-card .quote-mark {
  font-family: var(--font-head);
  font-size: 3.2rem;
  color: var(--sage);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.testimonial-card p.quote { font-size: 1.05rem; color: var(--ink); }
.testimonial-card .author { font-weight: 700; color: var(--coral-deep); margin-top: 1rem; }

/* ---------- Specials banner ---------- */
.specials-banner {
  background: linear-gradient(120deg, var(--coral) 0%, var(--coral-deep) 100%);
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  color: #fff;
  text-align: center;
}
.specials-banner .price {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1;
}

/* ---------- Location ---------- */
.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li {
  display: flex; justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(20, 53, 48, 0.1);
  font-size: 0.95rem;
}
.hours-list li span:first-child { font-weight: 700; color: var(--pine); }
.map-frame {
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(20, 53, 48, 0.1);
  min-height: 340px;
}
.contact-chip {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  background: #fff;
  border-radius: 0.9rem;
  border: 1px solid rgba(20, 53, 48, 0.08);
  margin-bottom: 0.8rem;
  color: var(--ink);
  font-weight: 600;
}
.contact-chip .icon-wrap {
  width: 40px; height: 40px; flex: 0 0 auto;
  border-radius: 50%;
  background: var(--sage);
  color: var(--pine);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Footer ---------- */
.footer-swf {
  background: var(--pine-deep);
  color: rgba(246, 241, 231, 0.75);
  padding: 3.5rem 0 1.5rem;
}
.footer-logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  border-radius: 1rem;
  padding: 0.7rem;
  width: 64px; height: 64px;
  margin-bottom: 1rem;
}
.footer-logo-chip img { width: 100%; height: 100%; object-fit: contain; }
.footer-swf h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-swf a { color: rgba(246, 241, 231, 0.75); }
.footer-swf a:hover { color: var(--coral); }
.footer-swf ul { list-style: none; padding: 0; margin: 0; }
.footer-swf ul li { margin-bottom: 0.55rem; font-size: 0.9rem; }
.footer-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(246, 241, 231, 0.1);
  margin-right: 0.5rem;
}
.footer-social:hover { background: var(--coral); }
.powered-by {
  border-top: 1px solid rgba(246, 241, 231, 0.14);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  text-align: center;
}
.powered-by a { color: var(--coral); font-weight: 700; }

@media (max-width: 767.98px) {
  .section-pad { padding: 3.75rem 0; }
  .doctor-panel { padding: 2rem 1.5rem; }
  .hero-content { padding: 2rem 1.25rem; }
  .specials-banner { padding: 2.25rem 1.5rem; }
}
