/* ============================================================
   Mucho Frío Heating and Cooling LLC — Shared Stylesheet
   Cold comfort in the desert.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --ice:        #5BB8D4;
  --ice-light:  #A8DCEA;
  --ice-dark:   #2A7FA8;
  --desert:     #A05A2E;
  --sand:       #F5E6D0;
  --midnight:   #0D1B2A;
  --white:      #FFFFFF;
  --text-dark:  #1A2B3C;

  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 2px 8px rgba(13, 27, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(13, 27, 42, 0.12);
  --shadow-lg: 0 20px 60px rgba(13, 27, 42, 0.35);

  --radius: 6px;
  --radius-lg: 14px;
  --container: 1180px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--ice-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--desert); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  color: var(--midnight);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; }
p { margin: 0 0 1rem; }
em { font-style: italic; color: var(--ice-dark); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.section-dark  { background: var(--midnight); color: var(--sand); padding: 5rem 0; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-light { background: var(--sand); color: var(--text-dark); padding: 5rem 0; }

.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head__eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .9rem;
  color: #7A3F18;
  margin-bottom: .75rem;
}
.section-head--light p,
.section-head--light .section-head__eyebrow { color: var(--ice-light); }
.section-head p { font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: #1E6B8A;
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: #155470; color: var(--white); }
.btn--secondary {
  background: transparent;
  color: var(--desert);
  border-color: var(--desert);
}
.btn--secondary:hover { background: var(--desert); color: var(--white); }
.section-dark .btn--secondary { color: var(--sand); border-color: var(--sand); }
.section-dark .btn--secondary:hover { background: var(--sand); color: var(--midnight); border-color: var(--sand); }
/* Hero card is dark but not inside .section-dark, so we override explicitly */
.hero__card .btn--secondary { color: var(--sand); border-color: var(--sand); }
.hero__card .btn--secondary:hover { background: var(--sand); color: var(--midnight); border-color: var(--sand); }
.btn--lg { padding: 1rem 2rem; font-size: 1.2rem; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--midnight);
  border-bottom: 3px solid var(--ice);
}
.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.nav__logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: .01em;
  color: var(--ice);
  text-decoration: none;
  line-height: 1;
}
.nav__logo:hover { color: var(--ice-light); }
/* nav__Links (capital L on services.html) aliased to same rule */
.nav__links,
.nav__Links { display: flex; gap: 1.5rem; align-items: center; }
.nav__links a,
.nav__Links a {
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav__links a:hover,
.nav__links a.active,
.nav__Links a:hover,
.nav__Links a.active { color: var(--ice); border-bottom-color: var(--ice); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.nav__toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--ice);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.25rem 3rem;
  background-color: var(--midnight);
  background-image: url('../assets/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__card {
  background: #0D1B2A;
  border-left: 5px solid var(--ice);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 580px;
  box-shadow: var(--shadow-lg);
}
.hero__card--compact { max-width: 640px; padding: 2rem 2.25rem; width: 100%; }
/* Keep h1 inside the compact dark card — never let text escape onto the bright photo */
.hero__card--compact h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .95rem;
  color: var(--ice);
  margin-bottom: .75rem;
}
.hero h1,
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero__accent { color: #E8F6FA; display: block; }
.hero__sub {
  color: var(--sand);
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
  max-width: 46ch;
}
.hero__sub em { color: var(--ice-light); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Page hero (shorter) ---------- */
.page-hero {
  min-height: 340px;
  display: flex;
  align-items: center;
  padding: 6rem 1.25rem 2.5rem;
  background-color: var(--midnight);
  background-image: url('../assets/hero.jpg');
  background-size: cover;
  background-position: center;
}

/* ---------- Trust badges ---------- */
.badges__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: center;
}
.badge { color: var(--ice-light); }
.badge svg { color: var(--ice); margin-bottom: .5rem; }
.badge h3 { color: var(--white); font-size: 1.25rem; margin: 0; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Why cards ---------- */
.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.why__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--ice);
  transition: transform .2s ease, box-shadow .2s ease;
}
.why__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--sand);
  color: var(--ice-dark);
  margin-bottom: 1rem;
}
.why__card h3 { margin-bottom: .5rem; }
.why__card p { margin: 0; color: var(--text-dark); }

/* ---------- Review card (shared) ---------- */
.review-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(168, 220, 234, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 0;
  color: var(--sand);
}
.review-card__stars { color: var(--desert); letter-spacing: .15em; font-size: 1.05rem; margin-bottom: .65rem; }
.review-card__stars--lg { font-size: 1.5rem; }
.review-card p { font-style: italic; margin-bottom: 1rem; }
.review-card footer { font-size: .92rem; color: var(--ice-light); }
.review-card__via { opacity: .7; margin-left: .35rem; }
.review-card--full { background: var(--white); border: 1px solid rgba(13, 27, 42, 0.08); color: var(--text-dark); box-shadow: var(--shadow-sm); }
.review-card--full footer { color: var(--text-dark); }
.review-card--full .review-card__via { color: var(--desert); }

/* ---------- Teaser (index) ---------- */
.teaser__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.teaser__cta { text-align: center; margin-top: 2.25rem; }

/* ---------- Services ---------- */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  border-bottom: 4px solid var(--ice);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card__icon {
  width: 72px; height: 72px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ice-light), var(--ice));
  color: var(--midnight);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.service-card h3 { margin-bottom: .5rem; }
.service-card p { color: var(--text-dark); margin-bottom: 1.25rem; }
.service-card__link {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--desert);
}
.service-card__link:hover { color: var(--ice-dark); }

