/* ============================================
   Terry M. Gibson, DC — Chiropractic Website
   Plum + Amber Editorial Style
   ============================================ */

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

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #2d1f2d;
  background-color: #fdf8f4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: #4a1942;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 200;
  font-size: 0.875rem;
}
.skip-link:focus {
  top: 16px;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: #2d1f2d;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

.section-lead {
  font-size: 1.125rem;
  color: #5a3d5a;
  max-width: 640px;
  margin: 0 auto;
}

.label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #b8860b;
  margin-bottom: 0.75rem;
  display: block;
}

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

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn--amber {
  background: #b8860b;
  color: #fff;
  border-color: #b8860b;
}
.btn--amber:hover {
  background: #9a7209;
  border-color: #9a7209;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 134, 11, 0.3);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: #4a1942;
  border-color: #4a1942;
}
.btn--outline:hover {
  background: #4a1942;
  color: #fff;
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.0625rem;
}

/* ---------- HEADER ---------- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 25, 66, 0.08);
  transition: box-shadow 0.3s ease;
}
#site-header.scrolled {
  box-shadow: 0 2px 24px rgba(74, 25, 66, 0.08);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #b8860b;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #b8860b;
  border-radius: 8px;
}

.logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #2d1f2d;
}

#main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

#main-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #4a3048;
  transition: color 0.2s;
  position: relative;
}
#main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #b8860b;
  transition: width 0.25s ease;
}
#main-nav a:hover {
  color: #b8860b;
}
#main-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #2d1f2d;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(74, 25, 66, 0.88) 0%,
    rgba(45, 31, 45, 0.82) 50%,
    rgba(74, 25, 66, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d4a03c;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero-scroll svg {
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 64px;
}

/* ---------- ABOUT ---------- */
.about {
  background: #fdf8f4;
}

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

.about-image img {
  border-radius: 12px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 24px 64px rgba(74, 25, 66, 0.12);
}

.about-text .label {
  margin-bottom: 0.75rem;
}

.about-text p {
  color: #5a3d5a;
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
}

.about-text .btn {
  margin-top: 1.5rem;
}

/* ---------- SERVICES ---------- */
.services {
  background: #f5eadd;
}

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

.service-card {
  background: #fdf8f4;
  border-radius: 12px;
  padding: 40px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(74, 25, 66, 0.06);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(74, 25, 66, 0.1);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(74, 25, 66, 0.08);
  color: #4a1942;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: #5a3d5a;
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ---------- APPROACH ---------- */
.approach {
  background: #4a1942;
  color: #fff;
}

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

.approach-text .section-heading {
  color: #fff;
}

.approach-text .label {
  color: #d4a03c;
}

.approach-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.0625rem;
  margin-bottom: 1.25rem;
}

.approach-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.approach-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #d4a03c;
  line-height: 1;
  min-width: 48px;
}

.approach-list strong {
  display: block;
  font-size: 1.0625rem;
  color: #fff;
  margin-bottom: 4px;
}

.approach-list span {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.approach-image img {
  border-radius: 12px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  background: #fdf8f4;
}

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

.testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px 32px;
  border: 1px solid rgba(74, 25, 66, 0.06);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 6rem;
  color: #d4a03c;
  position: absolute;
  top: 8px;
  left: 24px;
  line-height: 1;
  opacity: 0.3;
}

.testimonial-text {
  font-size: 1rem;
  color: #4a3048;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  border-top: 1px solid rgba(74, 25, 66, 0.1);
  padding-top: 1.25rem;
}

.testimonial-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #2d1f2d;
}

/* ---------- CONTACT ---------- */
.contact {
  background: #f5eadd;
}

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

.contact-intro {
  font-size: 1.0625rem;
  color: #5a3d5a;
  margin-bottom: 2rem;
}

.contact-details {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  color: #b8860b;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a1942;
  margin-bottom: 4px;
}

.contact-item span,
.contact-item a {
  color: #5a3d5a;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.contact-item a:hover {
  color: #b8860b;
}

/* ---------- FORM ---------- */
.contact-form-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: 0 16px 48px rgba(74, 25, 66, 0.08);
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #2d1f2d;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a1942;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(74, 25, 66, 0.15);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: #2d1f2d;
  background: #fdf8f4;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: #b8860b;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a08090;
}

.form-note {
  font-size: 0.8125rem;
  color: #8a6078;
  margin-top: 12px;
  text-align: center;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
  color: #2d6a2d;
}
.form-success svg {
  color: #2d6a2d;
}

/* ---------- MAP ---------- */
.map-section {
  border-top: 4px solid #b8860b;
}

.map-container iframe {
  width: 100%;
  height: 380px;
  display: block;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #2d1f2d;
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 0;
}

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

.footer-brand .logo-text {
  color: #fff;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-links strong,
.footer-contact strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #d4a03c;
  margin-bottom: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #d4a03c;
}

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

.footer-contact a {
  color: #d4a03c;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-contact a:hover {
  color: #f0c060;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- SCROLL REVEAL (below fold only) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .services-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  #main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(253, 248, 244, 0.98);
    backdrop-filter: blur(12px);
    padding: 24px;
    border-bottom: 1px solid rgba(74, 25, 66, 0.08);
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    box-shadow: 0 16px 32px rgba(74, 25, 66, 0.08);
  }
  #main-nav.open {
    transform: translateY(0);
  }
  #main-nav ul {
    flex-direction: column;
    gap: 20px;
  }
  #main-nav a {
    font-size: 1.0625rem;
  }

  .hero-content {
    padding: 100px 20px 80px;
  }

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

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

  .about-image,
  .approach-image {
    order: -1;
  }

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

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

  .contact-form-wrap {
    padding: 32px 24px;
  }

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

  .section {
    padding: 72px 0;
  }
}

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

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

  .btn--lg {
    padding: 16px 28px;
    font-size: 0.9375rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
