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

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

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

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #ffffff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: #1a3c5a;
  margin-bottom: 16px;
}

h1 {
  font-size: 48px;
  font-weight: 700;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 24px;
}

p {
  margin-bottom: 16px;
  color: #555555;
}

a {
  color: #2d5f8d;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #1a3c5a;
}

ul {
  list-style: none;
}

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

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-wrapper {
  max-width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

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

header {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.logo img {
  height: 48px;
  width: auto;
}

.main-nav {
  display: none;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.main-nav a {
  color: #1a3c5a;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #e8b84d;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #e8b84d;
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* ========================================
   MOBILE MENU
   ======================================== */

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #1a3c5a;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 24px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 1001;
}

.mobile-menu-toggle:hover {
  background-color: #2d5f8d;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 24px;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: none;
  font-size: 32px;
  color: #1a3c5a;
  cursor: pointer;
  transition: color 0.3s ease;
}

.mobile-menu-close:hover {
  color: #e8b84d;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 60px;
}

.mobile-nav a {
  color: #1a3c5a;
  font-weight: 500;
  font-size: 18px;
  padding: 12px 16px;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.mobile-nav a:hover {
  background-color: #f5f5f5;
  color: #e8b84d;
}

/* ========================================
   BUTTONS & CTA
   ======================================== */

.cta-button,
.cta-primary,
.cta-secondary {
  display: inline-block;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 16px;
  border-radius: 4px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.cta-button,
.cta-primary {
  background-color: #e8b84d;
  color: #1a3c5a;
  border-color: #e8b84d;
}

.cta-button:hover,
.cta-primary:hover {
  background-color: #d4a43d;
  color: #1a3c5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 184, 77, 0.3);
}

.cta-secondary {
  background-color: transparent;
  color: #1a3c5a;
  border-color: #1a3c5a;
}

.cta-secondary:hover {
  background-color: #1a3c5a;
  color: #ffffff;
  transform: translateY(-2px);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

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

.hero,
.page-hero,
.error-hero,
.thank-you-hero {
  background: linear-gradient(135deg, #1a3c5a 0%, #2d5f8d 100%);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.hero h1,
.page-hero h1,
.error-hero h1,
.thank-you-hero h1 {
  color: #ffffff;
  margin-bottom: 24px;
}

.subheadline {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 32px;
  opacity: 0.95;
}

/* ========================================
   TRUST BAR & STATS
   ======================================== */

.trust-bar {
  background-color: #f9f9f9;
  padding: 32px 20px;
  margin-bottom: 60px;
}

.trust-stats,
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 32px;
}

.stat,
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 200px;
}

.stat strong,
.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #e8b84d;
  display: block;
  margin-bottom: 8px;
}

.stat span,
.stat-card p {
  font-size: 14px;
  color: #555555;
}

/* ========================================
   CARDS & GRIDS
   ======================================== */

.services-grid,
.process-steps,
.benefits-grid,
.testimonials-grid,
.packages-grid,
.inspection-grid,
.team-grid,
.contact-grid,
.resources-grid,
.links-grid,
.comparison-grid,
.value-grid,
.guarantee-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

.service-card,
.step,
.benefit-card,
.testimonial-card,
.package-card,
.inspection-category,
.team-member,
.contact-card,
.resource-card,
.link-card,
.value-card,
.guarantee-card,
.case-study,
.service-detail,
.price-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 32px;
  flex: 1;
  min-width: 280px;
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover,
.package-card:hover,
.benefit-card:hover,
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: #e8b84d;
}

.service-card h3,
.package-card h3,
.benefit-card h3 {
  color: #1a3c5a;
  margin-bottom: 16px;
}

.price {
  font-size: 24px;
  font-weight: 700;
  color: #e8b84d;
  margin: 16px 0;
}

.featured {
  border: 2px solid #e8b84d;
}

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: #e8b84d;
  color: #1a3c5a;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonials {
  background-color: #f9f9f9;
  padding: 60px 20px;
  margin-bottom: 60px;
}

.testimonial-card {
  background-color: #ffffff;
  padding: 32px;
  border-left: 4px solid #e8b84d;
}

.testimonial-card p {
  color: #333333;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.author {
  color: #1a3c5a;
  font-weight: 600;
  margin-top: 16px;
}

/* ========================================
   PROCESS STEPS
   ======================================== */

.step {
  text-align: center;
}

.step-number {
  display: inline-block;
  width: 60px;
  height: 60px;
  background-color: #e8b84d;
  color: #1a3c5a;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* ========================================
   LISTS
   ======================================== */

.features-list,
.benefits-list {
  list-style: none;
  margin: 24px 0;
}

.features-list li,
.benefits-list li {
  padding: 12px 0 12px 32px;
  position: relative;
  color: #555555;
}

.features-list li::before,
.benefits-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #e8b84d;
  font-weight: 700;
  font-size: 18px;
}

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

.cta-section {
  background: linear-gradient(135deg, #2d5f8d 0%, #1a3c5a 100%);
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  margin-bottom: 60px;
  border-radius: 8px;
}

.cta-section h2 {
  color: #ffffff;
  margin-bottom: 16px;
}

.cta-section p {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.95;
}

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

footer {
  background-color: #1a3c5a;
  color: #ffffff;
  padding: 60px 20px 24px;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h3 {
  color: #e8b84d;
  font-size: 18px;
  margin-bottom: 16px;
}

.footer-section p,
.footer-section a {
  color: #ffffff;
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.8;
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-section a:hover {
  color: #e8b84d;
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
  text-align: center;
}

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

.legal-links a {
  color: #ffffff;
  font-size: 12px;
  opacity: 0.8;
}

.legal-links a:hover {
  color: #e8b84d;
  opacity: 1;
}

.footer-bottom p {
  color: #ffffff;
  font-size: 12px;
  opacity: 0.7;
}

/* ========================================
   COOKIE CONSENT BANNER
   ======================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  padding: 24px;
  z-index: 3000;
  display: none;
  animation: slideUp 0.4s ease;
}

.cookie-banner.active {
  display: block;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-text {
  flex: 1;
  min-width: 250px;
}

.cookie-text p {
  color: #333333;
  margin-bottom: 0;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cookie-buttons button {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-accept {
  background-color: #e8b84d;
  color: #1a3c5a;
}

.cookie-accept:hover {
  background-color: #d4a43d;
}

.cookie-reject {
  background-color: #e0e0e0;
  color: #333333;
}

.cookie-reject:hover {
  background-color: #d0d0d0;
}

.cookie-settings {
  background-color: transparent;
  color: #2d5f8d;
  border: 1px solid #2d5f8d;
}

.cookie-settings:hover {
  background-color: #2d5f8d;
  color: #ffffff;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cookie-modal.active {
  display: flex;
}

.cookie-modal-content {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 40px;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-modal h2 {
  color: #1a3c5a;
  margin-bottom: 24px;
}

.cookie-category {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.cookie-category:last-child {
  border-bottom: none;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cookie-modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

/* ========================================
   CONTACT & FORMS
   ======================================== */

.contact-form-section {
  padding: 60px 20px;
}

.form-placeholder {
  background-color: #f9f9f9;
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
}

.hours-table {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  margin-top: 24px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.hours-row:last-child {
  border-bottom: none;
}

.contact-value {
  color: #e8b84d;
  font-weight: 700;
  font-size: 18px;
}

.response {
  color: #2d5f8d;
  font-size: 14px;
  font-style: italic;
}

/* ========================================
   PRICING & TABLES
   ======================================== */

.pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

.savings {
  color: #2d5f8d;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 16px;
}

.investment {
  color: #555555;
  font-size: 14px;
}

.saved {
  color: #2d5f8d;
  font-weight: 700;
  font-size: 18px;
  margin: 8px 0;
}

/* ========================================
   TIMELINE & MILESTONES
   ======================================== */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.milestone {
  background-color: #f9f9f9;
  padding: 20px;
  border-left: 4px solid #e8b84d;
  border-radius: 4px;
}

.milestone strong {
  color: #1a3c5a;
  font-size: 18px;
}

/* ========================================
   LEGAL PAGES
   ======================================== */

.legal-content {
  padding: 60px 20px;
}

.legal-content h2 {
  margin-top: 32px;
  margin-bottom: 16px;
}

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

.legal-content li {
  color: #555555;
  margin-bottom: 8px;
}

/* ========================================
   404 & THANK YOU PAGES
   ======================================== */

.error-message,
.confirmation-message {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 32px;
}

.helpful-links {
  padding: 60px 20px;
}

/* ========================================
   UTILITIES
   ======================================== */

.highlight {
  color: #e8b84d;
  font-weight: 600;
}

.note {
  color: #888888;
  font-size: 14px;
  font-style: italic;
}

.quote {
  font-style: italic;
  color: #2d5f8d;
  border-left: 3px solid #e8b84d;
  padding-left: 16px;
  margin: 16px 0;
}

.position {
  color: #e8b84d;
  font-size: 14px;
  font-weight: 600;
}

.guarantee {
  color: #ffffff;
  font-size: 14px;
  margin-top: 16px;
  opacity: 0.9;
}

/* ========================================
   RESPONSIVE DESIGN - TABLET
   ======================================== */

@media (min-width: 768px) {
  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 40px;
  }

  .main-nav {
    display: flex;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .services-grid,
  .packages-grid,
  .comparison-grid {
    justify-content: space-between;
  }

  .service-card,
  .package-card {
    flex: 0 1 calc(50% - 12px);
  }

  .hero,
  .page-hero,
  .error-hero,
  .thank-you-hero {
    padding: 100px 20px;
  }

  .cookie-content {
    flex-wrap: nowrap;
  }
}

/* ========================================
   RESPONSIVE DESIGN - DESKTOP
   ======================================== */

@media (min-width: 1024px) {
  .section {
    padding: 60px 20px;
  }

  .service-card,
  .benefit-card {
    flex: 0 1 calc(25% - 18px);
  }

  .package-card {
    flex: 0 1 calc(33.333% - 16px);
  }

  .testimonial-card {
    flex: 0 1 calc(50% - 12px);
  }

  .footer-section {
    flex: 0 1 calc(25% - 24px);
  }

  .hero,
  .page-hero,
  .error-hero,
  .thank-you-hero {
    padding: 120px 20px;
  }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE
   ======================================== */

@media (max-width: 767px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  .header-content {
    justify-content: space-between;
  }

  .cta-button,
  .cta-primary,
  .cta-secondary {
    width: 100%;
    padding: 16px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .service-card,
  .package-card,
  .benefit-card,
  .testimonial-card,
  .team-member,
  .contact-card,
  .resource-card {
    min-width: 100%;
  }

  .trust-stats,
  .stats-grid {
    flex-direction: column;
    gap: 24px;
  }

  .footer-content {
    flex-direction: column;
  }

  .legal-links {
    flex-direction: column;
    gap: 8px;
  }

  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cookie-buttons button {
    width: 100%;
  }

  .cookie-modal-content {
    padding: 24px;
  }

  .section {
    padding: 32px 16px;
  }
}

/* ========================================
   ANIMATIONS & TRANSITIONS
   ======================================== */

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

.service-card,
.benefit-card,
.testimonial-card,
.package-card {
  animation: fadeIn 0.6s ease forwards;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  header,
  footer,
  .mobile-menu,
  .mobile-menu-toggle,
  .cta-button,
  .cookie-banner {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000000;
  }

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