/* ============================================
   ART Computer — Design System & Styles
   Dark-mode-first | Vanilla CSS
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Background */
  --bg-base: #0D1117;
  --bg-raised: #161B22;
  --bg-elevated: #21262D;
  --border: #30363D;

  /* Brand */
  --primary: #2563EB;
  --primary-hover: #3B82F6;
  --primary-subtle: #1E3A5F;
  --secondary: #06B6D4;
  --accent: #14B8A6;
  --gradient: linear-gradient(135deg, #2563EB, #06B6D4);
  --gradient-hover: linear-gradient(135deg, #3B82F6, #22D3EE);

  /* Text */
  --text-primary: #E6EDF3;
  --text-secondary: #8B949E;
  --text-muted: #6E7681;
  --text-link: #58A6FF;

  /* Status */
  --success: #2EA043;
  --warning: #D29922;
  --error: #F85149;
  --info: #58A6FF;

  /* Accents */
  --gold: #F0B429;
  --urgency: #E63946;

  /* Spacing & Layout */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --nav-height: 72px;
  --max-width: 1100px;

  /* Effects */
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --transition: 0.2s ease;

  /* Glass */
  --glass-bg: rgba(22, 27, 34, 0.6);
  --glass-border: rgba(255, 255, 255, 0.06);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 700;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.8rem; margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1em;
  line-height: 1.7;
}
p:last-child { margin-bottom: 0; }

.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mb-0 { margin-bottom: 0; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section--dark {
  background: var(--bg-raised);
}

.section--alt {
  background: var(--bg-elevated);
}

.section--gradient {
  background: var(--gradient);
}

/* --- Section Dividers --- */
.section--dark::before,
.section--alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), rgba(6, 182, 212, 0.3), transparent);
}

.section--dark::after,
.section--alt::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.15), transparent);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section__header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 12px;
  line-height: 1.7;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
  padding: 4px 14px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 100px;
}

/* --- Loader --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loaded .loader { display: none; }

.loader__logo {
  width: 240px;
  opacity: 0;
  filter: brightness(1.8) contrast(0.95);
  animation: loaderPush 2.5s ease forwards;
}

.loader__text {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  opacity: 0;
  animation: loaderPush 2.5s ease forwards;
}

@keyframes loaderPush {
  0%   { opacity: 0; transform: scale(0.8); }
  15%  { opacity: 1; transform: scale(0.8); }
  70%  { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition), background var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  background: rgba(22, 27, 34, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
}

.header__logo img {
  height: 40px;
  width: auto;
  position: relative;
  z-index: 1;
}

/* --- Logo Glow Effect --- */
.header__logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, rgba(6, 182, 212, 0.15) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(12px);
  animation: logoGlow 4s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes logoGlow {
  0%, 100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.9);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

/* --- Navigation --- */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav__link.active {
  color: var(--primary-hover);
}

.nav__cta {
  background: var(--primary);
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-left: 8px;
}

.nav__cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

/* --- Hamburger Toggle --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
  transition: transform 0.08s ease;
}

.btn--gradient {
  background: var(--gradient);
  color: #fff;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn--gradient:hover {
  opacity: 0.92;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
  color: #fff;
}

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

.btn--primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
  color: #fff;
}

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

.btn--outline:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.06);
  color: var(--text-primary);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
}

.btn--white {
  background: #fff;
  color: var(--bg-base);
}

.btn--white:hover {
  background: #f0f0f0;
  color: var(--bg-base);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.btn--sm {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.btn--lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

.btn--phone {
  background: var(--urgency);
  color: #fff;
}

.btn--phone:hover {
  background: #d32f3f;
  box-shadow: 0 4px 24px rgba(230, 57, 70, 0.35);
  color: #fff;
}

/* --- Hero --- */
.hero {
  margin-top: var(--nav-height);
  padding: 80px 0 72px;
  background: linear-gradient(rgba(10, 15, 28, 0.78), rgba(10, 15, 28, 0.85)), url('../images/hero-tech.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroOrbFloat 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroOrbFloat 8s ease-in-out infinite 4s;
}

@keyframes heroOrbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -15px); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.4em;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero__subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2em;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero__trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.trust-badge:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.trust-badge svg {
  width: 16px;
  height: 16px;
  stroke: var(--secondary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.trust-badge--gold svg {
  stroke: var(--gold);
  fill: var(--gold);
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- Card Redesign (Glass-morphism + Glow borders) --- */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Subtle top accent border */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

/* Hover glow outline */
.card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(6, 182, 212, 0.4));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(1px);
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12), 0 4px 16px rgba(0, 0, 0, 0.3);
  border-color: rgba(37, 99, 235, 0.3);
}

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

