/* ===========================================================
   Tang & Nguyen Chiropractic, P.C. — Design System
   =========================================================== */

:root {
  --navy-950: #0a1a2b;
  --navy-900: #0d2038;
  --navy-800: #142c47;
  --navy-700: #1c3a5c;
  --navy-600: #2a4d75;
  --gold-600: #a9812f;
  --gold-500: #c6a15b;
  --gold-400: #d9bd80;
  --gold-100: #f3e8d2;
  --cream: #faf7f1;
  --cream-2: #f2ede1;
  --white: #ffffff;
  --ink: #1a2230;
  --ink-soft: #3b4454;
  --muted: #66707f;
  --line: #e3ddd0;
  --line-dark: rgba(255, 255, 255, 0.12);

  --serif: "Helvetica Neue", Arial, Helvetica, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(10, 26, 43, 0.06);
  --shadow-md: 0 12px 40px rgba(10, 26, 43, 0.12);
  --shadow-gold: 0 10px 30px rgba(169, 129, 47, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy-950);
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-dark {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: #dfe6ee;
}
.section-dark h2, .section-dark h3, .section-dark h1 { color: #ffffff; }
.section-dark p { color: #b9c4d3; }
.section-dark .eyebrow { color: var(--gold-400); }

.section-cream-2 { background: var(--cream-2); }

.text-center { text-align: center; }
.max-w-content { max-width: 680px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-950);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(169, 129, 47, 0.35); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: inherit;
}
.btn-outline:hover { border-color: var(--gold-400); color: var(--gold-400); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--navy-800);
  color: var(--navy-950);
}
.btn-outline-dark:hover { border-color: var(--gold-600); color: var(--gold-600); }

.btn-call {
  background: var(--navy-900);
  color: #fff;
}
.btn-call:hover { background: var(--navy-800); }

.btn-block { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-950);
  line-height: 1.15;
}
.logo-text small {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--gold-600);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}
.main-nav a {
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover, .main-nav a.active { color: var(--navy-950); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header-actions .btn {
  padding: 11px 16px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy-950);
  cursor: pointer;
}

.nav-mobile-actions { display: none; }

@media (max-width: 1130px) {
  .main-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 28px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .header-actions { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
  .nav-mobile-actions .btn { flex: 1; padding: 14px 10px; font-size: 0.88rem; }
  .nav-mobile-actions .btn-referral { flex-basis: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(198, 161, 91, 0.25), transparent 60%),
              linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #fff;
  overflow: hidden;
  padding: 120px 0 100px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Ccircle cx='2' cy='2' r='1.4' fill='%23c6a15b' fill-opacity='0.18'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 22px; font-family: "Helvetica Neue", Arial, Helvetica, sans-serif; font-weight: 300; letter-spacing: -0.01em; }
.hero p.lead {
  font-size: 1.15rem;
  color: #c7d1de;
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-dark);
  padding-top: 28px;
}
.hero-stat .num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold-400);
  font-weight: 700;
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.8rem;
  color: #a9b6c8;
  margin-top: 6px;
  letter-spacing: 0.03em;
}

.hero-card {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; font-size: 1.15rem; }
.hero-card p { color: #b9c4d3; font-size: 0.95rem; }
.hero-card ul { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.hero-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #dfe6ee;
}
.hero-card li .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-500);
  margin-top: 6px;
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 60px; }
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: #fff;
  padding: 84px 0 64px;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: #b9c4d3; max-width: 640px; margin: 0 auto; }
.breadcrumb {
  font-size: 0.8rem;
  color: var(--gold-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

/* ---------- Stat band ---------- */
.stat-band {
  background: var(--navy-950);
  color: #fff;
  padding: 46px 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-grid .num {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--gold-400);
  font-weight: 700;
}
.stat-grid .label { font-size: 0.85rem; color: #a9b6c8; margin-top: 4px; }
@media (max-width: 760px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
}

/* ---------- Section headers ---------- */
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 > *:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 9px);
    margin: 0 auto;
  }
}

/* Compact team cards, used when showing the full roster in a tight space */
.team-card-compact { padding: 22px 14px; }
.team-card-compact .avatar { width: 68px; height: 68px; font-size: 1.1rem; margin-bottom: 12px; border-width: 2px; }
.team-card-compact h3 { font-size: 0.92rem; margin-bottom: 2px; }
.team-card-compact .role { font-size: 0.68rem; margin-bottom: 6px; }
.team-card-compact p { font-size: 0.8rem; margin-bottom: 0; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-100), var(--gold-400));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.icon-badge svg { width: 26px; height: 26px; stroke: var(--navy-900); }

.service-card h3 { margin-bottom: 10px; }
.service-card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Team ---------- */
.team-card { text-align: center; padding: 28px 20px; }
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-950));
  border: 3px solid var(--gold-400);
  object-fit: cover;
}
.team-card h3 { margin-bottom: 2px; font-size: 1.05rem; }
.team-card .role {
  font-size: 0.82rem;
  color: var(--gold-600);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.team-card p { font-size: 0.88rem; margin-bottom: 0; }

/* ---------- Locations ---------- */
.location-card { padding: 0; overflow: hidden; }
.location-card .map-frame {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
  filter: grayscale(0.15);
}
.location-card .body { padding: 26px 26px 30px; }
.location-card h3 { margin-bottom: 4px; }
.location-card .addr { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }
.location-card .rowline {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
}
.location-card .rowline span:first-child { color: var(--muted); }
.location-card .rowline a { color: var(--navy-900); font-weight: 600; }
.location-card .actions { display: flex; gap: 10px; margin-top: 18px; }
.location-card .actions .btn { flex: 1; padding: 12px 16px; font-size: 0.88rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-950));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(198,161,91,0.35), transparent 70%);
  top: -140px; right: -80px;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #b9c4d3; margin: 0; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: 16px; }
.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.checklist .num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--gold-400);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.checklist h4 { margin-bottom: 4px; font-size: 1rem; }
.checklist p { margin: 0; font-size: 0.9rem; }

/* ---------- Forms ---------- */
.form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-950);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 14px;
}
.form-success {
  display: none;
  background: #eef6ef;
  border: 1px solid #bfe0c4;
  color: #24603a;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.form-success.show { display: block; }

/* ---------- FAQ ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-950);
  cursor: pointer;
}
.accordion-trigger .plus {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-600);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}
.accordion-item.open .accordion-trigger .plus { transform: rotate(45deg); border-color: var(--gold-500); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion-panel p { padding-bottom: 22px; margin: 0; font-size: 0.95rem; }

/* ---------- Illustration cards ---------- */
.illustration-wrap {
  position: relative;
  z-index: 2;
  margin-top: -56px;
  padding: 0 28px 20px;
  display: flex;
  justify-content: center;
}
.illustration-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 30px 30px 22px;
}
.illustration-card svg { width: 100%; height: auto; display: block; }
.illustration-card .caption {
  text-align: center;
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-950);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: #b9c4d3;
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text small { color: var(--gold-400); }
.footer-brand p { color: #94a2b5; font-size: 0.9rem; margin-top: 16px; max-width: 280px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col span { font-size: 0.9rem; color: #b9c4d3; }
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #7c8aa0;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Utility ---------- */
.tag {
  display: inline-block;
  background: var(--gold-100);
  color: var(--gold-600);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.divider-gold {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  border-radius: 3px;
  margin: 0 auto 20px;
}
