/* ── L&M Heating – Shared Theme ─────────────────────────── */
/* Google Fonts loaded via <link> in HTML */

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

:root {
  --navy:        #0f1c2d;
  --navy-mid:    #1a2e45;
  --navy-light:  #243a54;
  --amber:       #e87c1e;
  --amber-dim:   #c46a14;
  --amber-pale:  #fff3e8;
  --steel:       #8a9bb0;
  --border:      #d0d7e0;
  --bg:          #f4f5f7;
  --white:       #ffffff;
  --text:        #1a2232;
  --muted:       #5c6b7e;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-section: 'Oswald', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

/* ── Top bar ────────────────────────────────────────────── */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 7px 0;
}

.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-left { display: flex; gap: 20px; }
.topbar-right { display: flex; gap: 20px; }

.topbar a { color: rgba(255,255,255,0.75); transition: color 0.15s; }
.topbar a:hover { color: var(--amber); }
.topbar-sep { color: rgba(255,255,255,0.2); }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--amber);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-brand { display: flex; align-items: center; gap: 16px; }

.header-brand img { height: 72px; width: auto; display: block; }

.header-tagline {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
  max-width: 240px;
}

.header-hours {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* ── Nav ─────────────────────────────────────────────────── */
.site-nav {
  background: var(--navy-mid);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  gap: 2px;
}

.site-nav a {
  color: rgba(255,255,255,0.82);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 13px 14px;
  display: block;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--amber);
  border-bottom-color: var(--amber);
  background: rgba(255,255,255,0.04);
}

/* ── Page wrapper ─────────────────────────────────────────── */
.page-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Section headings ────────────────────────────────────── */
.section-label {
  font-family: var(--font-section);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 4px;
}

.section-title {
  font-family: var(--font-section);
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-mid);
  padding: 24px 0;
  border-top: 3px solid var(--amber);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.5px;
}

.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 2px; justify-content: center; }

.footer-nav a {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}

.footer-nav a:hover { color: var(--white); background: rgba(255,255,255,0.07); }

.copyright-bar {
  background: var(--navy);
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  padding: 8px 24px;
}
.copyright-bar a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.copyright-bar a:hover {
  color: var(--amber);
}

/* ── Dropdown: hidden on desktop, managed by JS on mobile ── */
.nav-dropdown { display: none; }

/* ── Burger button (hidden on desktop) ───────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.2s;
  transform-origin: center;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { gap: 6px 12px; justify-content: center; }
  .topbar-inner { justify-content: center; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }

  .nav-inner {
    padding: 0 16px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
  }

  /* Hide all direct <a> children of nav-inner on mobile */
  .nav-inner > a { display: none; }

  .nav-burger { display: flex; padding: 11px; }

  .header-cta { display: none; }

  /* Dropdown panel */
  .nav-dropdown {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-mid);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
    z-index: 99;
  }

  .nav-dropdown.open { max-height: 480px; }

  .nav-dropdown a {
    display: block;
    color: rgba(255,255,255,0.82);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 13px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: color 0.15s, background 0.15s;
  }

  .nav-dropdown a:last-child { border-bottom: none; }

  .nav-dropdown a:hover,
  .nav-dropdown a.active {
    color: var(--amber);
    background: rgba(255,255,255,0.04);
  }
}