.card:hover::after {
  opacity: 1;
}

.card__icon {
  width: 56px;
  height: 56px;
  background: var(--gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover .card__icon {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.35);
}

.card__icon svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* --- Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.1), 0 4px 16px rgba(0, 0, 0, 0.25);
  border-color: rgba(37, 99, 235, 0.2);
}

/* Connecting line between steps (desktop) */
.step::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -16px;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.4), rgba(6, 182, 212, 0.4));
  transform: translateY(-50%);
  pointer-events: none;
}

.step:last-child::after {
  display: none;
}

.step__number {
  width: 56px;
  height: 56px;
  background: var(--gradient);
  border: none;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 20px;
  position: relative;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover .step__number {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37, 99, 235, 0.4);
}

.step h3 {
  margin-bottom: 8px;
}

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

/* --- Values / Why Choose Us --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Gradient top-border accent */
.value::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.value:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.1), 0 4px 16px rgba(0, 0, 0, 0.25);
  border-color: rgba(37, 99, 235, 0.25);
}

.value:hover::before {
  opacity: 1;
}

.value__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--secondary);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.12);
  border-radius: 50%;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.value:hover .value__icon {
  background: rgba(6, 182, 212, 0.14);
  border-color: rgba(6, 182, 212, 0.25);
  transform: scale(1.1);
}

.value__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--secondary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 0.3s ease;
}

.value:hover .value__icon svg {
  transform: scale(1.1);
}

.value h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.value p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
}

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

.testimonial {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(37, 99, 235, 0.08);
  border-left-color: var(--secondary);
}

/* Large decorative quote mark */
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 4rem;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.15;
  pointer-events: none;
}

.testimonial__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.testimonial__stars svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
  stroke: var(--gold);
  stroke-width: 1;
}

.testimonial__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 16px;
}

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

.testimonial__location {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* --- Service Area --- */
.area-cities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.area-city {
  padding: 8px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.area-city:hover {
  border-color: var(--primary);
  color: var(--text-primary);
  background: rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
}

/* --- CTA Section --- */
.cta-section {
  padding: 80px 0;
  background: var(--gradient);
  background-size: 200% 200%;
  animation: ctaGradientFlow 6s ease infinite;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@keyframes ctaGradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* CTA grid pattern overlay */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* CTA subtle grid lines */
.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.cta-section > .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 12px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.cta-section .btn { margin: 0 8px; }

/* --- Footer --- */
.footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 48px 0 24px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), rgba(6, 182, 212, 0.3), transparent);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer__top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.footer__brand {
  text-align: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.footer__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.footer__logo img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.footer__logo span {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.footer__brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

.footer__col h4,
.footer__heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: block;
}

.footer__col ul { list-style: none; }

.footer__col li {
  margin-bottom: 8px;
}

.footer__col a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color var(--transition), padding-left 0.3s ease;
}

.footer__col a:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

.footer__nap {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 12px;
}

.footer__nap strong {
  color: var(--text-primary);
}

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

.footer__nap a:hover {
  color: var(--primary-hover);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  margin-top: 24px;
}

.footer__copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__family {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__family span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}

.footer__family ul {
  display: flex;
  gap: 16px;
  list-style: none;
}

.footer__family li {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__family a {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer__family a:hover {
  color: var(--text-primary);
}

/* --- Page Header (for sub-pages) — Enhanced with depth --- */
.page-header {
  margin-top: var(--nav-height);
  padding: 64px 0;
  background: var(--bg-raised);
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Mesh gradient effect for page headers */
.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.07) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

/* Subtle bottom gradient line */
.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Page header background image variants */
.page-header--bg {
  background-size: cover;
  background-position: center;
  padding: 80px 0;
}

.page-header--bg::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 17, 23, 0.93) 0%,
    rgba(13, 17, 23, 0.82) 40%,
    rgba(37, 99, 235, 0.12) 100%
  );
  border-radius: 0;
  pointer-events: none;
}

