/* Aiken Chiropractic — static site styles */
:root {
  --blue: #20409a;
  --blue-dark: #142a6b;
  --blue-deep: #0e1d4d;
  --blue-soft: #eef2fb;
  --orange: #ef6b22;
  --orange-dark: #d1561a;
  --gold: #f2b632;
  --ink: #2b2f3a;
  --muted: #5d6475;
  --line: #dde2ee;
  --white: #fff;
  --radius: 10px;
  --max: 1180px;
  --font-body: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Work Sans", system-ui, sans-serif;
  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--orange-dark); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--blue-dark); margin: 1.6em 0 .6em; }
h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: .5px; text-transform: uppercase; margin-top: 0; color: var(--blue); }
h2 { font-size: 1.7rem; font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: .35em; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--orange); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-ui); font-weight: 700; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .6px; text-decoration: none;
  background: var(--orange); color: #fff; border: 0; cursor: pointer;
  padding: .85em 1.6em; border-radius: 999px;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); }
.btn-blue { background: var(--blue); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0; }

/* Top bar */
.topbar { background: var(--blue-deep); color: #dfe6fb; font-family: var(--font-ui); font-size: .9rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
.topbar a.btn { padding: .45em 1.1em; font-size: .8rem; }
.topbar .social { display: flex; gap: 14px; }
.topbar .social a { color: #dfe6fb; display: inline-flex; }
.topbar .social a:hover { color: var(--gold); }
.topbar .social svg { width: 18px; height: 18px; fill: currentColor; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .container { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; padding: 18px 0; }
.logo img { width: 240px; }
.header-info { display: flex; gap: 34px; justify-content: center; font-size: .88rem; color: var(--muted); }
.header-info strong { display: block; font-family: var(--font-ui); color: var(--blue-dark); text-transform: uppercase; letter-spacing: .5px; font-size: .8rem; margin-bottom: 2px; }
.header-info a { color: var(--muted); text-decoration: none; }
.header-info a:hover { color: var(--orange-dark); }
.hours-mini { border-collapse: collapse; }
.hours-mini td { padding: 0 10px 0 0; line-height: 1.5; }
.header-phone { text-align: right; }
.header-phone a.phone { font-family: var(--font-ui); font-weight: 700; font-size: 1.35rem; color: var(--blue); text-decoration: none; white-space: nowrap; }
.header-phone small { display: block; color: var(--muted); font-size: .8rem; }

/* Navigation */
.main-nav { background: var(--blue); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.main-nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font: 700 1rem var(--font-ui); padding: 14px 0; cursor: pointer; gap: 10px; align-items: center; }
.nav-toggle span.bars { width: 22px; height: 2px; background: #fff; position: relative; display: inline-block; }
.nav-toggle span.bars::before, .nav-toggle span.bars::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: #fff; }
.nav-toggle span.bars::before { top: -7px; } .nav-toggle span.bars::after { top: 7px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; }
.nav-list li { margin: 0; position: relative; }
.nav-list > li > a, .nav-list > li > button {
  display: block; padding: 15px 20px; color: #fff; text-decoration: none;
  font: 600 .92rem var(--font-ui); text-transform: uppercase; letter-spacing: .7px;
  background: none; border: 0; cursor: pointer;
}
.nav-list > li > a:hover, .nav-list > li:hover > button, .nav-list > li:focus-within > button, .nav-list > li > a[aria-current="page"] { background: var(--blue-dark); }
.has-sub > button::after { content: ""; display: inline-block; margin-left: 7px; border: 4px solid transparent; border-top-color: #fff; transform: translateY(2px); }
.sub {
  list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 12px 30px rgba(14,29,77,.18);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 7px 20px; color: var(--ink); text-decoration: none; font-size: .93rem; }
.sub a:hover { background: var(--blue-soft); color: var(--blue); }
.sub .sub-label { padding: 10px 20px 2px; font: 700 .75rem var(--font-ui); text-transform: uppercase; letter-spacing: .8px; color: var(--orange-dark); }
.sub.mega { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); min-width: 760px; left: 50%; translate: -50% 0; padding: 14px 6px; }
.nav-cta { padding: .55em 1.2em; font-size: .82rem; }

/* Page layout */
.page-hero { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; padding: 34px 0; }
.page-hero p { margin: 0; color: #c9d4f5; font-family: var(--font-ui); font-size: .9rem; }
.page-hero p a { color: #fff; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 50px; padding: 50px 0 70px; }
.content img { border-radius: var(--radius); margin: 1em 0 1.5em; }
.content > img:first-of-type, .content .lead-img { width: 100%; max-height: 440px; object-fit: cover; }
.content img.fit-img { width: 100%; max-width: 480px; max-height: none; object-fit: contain; margin-inline: auto; }
.content blockquote { margin: 1.5em 0; padding: 1em 1.4em; background: var(--blue-soft); border-left: 4px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.side-card { background: var(--blue-soft); border-radius: var(--radius); padding: 24px; }
.side-card h3 { margin: 0 0 12px; font-family: var(--font-ui); font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; color: var(--blue); }
.side-special { background: linear-gradient(150deg, var(--blue), var(--blue-deep)); color: #fff; text-align: center; }
.side-special h3 { color: var(--gold); }
.side-special p { color: #dce4fb; }
.hours-list { list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.hours-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); margin: 0; }
.hours-list li:last-child { border-bottom: 0; }
.hours-list span:first-child { font-weight: 700; color: var(--blue-dark); }
.hours-list span:last-child { text-align: right; }
.side-contact { text-align: center; }
.side-contact img { width: 200px; margin: 0 auto 12px; }
.side-contact a.phone { font: 700 1.25rem var(--font-ui); text-decoration: none; }

/* Home */
.hero { position: relative; background: linear-gradient(115deg, var(--blue-deep) 0%, var(--blue) 60%, #3558c2 100%); color: #fff; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; padding: 70px 0; }
.hero-kicker { font: 700 .9rem var(--font-ui); text-transform: uppercase; letter-spacing: 2px; color: var(--gold); margin-bottom: 10px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; margin: 0 0 20px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { font-size: 1.12rem; color: #dbe3fa; max-width: 34em; }
.hero-img { border-radius: 16px; box-shadow: 0 25px 60px rgba(0,0,0,.35); border: 6px solid rgba(255,255,255,.15); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: -55px; position: relative; z-index: 2; }
.tile { background: #fff; border-radius: 14px; box-shadow: 0 14px 40px rgba(14,29,77,.12); padding: 22px; text-align: center; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 46px rgba(14,29,77,.2); }
.tile img { width: 150px; margin: 0 auto; }
.home-article { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 50px 0; }
.home-article.alt > :first-child { order: 2; }
.home-article img { border-radius: 14px; width: 100%; }
.home-article h4, .home-article h3 { margin-top: 0; }
.home-article img.butterfly { width: 64px; border-radius: 0; margin-bottom: 10px; }
.hero .container > *, .home-article > *, .layout > * { min-width: 0; }
body { overflow-x: hidden; }
.section-intro { text-align: center; max-width: 820px; margin: 70px auto 0; }
.section-intro h3 { font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 3px; color: var(--orange-dark); font-size: 1rem; margin: 0 0 8px; }
.band { background: var(--blue-soft); padding: 70px 0; margin-top: 40px; }
.band h2 { text-align: center; margin-top: 0; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.review { background: #fff; border-radius: 14px; padding: 28px; box-shadow: 0 8px 26px rgba(14,29,77,.08); display: flex; flex-direction: column; }
.stars { color: var(--gold); letter-spacing: 3px; font-size: 1.2rem; margin-bottom: 10px; }
.review p { font-style: italic; color: var(--muted); flex: 1; }
.review strong { font-family: var(--font-ui); letter-spacing: 2px; color: var(--blue); }
.cta-band { background: linear-gradient(120deg, var(--orange), #f28b3c); color: #fff; padding: 50px 0; text-align: center; }
.cta-band h2 { color: #fff; margin: 0 0 10px; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 2.2rem; letter-spacing: 1px; }
.cta-band .btn { background: var(--blue-deep); }
.cta-band .btn:hover { background: var(--blue); }

/* Testimonials page */
.testimonial { background: var(--blue-soft); border-radius: 14px; padding: 26px 30px; margin: 0 0 24px; }
.testimonial h3 { margin: 0 0 10px; color: var(--orange-dark); font-family: var(--font-ui); font-size: .9rem; text-transform: uppercase; letter-spacing: 1.5px; }
.testimonial .who { font-family: var(--font-ui); font-weight: 700; color: var(--blue); margin: 0; }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--blue-soft); padding: 28px; border-radius: 14px; margin: 1.5em 0 2em; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font: 600 .85rem var(--font-ui); color: var(--blue-dark); margin-bottom: 5px; }
.form input, .form textarea, .form select { width: 100%; font: inherit; font-size: 1rem; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.form textarea { min-height: 130px; resize: vertical; }
.form .note { font-size: .82rem; color: var(--muted); margin: 0; }
.req { color: var(--orange-dark); }
.map { width: 100%; height: 340px; border: 0; border-radius: 14px; margin: 1em 0 2em; }

.review-choice { display: flex; gap: 20px; flex-wrap: wrap; margin: 2em 0; }
.review-choice a { flex: 1; min-width: 200px; text-align: center; padding: 30px; border-radius: 14px; text-decoration: none; font: 700 1.2rem var(--font-ui); text-transform: uppercase; letter-spacing: 1px; }
.review-choice .good { background: var(--blue); color: #fff; }
.review-choice .bad { background: var(--blue-soft); color: var(--blue-dark); }
.review-choice span { display: block; font-size: 2.4rem; }

.download { display: flex; align-items: center; gap: 16px; background: var(--blue-soft); padding: 20px 24px; border-radius: 12px; text-decoration: none; max-width: 460px; }
.download .icon { background: var(--orange); color: #fff; font: 700 .8rem var(--font-ui); padding: 12px 10px; border-radius: 8px; }
.download strong { display: block; color: var(--blue-dark); }
.download small { color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.gallery img { width: 100%; height: 220px; object-fit: cover; margin: 0; }
.steps img { max-width: 520px; }

/* Footer */
.site-footer { background: var(--blue-deep); color: #b9c4e6; font-size: .92rem; }
.site-footer .container { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; padding: 55px 0 35px; }
.site-footer h4 { color: #fff; font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 1.5px; font-size: .85rem; margin: 0 0 14px; }
.site-footer a { color: #b9c4e6; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .footer-logo { width: 200px; background: #fff; border-radius: 10px; padding: 10px; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 18px 0; grid-template-columns: none; font-size: .82rem; }

/* Responsive */
@media (max-width: 1020px) {
  .site-header .container { grid-template-columns: 1fr auto; }
  .header-info { display: none; }
  .layout { grid-template-columns: 1fr; }
  .sub.mega { grid-template-columns: 1fr 1fr; min-width: 480px; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-list { display: none; flex-direction: column; width: 100%; padding-bottom: 10px; }
  .main-nav.open .nav-list { display: flex; }
  .main-nav .container { flex-wrap: wrap; }
  .nav-list > li > a, .nav-list > li > button { width: 100%; text-align: left; padding: 12px 4px; }
  .sub, .sub.mega { position: static; opacity: 1; visibility: visible; transform: none; translate: none; display: none; box-shadow: none; min-width: 0; border-radius: 8px; grid-template-columns: 1fr; margin-bottom: 8px; }
  .has-sub.open > .sub { display: block; }
  .has-sub:hover > .sub { display: none; } .has-sub.open:hover > .sub { display: block; }
  .nav-cta { display: none; }
  .hero .container, .home-article, .reviews, .tiles { grid-template-columns: 1fr; }
  .home-article.alt > :first-child { order: 0; }
  .tiles { margin-top: 30px; }
  .form { grid-template-columns: 1fr; }
  .logo img { width: 190px; }
  .header-phone a.phone { font-size: 1.1rem; }
  .topbar .tagline { display: none; }
}
@media (max-width: 520px) { .site-footer .container { grid-template-columns: 1fr; } }
