/* ============================================================
   ElegantAFO ORTHOTICS - MASTER STYLESHEET
   ============================================================ */

/* ---------- CSS CUSTOM PROPERTIES (Light Mode Default) ---------- */
:root {
  /* Brand palette */
  --primary-blue: #0F172A;
  --brand-blue: #1E40AF;
  --action-blue: #2563EB;
  --light-blue: #F0F9FF;

  /* Extended palette */
  --brand-blue-hover: #1D4ED8;
  --action-blue-hover: #1D4ED8;
  --action-blue-active: #1E40AF;
  --success-green: #16A34A;
  --success-bg: #F0FDF4;
  --error-red: #DC2626;
  --error-bg: #FEF2F2;

  /* Surfaces */
  --bg-body: #FFFFFF;
  --bg-section-alt: var(--light-blue);
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-nav: rgba(255, 255, 255, 0.92);
  --bg-footer: var(--primary-blue);

  /* Text */
  --text-primary: var(--primary-blue);
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-on-dark: #F8FAFC;
  --text-on-dark-muted: #94A3B8;
  --text-on-action: #FFFFFF;

  /* Borders */
  --border-light: #E2E8F0;
  --border-medium: #CBD5E1;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 8px 24px rgba(15, 23, 42, 0.12);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ---------- DARK MODE ---------- */
[data-theme="dark"] {
  --bg-body: #0B1120;
  --bg-section-alt: #0F1A2E;
  --bg-card: #131D33;
  --bg-card-hover: #1A2540;
  --bg-nav: rgba(11, 17, 32, 0.94);
  --bg-footer: #060B14;

  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --border-light: #1E293B;
  --border-medium: #334155;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.5);

  --light-blue: #0F1A2E;
  --success-bg: #052E16;
  --error-bg: #450A0A;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-base), color var(--transition-base);
}

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

a {
  color: var(--action-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--action-blue-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--action-blue);
  outline-offset: 2px;
}

ul {
  list-style: none;
}

/* ---------- UTILITY ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.section {
  padding-block: var(--space-4xl);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.required {
  color: var(--error-red);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.8125rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--action-blue);
  color: var(--text-on-action);
  border-color: var(--action-blue);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--action-blue-hover);
  border-color: var(--action-blue-hover);
  color: var(--text-on-action);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-primary:active {
  background-color: var(--action-blue-active);
  transform: translateY(1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background-color: var(--light-blue);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: var(--nav-height);
}

.site-header.menu-open {
  z-index: 2000;
}

.navbar {
  height: 100%;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.logo-img {
  max-height: 46px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-blue);
}

[data-theme="dark"] .logo-text {
  color: #60A5FA;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--action-blue);
  background-color: var(--light-blue);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link:focus-visible {
  background-color: rgba(37, 99, 235, 0.12);
}

.nav-cta-link {
  background-color: var(--action-blue);
  color: var(--text-on-action) !important;
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 0.5rem 1.25rem;
  margin-left: var(--space-sm);
}

.nav-cta-link:hover {
  background-color: var(--action-blue-hover);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.3);
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  gap: 0.35rem;
}

.nav-dropdown-toggle::after {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 0.3rem;
  transition: transform var(--transition-fast);
  margin-top: -2px;
}

.nav-dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  padding: 0.5rem 0;
  margin-top: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--transition-fast);
  z-index: 100;
  list-style: none;
}

.nav-dropdown-menu[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
}

.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible {
  color: var(--action-blue);
  background-color: var(--light-blue);
}

[data-theme="dark"] .nav-dropdown-link:hover,
[data-theme="dark"] .nav-dropdown-link:focus-visible {
  background-color: rgba(37, 99, 235, 0.12);
}

/* Theme Toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  margin-left: var(--space-sm);
}

.theme-toggle:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background-color: var(--light-blue);
}

[data-theme="dark"] .theme-toggle {
  background: var(--bg-card);
  border-color: var(--border-light);
  color: var(--text-primary);
}

[data-theme="dark"] .theme-toggle:hover {
  background-color: rgba(37, 99, 235, 0.15);
  border-color: #60A5FA;
  color: #60A5FA;
}

/* Sun/Moon icon visibility */
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: block; }

