/* CSS Variables */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #10b981;
  --secondary-dark: #059669;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --charcoal: #2d3748;
  --warm-gray: #4a5568;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --white: #ffffff;
  --blue-100: #dbeafe;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

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

/* Header */
.header {
  background-color: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo svg {
  margin-right: 0.5rem;
  width: 24px;
  height: 24px;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  color: var(--charcoal);
  transition: color 0.2s;
}

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

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--charcoal);
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1rem;
  padding: 0.5rem 0;
}

.dropdown-toggle:hover {
  color: var(--primary);
}

.dropdown-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.dropdown:hover .dropdown-toggle svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  min-width: 220px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--charcoal);
  border-radius: 0.25rem;
  transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
  background-color: var(--gray-50);
  color: var(--primary);
}

.dropdown-menu .view-all {
  border-top: 1px solid var(--gray-200);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  font-weight: 500;
  color: var(--primary);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--white);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  padding: 2rem;
  transition: right 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-nav-close svg {
  width: 24px;
  height: 24px;
}

.mobile-nav-content {
  margin-top: 3rem;
}

.mobile-nav-content a {
  display: block;
  padding: 0.75rem 0;
  color: var(--charcoal);
  font-size: 1.125rem;
}

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

.mobile-nav-section h3 {
  font-size: 0.875rem;
  color: var(--warm-gray);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.mobile-nav-section a {
  font-size: 0.875rem;
  padding: 0.5rem 0 0.5rem 1rem;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  z-index: 999;
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn svg {
  margin-right: 0.5rem;
  width: 20px;
  height: 20px;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background-color: var(--accent-dark);
}

.btn-outline {
  background-color: var(--white);
  color: var(--primary);
  border: 1px solid var(--gray-200);
}

.btn-outline:hover {
  background-color: var(--gray-50);
}

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

/* Hero Section */
.hero {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  .hero {
    padding: 8rem 0;
  }
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-content {
  color: var(--white);
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

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

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-image {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-image {
    text-align: right;
  }
}

.hero-image img {
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  max-width: 100%;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-gray {
  background-color: var(--gray-50);
}

.section-white {
  background-color: var(--white);
}

.section-primary {
  background-color: var(--primary);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.section-primary .section-title {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--warm-gray);
  max-width: 48rem;
  margin: 0 auto;
}

.section-primary .section-subtitle {
  color: var(--blue-100);
}

/* Cards */
.card {
  background-color: var(--white);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-content {
  padding: 2rem;
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--warm-gray);
  margin-bottom: 1.5rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
}

.card-link:hover {
  color: var(--primary-dark);
}

.card-link svg {
  margin-left: 0.5rem;
  width: 16px;
  height: 16px;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Location/Service Area Cards */
.area-card {
  background-color: var(--gray-50);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.area-card:hover {
  background-color: var(--secondary);
  color: var(--white);
}

.area-card svg {
  width: 32px;
  height: 32px;
  margin: 0 auto 0.75rem;
  color: var(--secondary);
}

.area-card:hover svg {
  color: var(--white);
}

.area-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.area-card p {
  font-size: 0.875rem;
  opacity: 0.75;
}

.area-card-placeholder {
  border: 2px dashed var(--gray-300);
  background-color: var(--gray-50);
}

.area-card-placeholder:hover {
  background-color: var(--gray-50);
  color: var(--warm-gray);
}

/* Why Choose Us Section */
.why-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.why-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.why-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.why-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.why-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.why-item p {
  color: var(--warm-gray);
}

/* Feature Box */
.feature-box {
  background-color: var(--gray-50);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.feature-box h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.feature-box p {
  color: var(--warm-gray);
}

/* Check List */
.check-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.check-list svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--secondary);
  margin-right: 0.75rem;
  margin-top: 2px;
}

.check-list span {
  color: var(--warm-gray);
}

/* Service Cards */
.service-card {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.service-card-inner {
  display: flex;
  align-items: center;
}

.service-card svg:first-child {
  width: 32px;
  height: 32px;
  color: var(--primary);
  margin-right: 1rem;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--charcoal);
}

.service-card svg:last-child {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

/* Neighborhood Cards */
.neighborhood-card {
  padding: 1rem;
  text-align: center;
}

.neighborhood-card svg {
  width: 24px;
  height: 24px;
  margin: 0 auto 0.5rem;
  color: var(--secondary);
}

.neighborhood-card h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--charcoal);
}

/* Contact Section */
.contact-section {
  background-color: var(--primary);
  padding: 5rem 0;
  text-align: center;
  color: var(--white);
}

.contact-section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-section p {
  font-size: 1.25rem;
  color: var(--blue-100);
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  background-color: var(--white);
  color: var(--primary);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.875rem;
  font-weight: 700;
  transition: background-color 0.2s;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.phone-link:hover {
  background-color: var(--gray-100);
}

.phone-link svg {
  width: 32px;
  height: 32px;
  margin-right: 1rem;
}

.contact-info {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .contact-info {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-info-item svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.contact-info-item span {
  font-size: 1.125rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-links a {
  color: var(--white);
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--accent);
}

.social-links svg {
  width: 32px;
  height: 32px;
}

/* Footer */
.footer {
  background-color: var(--charcoal);
  color: var(--white);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-logo svg {
  margin-right: 0.5rem;
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.footer-description {
  color: var(--gray-300);
  max-width: 400px;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--gray-300);
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--accent);
}

.footer-social svg {
  width: 24px;
  height: 24px;
}

.footer h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul a {
  color: var(--gray-300);
  transition: color 0.2s;
}

.footer ul a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--gray-600);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-300);
}

.footer-bottom a {
  color: var(--gray-300);
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* Text utilities */
.text-center {
  text-align: center;
}

.text-white {
  color: var(--white);
}

.text-primary {
  color: var(--primary);
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

/* 404 Page */
.not-found {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.not-found h1 {
  font-size: 6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.not-found h2 {
  font-size: 2rem;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.not-found p {
  color: var(--warm-gray);
  margin-bottom: 2rem;
}

/* Sitemap page */
.sitemap-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.sitemap-list {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .sitemap-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sitemap-list a {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  color: var(--charcoal);
  border-radius: 0.5rem;
  transition: background-color 0.2s, color 0.2s;
}

.sitemap-list a:hover {
  background-color: var(--gray-50);
  color: var(--primary);
}

.sitemap-list svg {
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
  color: var(--primary);
}

/* Feature cards with icons */
.feature-card {
  padding: 1.5rem;
}

.feature-card-inner {
  display: flex;
  align-items: flex-start;
}

.feature-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.feature-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--warm-gray);
}

/* CTA Section */
.cta-section {
  background-color: var(--primary);
  padding: 5rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.25rem;
  color: var(--blue-100);
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

/* Min height for main content */
.main-content {
  min-height: calc(100vh - 64px - 200px);
}

/* Link arrow icon card */
.link-card {
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
}

.link-card svg:first-child {
  width: 32px;
  height: 32px;
  margin: 0 auto 0.75rem;
  color: var(--primary);
}

.link-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.link-card p {
  font-size: 0.875rem;
  color: var(--warm-gray);
}

.link-card .arrow {
  width: 16px;
  height: 16px;
  margin: 0.5rem auto 0;
  color: var(--primary);
}
