/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */

:root {
  /* Color System */
  --color-bg: #0b0f14;
  --color-fg: #e8edf2;
  --color-muted: #95a2b3;
  --color-accent: #7aa2ff;
  --color-accent-hover: #5d8ded;
  --color-accent-alpha: rgba(122, 162, 255, 0.1);

  /* Spacing System (8px base) */
  --space-1: 0.5rem;    /* 8px */
  --space-2: 1rem;      /* 16px */
  --space-3: 1.5rem;    /* 24px */
  --space-4: 2rem;      /* 32px */
  --space-5: 2.5rem;    /* 40px */
  --space-6: 3rem;      /* 48px */
  --space-8: 4rem;      /* 64px */
  --space-10: 5rem;     /* 80px */

  /* Typography */
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);

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

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: var(--line-height-relaxed);
  background: var(--color-bg);
  color: var(--color-fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-2);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(11, 15, 20, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-brand {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-fg);
}

.nav-links {
  display: flex;
  gap: var(--space-3);
}

.nav-link {
  font-size: 0.9375rem;
  color: var(--color-muted);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-accent);
}

@media (min-width: 768px) {
  .nav-container {
    padding: var(--space-3) var(--space-4);
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-8) var(--space-2);
  background: linear-gradient(135deg, #0b0f14 0%, #151a23 100%);
}

.hero__bg-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  opacity: 0.3;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__info-bar {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  background: var(--color-accent-alpha);
  border: 1px solid rgba(122, 162, 255, 0.2);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  animation: slideDown 0.6s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title {
  font-size: 2.5rem;
  line-height: var(--line-height-tight);
  font-weight: 700;
  margin-bottom: var(--space-3);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero__subtitle {
  font-size: 1.125rem;
  line-height: var(--line-height-normal);
  color: var(--color-muted);
  margin-bottom: var(--space-5);
  animation: fadeInUp 0.8s ease 0.4s both;
}

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

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  animation: fadeInUp 0.8s ease 0.6s both;
}

@media (min-width: 640px) {
  .hero__cta {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 3.5rem;
  }

  .hero__subtitle {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

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

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

.btn--outline {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent-alpha);
  transform: translateY(-2px);
}

.btn--large {
  padding: var(--space-3) var(--space-5);
  font-size: 1.0625rem;
}

.btn svg {
  flex-shrink: 0;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

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

.section__title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-6);
  line-height: var(--line-height-tight);
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-10) 0;
  }

  .section__title {
    font-size: 2.5rem;
  }
}

/* Services Section */
.section--services {
  background: linear-gradient(180deg, var(--color-bg) 0%, #111621 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--transition-base);
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--color-accent-alpha);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-alpha);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.service-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
  line-height: var(--line-height-tight);
}

.service-card__desc {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: var(--line-height-normal);
}

/* How It Works Section */
.section--how {
  background: #111621;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.step__number {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  color: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.step__icon {
  width: 80px;
  height: 80px;
  margin: var(--space-4) auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-alpha);
  border-radius: var(--radius-lg);
  color: var(--color-accent);
}

.step__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  line-height: var(--line-height-tight);
}

.step__desc {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: var(--line-height-normal);
}

/* Working Hours Section */
.section--hours {
  background: var(--color-bg);
}

.hours-table {
  max-width: 500px;
  margin: 0 auto var(--space-3);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}

.hours-label {
  font-size: 1rem;
  color: var(--color-muted);
}

.hours-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-accent);
}

.hours-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* Service Areas Section */
.section--areas {
  background: #111621;
}

.area-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  max-width: 700px;
  margin: 0 auto;
}

.area-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 0.9375rem;
  color: var(--color-fg);
  transition: all var(--transition-fast);
}

.area-badge:hover {
  background: var(--color-accent-alpha);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* FAQ Section */
.section--faq {
  background: var(--color-bg);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(122, 162, 255, 0.2);
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--color-accent);
}

.faq-question {
  padding: var(--space-3);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform var(--transition-base);
}

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

.faq-answer {
  padding: 0 var(--space-3) var(--space-3);
  color: var(--color-muted);
  line-height: var(--line-height-normal);
  font-size: 0.9375rem;
}

/* Contact Section */
.section--contact {
  background: linear-gradient(180deg, #111621 0%, var(--color-bg) 100%);
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  font-size: 1.125rem;
  color: var(--color-muted);
  margin-bottom: var(--space-4);
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .contact-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--space-6) 0 var(--space-8);
  text-align: center;
}

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

.footer__link {
  font-size: 0.9375rem;
  color: var(--color-muted);
  transition: color var(--transition-fast);
}

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

.footer__copyright {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: var(--space-1);
}

.footer__disclaimer {
  font-size: 0.8125rem;
  color: var(--color-muted);
  opacity: 0.7;
}

/* ==========================================================================
   STICKY BOTTOM BAR
   ========================================================================== */

.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(11, 15, 20, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.sticky-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-2);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #7aa2ff;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.sticky-bar__btn--call {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sticky-bar__btn:hover {
  background: rgba(122, 162, 255, 0.1);
  color: var(--color-accent);
}

.sticky-bar__btn:active {
  transform: scale(0.98);
}

@media (min-width: 768px) {
  .sticky-bar {
    display: none;
  }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

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

/* Image Lazy Load */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity var(--transition-slow);
}

img[loading="lazy"].loaded {
  opacity: 1;
}
