/* ==========================================================================
   Chiropatrick Chiropractic Center — style.css
   ========================================================================== */

:root {
  --teal-dark: #0d3641;
  --teal: #145a68;
  --teal-light: #1f7d8f;
  --green: #3f9e63;
  --green-light: #55b877;
  --gold: #dd9a35;
  --gold-dark: #c07f22;
  --ivory: #faf7f0;
  --ivory-2: #f1ece1;
  --ink: #16282c;
  --muted: #5c6f73;

  --font-head: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, .display-serif {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--teal-dark);
}

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

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

@media (max-width: 767.98px) {
  .section-pad {
    padding: 3.5rem 0;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
}

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.section-intro {
  color: var(--muted);
  max-width: 640px;
}

/* ---------- Navbar ---------- */
.navbar-wfw {
  background-color: rgba(250, 247, 240, 0.97);
  box-shadow: 0 2px 14px rgba(13, 54, 65, 0.08);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.navbar-brand-wfw {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

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

.navbar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.navbar-brand-text .brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--teal-dark);
}

.navbar-brand-text .brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}

.navbar-wfw .nav-link {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.86rem;
  white-space: nowrap;
  padding: 0.5rem 0.6rem !important;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-wfw .nav-link {
    font-size: 0.78rem;
    padding: 0.5rem 0.4rem !important;
  }

  .btn-nav-cta {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
  }
}

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

.btn-nav-cta {
  background-color: var(--gold);
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  white-space: nowrap;
}

.btn-nav-cta:hover {
  background-color: var(--gold-dark);
  color: #fff;
}

/* ---------- Hero (split panel) ---------- */
section[id], header[id] {
  scroll-margin-top: 76px;
}

.hero-split {
  display: flex;
  flex-direction: column;
  padding-top: 76px;
}

@media (min-width: 992px) {
  .hero-split {
    padding-top: 0;
  }

  .hero-panel {
    padding-top: 76px;
  }
}

@media (min-width: 992px) {
  .hero-split {
    flex-direction: row;
    min-height: 92vh;
  }
}

.hero-photo {
  background: url('img/hero.webp') center 30%/cover no-repeat;
  min-height: 42vh;
  order: 2;
}

@media (min-width: 992px) {
  .hero-photo {
    flex: 0 0 56%;
    min-height: 92vh;
    order: 2;
  }
}

.hero-panel {
  background: linear-gradient(160deg, var(--teal-dark) 0%, #0a2830 100%);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 3.5rem 2rem;
  order: 1;
  position: relative;
}

@media (min-width: 992px) {
  .hero-panel {
    flex: 0 0 44%;
    padding: 3rem 4rem;
  }
}

.hero-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.hero-eyebrow {
  color: var(--green-light);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 1.1rem;
}

.hero-subtitle {
  color: #dce9e9;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn-gold {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
}

.btn-gold:hover {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #fff;
}

.btn-outline-light-wfw {
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: transparent;
}

.btn-outline-light-wfw:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ---------- Feature strip ---------- */
.feature-strip {
  background-color: #fff;
  border-bottom: 1px solid rgba(13, 54, 65, 0.08);
}

.feature-item {
  text-align: center;
  padding: 2.2rem 1rem;
  height: 100%;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-light), var(--green));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.feature-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.feature-item p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ---------- Services ---------- */
