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

/* Modern CSS Reset */
html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

*, *::before, *::after {
  box-sizing: border-box;
  max-width: 100%;
}

* {
  margin: 0;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--background-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  line-height: 1.2;
  font-weight: 600;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

ul[role='list'], ol[role='list'] {
  list-style: none;
  padding: 0;
}

p, li, figcaption {
  max-width: 65ch;
  line-height: 1.6;
}

:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* =============================================================================
   CSS CUSTOM PROPERTIES & THEME SYSTEM
   ============================================================================= */

:root {
  /* Color System - Professional Transport Industry Palette */
  --primary-blue: #1e40af;
  --primary-blue-hover: #1d4ed8;
  --accent-orange: #f59e0b;
  --accent-orange-hover: #d97706;
  --neutral-dark: #1f2937;
  --neutral-medium: #6b7280;
  --neutral-light: #f8fafc;
  --pure-white: #ffffff;
  --border-color: #e5e7eb;
  --success-green: #10b981;
  --error-red: #ef4444;
  
  /* Semantic Color Variables */
  --background-color: var(--pure-white);
  --background-section: var(--neutral-light);
  --text-color: var(--neutral-dark);
  --text-secondary: var(--neutral-medium);
  --primary-color: var(--primary-blue);
  --accent-color: var(--accent-orange);
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  
  /* Navigation specific variables */
  --nav-background: rgba(255, 255, 255, 0.95);
  --nav-height: 70px;
  
  /* Footer specific variables */
  --footer-background: var(--neutral-dark);
  --footer-text: var(--neutral-light);
  
  /* Typography System */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Roboto', system-ui, sans-serif;
  
  /* Spacing & Layout */
  --container-max-width: 1200px;
  --section-padding: 4rem 0;
  --border-radius: 8px;
  --border-radius-large: 12px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px var(--shadow-light);
  --shadow-lg: 0 8px 32px var(--shadow-medium);
  --shadow-hover: 0 12px 40px var(--shadow-medium);
  
  /* Transitions */
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background-color: #121212;
    --background-section: #1e1e1e;
    --text-color: #e8e9ea;
    --text-secondary: #b3b4b5;
    --border-color: #333333;
    --primary-color: #4da6ff;
    --shadow-light: rgba(255, 255, 255, 0.1);
    --shadow-medium: rgba(255, 255, 255, 0.15);
    --nav-background: rgba(18, 18, 18, 0.95);
    --footer-background: #0f0f0f;
  }
}

[data-theme="dark"] {
  --background-color: #121212;
  --background-section: #1e1e1e;
  --text-color: #e8e9ea;
  --text-secondary: #b3b4b5;
  --border-color: #333333;
  --primary-color: #4da6ff;
  --shadow-light: rgba(255, 255, 255, 0.1);
  --shadow-medium: rgba(255, 255, 255, 0.15);
  --nav-background: rgba(18, 18, 18, 0.95);
  --footer-background: #0f0f0f;
}

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

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

.nav-container, .hero-container, .offer-container, .contact-container, .footer-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .nav-container, .hero-container, .offer-container, .contact-container, .footer-container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .nav-container, .hero-container, .offer-container, .contact-container, .footer-container {
    padding: 0 3rem;
  }
}

/* =============================================================================
   STICKY NAVIGATION
   ============================================================================= */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-background);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.navbar {
  padding: 1rem 0;
  min-height: var(--nav-height);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 40px;
  width: auto;
  transition: opacity var(--transition-fast);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-menu a:hover {
  background-color: var(--primary-color);
  color: var(--pure-white);
  transform: translateY(-1px);
}

/* =============================================================================
   MOBILE NAVIGATION & HAMBURGER MENU
   ============================================================================= */

/* Mobile Menu Toggle Button (Hamburger) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  transition: all var(--transition-fast);
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background-color: var(--text-color);
  transition: all var(--transition-base);
  transform-origin: center;
  margin: 2px 0;
}

/* Hamburger Animation when Active */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  /* Mobile scroll behavior for header */
  header {
    position: fixed;
    max-width: 100vw;
    width: 100%;
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  header.nav-hidden {
    transform: translateY(-100%);
  }
  
  header.nav-visible {
    transform: translateY(0);
  }
  
  /* Add top padding to body to compensate for fixed header on mobile */
  body {
    padding-top: var(--nav-height);
  }

  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--background-color);
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
    transform: translateY(-100%);
    visibility: hidden;
    opacity: 0;
    transition: all var(--transition-base);
    z-index: 999;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }
  
  .nav-menu a {
    padding: 1rem 2rem;
    border-radius: 0;
    display: block;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-menu a:last-child {
    border-bottom: none;
  }
  
  .nav-menu a:hover {
    background-color: var(--background-section);
    color: var(--primary-color);
    transform: none;
  }
}

