/* Oakville Chiropractor - Lead Gen Site */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #10b981;
  --dark: #1e293b;
  --text: #334155;
  --text-light: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--dark);
  line-height: 1.2;
}

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.25rem; font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

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

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

.btn-white {
  background: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  background: var(--bg);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

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

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--dark);
  font-size: 1.25rem;
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-text strong {
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-cta {
    display: none;
  }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--white) 0%, var(--bg) 100%);
  padding: 80px 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.trust-icon {
  color: var(--secondary);
  font-weight: bold;
}

.hero-image-placeholder {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 500;
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding: 50px 0;
  }
  
  .hero-image {
    display: none;
  }
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 15px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 50px;
}

.section-cta {
  text-align: center;
  margin-top: 40px;
}

/* Conditions Grid */
.conditions {
  background: var(--white);
}

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

.condition-card {
  background: var(--bg);
  padding: 30px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
}

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

.condition-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.condition-card h3 {
  margin-bottom: 10px;
}

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

@media (max-width: 900px) {
  .conditions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .conditions-grid {
    grid-template-columns: 1fr;
  }
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.service-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Why Chiro Section */
.why-chiro {
  background: var(--white);
}

.why-chiro .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-list {
  list-style: none;
}

.why-list li {
  margin-bottom: 20px;
  padding-left: 30px;
  position: relative;
}

.why-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

.why-list strong {
  display: block;
  color: var(--dark);
  margin-bottom: 5px;
}

.why-list p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.why-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-card {
  background: var(--bg);
  padding: 25px 30px;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  color: var(--text-light);
}

@media (max-width: 900px) {
  .why-chiro .container {
    grid-template-columns: 1fr;
  }
}

/* Areas Section */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.area-item {
  background: var(--white);
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: var(--shadow);
  font-weight: 500;
}

@media (max-width: 768px) {
  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 0;
}

.cta-box {
  text-align: center;
  color: var(--white);
}

.cta-box h2 {
  color: var(--white);
  margin-bottom: 15px;
}

.cta-box p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* FAQ Preview */
.faq-preview {
  background: var(--white);
}

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

.faq-item {
  background: var(--bg);
  padding: 25px;
  border-radius: var(--radius);
}

.faq-item h3 {
  margin-bottom: 10px;
  color: var(--dark);
}

.faq-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  margin-top: 15px;
  font-size: 0.9rem;
}

.footer-brand .logo {
  color: var(--white);
}

.footer h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-contact p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

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

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

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Interior Pages */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 10px;
}

.page-hero p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.content-section {
  background: var(--white);
  padding: 60px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

.content-main h2 {
  margin: 40px 0 20px;
}

.content-main h2:first-child {
  margin-top: 0;
}

.content-main h3 {
  margin: 30px 0 15px;
}

.content-main p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.content-main ul, .content-main ol {
  margin: 15px 0 15px 20px;
}

.content-main li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.content-main a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(37, 99, 235, 0.3);
}

.content-main a:hover {
  color: var(--primary-dark);
}

.content-main blockquote {
  background: var(--bg);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.content-main blockquote p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--text);
}

.content-main strong {
  color: var(--dark);
  font-weight: 600;
}

.content-main img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}

.content-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.content-main th, .content-main td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.content-main th {
  font-weight: 600;
  color: var(--dark);
  background: var(--bg);
}

.content-main td {
  color: var(--text);
}

.content-main code {
  background: var(--bg);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--primary-dark);
}

.content-main pre {
  background: var(--dark);
  color: #f1f5f9;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.content-main pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.content-main hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Template article layout */
main.content-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 20px 3rem;
}

main.content-main section {
  padding: 0;
  margin-bottom: 1.5rem;
}

main.content-main nav {
  position: static;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

main.content-main nav a {
  color: var(--primary);
  text-decoration: none;
}

main.content-main nav a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .content-main table {
    display: block;
    overflow-x: auto;
  }
}

.sidebar-cta {
  background: var(--bg);
  padding: 30px;
  border-radius: var(--radius);
  position: sticky;
  top: 100px;
}

.sidebar-cta h3 {
  margin-bottom: 15px;
}

.sidebar-cta p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar-cta {
    position: static;
  }
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

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

.booking-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
}

.booking-form h2 {
  margin-bottom: 30px;
  text-align: center;
}

/* ── Article Format Elements ──────────────────────────────
   Shared styles for callouts, stat blocks, process flows,
   timelines, comparison charts, TL;DR and key takeaway boxes.
   Used by org-factory content generation across all sites. */

