/* =============================================================================
   pcrepairs.com — Premium Design System CSS v2 (1200+ lines)
   Modern service marketplace design inspired by Thumbtack, Angi, iFixit
   ============================================================================= */

:root {
  --color-primary: #0055FF;
  --color-primary-dark: #003CB8;
  --color-primary-light: #3B7FFF;
  --color-secondary: #00B8A9;
  --color-secondary-dark: #008B84;
  --color-secondary-light: #33D3C3;
  --color-accent: #FF6B35;
  --color-accent-dark: #E55A25;
  --color-accent-light: #FF8C5C;
  --color-success: #28a745;
  --color-warning: #ffc107;
  --color-danger: #dc3545;
  --color-dark: #1a1a2e;
  --color-dark-secondary: #16213e;
  --color-light: #f8f9fa;
  --color-light-secondary: #e9ecef;
  --color-text: #2d3748;
  --color-text-light: #718096;
  --color-border: #e2e8f0;
  --color-background: #ffffff;
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-inter: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Monaco", "Menlo", "Courier New", monospace;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  --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;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-premium: 0 20px 60px rgba(0, 0, 0, 0.15);
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  --border-radius-2xl: 20px;
  --border-radius-full: 9999px;
  --border-width: 1px;
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
  --z-hide: -1;
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 1000;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-dark: #f8f9fa;
    --color-light: #1a1a2e;
    --color-text: #e2e8f0;
    --color-text-light: #a0aec0;
    --color-border: #2d3748;
    --color-background: #0f1419;
  }
}

html.dark {
  --color-dark: #f8f9fa;
  --color-light: #1a1a2e;
  --color-text: #e2e8f0;
  --color-text-light: #a0aec0;
  --color-border: #2d3748;
  --color-background: #0f1419;
}

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-system); font-size: var(--font-size-base); line-height: var(--line-height-normal); color: var(--color-text); background-color: var(--color-background); transition: background-color var(--transition-base), color var(--transition-base); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ============================================================================
   HEADER & NAVIGATION
   ============================================================================ */
#site-header {
  position: fixed;
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: all 0.3s ease-in-out;
  z-index: 200;
  padding: 1.5rem 2rem;
}

#site-header.header-scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 1rem 2rem;
}

html.dark header.header-scrolled {
  background: rgba(15, 20, 25, 0.98);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: color 0.3s;
}

#site-header.header-scrolled .logo {
  color: var(--color-primary);
}

nav {
  display: flex;
  gap: 3rem;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.3s;
  position: relative;
}

nav a:hover {
  opacity: 0.8;
}

#site-header.header-scrolled nav a {
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 0.4rem;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

#site-header.header-scrolled .nav-toggle span {
  background: var(--color-text);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-background);
    padding: 2rem;
    gap: 1.5rem;
    border-top: 1px solid var(--color-border);
  }
  nav.open {
    display: flex;
  }
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.hero {
  min-height: 85vh;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  margin-top: 60px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.95);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.search-card {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-premium);
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
  height: 56px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  font-size: 1.1rem;
  font-family: inherit;
  transition: all 0.3s;
}

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

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23FF6B35' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
  cursor: pointer;
}

.search-btn {
  height: 56px;
  padding: 0 2.5rem;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  min-width: 180px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.hero-trust {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--color-text);
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-trust-item::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .search-form {
    grid-template-columns: 1fr;
  }
  .search-btn {
    width: 100%;
  }
}

/* ============================================================================
   SECTIONS & LAYOUT
   ============================================================================ */
section {
  padding: 6rem 2rem;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3.5rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  text-align: center;
  margin-top: -2rem;
  margin-bottom: 3.5rem;
}

.section-decorated {
  position: relative;
}

.section-decorated::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 85, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(0, 184, 169, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================================
   SERVICE CARDS
   ============================================================================ */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: transparent;
}

html.dark .service-card {
  background: #1e293b;
  border-color: #334155;
}

html.dark .service-card:hover {
  background: #334155;
}

.service-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  background: var(--color-background);
}

.service-card:nth-child(1) .service-icon {
  background: linear-gradient(135deg, rgba(0, 85, 255, 0.1), rgba(59, 127, 255, 0.1));
}

.service-card:nth-child(2) .service-icon {
  background: linear-gradient(135deg, rgba(0, 184, 169, 0.1), rgba(51, 211, 195, 0.1));
}

.service-card:nth-child(3) .service-icon {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 140, 92, 0.1));
}

.service-card:nth-child(4) .service-icon {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 213, 79, 0.1));
}

.service-card:nth-child(5) .service-icon {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.1), rgba(186, 104, 200, 0.1));
}

.service-card:nth-child(6) .service-icon {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.1), rgba(229, 57, 53, 0.1));
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ============================================================================
   STEPS SECTION
   ============================================================================ */
.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  margin-top: 4rem;
}

