/* Improved Main Stylesheet */

/* CSS Custom Properties - Enhanced Color System */
:root {
  /* Primary Colors - More accessible blue palette */
  --primary-50: #eff8ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;

  /* Secondary Colors - Warmer, more harmonious orange */
  --secondary-50: #fff7ed;
  --secondary-100: #ffedd5;
  --secondary-200: #fed7aa;
  --secondary-300: #fdba74;
  --secondary-400: #fb923c;
  --secondary-500: #f97316;
  --secondary-600: #ea580c;
  --secondary-700: #c2410c;
  --secondary-800: #9a3412;
  --secondary-900: #7c2d12;

  /* Neutral Colors - More sophisticated gray scale */
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;

  /* Semantic Colors */
  --success-50: #f0fdf4;
  --success-500: #22c55e;
  --success-600: #16a34a;
  --success-700: #15803d;

  --warning-50: #fffbeb;
  --warning-500: #f59e0b;
  --warning-600: #d97706;
  --warning-700: #b45309;

  --error-50: #fef2f2;
  --error-500: #ef4444;
  --error-600: #dc2626;
  --error-700: #b91c1c;

  /* Legacy Variables for Compatibility */
  --primary-blue: var(--primary-500);
  --primary-blue-hover: var(--primary-600);
  --primary-blue-active: var(--primary-700);
  --secondary-orange: var(--secondary-500);
  --secondary-orange-hover: var(--secondary-600);

  /* Text Colors */
  --text-primary: var(--neutral-900);
  --text-secondary: var(--neutral-700);
  --text-tertiary: var(--neutral-500);
  --text-quaternary: var(--neutral-400);

  /* Legacy text variables */
  --text-dark: var(--text-primary);
  --text-mid: var(--text-secondary);
  --text-light: var(--text-tertiary);

  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: var(--neutral-50);
  --bg-tertiary: var(--neutral-100);
  --bg-muted: var(--neutral-200);

  /* Legacy background variables */
  --white: var(--bg-primary);
  --light-gray: var(--bg-secondary);
  --dark-gray: var(--neutral-700);
  --mid-gray: var(--neutral-600);
  --black: var(--neutral-900);

  /* Border Colors */
  --border-light: var(--neutral-200);
  --border-medium: var(--neutral-300);
  --border-strong: var(--neutral-400);
  --border-color: var(--border-light);

  /* Shadows */
  --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-colored: 0 4px 14px rgba(59, 130, 246, 0.15);

  /* Typography Scale */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */
  --font-size-6xl: 3.75rem;   /* 60px */

  /* Spacing Scale */
  --spacing-1: 0.25rem;   /* 4px */
  --spacing-2: 0.5rem;    /* 8px */
  --spacing-3: 0.75rem;   /* 12px */
  --spacing-4: 1rem;      /* 16px */
  --spacing-5: 1.25rem;   /* 20px */
  --spacing-6: 1.5rem;    /* 24px */
  --spacing-8: 2rem;      /* 32px */
  --spacing-10: 2.5rem;   /* 40px */
  --spacing-12: 3rem;     /* 48px */
  --spacing-16: 4rem;     /* 64px */
  --spacing-20: 5rem;     /* 80px */

  /* Border Radius */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive iframe/video containers */
.responsive-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.responsive-video iframe,
.responsive-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition);
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}

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

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

.btn-secondary {
  background-color: var(--bg-primary);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background-color: var(--primary-blue);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-colored);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-light);
  z-index: 1000;
  transition: var(--transition);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo h1 {
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin: 0;
}

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

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-blue);
  transition: var(--transition);
}

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

.nav-link:focus {
  outline: none;
}

.header-contact .phone-link {
  background-color: var(--primary-blue);
  color: var(--bg-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
}

.header-contact .phone-link:hover {
  background-color: var(--primary-blue-hover);
  color: var(--bg-primary);
}

.mobile-menu-toggle {
  display: none; /* Hidden by default, shown on mobile via responsive.css */
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001; /* Ensure it's above other elements */
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-500);
  margin: 3px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
  color: var(--bg-primary);
  padding-top: 120px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/hero-image.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.85);
  padding: 3.5rem;
  border-radius: var(--border-radius);
  backdrop-filter: blur(3px);
  box-shadow: var(--shadow-heavy);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero .hero-content .hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero .hero-content .hero-subtitle {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--secondary-500);
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  letter-spacing: -0.01em;
}

.hero .hero-content .hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #ffffff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
  font-weight: 600;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.hero-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  line-height: 1.5;
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-tertiary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Featured Snippet Section */
.featured-snippet {
  padding: 4rem 0;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
}