.page-header--bg::after {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  bottom: auto;
  background: radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.page-header--bg p {
  color: var(--text-primary);
  opacity: 0.85;
}

.page-header--tech {
  background-image: url('../images/hero-tech.jpg');
}

.page-header--about {
  background-image: url('../images/hero-about.jpg');
  background-position: center 30%;
}

.page-header--office {
  background-image: url('../images/hero-services.jpg');
  background-position: center 40%;
}

/* --- Form Styles --- */
.form__group { margin-bottom: 20px; }

.form__label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  background: rgba(33, 38, 45, 0.8);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-raised);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    overflow-y: auto;
    border-top: 1px solid var(--border);
  }

  .nav.open { display: flex; }

  .nav__link {
    font-size: 1.05rem;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    width: 100%;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: 12px;
    text-align: center;
    width: 100%;
    padding: 14px 24px;
  }

  .nav-toggle { display: flex; }

  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 2.2rem; }
  .hero__subtitle { font-size: 1rem; }

  .section { padding: 56px 0; }

  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }

  .footer__top {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__family {
    justify-content: center;
  }

  .cta-section .btn {
    margin: 4px 0;
    width: 100%;
  }

  /* Disable parallax on mobile for performance */
  .hero::before,
  .hero::after {
    animation: none;
  }

  .page-header::before,
  .page-header::after {
    display: none;
  }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.85rem; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; }
  .values-grid { grid-template-columns: 1fr; }
  .hero__trust { flex-direction: column; align-items: center; }

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

  /* Reduce logo glow on small screens */
  .header__logo::before {
    width: 50px;
    height: 50px;
    animation: none;
    opacity: 0.4;
  }
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .loader__logo, .loader__text { animation: none; opacity: 1; }
  .header__logo::before { animation: none; }
  .btn--gradient { animation: none; }
  .cta-section { animation: none; }
  .hero::before, .hero::after { animation: none; }
  .value, .step, .faq__item, .contact-card { transition: none; }
  .value:hover, .step:hover, .contact-card:hover { transform: none; }
}

/* --- Breadcrumbs --- */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--text-link);
}

.breadcrumb__sep {
  color: var(--text-muted);
  font-size: 0.75rem;
  opacity: 0.5;
}

/* --- FAQ Accordion --- */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

/* Center headings above card grids, value grids, steps, FAQs, city grids */
.container:has(> .card-grid) > h2,
.container:has(> .values-grid) > h2,
.container:has(> .steps) > h2,
.container:has(> .faq) > h2,
.container:has(> .city-grid) > h2,
.container:has(> .testimonial-grid) > h2,
.container:has(> .area-cities) > h2,
.section__header h2 {
  text-align: center;
}

.faq__item {
  border: 1px solid var(--glass-border);
  border-left: 3px solid transparent;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
}

.faq__item:hover {
  border-color: rgba(37, 99, 235, 0.2);
}

.faq__item[open] {
  border-color: rgba(37, 99, 235, 0.25);
  border-left-color: var(--primary);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08), 0 2px 12px rgba(0, 0, 0, 0.2);
  background: rgba(22, 27, 34, 0.75);
}

.faq__item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background var(--transition), box-shadow 0.3s ease;
}

