/* ============================================
   AVS Painting Inc — Epoxy Flooring
   Design System & Global Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --avs-red: #CC2229;
  --avs-red-dark: #A51B21;
  --avs-red-light: #E8434A;
  --avs-gray: #666666;
  --avs-gray-dark: #444444;
  --avs-near-black: #1A1A2E;
  --avs-light-gray: #F5F5F5;
  --avs-white: #FFFFFF;
  --avs-green: #28A745;
  --avs-green-dark: #218838;

  /* Semantic Colors */
  --text-primary: #1A1A2E;
  --text-secondary: #666666;
  --text-light: #999999;
  --text-on-dark: #FFFFFF;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F5F5;
  --bg-dark: #1A1A2E;
  --border-color: #E0E0E0;
  --shadow-color: rgba(26, 26, 46, 0.1);

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --fs-hero: clamp(2.25rem, 5vw, 3.75rem);
  --fs-h1: clamp(2rem, 4vw, 3rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.25rem);
  --fs-h3: clamp(1.25rem, 2.5vw, 1.5rem);
  --fs-h4: 1.125rem;
  --fs-body: 1rem;
  --fs-body-lg: 1.125rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;
  --lh-heading: 1.2;
  --lh-body: 1.6;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

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

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --nav-height: 80px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26,26,46,0.08);
  --shadow-md: 0 4px 12px rgba(26,26,46,0.1);
  --shadow-lg: 0 8px 30px rgba(26,26,46,0.12);
  --shadow-xl: 0 16px 50px rgba(26,26,46,0.15);
}

/* --- Base Styles --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--avs-red);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--avs-red-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  color: var(--text-primary);
  margin: 0 0 var(--space-md);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
  margin: 0 0 var(--space-md);
}

ul, ol {
  padding-left: var(--space-xl);
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.section-label {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--avs-red);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

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

.bg-light {
  background-color: var(--bg-secondary);
}

.bg-dark {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
}

.bg-dark h2,
.bg-dark h3,
.bg-dark h4 {
  color: var(--text-on-dark);
}

.bg-dark .section-subtitle {
  color: rgba(255,255,255,0.7);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--avs-red);
  color: var(--text-on-dark);
  border-color: var(--avs-red);
}

.btn--primary:hover {
  background-color: var(--avs-red-dark);
  border-color: var(--avs-red-dark);
  color: var(--text-on-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background-color: transparent;
  color: var(--avs-red);
  border-color: var(--avs-red);
}

.btn--secondary:hover {
  background-color: var(--avs-red);
  color: var(--text-on-dark);
  transform: translateY(-2px);
}

.btn--white {
  background-color: var(--avs-white);
  color: var(--avs-red);
  border-color: var(--avs-white);
}

.btn--white:hover {
  background-color: transparent;
  color: var(--avs-white);
  border-color: var(--avs-white);
  transform: translateY(-2px);
}

.btn--phone {
  background-color: var(--avs-green);
  color: var(--text-on-dark);
  border-color: var(--avs-green);
}

.btn--phone:hover {
  background-color: var(--avs-green-dark);
  border-color: var(--avs-green-dark);
  color: var(--text-on-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--lg {
  padding: 1.125rem 2.5rem;
  font-size: var(--fs-body-lg);
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--fs-small);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow var(--transition-base);
}

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

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: var(--fw-extrabold);
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
}

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

.nav__logo-icon {
  width: 40px;
  height: 40px;
}

.nav__logo-img {
  height: 48px;
  width: auto;
}

.nav__logo-text span {
  color: var(--avs-red);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--avs-red);
  transition: width var(--transition-base);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--avs-red);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__phone {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  color: var(--avs-red);
  font-size: var(--fs-small);
}

.nav__phone svg {
  width: 18px;
  height: 18px;
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: linear-gradient(135deg, var(--bg-dark) 0%, #16213E 100%);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  color: var(--text-on-dark);
}

.hero__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--avs-red-light);
  margin-bottom: var(--space-md);
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: var(--fw-extrabold);
  color: var(--text-on-dark);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero__title em {
  font-style: italic;
  color: var(--avs-red-light);
}

.hero__subtitle {
  font-size: var(--fs-body-lg);
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.hero__stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-extrabold);
  color: var(--avs-red-light);
  display: block;
}

.hero__stat-label {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Trust Bar --- */
.trust-bar {
  background-color: var(--avs-red);
  color: var(--text-on-dark);
  padding: var(--space-lg) 0;
}

