:root {
  /* Primary - deep blue for trust */
  --primary: #1e3a8a;

  /* Backgrounds */
  --bg-main: #f9fafb;
  --bg-card: #ffffff;
  --bg-contact: #f0f4f8;

  /* Text - improved contrast for accessibility */
  --text-main: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;

  /* Accent - orange for CTAs only */
  --accent: #f97316;
  --accent-hover: #ea580c;

  /* Borders */
  --border: #e5e7eb;
  --border-light: #f3f4f6;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header - sticky for mobile conversion */
.header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.logo-text {
  display: inline-block;
  line-height: 1.2;
}

.logo-tagline {
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.logo-icon::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2.5px solid #ffffff;
  border-radius: 4px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.logo-icon::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}


/* Buttons - accent only for primary CTAs */
.btn {
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  text-align: center;
  border: none;
  cursor: pointer;
  line-height: 1.5;
  white-space: nowrap;
}

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

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* Header-specific button styling for dark background */
.header .btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  background: transparent;
}

.header .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

/* Hero - improved hierarchy and spacing */
.hero {
  padding: 3rem 0 4rem;
  background: var(--bg-main);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

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

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-image {
  order: -1;
}

.hero-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Sections - improved vertical rhythm */
section {
  padding: 4rem 0;
}

section:first-of-type {
  padding-top: 2rem;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-main);
  text-align: center;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

/* Section Divider - subtle visual separation */
.section-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--border) 20%,
    var(--border) 80%,
    transparent 100%
  );
  margin: 0 auto;
  max-width: 1200px;
  width: 90%;
  padding: 0 1rem;
}

/* Services - improved card layout and spacing */
.services {
  background: var(--bg-card);
}

.service-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.service-card {
  background: var(--bg-main);
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.service-card h3 {
  padding: 1.25rem 1.5rem 0.5rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Why - improved icon spacing and clarity */
.why-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.why-item {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border-light);
}

.why-item i {
  width: 40px;
  height: 40px;
  color: var(--primary);
  margin: 0 auto 1rem;
  display: block;
  stroke-width: 1.5;
}

.why-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.why-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* Process - improved flow and readability */
.process {
  background: var(--bg-card);
}

.process-image {
  width: 100%;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.process-image img {
  width: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  min-height: 280px;
  max-height: 400px;
  border-radius: 8px;
}

.process .container h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.process-steps {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.step {
  background: var(--bg-main);
  padding: 1.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: left;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.step-number {
  background: var(--primary);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.step h3 {
  font-size: 1.125rem;
  margin: 0;
  color: var(--text-main);
  font-weight: 600;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* Contact - optimized form UX */
.contact {
  background: var(--bg-contact);
}

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

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

.contact-text h2 {
  margin-bottom: 0.75rem;
}

.contact-text p {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: grid;
  gap: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: -0.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.875rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
  width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form button {
  margin-top: 0.5rem;
  width: 100%;
}

.form-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: -0.5rem;
}

.form-note a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.form-note a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Footer - minimal with contact emphasis */
.footer {
  background: var(--primary);
  padding: 1.5rem 0;
}

.footer-content {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  max-width: 850px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  text-align: center;
}

.footer-hours {
  order: 1;
}

.footer-hours-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.375rem 0;
  letter-spacing: 0.01em;
}

.footer-hours-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  margin: 0.125rem 0;
  line-height: 1.5;
}

.footer-contact-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.375rem 0;
  letter-spacing: 0.01em;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  order: 2;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 30%,
    rgba(255, 255, 255, 0.12) 70%,
    transparent 100%
  );
  width: 100%;
  margin: 0;
}

.footer-info {
  text-align: center;
  margin-top: 0;
  padding-top: 0.75rem;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  margin: 0;
  letter-spacing: 0.01em;
}

.footer-phone,
.footer-email {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0.25rem 0;
  line-height: 1.5;
}

.footer-phone:hover,
.footer-email:hover {
  color: var(--accent);
  text-decoration: underline;
}


/* Responsive - mobile-first improvements */
@media (max-width: 767px) {
  .nav {
    padding: 1rem 0;
  }
  
  .nav .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .logo {
    font-size: 1.1rem;
  }
  
  .logo-tagline {
    font-size: 0.65rem;
  }
  
  .logo-icon {
    width: 36px;
    height: 36px;
  }
  
  .logo-icon::before {
    width: 18px;
    height: 18px;
    border-width: 2px;
  }
  
  .logo-icon::after {
    width: 7px;
    height: 7px;
    top: 7px;
  }
}

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

  .hero {
    padding: 4rem 0 5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
  }

  .hero-text {
    text-align: left;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-image {
    order: 0;
  }

  section {
    padding: 5rem 0;
  }

  h2 {
    font-size: 2.25rem;
    margin-bottom: 3rem;
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .service-card img {
    height: 220px;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .process-image {
    margin-bottom: 3rem;
  }

  .process-image img {
    min-height: 320px;
    max-height: 450px;
  }

  .process .container h2 {
    margin-bottom: 3rem;
  }

  .process-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

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

  .contact-text {
    text-align: left;
  }

  .contact-text h2 {
    text-align: left;
  }

  .contact-text p {
    margin: 0;
    max-width: none;
  }

  .contact-form {
    max-width: none;
    margin: 0;
  }

  .footer-content {
    gap: 1.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    gap: 1.5rem;
    align-items: start;
  }
  
  .footer-divider {
    margin: 0;
  }
  
  .footer-info {
    padding-top: 0.625rem;
  }

  .footer-hours {
    order: 1;
  }

  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    justify-content: flex-start;
    order: 2;
  }
  
  .footer-phone,
  .footer-email {
    text-align: left;
  }

  .footer-info {
    text-align: center;
  }
}

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

  .hero h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.5rem;
  }
}