.steps-container::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent) 0%, transparent 100%);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.step:hover .step-circle {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

@media (max-width: 1024px) {
  .steps-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-container::before {
    background: none;
  }
}

@media (max-width: 640px) {
  .steps-container {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   STATS SECTION
   ============================================================================ */
.stats {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-secondary) 100%);
  color: white;
  padding: 6rem 2rem;
  margin: 0 -2rem 0 -2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* ============================================================================
   GUIDE CARDS
   ============================================================================ */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.guide-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.guide-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--color-accent);
}

html.dark .guide-card {
  background: #1e293b;
  border-color: #334155;
}

.guide-thumbnail {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.guide-thumbnail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.guide-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 107, 53, 0.95);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.guide-content {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.guide-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.guide-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.5rem;
}

.guide-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.guide-link:hover {
  gap: 0.75rem;
}

.guide-link::after {
  content: '→';
  transition: transform 0.3s;
}

/* ============================================================================
   WHY CHOOSE US SECTION
   ============================================================================ */
.why-choose-us {
  background: var(--color-light);
}

html.dark .why-choose-us {
  background: #0f1419;
}

.value-props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.value-prop {
  background: var(--color-background);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  border: 2px solid var(--color-border);
  text-align: center;
  transition: all 0.3s;
}

html.dark .value-prop {
  background: #1e293b;
  border-color: #334155;
}

.value-prop:hover {
  border-color: var(--color-accent);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.15);
}

.value-prop-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-prop h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.value-prop p {
  color: var(--color-text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ============================================================================
   LOCATIONS SECTION
   ============================================================================ */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.location-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.location-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 85, 255, 0.05), rgba(0, 184, 169, 0.05));
  opacity: 0;
  transition: opacity 0.3s;
}

.location-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

html.dark .location-card {
  background: #1e293b;
  border-color: #334155;
}

.location-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.location-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.location-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* ============================================================================
   CTA SECTION
   ============================================================================ */
.cta {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  margin: 0 -2rem 0 -2rem;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: drift 20s linear infinite;
}

@keyframes drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

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

.cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: white;
  color: var(--color-accent);
  padding: 1rem 3rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s;
  border: 2px solid white;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================================================
   FOOTER & MISC
   ============================================================================ */
footer {
  background: var(--color-dark);
  color: white;
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
}