.trust-bar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xl) var(--space-3xl);
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  white-space: nowrap;
}

.trust-bar__item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* --- Cards --- */
.card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.card__image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background-color: var(--bg-secondary);
}

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

.card__icon {
  width: 48px;
  height: 48px;
  background-color: rgba(204,34,41,0.1);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--avs-red);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-sm);
}

.card__text {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  margin-bottom: var(--space-md);
}

.card__link {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--avs-red);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.card__link:hover svg {
  transform: translateX(4px);
}

/* --- Service Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-xl);
}

/* --- Process Steps --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  counter-reset: step;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step__number {
  width: 60px;
  height: 60px;
  background-color: var(--avs-red);
  color: var(--text-on-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  margin: 0 auto var(--space-md);
}

.process-step__title {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-sm);
}

.process-step__text {
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

/* --- Before/After Slider --- */
.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  cursor: col-resize;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow-lg);
}

.ba-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-slider__after {
  clip-path: inset(0 50% 0 0);
}

.ba-slider__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--avs-white);
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
}

.ba-slider__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--avs-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 11;
  pointer-events: none;
}

.ba-slider__handle svg {
  width: 20px;
  height: 20px;
  color: var(--avs-near-black);
}

.ba-slider__label {
  position: absolute;
  top: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  background: rgba(0,0,0,0.6);
  color: var(--text-on-dark);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 100px;
  z-index: 5;
  pointer-events: none;
}

.ba-slider__label--before {
  left: var(--space-md);
}

.ba-slider__label--after {
  right: var(--space-md);
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.testimonial {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
  color: #F4B740;
}

.testimonial__stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.testimonial__text {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.testimonial__author {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
}

.testimonial__location {
  font-size: var(--fs-xs);
  color: var(--text-light);
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--avs-red) 0%, var(--avs-red-dark) 100%);
  color: var(--text-on-dark);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--text-on-dark);
  margin-bottom: var(--space-md);
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: var(--fs-body-lg);
  margin-bottom: var(--space-xl);
}

.cta-banner .btn-group {
  justify-content: center;
}

/* --- Service Area Map --- */
.service-area {
  text-align: center;
}

.service-area__states {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.service-area__state {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-primary);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  box-shadow: var(--shadow-sm);
}

