/*
Theme Name: Central Health Chiropractic
Theme URI: https://centralhealthchiro.com/
Author: YDC Websites
Description: Custom one-page site for Central Health Chiropractic.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Text Domain: central-health-chiropractic
*/

@font-face {
  font-family: "Aller";
  src: url("Logo/Fonts/Aller_Rg.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Blair";
  src: url("Logo/Fonts/BlairMdITC_TT_Medium.ttf") format("truetype");
  font-display: swap;
}

:root {
  --green-900: #213f1f;
  --green-700: #4f8735;
  --green-500: #6baa4f;
  --sage-100: #edf4e8;
  --linen: #f8f4ec;
  --cream: #fffdf7;
  --ink: #1f2a24;
  --muted: #66706a;
  --gold: #c49a43;
  --clay: #ad6748;
  --white: #ffffff;
  --line: rgba(31, 42, 36, 0.14);
  --shadow: 0 20px 50px rgba(33, 63, 31, 0.12);
  --radius: 8px;
  --header-height: 86px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Aller", Arial, sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(150px, 230px) 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: var(--header-height);
  padding: 14px clamp(18px, 4vw, 44px);
  background: rgba(255, 253, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand img {
  width: auto;
  max-width: 220px;
  max-height: 58px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.site-nav a {
  min-height: 42px;
  padding: 10px 13px;
  border-radius: var(--radius);
  color: var(--green-900);
  font-size: 0.94rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--sage-100);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--green-900);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--green-900);
  font: inherit;
  font-weight: 700;
}

.section-rail {
  position: fixed;
  top: 50%;
  left: 20px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(-50%);
}

.section-rail a {
  width: 10px;
  height: 34px;
  border-radius: 999px;
  background: rgba(33, 63, 31, 0.18);
  transition: background 180ms ease, transform 180ms ease;
}

.section-rail a:hover,
.section-rail a.is-active {
  background: var(--green-700);
  transform: scaleX(1.35);
}

.section-band {
  padding: clamp(76px, 9vw, 118px) 0;
}

.muted {
  background: var(--linen);
}

.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  background:
    linear-gradient(110deg, rgba(255, 253, 247, 0.98) 0%, rgba(255, 253, 247, 0.88) 55%, rgba(237, 244, 232, 0.86) 100%),
    repeating-linear-gradient(135deg, rgba(79, 135, 53, 0.1) 0 1px, transparent 1px 18px);
}

.hero-grid,
.split-layout,
.accident-grid,
.philosophy-grid,
.info-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-700);
  font-family: "Blair", Arial, sans-serif;
  font-size: 0.72rem;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--green-900);
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 5.9rem);
}

h2 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.lead {
  color: var(--ink);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
}

.hero-actions,
.section-action {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button.primary {
  background: var(--green-900);
  color: var(--white);
}

.button.secondary {
  border-color: rgba(33, 63, 31, 0.28);
  background: var(--white);
  color: var(--green-900);
}

.button.light {
  background: var(--white);
  color: var(--green-900);
  margin-top: 28px;
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 28px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(79, 135, 53, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.hero-logo {
  width: min(100%, 520px);
  margin: 0 auto;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.trust-list span {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--sage-100);
  color: var(--green-900);
  font-weight: 700;
  text-align: center;
}

.section-heading {
  max-width: 740px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.align-left {
  margin: 0;
  text-align: left;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card,
.service-card,
.insurance-box,
.condition-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(33, 63, 31, 0.08);
}

.step-card {
  min-height: 330px;
  padding: 26px;
}

.step-number {
  display: block;
  margin-bottom: 26px;
  color: var(--gold);
  font-family: "Blair", Arial, sans-serif;
  font-size: 0.82rem;
}

.split-layout {
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 210px;
  padding: 28px;
  border-top: 5px solid var(--green-500);
}

.service-card:nth-child(2) {
  border-top-color: var(--gold);
}

.service-card:nth-child(3) {
  border-top-color: var(--clay);
}

.service-card:nth-child(4) {
  border-top-color: var(--green-900);
}

.accent-band {
  background: var(--green-900);
  color: var(--white);
}

.accent-band .eyebrow,
.accent-band h2,
.accent-band h3,
.accent-band .lead,
.accent-band p {
  color: var(--white);
}

.accent-band p {
  opacity: 0.88;
}

.accident-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
}

.condition-panel {
  padding: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.condition-panel ul {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.condition-panel li {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

.philosophy-grid {
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
}

.photo-placeholder,
.map-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(237, 244, 232, 0.92), rgba(248, 244, 236, 0.92)),
    repeating-linear-gradient(45deg, rgba(33, 63, 31, 0.14) 0 1px, transparent 1px 18px);
  color: var(--green-900);
  font-weight: 800;
  text-align: center;
}

.doctor-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: center;
}

blockquote {
  margin: 34px 0 0;
  padding: 24px 0 24px 28px;
  border-left: 5px solid var(--gold);
  color: var(--green-900);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  line-height: 1.35;
}

.info-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
}

.insurance-box {
  padding: 30px;
}

.reviews-band {
  padding-top: 90px;
  padding-bottom: 90px;
}

.review-placeholders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.review-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(33, 63, 31, 0.08);
}

.review-card p {
  flex: 1;
  font-size: 0.98rem;
}

.review-card a {
  display: inline-flex;
  width: fit-content;
  margin-top: 22px;
  color: var(--green-900);
  font-weight: 800;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.stars {
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

.contact-grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 30px 0;
}

.contact-list a,
.contact-list span {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.contact-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.building-photo,
.map-placeholder {
  min-height: 420px;
}

.map-placeholder {
  background:
    linear-gradient(rgba(255, 253, 247, 0.9), rgba(255, 253, 247, 0.9)),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(33, 63, 31, 0.15) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(33, 63, 31, 0.15) 38px 39px);
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: var(--green-900);
}

.footer-grid {
  grid-template-columns: 180px 1fr;
}

.site-footer img {
  width: 170px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: minmax(150px, 210px) auto auto;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    justify-self: end;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 48px;
  }

  .section-rail {
    display: none;
  }

  .hero-grid,
  .split-layout,
  .accident-grid,
  .philosophy-grid,
  .info-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 76px;
  }

  .container {
    width: min(100% - 30px, 1120px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 15px;
  }

  .brand img {
    max-width: 172px;
    max-height: 52px;
  }

  .header-phone {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 3rem;
  }

  .trust-list,
  .steps,
  .service-grid,
  .review-placeholders,
  .contact-media,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .step-card,
  .service-card {
    min-height: auto;
  }

  .doctor-photo,
  .building-photo,
  .map-placeholder {
    min-height: 300px;
  }

  .footer-grid {
    gap: 16px;
    text-align: center;
  }

  .site-footer img {
    margin: 0 auto;
  }
}
