/* ============================================
   Local Pro Locksmith - Enhanced Main Stylesheet
   Gainesville, FL | localprolocksmith.net
   Version 2.0 - Optimized, Responsive, Accessible
   ============================================ */

/* === Custom Properties (Design Tokens) === */
:root {
  /* Colors */
  --primary: #0f2a43;
  --primary-dark: #0a1e30;
  --primary-light: #1a3a5c;
  --accent: #e8a33d;
  --accent-dark: #d18f2c;
  --accent-light: #fdf3e3;
  --secondary: #4a6b8a;
  --bg-light: #f7f9fc;
  --bg-white: #ffffff;
  --text-dark: #1e293b;
  --text-body: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);

  /* Border Radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --container: 1200px;
  --container-wide: 1400px;
  --container-narrow: 900px;
  --header-height: clamp(60px, 8vh, 76px);
  --section-padding: clamp(48px, 6vw, 96px);
  --grid-gap: clamp(16px, 3vw, 32px);

  /* Typography - Fluid Scale */
  --text-xs: clamp(0.7rem, 0.75vw, 0.8rem);
  --text-sm: clamp(0.8rem, 0.9vw, 0.9rem);
  --text-base: clamp(0.95rem, 1vw, 1rem);
  --text-lg: clamp(1.1rem, 1.4vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.8vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 2.5vw, 2rem);
  --text-3xl: clamp(1.75rem, 3vw, 2.5rem);
  --text-4xl: clamp(2rem, 4vw, 3rem);
  --text-5xl: clamp(2.5rem, 5vw, 3.75rem);
  --text-6xl: clamp(3rem, 6vw, 4.5rem);

  /* Font */
  --font-body: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', Consolas, monospace;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-white);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

ul, ol {
  list-style-position: inside;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 0.5em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-4xl);
  margin-bottom: 0.6em;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-3xl);
  margin-top: 1.5em;
  position: relative;
  padding-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: clamp(40px, 5vw, 64px);
  height: 3px;
  background: var(--accent);
  border-radius: var(--radius-full);
}