.service-area__state svg {
  width: 18px;
  height: 18px;
  color: var(--avs-red);
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__caption {
  color: var(--text-on-dark);
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
}

/* Gallery Filter */
.gallery-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.gallery-filter__btn {
  padding: var(--space-sm) var(--space-lg);
  border: 2px solid var(--border-color);
  border-radius: 100px;
  background: transparent;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-filter__btn:hover,
.gallery-filter__btn.active {
  border-color: var(--avs-red);
  background-color: var(--avs-red);
  color: var(--text-on-dark);
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--border-radius);
}

.lightbox__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: var(--text-on-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: background var(--transition-fast);
}

.lightbox__close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: var(--text-on-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox__nav:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox__prev {
  left: var(--space-lg);
}

.lightbox__next {
  right: var(--space-lg);
}

.lightbox__caption {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  text-align: center;
}

/* --- Forms --- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem var(--space-md);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--avs-red);
  box-shadow: 0 0 0 3px rgba(204,34,41,0.1);
}

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

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

.form-hint {
  font-size: var(--fs-xs);
  color: var(--text-light);
  margin-top: var(--space-xs);
}

/* --- Accordion (FAQ) --- */
.accordion {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.accordion__item {
  border-bottom: 1px solid var(--border-color);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  text-align: left;
  transition: color var(--transition-fast);
}

.accordion__trigger:hover {
  color: var(--avs-red);
}

.accordion__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.accordion__item.active .accordion__icon {
  transform: rotate(180deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.accordion__body {
  padding-bottom: var(--space-lg);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  background-color: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding-top: var(--space-4xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-weight: var(--fw-extrabold);
  font-size: 1.25rem;
  color: var(--text-on-dark);
  margin-bottom: var(--space-md);
}

.footer__logo span {
  color: var(--avs-red-light);
}

.footer__tagline {
  font-style: italic;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-lg);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition-fast);
}

.footer__social a:hover {
  background: var(--avs-red);
  color: var(--text-on-dark);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__heading {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  color: var(--text-on-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-lg);
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links li {
  margin-bottom: var(--space-sm);
}

.footer__links a {
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-small);
  transition: color var(--transition-fast);
}

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

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: var(--fs-small);
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--avs-red-light);
  margin-top: 2px;
}

.footer__contact-item a {
  color: rgba(255,255,255,0.6);
}

.footer__contact-item a:hover {
  color: var(--text-on-dark);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-lg) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--fs-xs);
}

.footer__bottom a {
  color: rgba(255,255,255,0.5);
}

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

/* --- Floating Phone Button (Mobile) --- */
.floating-phone {
  display: none;
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 999;
  width: 56px;
  height: 56px;
  background: var(--avs-green);
  color: var(--text-on-dark);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  animation: pulse-phone 2s infinite;
}

.floating-phone svg {
  width: 24px;
  height: 24px;
}

@keyframes pulse-phone {
  0% { box-shadow: 0 0 0 0 rgba(40,167,69,0.4); }
  70% { box-shadow: 0 0 0 15px rgba(40,167,69,0); }
  100% { box-shadow: 0 0 0 0 rgba(40,167,69,0); }
}

/* --- Page Header (Interior Pages) --- */
.page-header {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #16213E 100%);
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  text-align: center;
  color: var(--text-on-dark);
}

.page-header h1 {
  color: var(--text-on-dark);
  margin-bottom: var(--space-md);
}

.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-body-lg);
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  font-size: var(--fs-small);
}

.breadcrumb a {
  color: rgba(255,255,255,0.5);
}

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

.breadcrumb__sep {
  color: rgba(255,255,255,0.3);
}

.breadcrumb__current {
  color: rgba(255,255,255,0.8);
}

/* --- Content Blocks --- */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.content-block--reverse {
  direction: rtl;
}

.content-block--reverse > * {
  direction: ltr;
}

.content-block__image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.content-block__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.content-block__list {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0;
}

