/* ============================================
   Harling Chiropractic — Custom Styles
   ============================================ */

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

:root {
  --terracotta: #B8624A;
  --terracotta-dark: #9A4E3A;
  --terracotta-light: #D4917A;
  --sand: #F5F0EB;
  --sand-dark: #E8E0D8;
  --sand-light: #FAF7F4;
  --cream: #FDFCFA;
  --charcoal: #2C2C2C;
  --text: #3A3A3A;
  --text-light: #6B6B6B;
  --text-muted: #9A9A9A;
  --white: #FFFFFF;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(44,44,44,0.06);
  --shadow-md: 0 4px 20px rgba(44,44,44,0.08);
  --shadow-lg: 0 12px 40px rgba(44,44,44,0.10);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--terracotta-dark);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--terracotta);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 1000;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 1rem;
}

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

/* ============================================
   Typography
   ============================================ */
.section-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-light);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9375rem;
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184, 98, 74, 0.3);
}

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

.btn-outline:hover {
  background: var(--terracotta);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--sand-dark);
}

.btn-outline-light:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.btn-text {
  background: none;
  border: none;
  color: var(--terracotta);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.btn-text:hover {
  color: var(--terracotta-dark);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 224, 216, 0.6);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 500;
}

.logo:hover {
  color: var(--terracotta);
}

.logo-icon {
  flex-shrink: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

.primary-nav a {
  font-size: 0.875rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--terracotta);
  transition: width var(--transition);
}

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

.primary-nav a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  transition: all var(--transition);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184,98,74,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--terracotta);
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  min-height: 480px;
}

.hero-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.stat-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.125rem 1.375rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(232, 224, 216, 0.5);
  animation: float 6s ease-in-out infinite;
}

.stat-card--1 {
  top: -20px;
  right: -20px;
  animation-delay: 0s;
}

.stat-card--2 {
  bottom: 60px;
  left: -30px;
  animation-delay: 2s;
}

.stat-card--3 {
  bottom: -20px;
  right: 40px;
  animation-delay: 4s;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--terracotta);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-light);
  line-height: 1.4;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================
   About
   ============================================ */
.about {
  padding: 100px 0;
  background: var(--sand-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 13/16;
  box-shadow: var(--shadow-md);
}

.about-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 2px solid var(--terracotta-light);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-content .section-title {
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sand-dark);
}

.value-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.value-icon {
  color: var(--terracotta);
  flex-shrink: 0;
}

/* ============================================
   Services
   ============================================ */
.services {
  padding: 100px 0;
  background: var(--cream);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: rgba(184, 98, 74, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   Approach
   ============================================ */
.approach {
  padding: 100px 0;
  background: var(--sand-light);
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.approach-content .section-title {
  margin-bottom: 1.25rem;
}

.approach-intro {
  color: var(--text-light);
  font-size: 1.0625rem;
  margin-bottom: 2.5rem;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
}

.step-number {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--terracotta-light);
  padding-top: 0.125rem;
}

.step h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--charcoal);
  margin-bottom: 0.375rem;
}

.step p {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.7;
}

.approach-visual img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 7/9;
  box-shadow: var(--shadow-md);
}

/* ============================================
   Visit / New Patients
   ============================================ */
.visit {
  padding: 100px 0;
  background: var(--cream);
}

.visit-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.visit-content .section-title {
  margin-bottom: 1.25rem;
}

.visit-content > p {
  color: var(--text-light);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}

.visit-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2.25rem;
}

.visit-checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.visit-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.visit-map {
  position: sticky;
  top: 100px;
}

.map-placeholder {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}

.map-icon {
  margin: 0 auto 1.25rem;
  opacity: 0.7;
}

.map-address {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--charcoal);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ============================================
   Contact
   ============================================ */
.contact {
  padding: 100px 0;
  background: var(--sand-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info .section-title {
  margin-bottom: 1.25rem;
}

.contact-intro {
  color: var(--text-light);
  font-size: 1.0625rem;
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.contact-item strong {
  display: block;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.contact-item span,
.contact-item a {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.6;
}

.contact-item a:hover {
  color: var(--terracotta);
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--sand-dark);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text);
  background: var(--sand-light);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  transition: all var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--terracotta);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(184, 98, 74, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

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

.form-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(184, 98, 74, 0.08);
  border: 1px solid rgba(184, 98, 74, 0.2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--terracotta-dark);
  margin-top: 0.5rem;
}

.form-success svg {
  flex-shrink: 0;
  color: var(--terracotta);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--transition);
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9375rem;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

/* ============================================
   Scroll Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .approach-grid,
  .visit-inner,
  .contact-grid {
    gap: 2.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    z-index: 101;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    border-left: 1px solid var(--sand-dark);
  }

  .primary-nav.open {
    right: 0;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 1.25rem;
  }

  .primary-nav .btn {
    margin-top: 0.5rem;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(44,44,44,0.4);
    z-index: 99;
  }

  .nav-overlay.active {
    display: block;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    min-height: 320px;
    order: -1;
  }

  .stat-card {
    display: none;
  }

  .about-grid,
  .approach-grid,
  .visit-inner,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image {
    order: -1;
  }

  .about-accent {
    display: none;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .visit-map {
    position: static;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .services,
  .approach,
  .visit,
  .contact {
    padding: 60px 0;
  }

  .about {
    padding: 60px 0;
  }
}

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

  .hero-headline {
    font-size: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-form-wrap {
    padding: 1.5rem;
  }

  .visit-actions {
    flex-direction: column;
  }

  .visit-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
