/* ============================================
   John Russo Chiropractic Office — Stylesheet
   Palette: Terracotta + Sand
   ============================================ */

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

:root {
  --terracotta: #C4725A;
  --terracotta-dark: #A85A45;
  --terracotta-light: #D4917E;
  --sand: #F5EDE4;
  --sand-light: #FAF6F2;
  --sand-dark: #E8DDD2;
  --cream: #FDFBF9;
  --warm-gray: #6B5E56;
  --warm-gray-light: #9A8C84;
  --text-dark: #3A2E28;
  --text-body: #5C4A42;
  --text-muted: #8A7870;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(58, 46, 40, 0.06);
  --shadow-md: 0 4px 20px rgba(58, 46, 40, 0.08);
  --shadow-lg: 0 8px 40px rgba(58, 46, 40, 0.10);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--cream);
  -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);
}

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

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

em {
  font-style: italic;
  color: var(--terracotta);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  border: 2px solid transparent;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-arrow {
  transition: transform var(--transition);
}

.btn:hover .btn-arrow {
  transform: translate(3px, -2px);
}

.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);
}

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

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

.btn--ghost {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--sand-dark);
}

.btn--ghost:hover {
  background: var(--sand);
  border-color: var(--sand-dark);
  color: var(--text-dark);
}

.btn--lg {
  padding: 15px 32px;
  font-size: 1rem;
}

.btn--sm {
  padding: 9px 20px;
  font-size: 0.85rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
}

/* --- Section Labels --- */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
}

.section-header--center {
  text-align: center;
}

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

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 251, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 221, 210, 0.5);
  transition: box-shadow var(--transition);
}

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-dark);
}

.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--terracotta);
  border-radius: 10px;
  position: relative;
  flex-shrink: 0;
}

.logo-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}

.logo-mark--light {
  background: var(--sand-dark);
}

.logo-mark--light::after {
  border-color: rgba(255, 255, 255, 0.5);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.logo-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* --- Nav --- */
.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-list a {
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--text-body);
  border-radius: var(--radius-xl);
  transition: all var(--transition);
}

.nav-list a:hover {
  color: var(--terracotta);
  background: var(--sand);
}

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

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

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

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

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

/* --- Hero --- */
.hero {
  padding-top: 76px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--cream) 0%, var(--sand-light) 50%, var(--sand) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(196, 114, 90, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 237, 228, 0.6) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 60px 0;
}

.hero-content {
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius-xl);
  padding: 7px 16px 7px 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--warm-gray);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--terracotta);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.hero-title em {
  color: var(--terracotta);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--sand-dark);
  flex-shrink: 0;
}

/* Hero Images */
.hero-image-wrap {
  position: relative;
  height: 680px;
}

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

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

.hero-image--main {
  width: 380px;
  height: 480px;
  top: 40px;
  right: 20px;
  z-index: 2;
}

.hero-image--accent {
  width: 260px;
  height: 260px;
  bottom: 60px;
  right: 200px;
  z-index: 3;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-md);
}

.hero-image--pill {
  position: absolute;
  bottom: 120px;
  left: -20px;
  z-index: 4;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
}

.hero-image--pill svg {
  color: var(--terracotta);
  flex-shrink: 0;
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  color: var(--cream);
  pointer-events: none;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* --- About --- */
.about {
  padding: 100px 0 120px;
  background: var(--cream);
}

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

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 680px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  background: var(--sand);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-content {
  max-width: 500px;
}

.about-content .section-title {
  margin-bottom: 24px;
}

.about-content > p {
  margin-bottom: 16px;
  color: var(--text-body);
}

.about-features {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 32px 0;
}

.about-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--sand);
  border-radius: 50%;
  margin-right: 12px;
  color: var(--terracotta);
  flex-shrink: 0;
}

.about-features li {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-body);
}

.about-content .btn {
  margin-top: 8px;
}

/* --- Services --- */
.services {
  padding: 100px 0 120px;
  background: var(--sand-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(232, 221, 210, 0.4);
  transition: all var(--transition);
}

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

.service-card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--sand) 0%, var(--sand-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--terracotta);
}

.service-card-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.service-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Approach --- */
.approach {
  padding: 100px 0 120px;
  background: var(--cream);
}

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

.approach-content {
  max-width: 500px;
}

.approach-intro {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 40px;
  line-height: 1.8;
}

.approach-steps {
  display: grid;
  gap: 32px;
}

.approach-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.approach-step-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--sand-dark);
  line-height: 1;
  flex-shrink: 0;
  min-width: 48px;
}

.approach-step-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.approach-step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.approach-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.approach-image-wrap img {
  width: 100%;
  height: 780px;
  object-fit: cover;
}

/* --- FAQ --- */
.faq {
  padding: 100px 0 120px;
  background: var(--sand-light);
}

.faq-list {
  max-width: 760px;
  margin: 56px auto 0;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(232, 221, 210, 0.4);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
}

.faq-btn-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
}

.faq-btn-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
  transition: all var(--transition);
}

.faq-item[aria-expanded="true"] .faq-btn-icon {
  background: var(--terracotta);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
  padding: 0 28px 22px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.faq-answer a {
  color: var(--terracotta);
}

.faq-item[aria-expanded="true"] .faq-answer {
  max-height: 200px;
}

/* --- Contact --- */
.contact {
  padding: 100px 0 120px;
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.contact-intro {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-details {
  list-style: none;
  display: grid;
  gap: 24px;
}

.contact-detail {
  display: grid;
  gap: 6px;
}

.contact-detail-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-detail-icon {
  color: var(--terracotta);
}

.contact-detail dd a {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 500;
}

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

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(232, 221, 210, 0.4);
}

.contact-form-title {
  font-size: 1.4rem;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--sand-light);
  transition: all var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--warm-gray-light);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--terracotta);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(196, 114, 90, 0.1);
}

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

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 18px;
  background: #E8F5E9;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: #2E7D32;
}

.form-success svg {
  flex-shrink: 0;
  color: #2E7D32;
}

/* --- Footer --- */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 50px;
  padding-bottom: 56px;
}

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

.footer-brand .logo-tag {
  color: rgba(255, 255, 255, 0.5);
}

.footer-tagline {
  margin-top: 14px;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-contact address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

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

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

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

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

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

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 40px;
  }

  .hero-image-wrap {
    height: 520px;
  }

  .hero-image--main {
    width: 300px;
    height: 380px;
  }

  .hero-image--accent {
    width: 200px;
    height: 200px;
  }

  .about-grid,
  .approach-grid,
  .contact-grid {
    gap: 50px;
  }

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

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

  .nav-list {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 100px 28px 40px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
  }

  .nav-list.open {
    transform: translateX(0);
  }

  .nav-list a {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-list li:last-child {
    margin-top: 12px;
  }

  .nav-list li:last-child a {
    justify-content: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 80px 0 100px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image-wrap {
    display: none;
  }

  .about-grid,
  .approach-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-image-wrap {
    order: -1;
  }

  .about-image-wrap img {
    height: 400px;
  }

  .approach-image-wrap img {
    height: 400px;
  }

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

  .contact-form-wrap {
    padding: 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

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

  .hero-title {
    font-size: 1.9rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

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

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero-stat-divider {
    width: 36px;
    height: 1px;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .hero-badge-dot {
    animation: none;
  }
}
