/* ==========================================================================
   Chiro-Associates — custom styles
   Fonts: Fraunces (display) + Work Sans (body)
   ========================================================================== */

:root {
  --color-bg: #faf6f0;
  --color-bg-alt: #f0e9dd;
  --color-dark: #0b3d3a;
  --color-dark-2: #082b29;
  --color-accent: #e0784f;
  --color-accent-2: #c85a36;
  --color-text: #1f2a28;
  --color-text-muted: #5c6b67;
  --color-white: #ffffff;
  --color-cream-chip: #fdf9f2;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
}

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

a {
  color: var(--color-accent-2);
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  margin-bottom: 0.5rem;
  display: inline-block;
}

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

.section-lede {
  color: var(--color-text-muted);
  max-width: 680px;
  font-size: 1.05rem;
}

section {
  padding: 5.5rem 0;
}

.bg-alt {
  background-color: var(--color-bg-alt);
}

.bg-dark {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.9);
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
  color: var(--color-white);
}

.btn-accent {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-accent:hover {
  background-color: var(--color-accent-2);
  border-color: var(--color-accent-2);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-outline-cream {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: var(--color-white);
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  background: transparent;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-outline-cream:hover {
  background-color: rgba(255, 255, 255, 0.14);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-outline-dark {
  border: 1.5px solid var(--color-dark);
  color: var(--color-dark);
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-outline-dark:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
}

/* ---------- Navbar ---------- */
.site-navbar {
  background-color: var(--color-dark);
  padding: 0.7rem 0;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
}

.navbar-logo-chip {
  background-color: var(--color-cream-chip);
  border-radius: 10px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  margin-right: 0.65rem;
}

.navbar-logo-chip img {
  height: 34px;
  width: auto;
  display: block;
}

.navbar-brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--color-white) !important;
  letter-spacing: 0.01em;
}

.site-navbar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem !important;
}

.site-navbar .nav-link:hover {
  color: var(--color-white) !important;
}

.site-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
}

.site-navbar .navbar-toggler-icon {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('img/hero.webp') center 30%/cover no-repeat;
  padding-top: 5rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 65% at 50% 48%, rgba(8, 43, 41, 0.55) 0%, rgba(8, 43, 41, 0.15) 100%),
              linear-gradient(to bottom, rgba(8, 43, 41, 0.55) 0%, rgba(8, 43, 41, 0.25) 45%, rgba(8, 43, 41, 0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 2.75rem 2.25rem;
  margin: 0 1rem;
  background: rgba(8, 43, 41, 0.22);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 18px;
}

.hero-eyebrow {
  color: #f6d9c9;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85rem;
  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-family: var(--font-display);
  font-weight: 700;
  color: var(--color-white);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin: 0.5rem 0 0.75rem;
  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(--color-white);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  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: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  max-width: 560px;
  margin: 1rem auto 1.75rem;
  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;
}

/* ---------- About ---------- */
.about-towns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.about-towns span {
  background-color: var(--color-white);
  border: 1px solid rgba(11, 61, 58, 0.15);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.about-image-accent {
  border-radius: 12px;
  overflow: hidden;
  margin-top: 1.5rem;
  max-width: 420px;
}

.about-image-accent img {
  width: 100%;
  display: block;
}

.doctor-card {
  background-color: var(--color-white);
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: 0 10px 34px rgba(11, 61, 58, 0.08);
  height: 100%;
}

.doctor-card .affiliation-tag {
  display: inline-block;
  margin-top: 1rem;
  background-color: rgba(224, 120, 79, 0.12);
  color: var(--color-accent-2);
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

/* ---------- Services ---------- */
.service-card {
  background-color: var(--color-white);
  border-radius: 14px;
  padding: 1.9rem 1.6rem;
  height: 100%;
  box-shadow: 0 8px 26px rgba(11, 61, 58, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(11, 61, 58, 0.12);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: rgba(11, 61, 58, 0.08);
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.83rem;
  color: var(--color-text-muted);
}

.service-card ul li {
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.25rem;
}

.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

/* ---------- Gallery ---------- */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(8, 43, 41, 0.85), rgba(8, 43, 41, 0));
  color: var(--color-white);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 1.5rem 0.9rem 0.7rem;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background-color: var(--color-white);
  border-radius: 14px;
  padding: 1.9rem;
  height: 100%;
  border-left: 4px solid var(--color-accent);
  box-shadow: 0 8px 26px rgba(11, 61, 58, 0.06);
}

.testimonial-card .quote-icon {
  color: var(--color-accent);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--color-text);
}

.testimonial-card .testimonial-name {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  font-size: 0.9rem;
}

/* ---------- Health resources / blog ---------- */
.blog-card {
  background-color: var(--color-white);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 8px 26px rgba(11, 61, 58, 0.07);
}

.blog-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
}

.blog-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.blog-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ---------- Locations & Contact ---------- */
.location-card {
  background-color: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 10px 30px rgba(11, 61, 58, 0.08);
}

.location-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.location-card-body {
  padding: 1.75rem;
}

.location-card .location-detail {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
  font-size: 0.93rem;
  color: var(--color-text);
}

.location-card .location-detail i {
  color: var(--color-accent-2);
  margin-top: 0.2rem;
}

.location-card iframe {
  width: 100%;
  height: 230px;
  border: 0;
  border-radius: 10px;
  margin-top: 1rem;
}

.forms-panel {
  background-color: var(--color-white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(11, 61, 58, 0.08);
}

.forms-panel .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.forms-panel .btn-outline-dark {
  display: inline-block;
}

.links-panel {
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

.links-panel a {
  color: var(--color-text-muted);
  text-decoration: underline;
}

.links-panel h4 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  color: var(--color-dark);
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--color-dark-2);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--color-white);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-white);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-right: 0.5rem;
}

.powered-by {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

.powered-by a {
  color: #f6d9c9;
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 767px) {
  section {
    padding: 3.75rem 0;
  }
  .hero-content {
    padding: 2rem 1.4rem;
  }
}