.featured-snippet-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.featured-snippet-content h2 {
  color: var(--text-primary);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.featured-snippet-content h2:first-child {
  color: var(--primary-blue);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.featured-snippet-content p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.featured-snippet-content ol {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
  padding-left: 1.5rem;
}

.featured-snippet-content ol li {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding-left: 0.5rem;
}

.featured-snippet-content ol li:last-child {
  margin-bottom: 0;
}

.featured-snippet-content a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
}

.featured-snippet-content a:hover {
  text-decoration: underline;
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: var(--bg-secondary);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-text p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Services Section */
.services {
  padding: 5rem 0;
}

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

.service-card {
  background-color: var(--surface-primary);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  text-align: center;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

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

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background-color: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon i {
  font-size: 2rem;
  color: var(--primary-blue);
}

.service-title {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* How We Work Section */
.how-we-work {
  padding: 5rem 0;
  background-color: var(--bg-secondary);
}

.work-content {
  max-width: 800px;
  margin: 0 auto;
}

.work-intro {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.work-text p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.work-process {
  margin-top: 2rem;
  padding: 2rem;
  background-color: var(--surface-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.work-process h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.process-list {
  list-style: none;
}

.process-list li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.process-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-500);
  font-weight: bold;
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
}

.rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stars {
  color: var(--secondary-orange);
  font-size: 1.5rem;
}

.rating-text {
  font-weight: 600;
  color: var(--text-primary);
}

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

.testimonial-card {
  background-color: var(--surface-primary);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border-left: 4px solid var(--primary-blue);
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-colored);
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial-author {
  color: var(--text-tertiary);
  font-weight: 600;
}

.review-link {
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.review-link:hover {
  color: var(--secondary-orange);
  transform: translateX(5px);
}

.review-link strong {
  font-weight: 600;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background-color: var(--bg-secondary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-details {
  margin: 2rem 0;
}

.contact-item {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-item strong {
  min-width: 80px;
}

.contact-cta {
  margin-top: 2rem;
}

/* Contact Form - FIXED */
.contact-form {
  background-color: var(--surface-primary);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.form-group select option {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
  opacity: 0.7;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

/* Map Section */
.map-section {
  padding: 3rem 0;
}

.map-content {
  text-align: center;
}

.map-container {
  margin-top: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

/* Footer */
.footer {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  padding: 3rem 0 1rem;
}

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

.footer-section h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.footer-section a {
  color: var(--primary-blue);
  opacity: 0.9;
  transition: var(--transition);
}

.footer-section a:hover {
  opacity: 1;
  color: var(--secondary-orange);
}

.footer-section .btn {
  color: var(--bg-primary) !important;
}

.footer-section .btn-primary {
  color: var(--bg-primary) !important;
}

.footer-section .btn:hover {
  color: var(--bg-primary) !important;
}

.footer-section address {
  font-style: normal;
  opacity: 0.8;
  line-height: 1.6;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #1877f3;
  color: #ffffff !important;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.social-link svg {
  width: 1.2em;
  height: 1.2em;
  fill: var(--bg-primary);
}

.social-link:hover {
  background-color: #145db2;
  color: var(--bg-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  opacity: 0.7;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

/* Accessibility */
.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;
}

/* Focus styles */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: var(--neutral-900);
    --bg-secondary: var(--neutral-800);
    --bg-tertiary: var(--neutral-700);
    --bg-muted: var(--neutral-600);

    --text-primary: var(--neutral-50);
    --text-secondary: var(--neutral-200);
    --text-tertiary: var(--neutral-400);
    --text-quaternary: var(--neutral-500);

    --border-light: var(--neutral-700);
    --border-medium: var(--neutral-600);
    --border-strong: var(--neutral-500);

    --surface-primary: var(--neutral-800);
    --surface-secondary: var(--neutral-700);
    --surface-elevated: var(--neutral-750);
  }

  /* Dark mode form fixes */
  .form-group input,
  .form-group select,
  .form-group textarea {
    background-color: var(--neutral-800);
    color: var(--neutral-100);
    border-color: var(--neutral-600);
  }

  .form-group select option {
    background-color: var(--neutral-800);
    color: var(--neutral-100);
  }

  .form-group input::placeholder,
  .form-group textarea::placeholder {
    color: var(--neutral-400);
  }
}

/* High contrast mode improvements */
@media (prefers-contrast: high) {
  :root {
    --primary-blue: #0066cc;
    --secondary-orange: #cc6600;
    --text-primary: #000000;
    --border-light: #666666;
  }
}

/* Print styles */
@media print {
  .header,
  .mobile-menu-toggle,
  .contact-form,
  .map-container {
    display: none;
  }

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

  .container {
    max-width: none;
    padding: 0;
  }
}

/* Responsive Design - Moved to responsive.css for better organization */

/* Additional responsive styles moved to responsive.css */