/* ── Callout Boxes ──────────────────────────────────────── */
.callout {
  border-left: 4px solid var(--accent, #1A6CFF);
  background: rgba(26, 108, 255, 0.08);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.95em;
  line-height: 1.6;
}
.callout strong:first-child {
  display: inline;
  margin-right: 4px;
}
.callout-tip {
  border-left-color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
}
.callout-warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}
.callout-info {
  border-left-color: var(--accent, #1A6CFF);
  background: rgba(26, 108, 255, 0.08);
}

/* ── Stat Blocks ────────────────────────────────────────── */
.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--stat-bg, rgba(26, 108, 255, 0.06));
  border: 1px solid var(--stat-border, rgba(26, 108, 255, 0.15));
  border-radius: 12px;
  padding: 24px 20px;
  margin: 24px 0;
}
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--accent, #1A6CFF);
}
.stat-label {
  font-size: 0.9em;
  color: var(--text-muted, #666);
  margin-top: 8px;
  max-width: 280px;
}

/* ── TL;DR Box ──────────────────────────────────────────── */
.tldr-box {
  background: var(--tldr-bg, #f0f7ff);
  border: 1px solid var(--tldr-border, #c8ddf5);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}
.tldr-box h3 {
  margin: 0 0 12px;
  font-size: 1em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent, #1A6CFF);
}
.tldr-box ul {
  margin: 0;
  padding-left: 20px;
}
.tldr-box li {
  margin-bottom: 6px;
  line-height: 1.5;
}

/* ── Key Takeaway Box ───────────────────────────────────── */
.key-takeaway {
  border: 2px solid var(--accent, #1A6CFF);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 32px 0;
  background: var(--takeaway-bg, rgba(26, 108, 255, 0.03));
}
.key-takeaway h3 {
  margin: 0 0 12px;
  font-size: 1.05em;
  font-weight: 700;
  color: var(--accent, #1A6CFF);
}
.key-takeaway ul {
  margin: 0;
  padding-left: 20px;
}
.key-takeaway li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ── Process Flow ───────────────────────────────────────── */
.process-flow {
  margin: 28px 0;
  padding-left: 8px;
}
.process-step {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 24px;
}
.process-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--accent, #1A6CFF);
  opacity: 0.3;
}
.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent, #1A6CFF);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9em;
}
.step-content {
  flex: 1;
  padding-top: 4px;
}
.step-content strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05em;
}
.step-content p {
  margin: 0;
  color: var(--text-muted, #555);
  line-height: 1.5;
}

/* ── Timeline ───────────────────────────────────────────── */
.timeline {
  margin: 28px 0;
  padding-left: 8px;
  border-left: 3px solid var(--timeline-line, rgba(26, 108, 255, 0.2));
}
.timeline-item {
  position: relative;
  padding: 0 0 24px 24px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent, #1A6CFF);
  border: 2px solid #fff;
}
.timeline-date {
  display: block;
  font-weight: 700;
  font-size: 0.85em;
  color: var(--accent, #1A6CFF);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.timeline-content {
  line-height: 1.5;
  color: var(--text-body, #333);
}

/* ── Comparison Chart ───────────────────────────────────── */
.comparison-chart {
  margin: 24px 0;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--chart-border, #e5e7eb);
}
.comparison-chart table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92em;
}
.comparison-chart th {
  background: var(--chart-header-bg, #f8fafc);
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 2px solid var(--chart-border, #e5e7eb);
}
.comparison-chart td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--chart-border, #e5e7eb);
}
.comparison-chart tr:last-child td {
  border-bottom: none;
}
.comparison-chart tr:hover td {
  background: var(--chart-hover, rgba(26, 108, 255, 0.04));
}

/* ── Mobile Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .stat-number { font-size: 2.2rem; }
  .stat-block { padding: 18px 16px; }
  .callout { padding: 12px 16px; }
  .tldr-box, .key-takeaway { padding: 16px 18px; }
  .process-step { gap: 12px; }
  .step-number { width: 30px; height: 30px; font-size: 0.8em; }
  .process-step:not(:last-child)::before { left: 14px; }
  .comparison-chart { font-size: 0.85em; }
  .comparison-chart th, .comparison-chart td { padding: 8px 10px; }
}
/* Article H1 - added by org-factory */
article h1, .article-body h1, .article-content h1 {
  font-size: 2.25rem;
  margin: 0 0 24px;
  color: inherit;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
}