/* Hamburger */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  cursor: pointer;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: var(--nav-height);
  background:
    url('https://images.unsplash.com/photo-1542202229-7d93c33f5d07?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

[data-theme="dark"] .hero {
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(30, 64, 175, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

[data-theme="dark"] .hero-overlay {
  background: radial-gradient(ellipse at 30% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: var(--space-4xl) var(--space-lg);
  margin-inline: auto;
  text-align: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.025em;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.hero .btn-secondary {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn-secondary:hover,
.hero .btn-secondary:focus-visible {
  border-color: #FFFFFF;
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.1);
}

.hero-image-area {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 40%;
  max-width: 480px;
  opacity: 0.12;
  pointer-events: none;
}

.hero-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  background-color: var(--bg-section-alt);
}

[data-theme="dark"] .about {
  background-color: var(--bg-section-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-3xl);
  align-items: start;
}

.about-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.75;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.value-item {
  padding: var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.value-item:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--light-blue);
  color: var(--brand-blue);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

[data-theme="dark"] .value-icon {
  background-color: rgba(37, 99, 235, 0.15);
  color: #60A5FA;
}

.value-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.value-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

.about-image-area {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-xl));
}

.about-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  aspect-ratio: 3 / 4;
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
.products {
  background-color: var(--bg-body);
}

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

.products-grid {
  margin-top: var(--space-xl);
}

.product-subsection {
  margin-bottom: var(--space-3xl);
  text-align: center;
}

.product-subsection:last-child {
  margin-bottom: 0;
}

.subsection-title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: var(--space-xs);
}

[data-theme="dark"] .subsection-title {
  color: #60A5FA;
}

.subsection-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.65;
}

.subsection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.subsection-grid--centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
}

.subsection-grid--centered .product-card {
  flex: 0 1 380px;
  min-width: 280px;
}

.subsection-grid--browse {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
}

.subsection-grid--browse .product-card {
  flex: 0 1 360px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.product-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.product-image-area {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  background-color: var(--light-blue);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-lg);
  transition: transform var(--transition-base);
}

.product-card:hover .product-img {
  transform: scale(1.03);
}

.product-img--flip {
  transform: scaleX(-1);
}

.product-card:hover .product-img--flip {
  transform: scaleX(-1) scale(1.03);
}

[data-theme="dark"] .product-image-area {
  background-color: var(--bg-section-alt);
}

.product-body {
  padding: var(--space-xl);
}

.product-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.product-tagline {
  display: none;
}

[data-theme="dark"] .product-tagline {
  color: #60A5FA;
}

.product-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-lg);
}

.product-details {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.product-details h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.product-details h4:first-child {
  margin-top: 0;
}

.product-details ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.product-details li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.product-details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background-color: var(--brand-blue);
  border-radius: 50%;
}

[data-theme="dark"] .product-details li::before {
  background-color: #60A5FA;
}

/* ============================================================
   PROCESS / STEPPER SECTION
   ============================================================ */
.process {
  background-color: var(--bg-section-alt);
}

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

.stepper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: var(--space-xl);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 200px;
  max-width: 260px;
  padding: var(--space-lg);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: var(--brand-blue);
  color: var(--text-on-action);
  font-size: 1.375rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: var(--space-lg);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(30, 64, 175, 0.25);
}

[data-theme="dark"] .step-number {
  background-color: #2563EB;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.step-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--action-blue));
  margin-top: 28px;
  flex-shrink: 0;
  border-radius: 2px;
}