.faq__item summary:hover {
  background: rgba(37, 99, 235, 0.04);
  box-shadow: inset 0 0 30px rgba(37, 99, 235, 0.03);
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.faq__item[open] summary::after {
  content: '\2212';
  color: var(--secondary);
}

.faq__answer {
  padding: 0 24px 18px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* --- Service Detail Layout --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.service-detail__content h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.service-detail__content p {
  color: var(--text-secondary);
  line-height: 1.75;
}

.service-detail__sidebar {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

/* Gradient top-border accent for sidebar */
.service-detail__sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0.6;
}

.service-detail__sidebar h3 {
  margin-bottom: 20px;
}

/* --- Service List (checkmarks) --- */
.service-list {
  list-style: none;
}

.service-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Map Embed --- */
.map-embed {
  width: 100%;
  height: 500px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 24px 0;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(90%) hue-rotate(180deg) brightness(1.1) contrast(0.9);
}

/* Leaflet map overrides */
.map-embed .leaflet-control-attribution {
  background: rgba(13, 17, 23, 0.75) !important;
  color: var(--text-muted) !important;
  font-size: 0.7rem;
}

.map-embed .leaflet-control-attribution a {
  color: var(--text-muted) !important;
}

.map-embed .leaflet-control-zoom a {
  background: var(--bg-raised) !important;
  color: var(--text-primary) !important;
  border-color: var(--border) !important;
}

.map-embed .leaflet-control-zoom a:hover {
  background: var(--bg-elevated) !important;
}

/* Map legend */
.map-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.map-legend__swatch {
  width: 20px;
  height: 14px;
  background: rgba(37, 99, 235, 0.25);
  border: 2px solid #2563EB;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Custom map markers */
.map-marker__dot {
  width: 14px;
  height: 14px;
  background: var(--primary);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
}

.map-marker__dot--home {
  width: 18px;
  height: 18px;
  background: var(--secondary);
  border: 2px solid #fff;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.6), 0 0 24px rgba(6, 182, 212, 0.3);
}

/* Map tooltips */
.map-tooltip {
  background: var(--bg-raised) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  padding: 6px 12px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.map-tooltip::before {
  border-top-color: var(--bg-raised) !important;
}

.map-tooltip--home {
  background: var(--bg-elevated) !important;
  border-color: var(--secondary) !important;
  color: var(--secondary) !important;
  font-weight: 600 !important;
}

/* --- Review Cards (reviews page) --- */
.review-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* Large quote mark for review cards */
.review-card::after {
  content: '\201C';
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 3.5rem;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.12;
  pointer-events: none;
}

.review-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.review-card__stars {
  display: flex;
  gap: 2px;
}

.review-card__stars svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
  stroke: var(--gold);
  stroke-width: 1;
}

.review-card__source {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 4px 12px;
  background: var(--bg-elevated);
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.review-card__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 16px;
  font-style: italic;
}

.review-card__author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.review-card__date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Two Column Content --- */
.content-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* --- Contact Info Cards --- */
.contact-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Gradient top-border accent */
.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12), 0 4px 16px rgba(0, 0, 0, 0.3);
  border-color: rgba(37, 99, 235, 0.3);
}

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

.contact-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.12);
  border-radius: 50%;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.contact-card:hover .contact-card__icon {
  background: rgba(6, 182, 212, 0.14);
  border-color: rgba(6, 182, 212, 0.25);
  transform: scale(1.1);
}

.contact-card__icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--secondary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.contact-card h3 { margin-bottom: 8px; }

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Form Status Messages --- */
.form__status {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 16px;
  display: none;
}

.form__status--success {
  display: block;
  background: rgba(46, 160, 67, 0.15);
  border: 1px solid var(--success);
  color: var(--success);
}

.form__status--error {
  display: block;
  background: rgba(248, 81, 73, 0.15);
  border: 1px solid var(--error);
  color: var(--error);
}

/* --- City Grid (for service area hub) --- */
.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.city-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  display: block;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Top accent */
.city-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.city-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12), 0 4px 16px rgba(0, 0, 0, 0.3);
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--text-primary);
}

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

.city-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.city-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* --- Service Hub Cards (centered, stacked like homepage cards) --- */
.service-hub-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-decoration: none;
  color: var(--text-primary);
  display: block;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Top accent border */
.service-hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

/* Hover glow outline */
.service-hub-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(6, 182, 212, 0.4));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(1px);
}

