/* ===== SIP Windows — Global Styles ===== */

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

:root {
  --navy: #1b2d45;
  --navy-light: #2a3f5a;
  --gold: #b8860b;
  --red-accent: #8b2020;
  --bg-light: #f7f7f5;
  --bg-white: #ffffff;
  --bg-callout: #fdf8e8;
  --bg-info: #eef3f8;
  --text-dark: #1a1a1a;
  --text-body: #4a4a4a;
  --text-muted: #888888;
  --border: #e0e0e0;
  --max-width: 960px;
  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  line-height: 1.7;
  font-size: 17px;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-dark); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }

/* ===== Layout ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--gray { background: var(--bg-light); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav__logo img {
  height: 42px;
  width: auto;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav__links a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--navy-light); }
.nav__links a.active { color: var(--navy); font-weight: 600; }
.nav__cta {
  background: var(--navy);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.88rem !important;
  transition: background 0.2s;
}
.nav__cta:hover { background: var(--navy-light); }

/* Mobile nav */
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger svg { display: block; }

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav__links.open { display: flex; }
  .nav__hamburger { display: block; }
  .nav__cta { text-align: center; }
}

/* ===== Hero Sections ===== */
.hero {
  padding: 100px 24px 80px;
  background: var(--bg-white);
}
.hero--with-image {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.hero--with-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,45,69,0.88) 0%, rgba(27,45,69,0.65) 50%, rgba(27,45,69,0.3) 100%);
  z-index: 1;
}
.hero--with-image .hero__content {
  position: relative;
  z-index: 2;
}
.hero--with-image h1 { color: #fff; }
.hero--with-image .hero__subtitle { color: rgba(255,255,255,0.85); }
.hero--with-image .btn { background: #fff; color: var(--navy); }
.hero--with-image .btn:hover { background: rgba(255,255,255,0.9); }

.hero__content { max-width: var(--max-width); margin: 0 auto; }
.hero__subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 16px;
  max-width: 640px;
}
.hero--homepage {
  text-align: center;
  padding: 0;
  min-height: 560px;
}
.hero--homepage::before {
  background: linear-gradient(180deg, rgba(27,45,69,0.82) 0%, rgba(27,45,69,0.6) 60%, rgba(27,45,69,0.75) 100%);
}
.hero--homepage h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  max-width: 720px;
  margin: 0 auto;
  
  color: #fff;
}
.hero--homepage .hero__subtitle {
  margin: 20px auto 0;
  max-width: 600px;
  text-align: center;
  color: rgba(255,255,255,0.85);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-body);
}
.btn:hover { background: var(--navy-light); }
.btn--outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--large { padding: 16px 36px; font-size: 1rem; }

/* ===== Stats Bar ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats__item h3 {
  font-size: 2rem;
  font-family: var(--font-display);
  color: var(--navy);
}
.stats__item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}
@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* ===== R-Value Comparison ===== */
.rvalue {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.rvalue__text p { margin-bottom: 16px; }
.rvalue__card {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 48px 32px;
  text-align: center;
}
.rvalue__card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.rvalue__card .rvalue__number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.rvalue__card .rvalue__number--red { color: var(--red-accent); }
.rvalue__card .rvalue__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.rvalue__card .rvalue__vs {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 16px 0;
}
@media (max-width: 768px) {
  .rvalue { grid-template-columns: 1fr; }
}

/* ===== Tier Cards ===== */
.tier-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tier-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  transition: box-shadow 0.2s;
}
.tier-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.tier-card__accent {
  width: 40px;
  height: 3px;
  margin-bottom: 20px;
}
.tier-card__accent--value { background: var(--text-dark); }
.tier-card__accent--mid { background: var(--gold); }
.tier-card__accent--luxury { background: var(--navy); }
.tier-card h3 { font-size: 1.4rem; margin-bottom: 8px; color: var(--text-dark); }
.tier-card__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.tier-card__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.tier-card__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 20px;
}
.tier-card__brand {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.tier-card__link {
  color: var(--navy);
  text-decoration: underline;
  font-size: 0.92rem;
}
.tier-card__logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 4px;
}
.recommendation__logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .tier-cards { grid-template-columns: 1fr; }
}

