/* =============================================
   EVERGREEN FIRE PROTECTION — STYLESHEET
   ============================================= */

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

:root {
  --red:        #d9232a;
  --red-dark:   #a81a20;
  --charcoal:   #1A1A1A;
  --dark-bg:    #111111;
  --mid-gray:   #555555;
  --light-gray: #F5F5F5;
  --border:     #E0E0E0;
  --white:      #FFFFFF;
  --font-serif: 'Merriweather', Georgia, serif;
  --font-sans:  'Open Sans', system-ui, sans-serif;
  --radius:     8px;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 6px 24px rgba(0,0,0,.12);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.18);
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
address { font-style: normal; }
ul { list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-alt { background: var(--light-gray); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217,35,42,.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.btn-full { width: 100%; justify-content: center; }

/* ---- Section Labels & Headers ---- */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--mid-gray);
  font-size: 17px;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 900;
  color: var(--charcoal);
  margin-bottom: 16px;
}

h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 10px;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.10);
  height: 72px;
}

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

.logo-link { display: flex; align-items: center; }
.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  padding: 8px 14px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.main-nav a:hover { color: var(--red); background: rgba(217,35,42,.06); }

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: var(--radius) !important;
}
.nav-cta:hover {
  background: var(--red-dark) !important;
  color: var(--white) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(17,17,17,.80) 0%, rgba(40,20,20,.65) 100%),
    url("wei-zeng-HqeEO01gXvw-unsplash.jpg") center/cover no-repeat;
  padding-top: 72px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(217,35,42,.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 60px 24px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 16px;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 62px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,.85);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* =============================================
   TRUST BAR
   ============================================= */
.trust-bar {
  background: var(--charcoal);
  padding: 32px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 40px;
  gap: 4px;
}

.trust-number {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 900;
  color: var(--red);
}

.trust-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.6);
}

.trust-divider {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,.12);
}

/* =============================================
   ABOUT
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: center;
}

.about-text .section-label { display: block; }

.about-text p {
  color: var(--mid-gray);
  margin-bottom: 16px;
  font-size: 16.5px;
}

.check-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--charcoal);
}

.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

.about-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-card-inner {
  background: var(--charcoal);
  padding: 40px 36px;
  text-align: center;
}

.flame-icon {
  width: 90px;
  height: 90px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  padding: 10px;
  box-shadow: 0 0 0 4px rgba(217,35,42,.25);
}

.about-logo-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-card-inner h3 {
  color: var(--white);
  font-size: 22px;
  margin-bottom: 14px;
}

.about-card-inner p {
  color: rgba(255,255,255,.7);
  font-size: 15px;
  line-height: 1.7;
  font-style: italic;
}

.since-badge {
  display: inline-block;
  margin-top: 24px;
  padding: 8px 18px;
  background: var(--red);
  color: var(--white);
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* =============================================
   SERVICES
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon.red {
  background: rgba(217,35,42,.1);
  color: var(--red);
}

.service-icon.dark {
  background: rgba(26,26,26,.08);
  color: var(--charcoal);
}

.service-card p {
  color: var(--mid-gray);
  font-size: 15px;
  line-height: 1.7;
}

/* =============================================
   SERVICE AREA
   ============================================= */
.service-area-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: center;
}

.service-area-text .section-label { display: block; }

.service-area-text p {
  color: var(--mid-gray);
  margin-bottom: 24px;
  font-size: 16.5px;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.area-tags span {
  display: inline-block;
  padding: 6px 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
}

.area-note {
  font-size: 14px !important;
  color: var(--mid-gray) !important;
  font-style: italic;
  margin-bottom: 28px !important;
}

.map-placeholder {
  background: linear-gradient(145deg, #111111 0%, #2a2a2a 100%);
  border-radius: 16px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.map-pin-wrapper {
  text-align: center;
  color: var(--white);
}

.map-pin-wrapper svg {
  color: var(--red);
  filter: drop-shadow(0 4px 8px rgba(217,35,42,.5));
  margin-bottom: 12px;
}

.map-pin-wrapper p {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
}

.map-pin-wrapper span {
  font-size: 13px;
  opacity: .7;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  flex: 1;
  min-width: 220px;
  max-width: 300px;
}

.contact-icon {
  width: 56px;
  height: 56px;
  background: rgba(217,35,42,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin: 0 auto 16px;
}

.contact-card h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--mid-gray);
  margin-bottom: 8px;
}

.contact-card a,
.contact-card address,
.contact-card p {
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.6;
}

.contact-card a {
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
}

.contact-card a:hover { color: var(--red-dark); }

.contact-email-btn {
  display: inline-flex;
  margin-top: 4px;
  font-size: 14px;
  padding: 12px 20px;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
  color: var(--white) !important;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--dark-bg);
  color: rgba(255,255,255,.7);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-contact a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover { color: var(--white); }

.footer-contact address {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,.35);
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Active nav link */
.main-nav a.active { color: var(--red); }

/* =============================================
   RESPONSIVE
   ============================================= */

/* ---- Mobile: ≤ 768px ---- */
@media (max-width: 768px) {

  /* Nav: hide links, show hamburger */
  .main-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    padding: 24px;
    box-shadow: var(--shadow-md);
    z-index: 999;
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .main-nav a {
    font-size: 20px;
    padding: 16px 4px;
    display: block;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }
  .main-nav ul li:last-child a { border-bottom: none; }
  .hamburger { display: flex; }

  /* Hero: center text, smaller sizes, full-width buttons */
  .hero-content {
    text-align: center;
    padding: 48px 0;
    max-width: 100%;
  }
  .hero-content h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; margin-left: auto; margin-right: auto; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Trust bar: wrap into 2×2 */
  .trust-bar-inner { flex-wrap: wrap; justify-content: center; gap: 0; }
  .trust-item { width: 50%; padding: 16px 8px; }
  .trust-divider { display: none; }

  /* Stack all grids to single column */
  .about-grid,
  .service-area-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .services-grid { grid-template-columns: 1fr; }
  .about-card { max-width: 100%; }
  .map-placeholder { min-height: 200px; max-width: 100%; }

  /* Contact cards: stack vertically */
  .contact-cards { flex-direction: column; align-items: center; }
  .contact-card { max-width: 100%; width: 100%; }

  /* Images: never overflow */
  img { max-width: 100%; height: auto; }
  .logo-img { height: 44px; }
  .footer-logo { height: 40px; }

  /* Footer: single column */
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }

  /* General spacing */
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 36px; }
  .section-header p { font-size: 15px; }
  .container { padding: 0 20px; }
}

/* ---- Desktop: ≥ 769px — ensure nav is always visible, hamburger hidden ---- */
@media (min-width: 769px) {
  .hamburger { display: none !important; }
  .main-nav { display: block !important; position: static; box-shadow: none; padding: 0; }
  .main-nav ul { flex-direction: row; }
  .main-nav a { font-size: 14px; padding: 8px 14px; border-bottom: none; }

  /* Footer: 3-column */
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}
