/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  --primary: #0077B6;
  --primary-light: #00B4D8;
  --secondary: #90E0EF;
  --accent: #FFB703;
  --accent-hover: #E0A100;
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --dark: #1D3557;
  --text: #2B2D42;
  --text-light: #6C757D;
  --success: #06A77D;
  --error: #E63946;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --transition: all 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }

/* =========================================
   3. LAYOUT & UTILITIES
   ========================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-bg {
  background-color: var(--light-gray);
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================
   4. COMPONENTS
   ========================================= */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--dark);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--white);
  color: var(--primary);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover, .btn-outline:focus {
  background-color: var(--primary);
  color: var(--white);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* =========================================
   5. HEADER & NAVIGATION
   ========================================= */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: none;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--dark);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .mobile-menu-btn { display: none; }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--white);
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  padding: 2rem;
  transition: var(--transition);
  z-index: 1001;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero {
  position: relative;
  background: linear-gradient(rgba(29, 53, 87, 0.7), rgba(29, 53, 87, 0.7)), 
              url('../images/hero-home.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
}

.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero p { font-size: 1.25rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =========================================
   7. FEATURES & SERVICES
   ========================================= */
.feature-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  color: var(--primary);
}

.price-card {
  text-align: center;
  border-top: 4px solid var(--primary);
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1rem 0;
}

.price span { font-size: 1rem; color: var(--text-light); font-weight: 400; }

/* =========================================
   8. HOW IT WORKS
   ========================================= */
.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1rem;
}

/* =========================================
   9. TESTIMONIALS
   ========================================= */
.testimonial {
  text-align: center;
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--secondary);
}

.stars { color: var(--accent); margin-bottom: 1rem; }

/* =========================================
   10. CONTACT & FORMS
   ========================================= */
.form-group { margin-bottom: 1.5rem; }

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid #CED4DA;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.form-textarea { resize: vertical; min-height: 120px; }

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* =========================================
   11. FOOTER
   ========================================= */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer h4 { color: var(--white); margin-bottom: 1.5rem; }
.footer a { color: var(--secondary); }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
}

/* =========================================
   12. ACCESSIBILITY (WCAG 2.1 AA)
   ========================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* =========================================
   13. LEGAL PAGES
   ========================================= */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}
.legal-content h2 { margin-top: 2rem; font-size: 1.5rem; }
.legal-content p, .legal-content ul { margin-bottom: 1rem; }
.legal-content ul { padding-left: 1.5rem; list-style: disc; }