/* ===== Contact Form ===== */
.form-section { padding: 80px 0; }
.form-section--navy { background: var(--navy); }
.form-section--navy h2, .form-section--navy p { color: #fff; }
.form-section h2 { text-align: center; margin-bottom: 8px; }
.form-section__subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 0.95rem;
}
.form-section--navy .form-section__subtitle { color: rgba(255,255,255,0.7); }

.form {
  max-width: 560px;
  margin: 0 auto;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form__group { margin-bottom: 16px; }
.form__label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form__label .required { color: var(--red-accent); margin-left: 2px; }
.form-section--navy .form__label { color: #fff; }

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: var(--bg-white);
  color: var(--text-dark);
  transition: border-color 0.2s;
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.form__input::placeholder,
.form__textarea::placeholder { color: var(--text-muted); }
.form__textarea { min-height: 100px; resize: vertical; }
.form__select { appearance: auto; }

.form__file-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--bg-white);
}

.form__submit {
  width: 100%;
  padding: 16px;
  margin-top: 8px;
}

.form__status {
  text-align: center;
  margin-top: 16px;
  font-size: 0.95rem;
  display: none;
}
.form__status--success { color: #2e7d32; }
.form__status--error { color: var(--red-accent); }

@media (max-width: 500px) {
  .form__row { grid-template-columns: 1fr; }
}

/* ===== Product Page Sections ===== */
.product-hero {
  padding: 0;
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
}
.product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,45,69,0.9) 0%, rgba(27,45,69,0.65) 50%, rgba(27,45,69,0.25) 100%);
  z-index: 1;
}
.product-hero .container {
  position: relative;
  z-index: 2;
  padding-top: 40px;
  padding-bottom: 40px;
}
.product-hero h1 { max-width: 640px;  color: #fff; }
.product-hero__subtitle {
  color: rgba(255,255,255,0.8);
  margin-top: 16px;
  font-size: 1.1rem;
  max-width: 540px;
}

/* Who this is for */
.who-for { }
.who-for p { margin-bottom: 12px; max-width: 640px; }

/* Our recommendation card */
.recommendation {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 36px 40px;
  max-width: 640px;
}
.recommendation h3 { margin-bottom: 16px; font-size: 1.2rem; }
.recommendation p { margin-bottom: 12px; font-size: 0.95rem; }

/* Product image */
.product-image {
  max-width: 280px;
  margin: 40px auto 0;
}

/* Climate zone table */
.climate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.climate-table th {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  color: var(--text-dark);
}
.climate-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.climate-table .zone-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.zone-badge--warm { background: #fff3cd; color: #856404; }
.zone-badge--mixed { background: #d4edda; color: #155724; }
.zone-badge--cool { background: #e8eef4; color: var(--text-dark); }
.zone-badge--cold { background: #f8d7da; color: #721c24; }
/* Energy Star zone colors (matching the map) */
.zone-badge--northern { background: #1a3a8a; color: #fff; }
.zone-badge--north-central { background: #f0e44a; color: #333; }
.zone-badge--south-central { background: #e8a030; color: #333; }
.zone-badge--southern { background: #d62828; color: #fff; }
.climate-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 12px;
}
.climate-note a { color: var(--text-muted); }

.climate-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.climate-layout__table { min-width: 0; }
.climate-layout__map { min-width: 0; }
.climate-layout__map img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}
@media (max-width: 768px) {
  .climate-layout { grid-template-columns: 1fr; }
}

/* #1 reason */
.reason h2 { margin-bottom: 20px; }
.reason p { margin-bottom: 16px; max-width: 640px; }

/* Info callout (Pella Vista launched / Marvin ships) */
.info-callout {
  border-left: 3px solid var(--navy);
  padding: 24px 28px;
  max-width: 640px;
}
.info-callout--blue { background: var(--bg-info); }
.info-callout h3 { margin-bottom: 12px; }
.info-callout p { margin-bottom: 8px; font-size: 0.95rem; }

/* What you'll experience grid */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.experience-item {
  border-left: 3px solid var(--navy);
  padding: 20px 24px;
}
.experience-item h4 { margin-bottom: 8px; }
.experience-item p { font-size: 0.92rem; }
@media (max-width: 600px) {
  .experience-grid { grid-template-columns: 1fr; }
}

/* Pricing section */
.pricing h2 { margin-bottom: 16px; }
.pricing p { margin-bottom: 12px; max-width: 640px; }

/* When NOT section */
.when-not h3 { margin-bottom: 20px; }
.when-not__item { margin-bottom: 24px; }
.when-not__item h4 { margin-bottom: 6px; }
.when-not__item p { font-size: 0.95rem; max-width: 640px; }

/* SIP installation callout */
.install-callout {
  background: var(--bg-callout);
  border-radius: 8px;
  padding: 32px 36px;
  max-width: 640px;
}
.install-callout h3 { margin-bottom: 12px; font-size: 1.05rem; }
.install-callout p { font-size: 0.92rem; margin-bottom: 12px; }
.install-callout ul {
  padding-left: 20px;
  font-size: 0.92rem;
}
.install-callout li { margin-bottom: 6px; }

/* ===== About Page ===== */
.about-section h2 { margin-bottom: 20px; }
.about-section h3 { margin-bottom: 8px; }
.about-section p { margin-bottom: 14px; max-width: 640px; }

/* CTA banner */
.cta-banner {
  text-align: center;
  padding: 60px 24px;
}
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { color: var(--text-muted); margin-bottom: 24px; }

/* ===== Questionnaire ===== */
.quiz {
  max-width: 640px;
  margin: 0 auto;
}
.quiz__header {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.quiz__progress {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
}
.quiz__progress-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  transition: background 0.3s;
}
.quiz__progress-bar.active { background: var(--navy); }

.quiz__question {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.3;
}
.quiz__options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.quiz__option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  color: var(--text-dark);
}
.quiz__option:hover { border-color: var(--navy); }
.quiz__option.selected {
  border-color: var(--navy);
  background: var(--bg-info);
}
.quiz__option strong { font-weight: 700; }

.quiz__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.quiz__prev {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  font-family: var(--font-body);
  padding: 10px 0;
}
.quiz__prev:hover { color: var(--text-dark); }
.quiz__next {
  padding: 12px 28px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s, opacity 0.2s;
}
.quiz__next:hover { background: var(--navy-light); }
.quiz__next:disabled { opacity: 0.5; cursor: not-allowed; }

/* Quiz result */
.quiz__result {
  text-align: left;
  background: var(--bg-light);
  border-radius: 8px;
  padding: 36px 40px;
}
.quiz__result h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.quiz__result p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.quiz__result .btn { margin-bottom: 16px; }
.quiz__result-alt {
  display: block;
  color: var(--navy);
  text-decoration: underline;
  font-size: 0.92rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 60px 24px 24px;
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer__logo {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  text-decoration: none;
}
.footer__logo img {
  height: 36px;
  width: auto;
}
.footer__tagline { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0; }
.footer h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 8px; }
.footer__links a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--navy); }
.footer__contact p {
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.footer__contact a { color: var(--text-body); }
.footer__cta p {
  font-size: 0.92rem;
  color: var(--text-body);
  margin-bottom: 16px;
}
.footer__cta .btn {
  font-size: 0.88rem;
  padding: 10px 20px;
}
.footer__bottom {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 500px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* ===== Utility ===== */
.text-center { text-align: center; }

/* ===== Partner Section ===== */
.partner__header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.partner__header img {
  height: 60px;
  width: auto;
}
.partner__header h2 { margin: 0; }
.partner__intro { max-width: 640px; margin-bottom: 32px; }
.partner__intro p { margin-bottom: 14px; }
.partner__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.partner__features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.partner__feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.partner__feature-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.partner__feature-icon svg { display: block; }
.partner__feature p { margin: 0; font-size: 0.95rem; }
.partner__feature strong { color: var(--text-dark); }
.partner__image {
  border-radius: 8px;
  overflow: hidden;
}
.partner__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.partner__cta {
  margin-top: 32px;
  max-width: 640px;
}
.partner__cta p { margin-bottom: 16px; }

@media (max-width: 768px) {
  .partner__header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .partner__body { grid-template-columns: 1fr; }
}
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-16 { margin-bottom: 16px; }
.mb-40 { margin-bottom: 40px; }

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