[data-theme="dark"] .step-connector {
  background: linear-gradient(90deg, #2563EB, #60A5FA);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
  background-color: var(--bg-body);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-detail-item svg {
  flex-shrink: 0;
  color: var(--brand-blue);
}

[data-theme="dark"] .contact-detail-item svg {
  color: #60A5FA;
}

.office-hours {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--light-blue);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

[data-theme="dark"] .office-hours {
  background: var(--bg-section-alt);
}

.office-hours h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.office-hours ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.office-hours li {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---------- FORM ---------- */
.appointment-form {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select {
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  background-color: var(--bg-body);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

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

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--action-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group input.error,
.form-group select.error {
  border-color: var(--error-red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group input.success,
.form-group select.success {
  border-color: var(--success-green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-error {
  font-size: 0.8rem;
  color: var(--error-red);
  min-height: 1.2em;
}

.btn-submit {
  width: 100%;
  margin-top: var(--space-sm);
}

/* Success Message */
.form-success[hidden] {
  display: none;
}

.form-success {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background-color: var(--success-bg);
  border: 1px solid var(--success-green);
  border-radius: var(--radius-md);
  color: var(--success-green);
}

.form-success svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.form-success p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.form-success strong {
  color: var(--success-green);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--bg-footer);
  color: var(--text-on-dark);
  padding-top: var(--space-3xl);
  padding-bottom: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.footer-logo {
  max-height: 38px;
  width: auto;
}

.footer-tagline {
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
}

.footer-links h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: var(--space-md);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-on-dark-muted);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-on-dark);
}

.footer-disclaimer h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: var(--space-md);
}

.footer-disclaimer p {
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
  line-height: 1.7;
}

.footer-bottom {
  padding-block: var(--space-lg);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
}

/* ============================================================
   ORDER FORM PAGE
   ============================================================ */
.order-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 36vh;
  padding-top: var(--nav-height);
  background: linear-gradient(135deg, var(--bg-body) 0%, var(--light-blue) 50%, var(--bg-body) 100%);
  overflow: hidden;
}

[data-theme="dark"] .order-hero {
  background: linear-gradient(135deg, var(--bg-body) 0%, var(--bg-section-alt) 50%, var(--bg-body) 100%);
}

.order-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(30, 64, 175, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

[data-theme="dark"] .order-hero-overlay {
  background: radial-gradient(ellipse at 30% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}

.order-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: var(--space-2xl) var(--space-lg);
  margin-inline: auto;
  text-align: center;
}

.order-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.025em;
}

.order-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 600px;
  margin-inline: auto;
}

/* ---------- Download Cards ---------- */
.download-section {
  background-color: var(--bg-body);
}

.form-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.form-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.form-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.form-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.form-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  flex: 1;
}

.form-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-on-action);
  background-color: var(--action-blue);
  border-radius: var(--radius-full);
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
  align-self: flex-start;
}