html.dark footer {
  background: #0f1419;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-section a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

/* ============================================================================
   UTILITY CLASSES & ANIMATIONS
   ============================================================================ */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  font-size: 1.5rem;
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* Dark Mode */
html.dark {
  color-scheme: dark;
}

html.dark body {
  background-color: #0f1419;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */
@media (max-width: 768px) {
  section {
    padding: 4rem 1.5rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .services {
    grid-template-columns: 1fr;
  }
  
  .guides-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  section {
    padding: 3rem 1rem;
  }
  
  .hero {
    min-height: 70vh;
    margin-top: 0;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  .search-card {
    padding: 1.5rem;
  }
  
  .hero-trust {
    gap: 1rem;
    font-size: 0.85rem;
  }
}

/* =============================================================================
   ADDITIONAL STYLES — Fix missing classes from template v2
   ============================================================================= */

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-xl);
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

/* Service Icon Wrapper */
.service-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 2rem;
  transition: transform var(--transition-base);
}
.service-card:hover .service-icon-wrap { transform: scale(1.1) rotate(5deg); }
.service-icon-blue { background: linear-gradient(135deg, #dbeafe, #93c5fd); }
.service-icon-green { background: linear-gradient(135deg, #d1fae5, #6ee7b7); }
.service-icon-purple { background: linear-gradient(135deg, #ede9fe, #c4b5fd); }
.service-icon-orange { background: linear-gradient(135deg, #ffedd5, #fdba74); }
.service-icon-teal { background: linear-gradient(135deg, #ccfbf1, #5eead4); }
.service-icon-red { background: linear-gradient(135deg, #fee2e2, #fca5a5); }
.service-icon-gray { background: linear-gradient(135deg, #f3f4f6, #d1d5db); }
.service-icon-indigo { background: linear-gradient(135deg, #e0e7ff, #a5b4fc); }

html.dark .service-icon-blue { background: linear-gradient(135deg, #1e3a5f, #2563eb); }
html.dark .service-icon-green { background: linear-gradient(135deg, #064e3b, #059669); }
html.dark .service-icon-purple { background: linear-gradient(135deg, #3b0764, #7c3aed); }
html.dark .service-icon-orange { background: linear-gradient(135deg, #7c2d12, #ea580c); }
html.dark .service-icon-teal { background: linear-gradient(135deg, #134e4a, #14b8a6); }
html.dark .service-icon-red { background: linear-gradient(135deg, #7f1d1d, #ef4444); }
html.dark .service-icon-gray { background: linear-gradient(135deg, #1f2937, #6b7280); }
html.dark .service-icon-indigo { background: linear-gradient(135deg, #312e81, #6366f1); }

/* Service card enhancements */
.service-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-base);
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--color-primary-light);
}
.service-card h3 { font-size: var(--font-size-lg); margin-bottom: var(--space-sm); }
.service-card p { font-size: var(--font-size-sm); color: var(--color-text-light); line-height: var(--line-height-relaxed); margin: 0; }

/* Section Light Background */
.section-light { background-color: var(--color-light); }
html.dark .section-light { background-color: var(--color-dark-secondary); }

/* Section Decorated (subtle dot pattern) */
.section-decorated { position: relative; }
.section-decorated::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--color-border) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
  pointer-events: none;
}

/* Hero Search Card */
.hero-search {
  background: white;
  border-radius: var(--border-radius-2xl);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-premium);
  margin-top: var(--space-2xl);
  max-width: 700px;
}
html.dark .hero-search { background: #1e293b; }

/* Hero Subtitle */
.hero-subtitle {
  font-size: var(--font-size-xl);
  opacity: 0.95;
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-md);
  max-width: 600px;
}

/* Trust Check Indicators */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  font-size: var(--font-size-sm);
  opacity: 0.9;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.trust-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: white;
  padding: var(--space-4xl) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stats-section .stat { text-align: center; }
.stats-section .stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-bold);
  background: linear-gradient(135deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
  line-height: 1.1;
}
.stats-section .stat-label {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  font-weight: var(--font-weight-medium);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1), transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(255,255,255,0.08), transparent 50%);
  pointer-events: none;
}

/* Guide Card Enhancements */
.guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}
@media (min-width: 768px) { .guides-grid { grid-template-columns: repeat(3, 1fr); } }

.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
}
.guide-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  text-decoration: none;
  color: inherit;
}
.guide-thumbnail {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}
.guide-category {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: rgba(0,0,0,0.5);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  backdrop-filter: blur(4px);
}
.guide-info {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.guide-info h3 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-tight);
}
.guide-excerpt {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-md);
  flex: 1;
}
.guide-info .guide-link {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  margin-top: auto;
}
.guide-card:hover .guide-link { text-decoration: underline; }

/* Section padding defaults */
section { padding: var(--space-4xl) 0; }
.section-title { text-align: center; margin-bottom: var(--space-lg); font-size: var(--font-size-4xl); }
.section-subtitle { text-align: center; color: var(--color-text-light); max-width: 600px; margin: 0 auto var(--space-3xl); font-size: var(--font-size-lg); }

/* Value Props */
.value-props {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}
@media (min-width: 768px) { .value-props { grid-template-columns: repeat(3, 1fr); } }
.value-prop {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-xl);
  transition: all var(--transition-base);
}
.value-prop:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.value-prop-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto var(--space-lg);
  background: var(--color-light-secondary);
}
.vp-icon-trust { background: linear-gradient(135deg, #d1fae5, #6ee7b7); color: #059669; }
.vp-icon-price { background: linear-gradient(135deg, #fef3c7, #fbbf24); }
.vp-icon-global { background: linear-gradient(135deg, #dbeafe, #60a5fa); }
.value-prop h3 { font-size: var(--font-size-xl); margin-bottom: var(--space-md); }
.value-prop p { color: var(--color-text-light); line-height: var(--line-height-relaxed); margin: 0; }

/* =============================================================================
   FIX: Skip-to-main link — hidden until focused (accessibility)
   ============================================================================= */
.skip-to-main {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  z-index: 10000;
  font-weight: 600;
  border-radius: 0 0 8px 0;
  transition: top 0.2s ease;
}
.skip-to-main:focus {
  top: 0;
}

/* =============================================================================
   FIX: Fixed header offset — push body content below fixed nav
   ============================================================================= */
body {
  padding-top: 72px; /* height of the fixed header */
}
.hero {
  margin-top: -72px;
  padding-top: 72px;
}

/* =============================================================================
   FIX: Article/guide page styling
   ============================================================================= */
article {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-4xl);
}
article .container {
  max-width: 900px;
}
article header {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
article h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}
article .content-body,
article > .container > div {
  line-height: 1.8;
  font-size: 1.1rem;
}
article h2 {
  font-size: var(--font-size-3xl);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  text-align: left;
}
article h3 {
  font-size: var(--font-size-2xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  text-align: left;
}
article ul, article ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}
article li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}
article table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-xl) 0;
  font-size: var(--font-size-sm);
}
article th, article td {
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  text-align: left;
}
article th {
  background: var(--color-light);
  font-weight: var(--font-weight-semibold);
}
html.dark article th {
  background: var(--color-dark-secondary);
}
article blockquote {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-light);
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  margin: var(--space-lg) 0;
}
html.dark article blockquote {
  background: var(--color-dark-secondary);
}

/* Breadcrumbs on article pages */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-xl);
  color: var(--color-text-light);
}
.breadcrumbs a {
  color: var(--color-primary);
}
.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Related guides section at bottom of articles */
article section h2 {
  border-top: none;
  padding-top: 0;
}