.content-block__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.content-block__list svg {
  width: 20px;
  height: 20px;
  color: var(--avs-green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Pricing/Feature Table --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.feature-item {
  text-align: center;
  padding: var(--space-xl);
}

.feature-item__icon {
  width: 60px;
  height: 60px;
  background: rgba(204,34,41,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--avs-red);
}

.feature-item__icon svg {
  width: 28px;
  height: 28px;
}

.feature-item__title {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-sm);
}

.feature-item__text {
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

/* --- Blog --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.blog-card__meta {
  display: flex;
  gap: var(--space-md);
  font-size: var(--fs-xs);
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.blog-card__image {
  width: 100%;
  aspect-ratio: 16/10;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: var(--fs-small);
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .blog-card__image img {
  transform: scale(1.05);
}

.blog-card__excerpt {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

/* --- Article Layout --- */
.article {
  padding: var(--space-3xl) 0;
}

.article__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--fs-small);
  color: var(--text-light);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.article__meta span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.article__meta svg {
  width: 16px;
  height: 16px;
}

.article__body h2 {
  font-size: var(--fs-h3);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.article__body h3 {
  font-size: var(--fs-h4);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

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

.article__body ul,
.article__body ol {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.article__body li {
  margin-bottom: var(--space-sm);
}

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

.article__body blockquote {
  border-left: 4px solid var(--avs-red);
  margin: var(--space-xl) 0;
  padding: var(--space-md) var(--space-xl);
  background: var(--bg-secondary);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article__body .info-box {
  background: rgba(204,34,41,0.05);
  border: 1px solid rgba(204,34,41,0.15);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
}

.article__body .info-box h3 {
  margin-top: 0;
  color: var(--avs-red);
  font-size: var(--fs-body-lg);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-xl) 0;
  font-size: var(--fs-small);
}

.comparison-table th {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  text-align: left;
  padding: var(--space-md) var(--space-lg);
}

.comparison-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.comparison-table tr:nth-child(even) td {
  background: var(--bg-secondary);
}

.article__cta {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  margin-top: var(--space-2xl);
}

.article__cta h3 {
  margin-top: 0;
}

.article__cta p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
  .comparison-table {
    font-size: var(--fs-xs);
  }

  .comparison-table th,
  .comparison-table td {
    padding: var(--space-sm) var(--space-md);
  }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

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

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

  .content-block--reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav__links,
  .nav__cta .btn {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  /* Mobile menu */
  .nav__links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    padding: var(--space-2xl) var(--space-lg);
    gap: 0;
    overflow-y: auto;
    z-index: 999;
  }

  .nav__links.active li {
    border-bottom: 1px solid var(--border-color);
  }

  .nav__links.active a {
    display: block;
    padding: var(--space-md) 0;
    font-size: var(--fs-body);
  }

  .nav__links.active a::after {
    display: none;
  }

  .hero {
    min-height: 80vh;
    text-align: center;
  }

  .hero__stats {
    justify-content: center;
    gap: var(--space-lg);
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero .btn-group {
    align-items: center;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand {
    max-width: 100%;
  }

  .footer__social {
    justify-content: center;
  }

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

  .floating-phone {
    display: flex;
  }

  .trust-bar__inner {
    gap: var(--space-md) var(--space-xl);
  }

  .section-padding {
    padding: var(--space-3xl) 0;
  }

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

  .hero__stat-number {
    font-size: var(--fs-h3);
  }
}

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

  .hero__stats {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }

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

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

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

.contact-form-wrap {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}

.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-info-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(204,34,41,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--avs-red);
}

.contact-info-item__icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-item strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.contact-info-item a {
  color: var(--avs-red);
  font-weight: var(--fw-medium);
}

.contact-map {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  line-height: 0;
}

.contact-map iframe {
  display: block;
  width: 100%;
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-form-wrap,
  .contact-info-card {
    padding: var(--space-xl);
  }
}

/* --- About Page --- */
.page-header__title {
  font-size: var(--fs-h1);
  font-weight: var(--fw-extrabold);
  color: var(--text-on-dark);
  margin-bottom: var(--space-sm);
}

.page-header__subtitle {
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-body-lg);
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb ol {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl);
  font-size: var(--fs-small);
}

.breadcrumb ol li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255,255,255,0.8);
}

.breadcrumb ol li a {
  color: rgba(255,255,255,0.5);
}

.breadcrumb ol li a:hover {
  color: var(--text-on-dark);
}

.breadcrumb ol li + li::before {
  content: '>';
  color: rgba(255,255,255,0.3);
  font-size: var(--fs-xs);
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-split--reverse {
  grid-template-columns: 1.3fr 1fr;
}

.about-split--reverse .about-split__image {
  order: 2;
}

.about-split--reverse .about-split__content {
  order: 1;
}

.about-split__image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.about-checklist {
  list-style: none;
  padding: 0;
  margin: var(--space-xl) 0 0;
}

.about-checklist li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: var(--fs-body);
  color: var(--text-primary);
  font-weight: var(--fw-medium);
}

.about-checklist li svg {
  width: 22px;
  height: 22px;
  color: var(--avs-green);
  flex-shrink: 0;
}

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

.credential-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-base);
}

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

.credential-card__icon {
  width: 64px;
  height: 64px;
  background: rgba(204,34,41,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: var(--avs-red);
}

.credential-card__icon svg {
  width: 30px;
  height: 30px;
}

.credential-card__title {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-sm);
}

.credential-card__text {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 1024px) {
  .about-split,
  .about-split--reverse {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about-split--reverse .about-split__image {
    order: 0;
  }

  .about-split--reverse .about-split__content {
    order: 0;
  }
}

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

/* --- Print Styles --- */
@media print {
  .nav, .floating-phone, .lightbox {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
}