.service-hub-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12), 0 4px 16px rgba(0, 0, 0, 0.3);
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--text-primary);
}

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

.service-hub-card:hover::after {
  opacity: 1;
}

.service-hub-card__icon {
  width: 56px;
  height: 56px;
  background: var(--gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-hub-card:hover .service-hub-card__icon {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.35);
}

.service-hub-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.service-hub-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.service-hub-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* --- Legal Pages --- */
.legal {
  max-width: 760px;
  margin: 0 auto;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal p,
.legal li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal ul li {
  margin-bottom: 6px;
}

/* --- 404 Page --- */
.error-page {
  margin-top: var(--nav-height);
  padding: 120px 0 80px;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-page__code {
  font-size: 6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h2 {
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 32px;
}

/* --- About Page --- */
.about-hero {
  margin-top: var(--nav-height);
  padding: 64px 0;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Mesh effect for about hero */
.about-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.about-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.about-hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-hero__highlight {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.about-hero__stat {
  text-align: center;
  padding: 16px;
}

.about-hero__stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-hero__stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* --- ScamEscape Product --- */
.product-hero {
  margin-top: var(--nav-height);
  padding: 64px 0;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.product-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.product-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.product-feature__icon {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.product-feature__icon svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.product-feature h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.product-feature p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* === Resources / Product Cards === */
.product-card {
  display: flex;
  gap: 32px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  transition: border-color 0.3s ease;
}

.product-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.product-card__image {
  flex-shrink: 0;
  width: 280px;
}

.product-card__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
}

.product-card__content {
  flex: 1;
}

.product-card__content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.product-card__content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-card__content .btn {
  margin-top: 4px;
}

/* Resources hub cards */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.resource-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.resource-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.resource-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--gradient);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.resource-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resource-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.resource-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* Back link for sub-pages */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--primary);
}

/* Affiliate disclaimer */
.affiliate-disclaimer {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 48px;
}

/* --- Responsive additions --- */
@media (max-width: 768px) {
  .service-detail { grid-template-columns: 1fr; gap: 32px; }
  .content-2col { grid-template-columns: 1fr; gap: 24px; }
  .city-grid { grid-template-columns: 1fr; }
  .about-hero__inner { grid-template-columns: 1fr; gap: 32px; }

  /* Product cards stacked on mobile */
  .product-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .product-card__image {
    width: 100%;
    max-width: 300px;
  }

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

  /* Reduce animations on mobile */
  .card:hover,
  .city-card:hover,
  .service-hub-card:hover,
  .value:hover,
  .contact-card:hover {
    transform: translateY(-3px);
  }

  .card::after,
  .service-hub-card::after {
    display: none;
  }

  /* Hide step connecting lines on mobile (stacked layout) */
  .step::after {
    display: none;
  }

  /* Reduce backdrop-filter intensity on mobile for performance */
  .value,
  .step,
  .faq__item {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  /* Simplify CTA grid on mobile */
  .cta-section::after {
    background-size: 60px 60px;
  }
}

@media (max-width: 480px) {
  .map-embed { height: 300px; }

  .page-header h1 {
    font-size: 1.75rem;
  }

  /* Further reduce effects */
  .testimonial::before {
    font-size: 3rem;
  }
}

/* --- Parallax Background Sections (desktop only) --- */
@media (min-width: 769px) {
  .hero {
    background-attachment: fixed;
  }

  .cta-section {
    background-attachment: fixed;
  }
}

/* --- Focus Styles for Accessibility --- */
.btn:focus-visible,
.nav__link:focus-visible,
.nav__cta:focus-visible {
  outline: 2px solid var(--primary-hover);
  outline-offset: 2px;
}

.form__input:focus-visible,
.form__select:focus-visible,
.form__textarea:focus-visible {
  outline: none;
}

.form__disclaimer {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  opacity: 0.7;
  text-align: center;
  line-height: 1.5;
}

.form__disclaimer a {
  color: var(--accent);
  text-decoration: underline;
}

/* ===========================
   Booking Page
   =========================== */
.booking-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 0;
}

.booking-option {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.booking-option:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.booking-option--primary {
  border-color: var(--accent);
  background: rgba(6, 182, 212, 0.04);
}

.booking-option__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.08);
  color: var(--accent);
  margin-bottom: 20px;
}

.booking-option h2 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.booking-option p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* GHL Calendar Embed — Dark Theme Override */
.booking-calendar {
  max-width: 100%;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  min-height: 600px;
}

.booking-calendar iframe {
  width: 100%;
  min-height: 600px;
  display: block;
  color-scheme: dark;
}

/* Booking Modal */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.booking-modal--open {
  visibility: visible;
  opacity: 1;
}

.booking-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.booking-modal__content {
  position: relative;
  width: 90vw;
  max-width: 720px;
  max-height: 90vh;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 24px;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.booking-modal--open .booking-modal__content {
  transform: scale(1);
}

.booking-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #1e293b;
  font-size: 1.75rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
  z-index: 1;
}

.booking-modal__close:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}

.booking-modal__title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.25rem;
  padding-right: 48px;
  color: #1e293b;
}

/* Appointment Confirmation */
.confirmation-icon {
  color: var(--accent);
  margin-bottom: 24px;
  animation: confirmPop 0.5s ease-out;
}

.confirmation-details {
  margin-top: 48px;
  text-align: center;
}

@keyframes confirmPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  .booking-options {
    grid-template-columns: 1fr;
  }

  .booking-modal__content {
    width: 95vw;
    max-height: 95vh;
    padding: 16px;
    border-radius: 12px;
  }
}