/* ---------- CTA strip ---------- */
.cta-strip { padding: 4rem 0; }
.cta-strip__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
.cta-strip h2 { margin-bottom: .35rem; color: var(--white); }
.cta-strip p { color: var(--sand); margin: 0; }

/* ---------- About story ---------- */
.story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.story__copy h2 { margin-bottom: 1rem; }
.story__copy p { margin-bottom: 1.1rem; font-size: 1.04rem; }
.story__photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--midnight);
}

/* ---------- Values ---------- */
.values__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.value-card {
  background: rgba(168, 220, 234, 0.06);
  border-left: 4px solid var(--desert);
  padding: 1.5rem 1.5rem;
  border-radius: var(--radius);
}
.value-card h3 { color: var(--ice-light); margin-bottom: .35rem; }
.value-card p { margin: 0; color: var(--sand); }

/* ---------- Stats ---------- */
.stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}
.stat__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--desert);
  line-height: 1;
  margin-bottom: .35rem;
}
.stat__label {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .95rem;
  color: var(--text-dark);
}
.stats__cta { text-align: center; }

/* ---------- Score banner ---------- */
.score { padding: 3rem 0; }
.score__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.score__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(3.5rem, 9vw, 5.5rem);
  color: var(--ice);
  line-height: 1;
}
.score__detail p { margin: .5rem 0 0; color: var(--sand); }
.review-card__stars--lg { color: var(--desert); }

/* ---------- Reviews grid ---------- */
.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  overflow-x: clip;
}
.contact-form {
  background: var(--white);
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--ice);
  overflow: hidden;
}
.form-row { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.form-grid-2 { display: grid; grid-template-columns: 1fr; gap: 0; }
.form-row label {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .95rem;
  margin-bottom: .35rem;
  color: var(--midnight);
}
.form-row .req { color: var(--desert); }
.form-row .opt { color: #1A5570; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .85rem; }
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .75rem .85rem;
  border: 1.5px solid rgba(13, 27, 42, 0.18);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text-dark);
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--ice);
  box-shadow: 0 0 0 3px rgba(91, 184, 212, 0.18);
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-note {
  margin-top: 1rem;
  padding: .85rem 1rem;
  background: var(--sand);
  border-left: 4px solid var(--ice);
  border-radius: var(--radius);
  color: var(--text-dark);
  font-weight: 500;
}
.contact__form-wrap { min-width: 0; width: 100%; overflow: hidden; }
.contact__aside { display: grid; gap: 1rem; min-width: 0; }
.contact__card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--ice);
}
.contact__card h3 { margin-bottom: .35rem; font-size: 1.2rem; color: var(--midnight); }
.contact__card p { margin: 0; }
.contact__card a { color: #1A5570; }
.contact__card a:hover { color: var(--desert); }
.contact__card--accent { border-left-color: var(--desert); background: var(--midnight); }
.contact__card--accent h3 { color: var(--ice-light); }
.contact__card--accent p { color: var(--sand); }

/* ---------- Footer ---------- */
.footer { background: var(--midnight); color: var(--sand); padding: 3.5rem 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer__logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--ice);
  margin-bottom: .5rem;
}
.footer__tag { color: var(--sand); max-width: 36ch; }
.footer h4 { color: var(--white); margin-bottom: .9rem; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer__links a, .footer a { color: var(--sand); }
.footer__links a:hover, .footer a:hover { color: var(--ice-light); }
.footer__social { font-size: .92rem; }
.footer__bar {
  border-top: 1px solid rgba(168, 220, 234, 0.15);
  padding: 1.25rem 0;
  font-size: .9rem;
  color: var(--ice-light);
  text-align: center;
}

/* ---------- Zvario watermark ---------- */
.zvario-watermark {
  position: fixed;
  bottom: 14px;
  right: 14px;
  z-index: 9999;
  background: rgba(13, 27, 42, 0.94);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .04em;
  padding: .4rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(168, 220, 234, 0.25);
  backdrop-filter: blur(4px);
  user-select: none;
}

/* ============================================================
   Responsive — tablets
   ============================================================ */
@media (min-width: 600px) {
  .form-grid-2 { grid-template-columns: 1fr 1fr; gap: 1.1rem; }
  .badges__grid { grid-template-columns: repeat(3, 1fr); }
  .why__grid,
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .cta-strip__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .teaser__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Responsive — desktop
   ============================================================ */
@media (min-width: 900px) {
  .section-dark, .section-light { padding: 6rem 0; }
  .why__grid { grid-template-columns: repeat(4, 1fr); }
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .story__grid { grid-template-columns: 1.2fr 1fr; }
  .contact__grid { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .contact__aside { position: sticky; top: 100px; }
  .score__inner { flex-direction: row; justify-content: center; gap: 2.5rem; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

/* ============================================================
   Mobile nav
   ============================================================ */
@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__links,
  .nav__Links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--midnight);
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .3s ease, visibility .3s ease;
    border-top: 1px solid rgba(168, 220, 234, 0.15);
  }
  .nav__links.open,
  .nav__Links.open { max-height: 420px; visibility: visible; }
  .nav__links a,
  .nav__Links a {
    width: 100%;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(168, 220, 234, 0.1);
  }
  .nav__links a:hover,
  .nav__links a.active,
  .nav__Links a:hover,
  .nav__Links a.active { border-bottom-color: rgba(168, 220, 234, 0.1); background: rgba(91, 184, 212, 0.08); }
  .nav__toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav__toggle.active span:nth-child(2) { opacity: 0; }
  .nav__toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .hero__card { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero { padding: 5.5rem 1rem 2.5rem; min-height: 90vh; }
  .page-hero { padding: 5.5rem 1rem 2rem; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

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