.form-card:hover .form-card-btn {
  background-color: var(--action-blue-hover);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

/* ---------- Upload Section ---------- */
.upload-section {
  background-color: var(--bg-section-alt);
  padding-top: 0;
}

.upload-card {
  max-width: 720px;
  margin-inline: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}

.upload-form {
  max-width: 640px;
  margin-inline: auto;
}

.upload-form textarea {
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  background-color: var(--bg-body);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  resize: vertical;
  width: 100%;
}

.upload-form textarea:focus {
  outline: none;
  border-color: var(--action-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-order-submit {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  margin-top: var(--space-lg);
}

/* File input styling */
.file-input-wrapper {
  position: relative;
}

.file-input-wrapper input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-input-label {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-muted);
  background-color: var(--bg-body);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast);
  cursor: pointer;
}

.file-input-wrapper:hover .file-input-label {
  border-color: var(--action-blue);
}

.file-input-wrapper input[type="file"]:focus + .file-input-label {
  outline: none;
  border-color: var(--action-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.file-input-wrapper input[type="file"].error + .file-input-label {
  border-color: var(--error-red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.file-input-wrapper input[type="file"].success + .file-input-label {
  border-color: var(--success-green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* ---------- Form Select Section ---------- */
.form-select-section {
  background-color: var(--bg-body);
  padding-bottom: var(--space-xl);
}

.form-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.form-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.form-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--action-blue);
}

.form-card-body {
  display: flex;
  flex-direction: column;
  padding: var(--space-xl);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  width: 100%;
  transition: background-color var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.form-card-body:hover {
  background-color: var(--bg-card-hover);
}

.form-card-icon {
  display: none;
}

.form-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.form-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.form-card-actions {
  display: flex;
  gap: var(--space-sm);
  padding: 0 var(--space-xl) var(--space-xl);
}

.form-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}

.form-card-btn-primary {
  color: var(--text-on-action);
  background-color: var(--action-blue);
  border-color: var(--action-blue);
}

.form-card-btn-primary:hover {
  background-color: var(--action-blue-hover);
  border-color: var(--action-blue-hover);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.form-card-btn-secondary {
  color: var(--action-blue);
  background-color: transparent;
  border-color: var(--action-blue);
}

.form-card-btn-secondary:hover {
  background-color: var(--light-blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* ---------- Order Form Section ---------- */
.order-form-section {
  background-color: var(--bg-section-alt);
  padding-top: 0;
}

.order-form-card {
  max-width: 860px;
  margin-inline: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}

.order-form-header {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-light);
}

/* ---------- Fieldsets ---------- */
.form-fieldset {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.fieldset-legend {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0 var(--space-sm);
  margin-bottom: 0;
}

.fieldset-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

/* ---------- Layout variants ---------- */
.form-row-3col {
  grid-template-columns: 1fr 1fr 1fr;
}

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

/* ---------- Checkbox Groups ---------- */
.checkbox-group {
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-xs);
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.95rem;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--action-blue);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-sm);
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  padding-top: var(--space-xs);
}

.checkbox-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.checkbox-label-inline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.95rem;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1.4;
}

.checkbox-label-inline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--action-blue);
  cursor: pointer;
  flex-shrink: 0;
}

/* ---------- Form Actions ---------- */
.form-actions {
  margin-top: var(--space-xl);
}

.form-actions-secondary {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-lg);
}

.form-actions-secondary .btn {
  flex: 0 1 auto;
  min-width: 180px;
}

/* ---------- Form Header ---------- */
.form-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.btn-link {
  background: none;
  border: none;
  color: var(--action-blue);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.btn-link:hover {
  color: var(--action-blue-hover);
}

/* ---------- Stepper Progress Bar ---------- */
#stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: var(--space-2xl);
  padding: var(--space-lg) 0;
}

#stepper .step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  flex: 0 0 auto;
  min-width: 90px;
}

#stepper .step-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--bg-card);
  border: 2.5px solid var(--border-medium);
  color: var(--text-muted);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

#stepper .step-indicator.active .step-circle {
  background: var(--action-blue);
  border-color: var(--action-blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

#stepper .step-indicator.completed .step-circle {
  background: var(--success-green);
  border-color: var(--success-green);
  color: #fff;
}

#stepper .step-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
  line-height: 1.3;
  transition: color var(--transition-base);
  max-width: 110px;
}

#stepper .step-indicator.active .step-label {
  color: var(--action-blue);
  font-weight: 600;
}

#stepper .step-indicator.completed .step-label {
  color: var(--success-green);
}

#stepper .step-connector {
  flex: 1;
  height: 2.5px;
  background: var(--border-medium);
  margin-top: 19px;
  margin-inline: var(--space-sm);
  min-width: 24px;
  transition: background var(--transition-base);
  border-radius: 2px;
}

#stepper .step-indicator.completed + .step-connector {
  background: var(--success-green);
}

/* ---------- Step Panels ---------- */
.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
  animation: stepFadeIn 0.3s ease forwards;
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Step Navigation ---------- */
.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.step-nav .btn {
  min-width: 120px;
}

.step-nav .btn svg {
  flex-shrink: 0;
}