/* ===========================
   Leaflet Map Overrides
   =========================== */
.map-embed {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Legend */
.map-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.map-legend__swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  flex-shrink: 0;
}

.map-legend__swatch--blue {
  background: rgba(37, 99, 235, 0.35);
  border: 2px solid #2563EB;
}

.map-legend__swatch--gold {
  background: rgba(240, 180, 41, 0.25);
  border: 2px solid #F0B429;
  margin-left: 12px;
}

/* Marker dots */
.map-marker {
  background: none !important;
  border: none !important;
}

.map-marker__dot {
  width: 14px;
  height: 14px;
  background: #2563EB;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
}

.map-marker__dot--gold {
  background: #F0B429;
  border-color: #fff;
  box-shadow: 0 0 8px rgba(240, 180, 41, 0.6);
}

.map-marker__dot--home {
  width: 18px;
  height: 18px;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.7), 0 0 24px rgba(6, 182, 212, 0.3);
  animation: pulse-home 2s ease-in-out infinite;
}

@keyframes pulse-home {
  0%, 100% { box-shadow: 0 0 12px rgba(6, 182, 212, 0.7), 0 0 24px rgba(6, 182, 212, 0.3); }
  50% { box-shadow: 0 0 18px rgba(6, 182, 212, 0.9), 0 0 36px rgba(6, 182, 212, 0.5); }
}

/* Tooltips */
.map-tooltip {
  background: rgba(15, 23, 42, 0.92) !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 6px !important;
  padding: 6px 12px !important;
  font-size: 0.82rem !important;
  font-family: inherit !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.map-tooltip--home {
  background: rgba(6, 182, 212, 0.15) !important;
  border-color: rgba(6, 182, 212, 0.4) !important;
  color: #06B6D4 !important;
  font-weight: 600 !important;
}

.map-tooltip--label {
  background: rgba(15, 23, 42, 0.75) !important;
  padding: 3px 8px !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.map-tooltip::before {
  border-top-color: rgba(15, 23, 42, 0.92) !important;
}

/* Leaflet control overrides for dark theme */
.leaflet-control-attribution {
  background: rgba(15, 23, 42, 0.7) !important;
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 0.7rem !important;
}

.leaflet-control-attribution a {
  color: rgba(255, 255, 255, 0.5) !important;
}

.leaflet-control-zoom a {
  background: rgba(15, 23, 42, 0.85) !important;
  color: #f1f5f9 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.leaflet-control-zoom a:hover {
  background: rgba(30, 41, 59, 0.95) !important;
}
