/* Base Styles */
:root {
  --primary-color: #0047ab; /* Royal Blue */
  --primary-dark: #003380;
  --primary-light: #4d7cc3;
  --secondary-color: #ff6b00; /* Orange for CTAs */
  --secondary-dark: #cc5500;
  --text-color: #333333;
  --text-light: #666666;
  --background-color: #ffffff;
  --background-alt: #f5f8ff;
  --border-color: #dddddd;
  --success-color: #28a745;
  --error-color: #dc3545;
  --warning-color: #ffc107;
  --font-primary: "Open Sans", sans-serif;
  --font-secondary: "Roboto", sans-serif;
  --font-headings: "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

ul,
ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

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

/* Buttons */
.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: white;
  background-color: var(--secondary-color);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-height: 44px; /* Minimum touch target size */
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-button:hover {
  background-color: var(--secondary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Header */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  min-height: 70px;
}

.logo a {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.phone-link {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  min-height: 44px;
  padding: 0.5rem;
}

.phone-link i {
  margin-right: 0.5rem;
}

.phone-number-mobile {
  display: none;
}

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

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0 1rem;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0.5rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 3px 0;
  background-color: var(--text-color);
  transition: all 0.3s ease;
}

.header-cta {
  margin-left: 1rem;
}

/* Hero Section */
.hero-section {
  padding: 3rem 0;
  background-color: var(--background-alt);
  text-align: center;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.hero-content {
  width: 100%;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.hero-cta {
  font-size: 1.25rem;
  padding: 1rem 2rem;
  margin-bottom: 2rem;
}

.hero-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem;
}

.feature-item i {
  font-size: 1.2rem;
}

/* Lead Form Section */
.lead-form-section {
  padding: 3rem 0;
  background-color: white;
}

.lead-form-container {
  display: flex;
  justify-content: center;
}

.lead-form {
  width: 100%;
  max-width: 600px;
  padding: 2rem;
  background-color: var(--background-alt);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: border-color 0.3s ease;
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 71, 171, 0.2);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-group input {
  width: auto;
  margin: 0;
  margin-top: 0.3rem;
  min-height: 20px;
  min-width: 20px;
}

.checkbox-group label {
  font-size: 0.9rem;
  font-weight: 400;
  flex: 1;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  min-height: 50px;
}

.info-section {
  margin-top: 3rem;
}

.info-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  text-align: center;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  background-color: var(--background-alt);
  border-radius: 8px;
  font-weight: 600;
  color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
}

.info-item i {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

/* Services Section */
.services-section {
  padding: 3rem 0;
  background-color: white;
}

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

.service-category {
  margin-bottom: 3rem;
}

.category-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-color);
  font-size: 1.8rem;
}

.category-title i {
  color: var(--secondary-color);
}

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

.service-item {
  display: flex;
  align-items: flex-start;
  padding: 1.5rem;
  background-color: var(--background-alt);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.service-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background-alt);
  border: 3px solid var(--secondary-color);
  border-radius: 50%;
  margin-right: 1rem;
  font-size: 1.5rem;
}

.service-content h4 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.service-content p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.4;
}

/* Testimonials Section */
.testimonials-section {
  padding: 3rem 0;
  background-color: var(--background-alt);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background-alt);
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.testimonial-stars {
  color: #ffd700;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9rem;
}

/* About Section */
.about-section {
  padding: 3rem 0;
  background-color: white;
}

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

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background-color: var(--background-alt);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-item i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0;
  font-size: 0.9rem;
}