/* ---------- Card Grid Exit Animation ---------- */
.form-cards-grid {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-cards-grid.exiting {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

/* ---------- Form Section Enter Animation ---------- */
#orderFormSection {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

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

/* ---------- Review Summary ---------- */
.review-section {
  margin-bottom: var(--space-xl);
}

.review-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
}

.review-block {
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-section-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.review-block-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

[data-theme="dark"] .review-block-title {
  color: #60A5FA;
}

.review-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm) var(--space-lg);
}

.review-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.review-item dt {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.review-item dd {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
  margin: 0;
}

.text-muted {
  color: var(--text-muted);
}

/* ---------- Print-specific form styles ---------- */
@media print {
  .site-header,
  .site-footer,
  .order-hero,
  .form-select-section,
  #stepper,
  .step-nav,
  .btn-link,
  .form-error,
  .form-success,
  .product-section {
    display: none !important;
  }

  #orderFormSection {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    padding: 0;
    background: #fff;
  }

  #orderFormWrapper,
  .order-form-card {
    display: block !important;
    max-width: 100%;
    box-shadow: none;
    border: none;
    padding: 0;
    background: #fff;
  }

  .order-form-header {
    border-bottom: 2px solid #000;
    margin-bottom: 0.3in;
    padding-bottom: 0.15in;
  }

  #selectedFormTitle {
    font-size: 1.3rem;
    color: #000;
  }

  .step-panel {
    display: none !important;
  }

  .step-panel#step3 {
    display: block !important;
  }

  .step-panel#step3 .form-fieldset {
    display: none !important;
  }

  .review-section {
    display: block !important;
  }

  .review-block {
    background: #f8f8f8 !important;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.2in;
    margin-bottom: 0.2in;
    break-inside: avoid;
  }

  .review-block-title {
    color: #1E40AF !important;
    font-size: 0.8rem;
  }

  .review-list {
    grid-template-columns: 1fr 1fr;
  }

  .review-item dt {
    font-size: 0.7rem;
    color: #555;
  }

  .review-item dd {
    font-size: 0.9rem;
    color: #000;
  }

  .form-actions,
  .btn {
    display: none !important;
  }

  .text-muted {
    color: #666;
  }

  body {
    font-size: 11pt;
    color: #000;
    background: #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image-area {
    position: static;
    display: none;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
    --space-4xl: 3.5rem;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    overflow: visible !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-lg);
    background: #FFFFFF;
    gap: var(--space-sm);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 9999;
    overflow-y: auto;
  }

  [data-theme="dark"] .nav-links {
    background: #0B1120;
  }

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

  .nav-link {
    padding: 0.875rem 1rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
  }

  .nav-cta-link {
    margin-left: 0;
    margin-top: var(--space-md);
    text-align: center;
    padding: 1rem;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-2xl));
    padding-bottom: var(--space-3xl);
  }

  .hero-content {
    padding: var(--space-2xl) var(--space-md);
  }

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

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

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

  .subsection-grid--centered {
    flex-direction: column;
    align-items: center;
  }

  .subsection-grid--centered .product-card,
  .subsection-grid--browse .product-card {
    flex: 0 1 auto;
    width: 100%;
    max-width: 480px;
  }

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

  #stepper {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  #stepper .step-connector {
    width: 2.5px;
    height: 24px;
    margin-top: 0;
    margin-inline: 0;
    min-width: 0;
  }

  .step {
    max-width: 100%;
  }

  .step-connector {
    width: 2px;
    height: 40px;
    margin-top: 0;
    background: linear-gradient(180deg, var(--brand-blue), var(--action-blue));
  }

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

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

  #stepper .step-label {
    max-width: none;
    font-size: 0.75rem;
  }

  .review-list {
    grid-template-columns: 1fr;
  }

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

/* Small mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .appointment-form {
    padding: var(--space-lg);
  }
}

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

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

/* Skip to main content (screen reader only) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