/* Ensure hamburger button is accessible */
.mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: var(--border-radius);
}

/* =============================================================================
   HERO SECTION WITH CAR BACKGROUND IMAGE
   ============================================================================= */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* NO gradient - just solid blue fallback */
  background-color: var(--primary-blue);
  background-image: url('../images/auto-main.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: var(--pure-white);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Darker overlay for text readability */
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-top: -30vh;
}

.hero-section h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.hero-section p {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
  max-width: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .hero-section {
    /* Disable fixed background attachment on mobile for better performance */
    background-attachment: scroll;
    margin-top: -8vh;
  }
}

/* =============================================================================
   OFFER SECTION
   ============================================================================= */

.offer-section {
  background-color: var(--background-section);
  padding: 4rem 0;
}

.offer-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-color);
  margin-bottom: 3rem;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background: var(--background-color);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid var(--border-color);
}

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

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: none;
}

/* Photo Gallery */
.photo-gallery {
  margin-top: 3rem;
  text-align: center;
}

.photo-gallery h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

.photo-placeholder {
  aspect-ratio: 16/9;
  background: var(--border-color);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: transform var(--transition-base);
}

.photo-placeholder:hover {
  transform: scale(1.05);
}

/* =============================================================================
   TECHNICAL INFORMATION SECTION
   ============================================================================= */

.technical-info {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--background-color);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.technical-info h3 {
  text-align: center;
  color: var(--text-color);
  margin-bottom: 2rem;
  font-size: 1.8rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.tech-category {
  background: var(--background-section);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-color);
  transition: all var(--transition-base);
}

