/* ============================================================
   Alternative Heating Solutions — Main Stylesheet
   ============================================================ */

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

:root {
  --charcoal:    #2a2a2a;
  --charcoal-mid:#3d3d3d;
  --charcoal-dk: #1a1a1a;
  --red:         #c0392b;
  --white:       #ffffff;
  --bg-light:    #f5f5f5;
  --text:        #2a2a2a;
  --text-muted:  #6b6b6b;
  --border:      #e0e0e0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.01em;
}

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


/* ============================================================
   Navigation
   ============================================================ */

.nav {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-logo {
  height: 52px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--charcoal);
}

.nav-links a.active {
  color: var(--charcoal);
  font-weight: 600;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.25s;
}


/* ============================================================
   Hero (home page)
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  line-height: 0; /* removes phantom space under img */
}

.hero-bg-img {
  display: block;
  width: 100%;
  height: 75vh;
  object-fit: contain;
  object-position: center;
  background: #ffffff; /* matches header.jpg background */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: normal;
}

.hero-text {
  color: var(--white);
  text-align: center;
  padding: 2rem 1.5rem;
}

.hero-text h1 {
  font-size: clamp(1.8rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero-text p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}


/* ============================================================
   Page Header (inner pages)
   ============================================================ */

.page-header {
  background: var(--charcoal);
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.page-header p {
  color: rgba(255,255,255,0.62);
  margin-top: 0.6rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}


/* ============================================================
   Sections
   ============================================================ */

.section {
  padding: 4.5rem 1.5rem;
}

.section--alt {
  background: var(--bg-light);
}

.section-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.6rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 580px;
  margin-bottom: 2.5rem;
  font-family: 'Inter', sans-serif;
}


/* ============================================================
   Prose (about text)
   ============================================================ */

.prose p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 700px;
  margin-bottom: 1.25rem;
}

.prose p:last-child { margin-bottom: 0; }


/* ============================================================
   Cards (services)
   ============================================================ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s;
}

.card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  border-color: var(--charcoal);
  transform: translateY(-2px);
}

.card-icon {
  width: 46px;
  height: 46px;
  background: #eeeeee;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--charcoal);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.card-body {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-family: 'Inter', sans-serif;
}


/* ============================================================
   More link (home → services)
   ============================================================ */

.more-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red);
  transition: color 0.2s;
  font-family: 'Inter', sans-serif;
}

.more-link:hover { color: var(--charcoal); }


/* ============================================================
   Contact
   ============================================================ */

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  background: var(--charcoal);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

.contact-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  font-family: 'Inter', sans-serif;
}

.contact-card-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
}

.contact-card-value a {
  color: var(--red);
  transition: color 0.2s;
}

.contact-card-value a:hover { color: var(--charcoal); }


/* ============================================================
   Legal / SMS Policy
   ============================================================ */

.legal {
  max-width: 800px;
}

.legal h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin: 2.25rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.legal h2:first-child { margin-top: 0; }

.legal p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.9rem;
}

.legal ul {
  padding-left: 1.5rem;
  margin-bottom: 0.9rem;
}

.legal ul li {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.35rem;
}

.legal-effective {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}


/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--charcoal-dk);
  padding: 2.75rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.footer-details {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.9;
}

.footer-details a {
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.footer-details a:hover { color: var(--white); }

.footer-nav {
  margin-top: 1.4rem;
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.36);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--white); }

.footer-copy {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.24);
}


/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--charcoal);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  }

  .nav-links.is-open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 0.85rem 1.5rem;
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.78);
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--white);
    border-bottom-color: rgba(255,255,255,0.07);
  }

  .nav-toggle { display: block; }

  .hero { padding: 2.5rem 1.25rem; }

  .section { padding: 3rem 1.25rem; }

  .cards { grid-template-columns: 1fr; }

  .contact-list { grid-template-columns: 1fr; }
}
