/* ============================================
   HEIDEN ORTHOPEDICS — DRAPER
   Fresh, airy, plum + amber palette
   ============================================ */

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

:root {
  --plum-50: #faf5ff;
  --plum-100: #f3e8ff;
  --plum-200: #e9d5ff;
  --plum-300: #d8b4fe;
  --plum-400: #c084fc;
  --plum-500: #a855f7;
  --plum-600: #9333ea;
  --plum-700: #7e22ce;
  --plum-800: #6b21a8;
  --plum-900: #581c87;
  --plum-950: #3b0764;

  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;

  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 1px 2px rgba(88, 28, 135, 0.06);
  --shadow-md: 0 4px 16px rgba(88, 28, 135, 0.08);
  --shadow-lg: 0 8px 32px rgba(88, 28, 135, 0.12);
  --shadow-xl: 0 16px 48px rgba(88, 28, 135, 0.16);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--plum-600);
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--plum-800);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 500;
}

.skip-link:focus {
  top: 16px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(147, 51, 234, 0.08);
  transition: box-shadow var(--transition);
}

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--plum-800);
  font-weight: 400;
}

.logo-mark {
  color: var(--plum-600);
  width: 32px;
  height: 32px;
}

.logo-text {
  letter-spacing: -0.01em;
}

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

.nav-menu a {
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-menu a:hover {
  color: var(--plum-700);
  background: var(--plum-50);
}

.btn-nav {
  background: var(--plum-700) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 18px !important;
  margin-left: 8px;
}

.btn-nav:hover {
  background: var(--plum-600) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--plum-800);
}

.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background: currentColor;
  left: 0;
  transition: all var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--plum-600);
  border-color: var(--plum-600);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--plum-800);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-plum {
  background: transparent;
  color: var(--plum-700);
  border-color: var(--plum-300);
}

.btn-outline-plum:hover {
  background: var(--plum-50);
  border-color: var(--plum-600);
  color: var(--plum-700);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7e22ce 0%, #a855f7 25%, #c084fc 50%, #fbbf24 100%);
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #d8b4fe, transparent 70%);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #fde68a, transparent 70%);
  bottom: 5%;
  left: -5%;
  animation-delay: -3s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #e9d5ff, transparent 70%);
  top: 30%;
  left: 20%;
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(59, 7, 100, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--white);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

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

/* ============================================
   SECTION COMMON
   ============================================ */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum-600);
  background: var(--plum-50);
  border: 1px solid var(--plum-200);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--plum-950);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.7;
}

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

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

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--plum-500), var(--amber-400));
  opacity: 0;
  transition: opacity var(--transition);
}

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

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--plum-50);
  border-radius: var(--radius-md);
  color: var(--plum-700);
  margin-bottom: 20px;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--plum-100);
  transform: scale(1.05);
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--plum-900);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

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

.about-image {
  position: relative;
}

.about-image-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
}

.accent-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--plum-800);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--amber-200);
}

.about-content .section-tag {
  margin-bottom: 16px;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.about-text {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-features {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--gray-700);
  font-weight: 500;
}

.feature-check {
  color: var(--plum-600);
  flex-shrink: 0;
}

/* ============================================
   CONDITIONS
   ============================================ */
.conditions {
  padding: 100px 0;
  background: var(--white);
}

.conditions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.condition-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--plum-50);
  color: var(--plum-800);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 50px;
  border: 1px solid var(--plum-100);
  transition: all var(--transition);
}

.condition-chip:hover {
  background: var(--plum-100);
  border-color: var(--plum-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.condition-chip svg {
  color: var(--amber-500);
  flex-shrink: 0;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--plum-900) 0%, var(--plum-800) 50%, #5b3090 100%);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(251, 191, 36, 0.15), transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.3), transparent 50%);
  pointer-events: none;
}

.testimonials .section-header {
  position: relative;
  z-index: 1;
}

.testimonials .section-tag {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--amber-300);
}

.testimonials .section-title {
  color: var(--white);
}

.testimonials .section-desc {
  color: rgba(255, 255, 255, 0.7);
}

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

.testimonial-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.testimonial-quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--amber-400);
  opacity: 0.6;
  margin-bottom: -8px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

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

.author-avatar {
  color: var(--plum-300);
  flex-shrink: 0;
}

.author-name {
  display: block;
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
}

.author-detail {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--plum-50) 100%);
}

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

.contact-info .section-tag {
  margin-bottom: 16px;
}

.contact-info .section-title {
  text-align: left;
  margin-bottom: 16px;
}

.contact-desc {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 36px;
}

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

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

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--plum-100);
  border-radius: var(--radius-md);
  color: var(--plum-700);
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.contact-value {
  display: block;
  font-size: 0.95rem;
  color: var(--gray-800);
  font-weight: 500;
}

.contact-value a {
  color: var(--plum-700);
}

.contact-value a:hover {
  color: var(--plum-500);
}

/* FORM */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--plum-100);
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--plum-900);
  margin-bottom: 6px;
}

.form-note {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-bottom: 28px;
}

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

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--plum-400);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

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

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 18px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  color: #166534;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--plum-950);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  margin-bottom: 16px;
}

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

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

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

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

.footer-nav a:hover {
  color: var(--amber-400);
}

.footer-contact address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-phone a,
.footer-email a {
  color: var(--amber-400);
}

.footer-phone a:hover,
.footer-email a:hover {
  color: var(--amber-300);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

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

.footer-disclaimer {
  font-size: 0.78rem !important;
  color: rgba(255, 255, 255, 0.25) !important;
  max-width: 600px;
}

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

.reveal.revealed {
  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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

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

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

  .testimonials-grid .testimonial-card:last-child {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
  }
}

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

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 88px 24px 24px;
    gap: 4px;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition);
    z-index: 99;
  }

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

  .nav-menu a {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .btn-nav {
    margin-left: 0 !important;
    margin-top: 12px;
    text-align: center;
    justify-content: center;
  }

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

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

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

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

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

  .hero-stats {
    gap: 20px;
  }

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

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

  .about-image-accent {
    bottom: -10px;
    right: 10px;
  }

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

  .testimonials-grid .testimonial-card:last-child {
    max-width: none;
  }

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

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

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

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

  .footer-bottom {
    flex-direction: column;
  }
}

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

  .hero {
    padding: 90px 16px 50px;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 6px 14px;
  }

  .service-card {
    padding: 28px 22px;
  }

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    will-change: opacity, transform;
  }
}

/* Ensure reduced motion gets visible content */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .gradient-orb {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
