/* ============================================================
   ALLIANT WELLNESS & CHIROPRACTIC — GLOBAL STYLES
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Colors — matched to logo's indigo/royal-blue palette */
  --color-primary:    #2B3990;   /* logo indigo-navy */
  --color-primary-dk: #1C2870;   /* deeper navy */
  --color-primary-lt: #EAECF8;   /* very light lavender-blue */
  --color-accent:     #F0A500;   /* warm gold — CTA contrast */
  --color-accent-dk:  #C88800;
  --color-bg:         #FFFFFF;
  --color-bg-alt:     #F4F6FC;   /* light blue-tinted white */
  --color-text:       #1A1F3C;   /* dark navy text */
  --color-text-muted: #5A6380;
  --color-white:      #FFFFFF;
  --color-border:     #D0D6EE;
  --color-success:    #22C55E;
  --color-error:      #EF4444;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Font Scale */
  --fs-hero:  clamp(2.8rem, 6vw, 5rem);
  --fs-h1:    clamp(2rem, 4vw, 3.2rem);
  --fs-h2:    clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3:    clamp(1.2rem, 2vw, 1.6rem);
  --fs-body:  1rem;
  --fs-small: 0.875rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(43, 57, 144, 0.08);
  --shadow-md: 0 8px 32px rgba(43, 57, 144, 0.13);
  --shadow-lg: 0 16px 48px rgba(43, 57, 144, 0.18);
  --shadow-xl: 0 24px 64px rgba(43, 57, 144, 0.24);

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:   0.2s ease;
  --transition-base:   0.35s ease;
  --transition-slow:   0.6s ease;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

input, textarea, select {
  font-family: var(--font-body);
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-text);
  font-weight: 700;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

p:last-child { margin-bottom: 0; }

strong { color: var(--color-text); font-weight: 600; }

/* ── Layout Utilities ──────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-2xl) 0;
}

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

.section--dark {
  background: linear-gradient(135deg, var(--color-primary-dk) 0%, var(--color-primary) 60%, #3B52C0 100%);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3,
.section--dark p { color: var(--color-white); }

.section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section__header h2 {
  margin-bottom: var(--space-sm);
}

.section__header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Grid Layouts ──────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

/* ── Section Dividers ──────────────────────────────────────── */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(240, 165, 0, 0.3);
}

.btn--primary:hover {
  background-color: var(--color-accent-dk);
  border-color: var(--color-accent-dk);
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 165, 0, 0.4);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.7);
}

.btn--outline:hover {
  background-color: rgba(255,255,255,0.15);
  border-color: var(--color-white);
  transform: scale(1.04);
}

.btn--outline-teal {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline-teal:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.04);
}

.btn--teal {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(26, 140, 140, 0.3);
}

.btn--teal:hover {
  background-color: var(--color-primary-dk);
  border-color: var(--color-primary-dk);
  transform: scale(1.04) translateY(-2px);
}

.btn--lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.1rem;
}

/* ── Tags & Badges ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  font-weight: 600;
}

.badge--teal {
  background-color: var(--color-primary-lt);
  color: var(--color-primary);
}

.badge--gold {
  background-color: #FFF8E1;
  color: var(--color-accent-dk);
}

.badge--white {
  background-color: rgba(255,255,255,0.2);
  color: var(--color-white);
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 1px solid var(--color-border);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* ── Star Rating ───────────────────────────────────────────── */
.stars {
  display: flex;
  gap: 2px;
}

.stars svg {
  width: 18px;
  height: 18px;
  fill: var(--color-accent);
}

/* ── Section Label ─────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-sm);
}

.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: var(--color-white); }
.breadcrumb span { color: rgba(255,255,255,0.5); }

/* ── Page Hero (sub-pages) ─────────────────────────────────── */
.page-hero {
  height: 50vh;
  min-height: 320px;
  background: linear-gradient(135deg, #1C2870 0%, var(--color-primary) 60%, #3B52C0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: var(--header-height);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://alliantwellness.com/wp-content/uploads/practice-exterior-clearSign_2560x1920.jpg') center/cover no-repeat;
  opacity: 0.15;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--color-white);
  font-size: var(--fs-h1);
  margin-bottom: var(--space-sm);
}

/* ── Blockquote ────────────────────────────────────────────── */
blockquote {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  background: var(--color-primary-lt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-text);
}

blockquote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-primary);
  margin-top: var(--space-sm);
}

/* ── Form Base ─────────────────────────────────────────────── */
.form-group {
  position: relative;
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-body);
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 140, 140, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  font-size: var(--fs-small);
  color: var(--color-error);
  margin-top: 0.25rem;
  display: none;
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: var(--color-error);
}

.form-group.has-error .form-error { display: block; }

/* ── Utility Classes ───────────────────────────────────────── */
.text-center { text-align: center; }
.text-white  { color: var(--color-white); }
.text-teal   { color: var(--color-primary); }
.text-gold   { color: var(--color-accent); }
.text-muted  { color: var(--color-text-muted); }
.font-heading { font-family: var(--font-heading); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-rounded {
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --space-2xl: 4rem;
    --space-xl: 2.5rem;
  }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }

  .container { padding: 0 var(--space-sm); }

  body { padding-bottom: 70px; }
}

@media (max-width: 380px) {
  .container { padding: 0 0.75rem; }
}