h3 {
  font-size: var(--text-2xl);
  margin-top: 1.25em;
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

p {
  margin-bottom: 1em;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

/* === Container === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  width: 100%;
}

.container-wide {
  max-width: var(--container-wide);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* === Top Bar === */
.topbar {
  background: var(--primary-dark);
  color: #fff;
  font-size: var(--text-xs);
  padding: clamp(6px, 0.8vw, 10px) 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.topbar a {
  color: #fff;
  font-weight: 500;
}

.topbar a:hover {
  color: var(--accent);
}

.topbar-phone {
  font-weight: 600;
  white-space: nowrap;
}

/* === Header === */
.site-header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition), backdrop-filter var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: clamp(8px, 2vw, 24px);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.logo-icon {
  width: clamp(36px, 4vw, 44px);
  height: clamp(36px, 4vw, 44px);
  background: var(--primary);
  color: var(--accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  flex-shrink: 0;
  transition: transform var(--transition), background-color var(--transition);
}

.logo:hover .logo-icon {
  transform: rotate(-10deg) scale(1.05);
  background: var(--primary-light);
}

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

.logo .logo-accent {
  color: var(--accent);
}

.logo-text small {
  font-size: clamp(0.6rem, 0.7vw, 0.7rem);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* === Navigation === */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: clamp(4px, 0.5vw, 10px);
}

.main-nav a {
  display: block;
  padding: clamp(10px, 1.2vw, 14px) clamp(14px, 1.6vw, 20px);
  color: var(--text-dark);
  font-weight: 600;
  font-size: var(--text-base);
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  position: relative;
  transition: color var(--transition), background-color var(--transition), transform var(--transition-fast);
}

.main-nav a:hover {
  transform: translateY(-1px);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: transform var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: var(--bg-light);
}

.main-nav a[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
  background: var(--bg-light);
}

/* Chevron icon for expandable nav items */
.nav-chevron {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  vertical-align: middle;
}

.has-mega.open .nav-chevron {
  transform: rotate(225deg);
}

/* Mega Menu - Two-Level Dropdown with Side Panel */
.has-mega {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: min(280px, 90vw);
  display: block;
  visibility: hidden;
  opacity: 0;
  z-index: 100;
  border-top: 3px solid var(--accent);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  overflow: visible;
}

.has-mega:focus-within .mega-menu,
.has-mega.open .mega-menu {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Only enable hover-triggered mega menu on devices that support hover
   (avoids iOS sticky-hover issues where the menu sticks after tap) */
@media (hover: hover) and (pointer: fine) {
  .has-mega:hover .mega-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Category List (Level 1) */
.mega-categories {
  list-style: none;
  padding: var(--space-2);
  margin: 0;
}

.mega-category {
  position: relative;
}

.mega-category-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: clamp(10px, 1.2vw, 14px) clamp(14px, 1.6vw, 18px);
  background: none;
  border: none;
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  min-height: 44px;
}

.mega-category-btn:hover,
.mega-category-btn.active {
  background: var(--accent-light);
  color: var(--primary);
  padding-left: var(--space-5);
}

.mega-category-btn .cat-icon {
  font-size: var(--text-lg);
  margin-right: var(--space-3);
  width: 24px;
  height: 24px;
  text-align: center;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mega-category-btn .cat-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  transition: color 0.2s ease, transform 0.2s ease;
}

.mega-category-btn:hover .cat-icon svg,
.mega-category-btn.active .cat-icon svg {
  color: var(--primary);
  transform: scale(1.1);
}

.mega-category-btn .cat-arrow {
  font-size: var(--text-xs);
  color: var(--text-muted);
  transition: transform 0.25s ease;
  margin-left: var(--space-3);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mega-category-btn .cat-arrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.25s ease;
}

.mega-category-btn.active .cat-arrow {
  color: var(--accent);
}

.mega-category-btn.active .cat-arrow::before {
  transform: rotate(45deg);
}

/* Submenu (Level 2) - Opens as Side Panel to the Right */
.mega-submenu {
  position: absolute;
  top: 0;
  left: calc(100% + 8px);
  width: min(320px, 80vw);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-12px);
  transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border-left: 3px solid var(--accent);
  z-index: 101;
}

.mega-submenu::before {
  content: '';
  position: absolute;
  top: 14px;
  left: -6px;
  width: 12px;
  height: 12px;
  background: var(--bg-white);
  border-left: 3px solid var(--accent);
  border-top: 3px solid var(--accent);
  transform: rotate(-45deg);
  z-index: -1;
}

.mega-submenu.open {
  max-height: 600px;
  opacity: 1;
  transform: translateX(0);
}

.mega-submenu ul {
  list-style: none;
  padding: var(--space-3);
  margin: 0;
}

.mega-submenu a {
  display: block;
  padding: clamp(8px, 1vw, 10px) clamp(12px, 1.4vw, 16px);
  font-size: var(--text-sm);
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.mega-submenu a:hover {
  color: var(--accent);
  background: var(--bg-light);
  padding-left: var(--space-5);
}

.mega-submenu a::before {
  content: '→';
  color: var(--accent);
  margin-right: var(--space-2);
  font-size: var(--text-xs);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mega-submenu a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color var(--transition), background-color var(--transition), color var(--transition);
}

.header-phone:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius);
  transition: background-color var(--transition-fast);
}

.nav-toggle:hover {
  background: var(--bg-light);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  margin: 5px 0;
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast), opacity var(--transition-fast), background-color var(--transition-fast);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: clamp(10px, 1.2vw, 14px) clamp(20px, 2.5vw, 32px);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--text-sm);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
  position: relative;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
  min-height: 44px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-light {
  background: #fff;
  color: var(--primary);
}

.btn-light:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(232,163,61,0.3);
}

