/* ===================== Design Tokens ===================== */
:root {
  --color-cool: #0a5c8a;      /* cooling blue */
  --color-cool-dark: #073f5f;
  --color-heat: #d9542a;      /* heating orange */
  --color-heat-dark: #b5401d;
  --color-navy: #0f1f2e;
  --color-text: #24333f;
  --color-muted: #5b6b78;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7f9;
  --color-border: #e1e8ed;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(15, 31, 46, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 31, 46, 0.14);
  --max-width: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; color: var(--color-navy); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; color: var(--color-muted); }

section { padding: 72px 0; }
.section-alt { background: var(--color-bg-alt); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-heat);
  margin-bottom: 10px;
}

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

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-heat);
  color: #fff;
  box-shadow: 0 6px 18px rgba(217, 84, 42, 0.35);
}
.btn-primary:hover { background: var(--color-heat-dark); }

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }

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

/* ===================== Top Bar ===================== */
.topbar {
  background: var(--color-navy);
  color: #cfe0ea;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: #cfe0ea; }
.topbar a:hover { color: #fff; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; margin-right: 20px; }

/* ===================== Header / Nav ===================== */
header.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 64px;
  width: auto;
}
nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
nav.primary-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
nav.primary-nav a:hover,
nav.primary-nav a.active {
  color: var(--color-heat);
  border-bottom-color: var(--color-heat);
}
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-call {
  font-weight: 800;
  color: var(--color-cool-dark);
  font-size: 1.05rem;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-navy);
}

@media (max-width: 860px) {
  nav.primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    display: none;
  }
  nav.primary-nav.open { display: block; }
  nav.primary-nav ul {
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
  }
  nav.primary-nav a { display: block; padding: 12px 0; }
  .nav-toggle { display: block; }
  .nav-call { display: none; }
  .nav-actions .btn-primary { display: none; }
}

/* ===================== Hero ===================== */
.hero {
  background: linear-gradient(120deg, var(--color-cool-dark) 0%, var(--color-cool) 55%, var(--color-heat) 140%);
  color: #fff;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: #fff; }
.hero p.lead { color: rgba(255,255,255,0.88); font-size: 1.1rem; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-badges {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-badge { font-size: 0.85rem; color: rgba(255,255,255,0.85); display: flex; align-items: center; gap: 8px; }
.hero-art {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(4px);
}
.hero-art h3 { color: #fff; margin-bottom: 20px; }
.quote-form { display: flex; flex-direction: column; gap: 12px; }
.quote-form input,
.quote-form select,
.quote-form textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: none;
  font-family: var(--font);
  font-size: 0.95rem;
}
.quote-form button { margin-top: 4px; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
}

/* ===================== Trust strip ===================== */
.trust-strip {
  background: var(--color-navy);
  color: #cfe0ea;
  padding: 20px 0;
}
.trust-strip .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===================== Service Cards ===================== */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--color-cool), var(--color-heat));
}
.card a.card-link {
  font-weight: 700;
  color: var(--color-cool);
  font-size: 0.9rem;
}

/* ===================== Why us / stats ===================== */
.stat {
  text-align: center;
}
.stat .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-heat);
}
.stat .label { color: var(--color-muted); font-weight: 600; font-size: 0.9rem; }

.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  color: var(--color-text);
  font-weight: 500;
}
.feature-list li::before {
  content: "\2713";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-cool);
  color: #fff;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================== Testimonials ===================== */
.testimonial {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.stars { color: #f2a900; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial .author { font-weight: 700; color: var(--color-navy); margin-top: 12px; }
.testimonial .role { font-size: 0.85rem; color: var(--color-muted); }

/* ===================== CTA band ===================== */
.cta-band {
  background: linear-gradient(120deg, var(--color-heat), var(--color-heat-dark));
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); }

/* ===================== Page header (interior pages) ===================== */
.page-header {
  background: var(--color-navy);
  color: #fff;
  padding: 64px 0 48px;
  text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: 8px; }
.breadcrumb { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.breadcrumb a { color: rgba(255,255,255,0.9); font-weight: 600; }

/* ===================== Forms (contact page) ===================== */
.form-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--color-navy);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--color-bg-alt);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--color-muted); }
#form-status { font-weight: 700; margin-top: 12px; }
#form-status.success { color: #1a7f4b; }
#form-status.error { color: var(--color-heat-dark); }

.info-tile {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}
.info-tile:last-child { border-bottom: none; }
.info-tile .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-bg-alt);
  color: var(--color-cool);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.info-tile h3 { margin-bottom: 4px; font-size: 1rem; }
.info-tile p { margin: 0; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 260px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ===================== Team ===================== */
.team-card { text-align: center; }
.team-card .avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--color-cool), var(--color-heat));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
}

/* ===================== Timeline (about page) ===================== */
.timeline { border-left: 3px solid var(--color-border); margin-left: 8px; }
.timeline-item { position: relative; padding: 0 0 32px 28px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--color-heat);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--color-heat);
}
.timeline-item .year { font-weight: 800; color: var(--color-cool-dark); }

/* ===================== Footer ===================== */
footer.site-footer {
  background: var(--color-navy);
  color: #b9c8d4;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }
.footer-logo { display: flex; align-items: center; margin-bottom: 12px; }
.footer-logo-img { height: 56px; width: auto; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #8ea1af;
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-row a:hover { background: var(--color-heat); }

/* ===================== Utilities ===================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.emergency-banner {
  background: var(--color-heat);
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: 10px 16px;
  font-size: 0.9rem;
}
.emergency-banner a { text-decoration: underline; }
