/* ==========================================================================
   Jack Micek Heating & Cooling — shared stylesheet
   ========================================================================== */

:root {
  /* Color */
  --cream:      #F3EEE3;
  --paper:      #FBF8F1;
  --ink:        #2A2420;
  --ink-soft:   #5B5248;
  --rust:       #BD5A2C;
  --rust-dark:  #9A4620;
  --slate:      #3E5D62;
  --slate-dark: #2C4448;
  --gold:       #C0983F;
  --line:       #DED2B9;
  --line-soft:  #E8DFCB;

  /* Type */
  --font-display: 'Roboto Slab', serif;
  --font-body: 'Work Sans', sans-serif;

  /* Layout */
  --max: 1120px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: 62ch; }
p.lede { font-size: 1.15rem; color: var(--ink-soft); }

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

section { padding: 72px 0; }
section.tight { padding: 48px 0; }

:focus-visible {
  outline: 3px solid var(--slate);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--rust);
  color: var(--paper);
}
.btn-primary:hover { background: var(--rust-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--slate); color: var(--slate-dark); }

.btn-on-dark {
  background: var(--paper);
  color: var(--slate-dark);
}
.btn-on-dark:hover { background: #fff; }

/* ---------- Site header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--max);
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-mark {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-text {
  font-family: var(--font-display);
  line-height: 1.1;
}
.brand-text .line1 { font-size: 1.5rem; font-weight: 700; display: block; }
.brand-text .line2 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  display: block;
}

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

nav.main-nav a {
  white-space: nowrap;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: var(--radius);
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover { color: var(--ink); }

nav.main-nav a.active {
  color: var(--rust-dark);
  border-bottom-color: var(--rust);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.header-phone span {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}

@media (max-width: 900px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 12px 6px; border-bottom: 1px solid var(--line-soft); }
  .header-phone span { display: none; }
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .header-inner { padding: 14px 20px; gap: 12px; }
}

@media (max-width: 480px) {
  .brand-text .line1 { font-size: 1.2rem; }
  .brand-text .line2 { font-size: 0.68rem; }
  .brand-mark { width: 50px; height: 50px; }
  .header-phone { font-size: 0.92rem; }
  .nav-toggle { padding: 6px 8px; font-size: 0.85rem; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 80px;
}

/* Hero with skyline photo: cream wash behind the text, clear skyline strip below */
.hero-photo {
  position: relative;
  padding-bottom: 200px;
  background-color: var(--cream);
  background-image: url("../images/denver-skyline-hero.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(243, 238, 227, 0.95) 0%,
    rgba(243, 238, 227, 0.90) 42%,
    rgba(243, 238, 227, 0.40) 72%,
    rgba(243, 238, 227, 0.08) 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 74%, transparent 97%);
          mask-image: linear-gradient(180deg, #000 0%, #000 74%, transparent 97%);
}
.hero-photo > .container { position: relative; z-index: 1; }

@media (max-width: 860px) {
  /* Phones/tablets: skyline is a full-width strip at the top of the hero,
     fading softly into the cream background where the headline starts. */
  .hero-photo {
    padding-top: 200px;
    padding-bottom: 64px;
    background-image: none;
  }
  .hero-photo::before {
    inset: 0 0 auto 0;
    height: 170px;
    background: url("../images/denver-skyline-hero-sm.jpg") 60% bottom / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Nameplate stat panel */
.nameplate {
  background: var(--slate-dark);
  color: var(--paper);
  border-radius: 6px;
  padding: 36px 32px;
  position: relative;
}
.nameplate::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(251, 248, 241, 0.25);
  border-radius: 3px;
  pointer-events: none;
}
.nameplate-title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gold);
  margin-bottom: 22px;
}
.nameplate-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
}
.nameplate-stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  display: block;
}
.nameplate-stat .label {
  font-size: 0.85rem;
  color: rgba(251, 248, 241, 0.75);
}

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.icon-badge {
  display: block;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
}

.product-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 16px;
}

/* Product shots on a plain white background: fit whole unit, blend white into the card */
.product-photo--cutout {
  object-fit: contain;
  mix-blend-mode: multiply;
  border-radius: 0;
}

/* Featured / emphasized product card */
.card-featured {
  border: 2px solid var(--rust);
  background: var(--paper);
  position: relative;
}
.featured-tag {
  display: inline-block;
  background: var(--rust);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--rust-dark);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* ---------- Divider (duct-line motif) ---------- */

.duct-divider {
  height: 14px;
  width: 100%;
  background-image: repeating-linear-gradient(
    to right,
    var(--line) 0,
    var(--line) 2px,
    transparent 2px,
    transparent 26px
  );
  background-position: center;
  background-size: 100% 1px;
  background-repeat: no-repeat;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- Band (CTA strip) ---------- */

.band {
  background: var(--rust);
  color: var(--paper);
}
.band h2 { color: var(--paper); }
.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.band p { color: rgba(251, 248, 241, 0.85); }

/* ---------- Trust strip ---------- */

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.trust-item svg { width: 26px; height: 26px; flex-shrink: 0; }

/* ---------- Quote / review card ---------- */

.quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; font-size: 1.05rem; }
.quote-name { font-weight: 700; margin-top: 14px; }
.quote-meta { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--slate-dark);
  color: rgba(251, 248, 241, 0.85);
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: var(--paper);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.site-footer a {
  color: rgba(251, 248, 241, 0.8);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  font-size: 0.94rem;
}
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(251, 248, 241, 0.15);
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(251, 248, 241, 0.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-brand {
  font-family: var(--font-display);
  color: var(--paper);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* ---------- Page header (interior pages) ---------- */

.page-header {
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-header .kicker { margin-bottom: 12px; }

/* ---------- FAQ accordion ---------- */

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-question .plus {
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--rust);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-question .plus { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer-inner { padding: 0 4px 22px; color: var(--ink-soft); max-width: 68ch; }

/* ---------- Team ---------- */

.team-card { text-align: left; }
.avatar-patch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--slate-dark);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
}
.avatar-patch::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(251, 248, 241, 0.3);
  border-radius: 4px;
}
.team-role {
  color: var(--rust-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* ---------- Forms ---------- */

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid var(--slate);
  outline-offset: 1px;
  border-color: var(--slate);
}

/* ---------- Misc ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; }
}

.badge-note {
  display: inline-block;
  background: var(--line-soft);
  color: var(--ink-soft);
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

ul.plain { list-style: none; margin: 0; padding: 0; }
ul.check li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
}
ul.check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  background: var(--rust);
  border-radius: 50%;
}