.service-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.8rem 1.4rem;
  height: 100%;
  box-shadow: 0 6px 22px rgba(13, 54, 65, 0.06);
  border: 1px solid rgba(13, 54, 65, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(13, 54, 65, 0.12);
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(63, 158, 99, 0.12);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.spine-side-img {
  border-radius: 16px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(13, 54, 65, 0.18);
}

/* ---------- Posture Analysis / Special ---------- */
.posture-section {
  background: var(--ivory-2);
}

.promo-card {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: #fff;
  border-radius: 18px;
  padding: 2.4rem;
  position: relative;
  overflow: hidden;
}

.promo-price {
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.promo-card ul {
  list-style: none;
  padding-left: 0;
  margin: 1.2rem 0;
}

.promo-card ul li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.6rem;
  color: #e7f1f0;
}

.promo-card ul li::before {
  content: "\f26b";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  color: var(--green-light);
}

.promo-card .promo-note {
  font-size: 0.85rem;
  color: #c7dad9;
}

/* ---------- Conditions grid ---------- */
.condition-pill {
  background: #fff;
  border-radius: 12px;
  padding: 1.4rem 1rem;
  text-align: center;
  height: 100%;
  border: 1px solid rgba(13, 54, 65, 0.08);
}

.condition-pill i {
  font-size: 1.4rem;
  color: var(--teal);
  margin-bottom: 0.6rem;
  display: inline-block;
}

.condition-pill span {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Accidents section ---------- */
.accidents-section {
  background: var(--teal-dark);
  color: #fff;
}

.accidents-section .section-title {
  color: #fff;
}

.accidents-section .section-intro {
  color: #cfe1e0;
}

.accident-img {
  border-radius: 16px;
  width: 100%;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.warning-box {
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  margin-top: 1.5rem;
}

.warning-box h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.warning-box p {
  color: #d6e6e5;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.accidents-section .list-check {
  list-style: none;
  padding-left: 0;
}

.accidents-section .list-check li {
  padding-left: 1.7rem;
  position: relative;
  margin-bottom: 0.55rem;
  color: #dceceb;
}

.accidents-section .list-check li::before {
  content: "\f26b";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ---------- About ---------- */
.timeline {
  border-left: 3px solid var(--green);
  padding-left: 1.6rem;
  margin-left: 0.4rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.05rem;
  top: 0.25rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--ivory);
}

.timeline-year {
  font-weight: 700;
  color: var(--teal);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.2rem;
}

.about-photo {
  border-radius: 16px;
  width: 100%;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(13, 54, 65, 0.15);
}

.bio-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 6px 22px rgba(13, 54, 65, 0.06);
}

.bio-card blockquote {
  font-family: var(--font-head);
  font-style: italic;
  color: var(--teal-dark);
  font-size: 1.1rem;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  margin: 1.2rem 0;
}

/* ---------- Service area / lighthouse ---------- */
.service-area-section {
  position: relative;
  background: url('img/lighthouse.webp') center/cover no-repeat;
  color: #fff;
}

.service-area-overlay {
  background: radial-gradient(ellipse 75% 65% at 50% 48%, rgba(13, 54, 65, 0.55) 0%, rgba(13, 54, 65, 0.35) 100%),
              linear-gradient(to bottom, rgba(13, 54, 65, 0.55) 0%, rgba(13, 54, 65, 0.35) 45%, rgba(13, 54, 65, 0.72) 100%);
  padding: 4.5rem 0;
}

.service-area-overlay .section-title,
.service-area-overlay .eyebrow {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.service-area-overlay p {
  color: #eaf3f2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.town-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  margin: 0.25rem;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.accordion-button {
  font-weight: 600;
  color: var(--teal-dark);
}

.accordion-button:not(.collapsed) {
  background-color: rgba(63, 158, 99, 0.08);
  color: var(--teal-dark);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(63, 158, 99, 0.3);
}

/* ---------- Contact / Location ---------- */
.contact-section {
  background: var(--ivory-2);
}

.contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 6px 22px rgba(13, 54, 65, 0.06);
}

.contact-card h3 {
  font-size: 1.1rem;
}

.contact-row {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.contact-row i {
  color: var(--green);
  font-size: 1.15rem;
  margin-top: 0.2rem;
}

.contact-row a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.contact-row a:hover {
  color: var(--teal);
}

.hours-table {
  width: 100%;
  font-size: 0.92rem;
}

.hours-table td {
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(13, 54, 65, 0.12);
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 600;
}

.map-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(13, 54, 65, 0.1);
  border: 0;
  width: 100%;
  min-height: 340px;
}

.insurance-note {
  background: #fff;
  border-radius: 14px;
  padding: 1.6rem 1.8rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(13, 54, 65, 0.08);
}

.insurance-note h4 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.insurance-note p, .insurance-note li {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-dark);
  color: #cfe1e0;
  padding: 3.5rem 0 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 46px;
  height: 46px;
}

.footer-brand span {
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  font-size: 1.2rem;
}

.site-footer h5 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.1rem;
}

.site-footer a {
  color: #cfe1e0;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.12);
  margin: 2rem 0 1.5rem;
}

.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.powered-by a {
  color: var(--gold);
  font-weight: 700;
}

/* ---------- Utility ---------- */
.text-green { color: var(--green) !important; }
.text-gold { color: var(--gold) !important; }
.bg-ivory-2 { background-color: var(--ivory-2); }