.tech-category h4 {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  font-family: var(--font-heading);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.tech-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.tech-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.tech-item:last-child {
  border-bottom: none;
}

.tech-label {
  font-weight: 600;
  color: var(--text-color);
  flex: 0 0 45%;
  margin-right: 1rem;
}

.tech-value {
  color: var(--text-secondary);
  flex: 1;
  text-align: right;
  font-weight: 500;
}

/* Category Color Variations */
.tech-category:nth-child(1) {
  border-left-color: var(--primary-blue);
}

.tech-category:nth-child(2) {
  border-left-color: var(--error-red);
}

.tech-category:nth-child(3) {
  border-left-color: var(--accent-orange);
}

.tech-category:nth-child(4) {
  border-left-color: var(--success-green);
}

/* Technical Info Hover Effects */
.tech-category:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Mobile responsiveness for Technical Info */
@media (max-width: 768px) {
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .technical-info {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .tech-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  
  .tech-label {
    flex: none;
    margin-right: 0;
  }
  
  .tech-value {
    text-align: left;
    flex: none;
    font-weight: 400;
  }
}

/* Tablet styles for Technical Info */
@media (max-width: 1024px) and (min-width: 769px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Call to Action */
.cta-section {
  text-align: center;
  margin-top: 3rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background-color: var(--accent-orange);
  color: var(--pure-white);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  min-height: 44px;
}

.cta-button:hover {
  background-color: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* =============================================================================
   CONTACT SECTION
   ============================================================================= */

.contact-section {
  background: var(--background-color);
  padding: 4rem 0;
}

.contact-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-color);
  margin-bottom: 3rem;
  text-align: center;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-item {
  text-align: center;
}

.contact-item strong {
  display: block;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

.contact-item a:hover {
  color: var(--primary-blue-hover);
}

/* =============================================================================
   FORM STYLING
   ============================================================================= */

.quote-form {
  background: var(--background-section);
  padding: 2.5rem;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-sm);
  max-width: 600px;
  margin: 0 auto;
}

.quote-form h3 {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--background-color);
  color: var(--text-color);
  font-size: 1rem;
  transition: all var(--transition-fast);
  min-height: 44px;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.submit-button {
  width: 100%;
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: var(--pure-white);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 44px;
}

.submit-button:hover {
  background-color: var(--primary-blue-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Checkbox Group Styling */
.checkbox-group {
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
    font-weight: normal;
    width: 100%;
}

/* Hide default checkbox */
.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Custom checkbox styling */
.checkbox-custom {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--background-color);
    transition: all var(--transition-fast);
    flex-shrink: 0;
    flex-grow: 0;
    margin-top: 1px;
    position: relative;
    display: block;
}

/* Checkbox hover state */
.checkbox-label:hover .checkbox-custom {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Checkbox checked state */
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Checkbox checkmark */
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Checkbox focus state for accessibility */
.checkbox-label input[type="checkbox"]:focus + .checkbox-custom {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Checkbox text styling */
.checkbox-text {
    color: var(--text-secondary);
    line-height: 1.4;
    max-width: none;
}

/* Error state for checkbox */
.checkbox-label input[type="checkbox"].error + .checkbox-custom {
    border-color: var(--error-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Valid state for checkbox */
.checkbox-label input[type="checkbox"].valid + .checkbox-custom {
    border-color: var(--success-green);
}

/* Disabled submit button styling */
.submit-button:disabled,
.submit-button.disabled {
    background-color: var(--neutral-medium);
    color: var(--background-color);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.submit-button:disabled:hover,
.submit-button.disabled:hover {
    background-color: var(--neutral-medium);
    transform: none;
    box-shadow: none;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .checkbox-label {
        font-size: 0.9rem;
        gap: 0.75rem;
    }
    
    .checkbox-custom {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
    }
    
    .checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
        top: 1px;
        left: 5px;
        width: 5px;
        height: 9px;
    }
}

/* =============================================================================
   FORMSPREE FORM STATUS AND ENHANCED FORM STYLING
   ============================================================================= */

/* Form status message area */
.form-status {
    margin-bottom: 1rem;
    padding: 0;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    line-height: 1.4;
    transition: all var(--transition-base);
}

.form-status.success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success-green);
    color: var(--success-green);
    padding: 1rem;
}

.form-status.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error-red);
    color: var(--error-red);
    padding: 1rem;
}

.form-status.loading {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid #3b82f6;
    color: #3b82f6;
    padding: 1rem;
}

.form-status.info {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid #3b82f6;
    color: #3b82f6;
    padding: 1rem;
}

.status-message {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Enhanced form validation styles */
.form-group input.error,
.form-group textarea.error {
    border-color: var(--error-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    background-color: rgba(239, 68, 68, 0.05);
}

.form-group input.valid,
.form-group textarea.valid {
    border-color: var(--success-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.field-error {
    color: var(--error-red);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.field-error::before {
    content: '⚠️';
    font-size: 0.8rem;
}

/* Loading button state */
.submit-button.loading {
    background-color: var(--neutral-medium);
    cursor: not-allowed;
    opacity: 0.7;
    position: relative;
}

.submit-button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: var(--pure-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Enhanced checkbox styling for GDPR consent */
.checkbox-text a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

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

/* Honeypot field - ensure it's completely hidden */
input[name="_gotcha"] {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    z-index: -1 !important;
}

/* Form accessibility improvements */
.form-group label[for] {
    cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Error state for specific field types */
.checkbox-label input[type="checkbox"].error + .checkbox-custom {
    border-color: var(--error-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    background-color: rgba(239, 68, 68, 0.05);
}

/* Success states */
.form-group input.valid:focus,
.form-group textarea.valid:focus {
    border-color: var(--success-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Dark mode adjustments for form status */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .form-status.success {
        background-color: rgba(16, 185, 129, 0.15);
        color: #34d399;
    }
    
    :root:not([data-theme="light"]) .form-status.error {
        background-color: rgba(239, 68, 68, 0.15);
        color: #f87171;
    }
    
    :root:not([data-theme="light"]) .form-status.loading,
    :root:not([data-theme="light"]) .form-status.info {
        background-color: rgba(59, 130, 246, 0.15);
        color: #60a5fa;
    }
}

[data-theme="dark"] .form-status.success {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

[data-theme="dark"] .form-status.error {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

[data-theme="dark"] .form-status.loading,
[data-theme="dark"] .form-status.info {
    background-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .form-status {
        font-size: 0.9rem;
        padding: 0.875rem;
    }
    
    .status-message {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .field-error {
        font-size: 0.8rem;
    }
    
    .submit-button.loading::after {
        width: 14px;
        height: 14px;
        right: 0.75rem;
    }
}

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

.footer {
  background-color: var(--footer-background);
  color: var(--footer-text);
  padding: 3rem 0 1rem;
  margin-top: 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  color: var(--pure-white);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

/* Footer Logo */
.footer-logo-img {
  height: 32px;
  width: auto;
  content: url('../images/logo-dark.svg'); /* Dark logo for light backgrounds */
}

/* Footer Logo - Dark Mode */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .footer-logo-img {
    content: url('../images/logo-light.svg'); /* Light logo for dark backgrounds */
  }
}

/* Footer Logo - Manual Dark Theme */
[data-theme="dark"] .footer-logo-img {
  content: url('../images/logo-light.svg'); /* Light logo for dark backgrounds */
}

.footer-logo-img {
  height: 32px;
  width: auto;
  content: url('../images/logo-light.svg');
}

.footer-logo h3 {
  color: var(--pure-white);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
}

.footer-description {
  color: var(--footer-text);
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: none;
}

/* Footer Contact */
.footer-contact-item {
  margin-bottom: 0.75rem;
}

.footer-contact-item strong {
  color: var(--pure-white);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.footer-contact-item a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact-item a:hover {
  color: var(--primary-color);
}

.footer-contact-item span {
  color: var(--footer-text);
  font-size: 0.9rem;
}

/* Footer Lists */
.footer-services,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-services li,
.footer-links li {
  margin-bottom: 0.5rem;
  color: var(--footer-text);
  font-size: 0.9rem;
  max-width: none;
}

.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: var(--footer-text);
  font-size: 0.9rem;
  margin: 0;
  max-width: none;
}

/* Social Media Icons */
.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--footer-text);
  text-decoration: none;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--pure-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.social-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-logo {
    justify-content: center;
  }
}

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

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .quote-form {
    padding: 1.5rem;
  }
  
  .nav-container, .hero-container, .offer-container, .contact-container, .footer-container {
    padding: 0 1rem;
  }
}

/* =============================================================================
   SMOOTH SCROLLING
   ============================================================================= */

:target {
  scroll-margin-top: 80px;
}

html {
  scroll-padding-top: 80px;
}

/* =============================================================================
   LOGO THEME SWITCHING
   ============================================================================= */

.nav-logo img {
  content: url('../images/logo-dark.svg');
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-logo img {
    content: url('../images/logo-light.svg');
  }
}

[data-theme="dark"] .nav-logo img {
  content: url('../images/logo-light.svg');
}

/* =============================================================================
   PRIVACY POLICY PAGE STYLES
   ============================================================================= */

.privacy-policy-section {
  background-color: var(--background-color);
  padding: 4rem 0;
  min-height: 100vh;
}

.privacy-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .privacy-container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .privacy-container {
    padding: 0 3rem;
  }
}

.privacy-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.privacy-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.last-updated {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.95rem;
  max-width: none;
}

.privacy-content {
  line-height: 1.7;
}

.privacy-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.privacy-section:last-child {
  border-bottom: none;
  margin-bottom: 2rem;
}

.privacy-section h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.privacy-section h3 {
  font-size: 1.25rem;
  color: var(--text-color);
  margin: 1.5rem 0 1rem 0;
  font-weight: 600;
}

.privacy-section h4 {
  font-size: 1.1rem;
  color: var(--text-color);
  margin: 1.25rem 0 0.75rem 0;
  font-weight: 600;
}

.privacy-section p {
  color: var(--text-color);
  margin-bottom: 1rem;
  max-width: none;
  line-height: 1.7;
}

.privacy-section strong {
  color: var(--text-color);
  font-weight: 600;
}

.privacy-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.privacy-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  line-height: 1.6;
  max-width: none;
}

.privacy-list li::before {
  content: '•';
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.rights-list li {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.rights-list li::before {
  content: '⚖️';
  font-size: 1rem;
  left: 0;
}

.data-collection-details {
  background: var(--background-section);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
  border-left: 4px solid var(--primary-color);
}

.legal-basis {
  background: rgba(30, 64, 175, 0.05);
  padding: 1rem;
  border-radius: var(--border-radius);
  border-left: 3px solid var(--primary-color);
  font-size: 0.95rem;
  margin: 1rem 0;
}

.cookies-consent {
  background: rgba(245, 158, 11, 0.1);
  padding: 1rem;
  border-radius: var(--border-radius);
  border-left: 3px solid var(--accent-orange);
  margin: 1rem 0;
}

.rights-contact {
  background: var(--background-section);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  margin: 1.5rem 0;
}

.rights-contact a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.rights-contact a:hover {
  color: var(--primary-blue-hover);
  text-decoration: underline;
}

.back-to-main {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.back-to-main .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: var(--pure-white);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  min-height: 44px;
}

.back-to-main .cta-button:hover {
  background-color: var(--primary-blue-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Mobile responsiveness for privacy policy */
@media (max-width: 768px) {
  .privacy-policy-section {
    padding: 2rem 0;
  }
  
  .privacy-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }
  
  .privacy-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }
  
  .privacy-section h2 {
    font-size: 1.3rem;
  }
  
  .data-collection-details,
  .legal-basis,
  .cookies-consent,
  .rights-contact {
    padding: 1rem;
    margin: 1rem 0;
  }
  
  .rights-list li {
    padding-left: 1.5rem;
  }
}

/* Dark mode adjustments for privacy policy */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .legal-basis {
    background: rgba(79, 172, 254, 0.1);
  }
  
  :root:not([data-theme="light"]) .cookies-consent {
    background: rgba(245, 158, 11, 0.15);
  }
}

[data-theme="dark"] .legal-basis {
  background: rgba(79, 172, 254, 0.1);
}

[data-theme="dark"] .cookies-consent {
  background: rgba(245, 158, 11, 0.15);
}

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

.text-center { text-align: center; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1.5rem; }