/* ============================================
   Allstate Environmental Solutions — Global CSS
   ============================================ */

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

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

:root {
  --navy: #1B2550;
  --navy-mid: #2A3870;
  --slate: #5A6578;
  --muted: #9CA3AF;
  --border: #E5E7EB;
  --light: #F9FAFB;
  --white: #FFFFFF;
  --accent: #2563EB;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--slate);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ---- NAV ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 78px; width: auto; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 14px;
  color: var(--slate);
  font-weight: 400;
  transition: color 0.15s;
  letter-spacing: -0.1px;
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); font-weight: 500; }
.nav-cta {
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--navy-mid); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; }
.nav-hamburger svg { width: 24px; height: 24px; stroke: var(--navy); }

/* ---- HERO ---- */
.hero-bg {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background-image: url('https://images.unsplash.com/photo-1597982087634-9884f03198ce?w=1600&q=85');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(27, 37, 80, 0.88) 0%,
    rgba(27, 37, 80, 0.72) 50%,
    rgba(27, 37, 80, 0.35) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 64px;
  max-width: 680px;
}
.hero-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  margin-bottom: 20px;
}
.hero-content h1 {
  font-size: 54px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.06;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: #FFFFFF;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  font-family: var(--font);
  display: inline-block;
}
.btn-primary:hover { opacity: 0.9; }
.btn-outline {
  background: var(--white);
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s;
  font-family: var(--font);
  display: inline-block;
}
.btn-outline:hover { border-color: var(--navy); }
.btn-outline-white {
  background: transparent;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: border-color 0.15s;
  font-family: var(--font);
  display: inline-block;
}
.btn-outline-white:hover { border-color: #FFFFFF; }

/* ---- STATS BAR ---- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-number {
  font-size: 32px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -1px;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

/* ---- SECTIONS ---- */
.section {
  padding: 80px 48px;
}
.section-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 12px;
}
.section-title {
  font-size: 36px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--slate);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
}
.section-link {
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.15s;
}
.section-link:hover { gap: 10px; }
.section-link svg { width: 16px; height: 16px; }

/* ---- SERVICE CARDS ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.15s;
}
.service-card:hover { border-color: var(--navy); }
.service-card-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-card-icon svg { width: 22px; height: 22px; stroke: var(--navy); fill: none; }
.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.service-card p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.65;
}
.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
  margin-top: 16px;
  transition: gap 0.15s;
}
.service-card .learn-more:hover { gap: 8px; }
.service-card .learn-more svg { width: 14px; height: 14px; }

/* ---- PHOTO STRIP ---- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0 48px;
}
.photo-strip img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
}

/* ---- CTA BANNER ---- */
.cta-banner {
  margin: 80px 48px;
  border: 1.5px solid var(--navy);
  border-radius: 12px;
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cta-banner h3 {
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.cta-banner p { font-size: 15px; color: var(--slate); }

/* ---- CERTIFICATIONS ---- */
.certs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cert-pill {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
}

/* ---- TEAM GRID ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card { text-align: center; }
.team-card-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--light);
}
.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.team-card .team-role {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 4px;
}
.team-card .team-cert {
  font-size: 12px;
  color: var(--muted);
}

/* ---- CONTACT FORM ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.contact-info-item svg { width: 20px; height: 20px; stroke: var(--navy); flex-shrink: 0; margin-top: 2px; }
.contact-info-item p { font-size: 14px; color: var(--slate); }
.contact-info-item strong { color: var(--navy); font-weight: 500; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: 14px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  transition: border-color 0.15s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---- ABOUT PAGE ---- */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-hero img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.value-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}
.value-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.value-card p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.65;
}

/* ---- SERVICE DETAIL ---- */
.service-detail {
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.service-detail:last-child { border-bottom: none; }
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.service-detail h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}
.service-detail p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 16px;
}
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-list li {
  font-size: 14px;
  color: var(--slate);
  padding-left: 20px;
  position: relative;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
}
.service-detail img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
}

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-brand { font-weight: 600; color: var(--navy); font-size: 15px; margin-bottom: 8px; }
.footer-text { font-size: 13px; color: var(--slate); line-height: 1.6; }
.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 10px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--navy); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 48px;
  font-size: 12px;
  color: var(--muted);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 16px;
  }
  .hero-bg { min-height: 480px; }
  .hero-content { padding: 56px 20px; }
  .hero-content h1 { font-size: 36px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--border); }
  .section { padding: 48px 20px; }
  .section-title { font-size: 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr; padding: 0 20px; }
  .cta-banner { margin: 48px 20px; padding: 32px; flex-direction: column; gap: 24px; text-align: center; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; padding: 32px 20px; }
  .footer-bottom { padding: 16px 20px; }
}
