/* Herzing Heating and Air Conditioning - shared design system (owned by orchestrator) */
/* Tokens, shared header/nav/footer chrome, and shared motion. Page agents APPEND
   page-scoped rules below under a banner comment reading page: plus the slug. */

:root {
  --yellow: #f4e500;
  --yellow-deep: #e6d500;
  --dark: #16130d;
  --dark-2: #201c14;
  --cream: #f7f2e6;
  --cream-2: #f3ecd9;
  --heading: #171410;
  --text: #33302b;
  --muted: #5c574f;
  --white: #ffffff;
  --line: #e9e6df;
  --card-shadow: 0 10px 30px rgba(20, 18, 12, 0.08);
  --radius: 16px;
  --radius-lg: 22px;
  --pill: 999px;
  --maxw: 1200px;
  --font: "Poppins", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--heading);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 800;
}

p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--yellow);
  color: #000;
  padding: 10px 16px;
  z-index: 999;
  font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Eyebrow labels (yellow accent text above headings) */
.eyebrow {
  color: var(--yellow);
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: .3px;
  margin: 0 0 .6em;
  text-shadow: -1px -1px 0 rgba(0,0,0,.28), 1px 1px 0 rgba(0,0,0,.12);
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: .98rem;
  padding: 13px 30px;
  border-radius: var(--pill);
  border: 2px solid var(--yellow);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--yellow); color: #171410; }
.btn-primary:hover { background: var(--yellow-deep); transform: translateY(-2px); box-shadow: var(--card-shadow); }
.btn-outline { background: #fff; color: #171410; border-color: #d9d5cc; }
.btn-outline:hover { background: #fff; border-color: var(--yellow); transform: translateY(-2px); }
.btn-dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--card-shadow); }

/* ---------------- Shared header / nav ---------------- */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 24px 12px;
}
.header-brand img {
  width: 235px;
  height: auto;
  max-width: 60vw;
}
.header-brand .brand-sub {
  font-weight: 800;
  font-size: 1.35rem;
  color: #171410;
  letter-spacing: .2px;
  text-align: center;
}

.main-nav {
  background: var(--yellow);
}
.main-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 24px;
  max-width: var(--maxw);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
}
.main-nav li { display: flex; }
.main-nav a {
  display: flex;
  align-items: center;
  padding: 14px 12px;
  color: #171410;
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav a.active { color: #fff; }

.nav-toggle { display: none; }

/* ---------------- Shared page hero (dark band) ---------------- */
.page-hero {
  background: var(--dark);
  color: #fff;
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.1rem); margin-bottom: .35em; }
.page-hero p { color: #efeade; max-width: 620px; font-size: 1.08rem; }
.breadcrumb { color: var(--yellow); font-weight: 600; margin-top: 1.4em; }
.breadcrumb a { color: var(--yellow); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------------- Sections ---------------- */
.section { padding: 72px 0; }
.section-cream { background: var(--cream); }
.section-tight { padding: 48px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head .eyebrow { display: block; }

/* ---------------- Shared footer ---------------- */
.site-footer {
  background: var(--dark);
  color: #efeade;
  text-align: center;
  padding: 56px 0 30px;
}
.site-footer .foot-logo { width: 210px; height: auto; margin: 0 auto 22px; }
.site-footer p { max-width: 900px; margin: 0 auto 26px; color: #cfc9bb; }
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 30px;
}
.footer-nav a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--yellow); }
.footer-nav a.active { color: var(--yellow); }
.footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: .85rem;
  color: #b7b1a4;
}

/* ---------------- Cards (shared) ---------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

/* ---------------- Google map (full-bleed, like the original) ---------------- */
.map-embed {
  width: 100%;
  height: 458px;
  background: #e6e3dd;
}
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-contact { height: 422px; }
.section-map { padding-bottom: 0 !important; }

/* ---------------- Motion (shared) ---------------- */
/* Pure-CSS on-load reveal. The animation ALWAYS runs, so the element always
   ends visible. No JavaScript is required and nothing is hidden by a static rule. */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(244, 229, 0, .6); }
  70% { box-shadow: 0 0 0 12px rgba(244, 229, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 229, 0, 0); }
}
.reveal { animation: fadeUp .7s ease both; }
.reveal-2 { animation: fadeUp .7s ease .12s both; }
.reveal-3 { animation: fadeUp .7s ease .24s both; }
.reveal-4 { animation: fadeUp .7s ease .36s both; }
.fade-in { animation: fadeIn .9s ease both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .main-nav ul { justify-content: center; gap: 0 4px; }
  .main-nav a { padding: 12px 9px; font-size: .9rem; }
  .header-brand .brand-sub { font-size: 1.1rem; }
  .section { padding: 52px 0; }
  .page-hero { padding: 64px 0 72px; }
}
@media (max-width: 520px) {
  .main-nav a { padding: 10px 7px; font-size: .82rem; }
}
