/* Cape Cod Spine Center — custom styles */

:root {
  --teal: #0e6fa8;
  --teal-deep: #073f5c;
  --teal-soft: #e4f1f7;
  --plum: #7c1172;
  --plum-deep: #430a3f;
  --ivory: #f7f4ef;
  --paper: #fffdfb;
  --ink: #202932;
  --muted: #5c6570;
  --line: #e4ddd2;
  --radius-lg: 22px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4,
.font-display {
  font-family: 'Fraunces', Georgia, serif;
  letter-spacing: -0.01em;
}

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

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-ivory { background: var(--ivory); }
.section-paper { background: var(--paper); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 0.9rem;
  display: block;
}

.section-title {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 1rem;
}

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

/* ---------- Navbar ---------- */
.navbar-wfw {
  background: rgba(255, 253, 251, 0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.navbar-brand-wfw {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--teal-deep) !important;
  white-space: nowrap;
}

.navbar-brand-wfw img { height: 38px; width: auto; }

.navbar-wfw .nav-link {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
  padding: 0.5rem 0.85rem !important;
}

.navbar-wfw .nav-link:hover { color: var(--plum); }

.btn-book {
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.55rem 1.35rem;
  border: none;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-book:hover { background: var(--plum); color: #fff; transform: translateY(-1px); }

/* ---------- Hero (split-panel duotone) ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  min-height: min(calc(100vh - 74px), 780px);
}

.hero-copy {
  background: linear-gradient(155deg, var(--teal-deep) 0%, var(--plum-deep) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.75rem, 6vw, 5rem) clamp(1.75rem, 5vw, 4rem);
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #bfe3f2;
  margin-bottom: 1.1rem;
  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 {
  font-size: clamp(2.7rem, 5.4vw, 4.4rem);
  line-height: 1.03;
  font-weight: 600;
  margin-bottom: 1.35rem;
  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 {
  font-size: 1.14rem;
  color: #f1e9f0;
  max-width: 30rem;
  margin-bottom: 2.1rem;
  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-content {
  background: rgba(0,0,0,0.20);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.btn-hero-primary {
  background: #fff;
  color: var(--teal-deep);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  border: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-hero-primary:hover { background: var(--teal-soft); color: var(--teal-deep); transform: translateY(-1px); }

.btn-hero-outline {
  background: transparent;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  border: 1.5px solid rgba(255,255,255,0.7);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.15); color: #fff; transform: translateY(-1px); }

.hero-photo {
  position: relative;
  background-image:
    linear-gradient(150deg, rgba(14,111,168,0.28) 0%, rgba(124,17,114,0.22) 100%),
    url('img/hero.webp');
  background-size: cover;
  background-position: center 30%;
  min-height: 320px;
}

@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-photo { min-height: 340px; order: 2; }
  .hero-copy { order: 1; padding: 3rem 1.5rem; }
}

/* ---------- About ---------- */
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.about-photo-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(7,63,92,0.1);
}
.about-photo-card img { width: 100%; height: 260px; object-fit: cover; display: block; }
.about-photo-caption {
  padding: 0.9rem 1.1rem 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.about-photo-caption strong { color: var(--ink); display: block; margin-bottom: 0.2rem; font-family: 'Fraunces', serif; }

@media (max-width: 767px) {
  .about-photos { grid-template-columns: 1fr; }
}

/* ---------- Services ---------- */
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.4rem;
  height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(7,63,92,0.12);
  border-color: transparent;
}
.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.service-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---------- Team ---------- */
.team-card {
  text-align: center;
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem 2.25rem;
  height: 100%;
  border: 1px solid var(--line);
}
.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 4px solid var(--teal-soft);
}
.team-role-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--plum);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}
.team-card h3 { font-size: 1.25rem; margin-bottom: 0.15rem; }
.team-card .team-title {
  color: var(--plum);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}
.team-card p.bio { font-size: 0.92rem; color: var(--muted); text-align: left; }

/* ---------- Insurance ---------- */
.insurance-panel {
  background: linear-gradient(155deg, var(--teal-deep), var(--plum-deep));
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  color: #fff;
}
.insurance-pills { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.5rem 0 2rem; }
.insurance-pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.cancellation-note {
  background: rgba(255,255,255,0.1);
  border-left: 3px solid #fff;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  color: #f4eef4;
}

/* ---------- Hours & Location ---------- */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.hours-table td:first-child { font-weight: 700; color: var(--ink); }
.hours-table td:last-child { text-align: right; color: var(--muted); }
.hours-table tr.closed td:last-child { color: var(--plum); font-weight: 600; }

.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(7,63,92,0.1);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
  font-size: 1rem;
}
.contact-line i { color: var(--teal); font-size: 1.15rem; width: 1.4rem; }

/* ---------- Footer CTA strip ---------- */
.cta-strip {
  background: linear-gradient(155deg, var(--teal-deep), var(--plum-deep));
  color: #fff;
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) 1.5rem;
}
.cta-strip h2 { color: #fff; margin-bottom: 0.9rem; }
.cta-strip p { color: #eadfe9; max-width: 34rem; margin: 0 auto 1.75rem; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 1.5rem;
}
.footer-logo-chip {
  background: var(--ivory);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
}
.footer-logo-chip img { height: 34px; width: auto; }
.footer-heading {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--ink);
}
.footer-links a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}
.footer-links a:hover { color: var(--plum); }
.social-icons { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-icons a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.social-icons a:hover { background: var(--plum); color: #fff; }

.powered-by {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.powered-by a {
  font-weight: 700;
  color: var(--teal-deep);
  text-decoration: none;
}
.powered-by a:hover { color: var(--plum); }

/* ---------- Grid balance helper for 10-item services on lg ---------- */
@media (min-width: 992px) {
  .services-grid .col-lg-5th { flex: 0 0 20%; max-width: 20%; }
}