.about-text {
  text-align: center;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Footer */
.footer-section {
  padding: 2rem 0 1rem;
  background-color: var(--primary-color);
  color: white;
}

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

.footer-logo a {
  font-family: var(--font-headings);
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.footer-phone a {
  color: white;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
}

.footer-nav li {
  margin: 0;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
  padding: 0.5rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  opacity: 0.8;
}

.footer-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.8;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  line-height: 1.4;
}

/* Policy Pages */
.policy-section {
  padding: 3rem 0;
}

.policy-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

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

.policy-last-updated {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 2rem;
  text-align: center;
}

.policy-content h2 {
  margin-top: 2rem;
  color: var(--primary-color);
}

.policy-content h3 {
  margin-top: 1.5rem;
  font-size: 1.3rem;
}

.policy-content ul {
  margin-bottom: 1.5rem;
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 2rem;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  font-family: var(--font-primary);
}

.success-message h3 {
  color: #155724;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.success-message p {
  color: #155724;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.success-message .cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.success-message .cta-button:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Error Message */
.error-message {
  font-family: var(--font-primary);
}

.error-message h4 {
  font-weight: 600;
  font-size: 1.2rem;
}

.error-message .cta-button {
  display: inline-block;
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.error-message .cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile-First Responsive Styles */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 1rem;
  }

  /* Header Mobile */
  .header-container {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
  }

  .logo {
    flex: 1;
  }

  .logo a {
    font-size: 1.3rem;
  }

  .phone-number-desktop {
    display: none;
  }

  .phone-number-mobile {
    display: block;
    order: 3;
    width: 100%;
    text-align: center;
    margin-top: 0.75rem;
    padding: 0.5rem;
    background-color: var(--background-alt);
    border-radius: 4px;
  }

  .phone-number-mobile .phone-link {
    justify-content: center;
    font-size: 1.1rem;
  }

  .menu-toggle {
    display: flex;
    order: 2;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 0;
  }

  .nav-links a {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    justify-content: flex-start;
  }

  .header-cta {
    display: none;
  }

  /* Hero Mobile */
  .hero-section {
    padding: 2rem 0;
  }

  .hero-title {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .hero-cta {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
  }

  .hero-features {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .feature-item {
    font-size: 0.9rem;
  }

  /* Form Mobile */
  .lead-form-section {
    padding: 2rem 0;
  }

  .lead-form {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

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

  .checkbox-group {
    align-items: flex-start;
    gap: 0.5rem;
  }

  .checkbox-group label {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  /* Info Items Mobile */
  .info-items {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .info-item {
    padding: 1rem;
    font-size: 0.85rem;
  }

  .info-item i {
    font-size: 1.5rem;
  }

  /* Services Mobile */
  .services-section {
    padding: 2rem 0;
  }

  .service-category {
    margin-bottom: 2.5rem;
  }

  .category-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .services-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-item {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }

  .service-icon {
    margin-right: 0;
    margin-bottom: 1rem;
    width: 45px;
    height: 45px;
  }

  .service-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .service-content p {
    font-size: 0.85rem;
  }

  /* Testimonials Mobile */
  .testimonials-section {
    padding: 2rem 0;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .testimonial-item {
    padding: 1.25rem;
  }

  .testimonial-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .testimonial-text {
    font-size: 0.9rem;
  }

  /* About Mobile */
  .about-section {
    padding: 2rem 0;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .stat-item {
    padding: 1.25rem 0.75rem;
  }

  .stat-item i {
    font-size: 2rem;
  }

  .stat-item h3 {
    font-size: 1.75rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  /* Footer Mobile */
  .footer-section {
    padding: 1.5rem 0 1rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-logo,
  .footer-phone {
    margin-bottom: 0.5rem;
  }

  .footer-nav ul {
    justify-content: center;
    gap: 0.25rem;
  }

  .footer-nav a {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }

  .footer-disclaimer {
    font-size: 0.7rem;
    padding-top: 1rem;
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .stat-item h3 {
    font-size: 1.5rem;
  }

  .lead-form {
    margin: 0;
    border-radius: 0;
  }

  .service-item {
    padding: 1rem;
  }

  .testimonial-item {
    padding: 1rem;
  }
}

/* Accessibility Enhancements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

input:focus,
textarea:focus,
select:focus,
button:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

/* Ensure touch targets are at least 44px */
@media (pointer: coarse) {
  .cta-button,
  .phone-link,
  .nav-links a,
  .menu-toggle,
  input,
  textarea,
  select,
  button {
    min-height: 44px;
    min-width: 44px;
  }
}