.btn-accent:hover {
  box-shadow: 0 6px 24px rgba(232,163,61,0.4);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  background-image:
    linear-gradient(135deg, rgba(15, 42, 67, 0.85) 0%, rgba(26, 58, 92, 0.9) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0%25' stop-color='%230f2a43'/%3E%3Cstop offset='100%25' stop-color='%231a3a5c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1200' height='600' fill='url(%23g)'/%3E%3Cg fill='none' stroke='%23e8a33d' stroke-opacity='0.04'%3E%3Ccircle cx='200' cy='150' r='80'/%3E%3Ccircle cx='1000' cy='100' r='60'/%3E%3Ccircle cx='600' cy='400' r='100'/%3E%3Ccircle cx='300' cy='350' r='50'/%3E%3Ccircle cx='900' cy='450' r='70'/%3E%3C/g%3E%3Cpath d='M100 500 L200 400 L300 450 L400 350 L500 420 L600 300 L700 380 L800 280 L900 350 L1000 250 L1100 330 L1200 230 L1200 600 Z' fill='%23e8a33d' fill-opacity='0.03'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: clamp(44px, 8vw, 44px) 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(480px, 70vh, 720px);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: min(600px, 80vw);
  height: min(600px, 80vw);
  background: radial-gradient(circle, rgba(232,163,61,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: min(400px, 60vw);
  height: min(400px, 60vw);
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: heroGlow 10s ease-in-out 2s infinite;
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  width: 100%;
}

.hero h1 {
  color: #fff;
  max-width: 750px;
  font-size: var(--text-5xl);
  line-height: 1.15;
  margin-bottom: var(--space-6);
  animation: heroTitleIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 span {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero h1 span::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: left;
  animation: heroUnderline 0.6s ease 0.8s forwards;
}

.hero p.lead {
  color: rgba(255,255,255,0.95);
  font-size: var(--text-xl);
  max-width: 680px;
  margin-bottom: var(--space-6);
  font-weight: 500;
  animation: heroContentIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero p {
  color: rgba(255,255,255,0.85);
  max-width: 680px;
  font-size: var(--text-base);
  line-height: 1.8;
  animation: heroContentIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-10);
  animation: heroContentIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.hero-buttons .btn {
  min-width: 180px;
  font-size: var(--text-base);
  padding: clamp(12px, 1.4vw, 16px) clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.hero-buttons .btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(232,163,61,0.35);
}

.hero-buttons .btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 28px rgba(232,163,61,0.45);
}

.hero-buttons .btn-light {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}

.hero-buttons .btn-light:hover {
  background: rgba(255,255,255,0.2);
  border-color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* === Page Hero (inner pages) === */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  background-image:
    linear-gradient(135deg, rgba(15, 42, 67, 0.88) 0%, rgba(26, 58, 92, 0.92) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0%25' stop-color='%230f2a43'/%3E%3Cstop offset='100%25' stop-color='%231a3a5c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1200' height='600' fill='url(%23g)'/%3E%3Cg fill='none' stroke='%23e8a33d' stroke-opacity='0.04'%3E%3Ccircle cx='200' cy='150' r='80'/%3E%3Ccircle cx='1000' cy='100' r='60'/%3E%3Ccircle cx='600' cy='400' r='100'/%3E%3Ccircle cx='300' cy='350' r='50'/%3E%3Ccircle cx='900' cy='450' r='70'/%3E%3C/g%3E%3Cpath d='M100 500 L200 400 L300 450 L400 350 L500 420 L600 300 L700 380 L800 280 L900 350 L1000 250 L1100 330 L1200 230 L1200 600 Z' fill='%23e8a33d' fill-opacity='0.03'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: clamp(36px, 5vw, 64px) 0;
  margin-bottom: clamp(24px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(232,163,61,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero h1 {
  color: #fff;
  max-width: 800px;
  margin-bottom: var(--space-3);
  animation: heroTitleIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-hero p {
  color: rgba(255,255,255,0.9);
  font-size: var(--text-lg);
  max-width: 700px;
  animation: heroContentIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

/* Breadcrumb */
.breadcrumb {
  font-size: var(--text-xs);
  margin-bottom: var(--space-4);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  animation: heroContentIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.breadcrumb a {
  color: var(--accent);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span[aria-hidden="true"] {
  margin: 0 var(--space-1);
}

.breadcrumb .current {
  color: rgba(255,255,255,0.85);
}

/* === Sections === */
.section {
  transform: translateY(-50px);
}

.section-alt {
  background: var(--bg-light);
  padding: var(--section-padding) 0;
}

.section-sm {
  padding: clamp(24px, 4vw, 48px) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-12);
  animation: fadeInUp 0.6s ease both;
}

.section-title h2 {
  display: inline-block;
}

.section-title h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-title p {
  max-width: 640px;
  margin: var(--space-4) auto 0;
  font-size: var(--text-lg);
  color: var(--text-muted);
}

/* === Services Grid === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--grid-gap);
  margin-top: var(--space-8);
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease both;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: clamp(44px, 5vw, 56px);
  height: clamp(44px, 5vw, 56px);
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin-bottom: var(--space-4);
  transition: transform var(--transition), background-color var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
  background: var(--accent);
}

.service-card h3 {
  margin-top: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  margin-bottom: var(--space-3);
}

.service-card h3 a {
  color: var(--text-dark);
  transition: color var(--transition-fast);
}

.service-card h3 a:hover {
  color: var(--accent);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--text-body);
  margin-bottom: var(--space-4);
}

.service-card-links {
  list-style: none;
}

.service-card-links li {
  margin-bottom: var(--space-2);
}

.service-card-links a {
  font-size: var(--text-sm);
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.service-card-links a::before {
  content: '→';
  color: var(--accent);
  transition: transform var(--transition-fast);
}

.service-card-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

/* === Feature List === */
.feature-list {
  list-style: none;
  margin: var(--space-4) 0;
}

.feature-list li {
  padding: var(--space-3) 0;
  padding-left: var(--space-8);
  position: relative;
  border-bottom: 1px solid var(--border);
  transition: padding-left var(--transition-fast), background-color var(--transition-fast);
  border-radius: var(--radius-sm);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '\2713';
  position: absolute;
  left: var(--space-2);
  color: var(--accent);
  font-weight: 700;
  font-size: var(--text-base);
}

.feature-list li:hover {
  padding-left: var(--space-10);
  background: var(--bg-light);
}

/* === CTA Block === */
.cta-block {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: clamp(40px, 6vw, 80px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232,163,61,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-block h2 {
  color: #fff;
}

.cta-block h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.cta-block p {
  color: rgba(255,255,255,0.9);
  max-width: 680px;
  margin: 0 auto var(--space-8);
  font-size: var(--text-lg);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.cta-phone {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--accent);
  display: inline-block;
  margin-top: var(--space-4);
  transition: color var(--transition), transform var(--transition);
}

.cta-phone:hover {
  color: #fff;
  transform: scale(1.05);
}

/* === Footer === */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding-top: clamp(32px, 5vw, 64px);
  margin-top: auto;
  flex-shrink: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: clamp(20px, 4vw, 40px);
  padding-bottom: clamp(24px, 4vw, 40px);
}

.footer-col h4 {
  color: #fff;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  padding-bottom: var(--space-2);
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--space-2);
}

.footer-col a {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-sm);
  display: inline-block;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-nap p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  color: rgba(255,255,255,0.75);
}

.footer-phone {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--accent);
  display: inline-block;
  margin-bottom: var(--space-4);
}

.footer-phone:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.social-link {
  width: clamp(34px, 4vw, 40px);
  height: clamp(34px, 4vw, 40px);
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: var(--text-sm);
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.social-link:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-4) 0;
  font-size: var(--text-xs);
  text-align: center;
  color: rgba(255,255,255,0.5);
}

/* === Content Area === */
.content-area {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--space-4) 0 var(--space-12);
}

.content-area h2 {
  margin-top: 1.5em;
}

.content-area ul,
.content-area ol {
  margin: var(--space-4) 0;
}

.content-area li {
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

.content-area section {
  margin-bottom: var(--space-8);
  animation: fadeInUp 0.6s ease both;
}

/* === FAQ === */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  background: var(--bg-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

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

.faq-item.open {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.faq-q {
  padding: var(--space-4) var(--space-6);
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  transition: background-color var(--transition-fast);
}

.faq-q:hover {
  background: var(--bg-light);
}

.faq-q::after {
  content: '+';
  font-size: var(--text-2xl);
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  line-height: 1;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 var(--space-6);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: var(--text-sm);
}

.faq-item.open .faq-a {
  max-height: 500px;
  padding-bottom: var(--space-6);
}

/* === Service Area Table === */
.area-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--space-6) 0;
  font-size: var(--text-sm);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.area-table th {
  background: var(--primary);
  color: #fff;
  text-align: left;
  padding: clamp(10px, 1.2vw, 14px) clamp(12px, 1.5vw, 18px);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.area-table td {
  padding: clamp(10px, 1.2vw, 14px) clamp(12px, 1.5vw, 18px);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition-fast);
}

.area-table tr:nth-child(even) {
  background: var(--bg-light);
}

.area-table tr:hover td {
  background: var(--accent-light);
}

.area-table tr:last-child td {
  border-bottom: none;
}

/* === Reviews === */
.review-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.review-stars {
  color: var(--accent);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  letter-spacing: 2px;
}

.review-text {
  font-style: italic;
  color: var(--text-body);
  margin-bottom: var(--space-4);
}

.review-author {
  font-weight: 600;
  color: var(--primary);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.review-author::before {
  content: '';
  width: 32px;
  height: 32px;
  background: var(--accent-light);
  border-radius: var(--radius-full);
}

/* === Contact Form === */
.contact-form {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.contact-form:hover {
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: clamp(12px, 1.5vw, 14px) clamp(14px, 2vw, 18px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
  background: var(--bg-white);
  color: var(--text-dark);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--secondary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,163,61,0.15);
  background: var(--bg-white);
}

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

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

.contact-info-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
  text-align: center;
  margin-bottom: var(--space-5);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.contact-info-icon {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: var(--space-3);
}

.contact-info-card h3 {
  margin-top: 0;
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.contact-info-card p {
  font-size: var(--text-sm);
  margin-bottom: 0;
  color: var(--text-muted);
}

.contact-info-card a {
  font-weight: 600;
  color: var(--primary);
}

/* === Related Services === */
.related-services {
  background: var(--bg-light);
  padding: var(--section-padding) 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--grid-gap);
  margin-top: var(--space-6);
}

.related-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: var(--space-6);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.related-card h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
  margin-top: 0;
}

.related-card p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.related-card a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap var(--transition-fast);
}

.related-card a:hover {
  color: var(--primary);
  gap: var(--space-3);
}

/* === 404 Page === */
.error-page {
  text-align: center;
  padding: clamp(48px, 8vw, 120px) var(--space-4);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-page .error-code {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-page h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.error-page p {
  max-width: 500px;
  margin: 0 auto var(--space-8);
  color: var(--text-muted);
}

.error-page .btn {
  margin: var(--space-2);
}

/* === Hub Pages === */
.hub-intro {
  font-size: var(--text-lg);
  max-width: 800px;
  margin-bottom: var(--space-8);
  color: var(--text-body);
}

.hub-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--grid-gap);
  margin: var(--space-8) 0;
}

.hub-service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.hub-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.hub-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.hub-service-card:hover::before {
  transform: scaleX(1);
}

.hub-service-card h3 {
  margin-top: 0;
  font-size: var(--text-lg);
}

.hub-service-card h3 a {
  color: var(--primary);
  transition: color var(--transition-fast);
}

.hub-service-card h3 a:hover {
  color: var(--accent);
}

.hub-service-card p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.hub-service-card .learn-more {
  font-weight: 600;
  color: var(--accent);
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.hub-service-card .learn-more:hover {
  color: var(--primary);
  gap: var(--space-3);
}

/* === Testimonials Grid === */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--grid-gap);
  margin-top: var(--space-8);
}

/* === Two Column === */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

/* === Stats Bar === */
.stats-bar {
  background: var(--primary);
  color: #fff;
  padding: clamp(24px, 4vw, 48px) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: var(--grid-gap);
  text-align: center;
}

.stat-number {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.stat-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
}

/* === Animations === */
@keyframes heroTitleIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes heroUnderline {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Scroll-triggered animations */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* === Skip Link (Accessibility) === */
.skip-link {
  position: absolute;
  top: -48px;
  left: var(--space-4);
  background: var(--primary);
  color: #fff;
  padding: var(--space-3) var(--space-6);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 2000;
  transition: top var(--transition-fast);
  font-weight: 600;
  font-size: var(--text-sm);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* === Mobile Call Bar === */
.mobile-call-bar {
  display: none;
}

/* === Call Hint Text === */
.call-hint {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.75);
  margin-top: var(--space-4);
  max-width: 680px;
  line-height: 1.5;
}

.call-hint strong {
  color: var(--accent);
}

/* === Back to Top Button === */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--accent);
  border: none;
  cursor: pointer;
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background-color var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .back-to-top {
    bottom: var(--space-4);
    right: var(--space-4);
    width: 42px;
    height: 42px;
    font-size: var(--text-lg);
  }
}

/* === Focus Visible === */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* === Utility Classes === */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-white { color: #fff; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.font-bold { font-weight: 700; }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.d-none { display: none; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

/* Responsive Image */
.img-rounded {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.img-landscape {
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.img-landscape:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Large screens - 2K / 4K */
@media (min-width: 1920px) {
  :root {
    --container: 1400px;
  }

  html {
    font-size: 17px;
  }
}

@media (min-width: 2560px) {
  :root {
    --container: 1600px;
  }

  html {
    font-size: 18px;
  }
}

/* Desktop - Small Laptops */
@media (max-width: 1280px) {
  .mega-menu {
    min-width: 300px;
  }
  
  .nav-list {
    gap: 0;
  }
  
  .main-nav a {
    padding: 10px 14px;
    font-size: 0.95rem;
  }
  
  .header-phone {
    font-size: 0.9rem;
  }
}

@media (max-width: 1024px) {
  .mega-menu {
    min-width: 280px;
  }

  .main-nav a {
    padding: 10px 12px;
    font-size: var(--text-sm);
  }

  .header-phone {
    display: none;
  }
}

/* iPad / Tablet */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .topbar .container {
    justify-content: center;
    text-align: center;
  }

  .topbar-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
  }

  .nav-toggle {
    display: block;
    order: 3;
  }

  .header-inner {
    flex-wrap: wrap;
    /* 12px vertical padding so the header doesn't feel cramped on mobile */
    padding: var(--space-3) 0;
    height: auto;
    min-height: var(--header-height);
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: none;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .main-nav.open {
    display: block;
    animation: fadeIn 0.2s ease both;
  }

  .nav-list {
    flex-direction: column;
    /* 16px outer padding + 8px gap so stacked nav items don't touch */
    padding: var(--space-4);
    gap: var(--space-2);
  }

  .main-nav a {
    /* 12px vertical / 20px horizontal for comfortable touch targets */
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius);
    font-size: var(--text-base);
  }

  .main-nav a:hover,
  .main-nav a.active {
    background: var(--bg-light);
  }

  .main-nav a::after {
    display: none;
  }

  .has-mega {
    position: static;
  }

  .mega-menu {
    position: static;
    transform: none;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-shadow: none;
    /* 12px padding so menu content doesn't hug the edges */
    padding: var(--space-3);
    display: none;
    border-top: none;
    border-left: 3px solid var(--accent);
    margin-left: 0;
    border-radius: var(--radius);
    background: var(--bg-light);
    visibility: visible;
    opacity: 1;
    overflow: hidden;
    overflow-x: hidden;
  }

  .has-mega.open .mega-menu {
    display: block;
    animation: fadeIn 0.2s ease both;
  }

  /* Match the (0,3,0) specificity of the desktop centering rules so the
     mobile transform:none reset wins and the menu isn't shoved off-screen */
  .has-mega:hover .mega-menu,
  .has-mega:focus-within .mega-menu,
  .has-mega.open .mega-menu {
    transform: none;
  }

  .mega-categories {
    /* 4px vertical padding + 4px gap so stacked category buttons breathe */
    padding: var(--space-1) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
  }

  .mega-category-btn {
    min-height: 48px;
    font-size: var(--text-base);
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* Submenu opens inline on mobile (accordion style) */
  .mega-submenu {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    /* 12px bottom margin so submenus don't stick to the next element */
    margin: 0 0 var(--space-3);
    border-left: 3px solid var(--accent);
    border-right: none;
    border-radius: var(--radius);
    box-shadow: none;
    background: var(--bg-white);
    overflow: hidden;
    overflow-x: hidden;
  }

  .mega-submenu::before {
    display: none;
  }

  .mega-submenu.open {
    transform: none;
    max-height: 600px;
    opacity: 1;
  }

  .mega-submenu ul {
    /* 12px padding so submenu links don't touch the panel edges */
    padding: var(--space-3);
  }

  .mega-submenu a {
    min-height: 44px;
    font-size: var(--text-base);
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    /* 4px gap between stacked submenu links */
    margin-bottom: var(--space-1);
  }

  .mega-submenu a:last-child {
    margin-bottom: 0;
  }

  .header-phone {
    display: flex;
    font-size: var(--text-xs);
    padding: var(--space-2);
  }

  /* Mobile sticky call bar */
  .mobile-call-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: var(--text-base);
    padding: var(--space-4) var(--space-6);
    text-align: center;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
    min-height: 56px;
    transition: background-color var(--transition-fast), color var(--transition-fast);
  }

  .mobile-call-bar:hover {
    background: var(--accent-dark);
    color: var(--primary-dark);
  }

  .mobile-call-bar:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: -3px;
  }

  /* Add bottom padding to body so footer isn't hidden behind the call bar */
  body {
    padding-bottom: 56px;
  }

  /* Adjust back-to-top button so it doesn't overlap the call bar */
  .back-to-top {
    bottom: calc(var(--space-6) + 56px);
  }

  .hero-buttons {
    width: 100%;
    /* 12px gap so buttons don't touch when they wrap */
    gap: var(--space-3);
  }

  .hero-buttons .btn {
    flex: 1 1 auto;
    /* allow buttons to shrink so they never overflow the screen */
    min-width: 0;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  /* Give regular sections vertical breathing room so they don't blend
     into each other on mobile (desktop keeps its own spacing) */
  .section {
    padding: var(--space-6) 0;
  }

  .section-sm {
    padding: var(--space-4) 0;
  }
}

/* Small phones - 414px */
@media (max-width: 414px) {
  :root {
    --header-height: 60px;
    --section-padding: 40px;
  }

  .hero {
    padding: 40px 0 48px;
  }

  .hero h1 {
    font-size: var(--text-3xl);
  }

  .page-hero {
    padding: 32px 0 40px;
  }

  .section-title {
    margin-bottom: var(--space-8);
  }

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

  .cta-block h2 {
    font-size: var(--text-2xl);
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .area-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .area-table th,
  .area-table td {
    padding: 8px 12px;
    font-size: var(--text-xs);
    white-space: nowrap;
  }
}

/* 390px */
@media (max-width: 390px) {
  .hero-buttons .btn {
    min-width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .header-phone {
    display: none;
  }
}

/* 375px */
@media (max-width: 375px) {
  :root {
    --section-padding: 36px;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .logo-text small {
    display: none;
  }

  .btn {
    font-size: var(--text-xs);
    padding: 12px 20px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

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

/* 360px */
@media (max-width: 360px) {
  .container {
    padding: 0 14px;
  }

  .logo {
    font-size: 0.95rem;
  }

  .hero-buttons {
    gap: var(--space-3);
  }
}

/* 320px - Smallest */
@media (max-width: 320px) {
  :root {
    --section-padding: 32px;
  }

  .logo {
    font-size: 0.85rem;
  }

  .logo-icon {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: var(--text-sm);
  }

  .btn {
    font-size: var(--text-xs);
    padding: 10px 16px;
  }

  .service-card {
    padding: var(--space-5);
  }

  .hub-service-card {
    padding: var(--space-5);
  }

  .faq-q {
    padding: var(--space-4);
  }

  .faq-a {
    padding: 0 var(--space-4);
  }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 30px 0;
  }

  .hero h1 {
    font-size: var(--text-2xl);
  }

  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .topbar,
  .site-header,
  .site-footer,
  .cta-block,
  .related-services,
  .hero-buttons,
  .btn,
  .nav-toggle,
  .skip-link {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.6;
    color: #000;
    background: #fff;
  }

  .page-hero {
    background: none;
    color: #000;
    padding: 0;
    margin-bottom: 20px;
  }

  .page-hero h1 {
    color: #000;
    font-size: 24pt;
  }

  h2, h3, h4 {
    color: #000;
    page-break-after: avoid;
  }

  p, li {
    page-break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .section, .section-alt {
    padding: 20px 0;
  }
}