/* Brand HVAC landing pages — cohesive with home */

.page-brand {
  background: var(--page-surface);
}

.page-brand > main {
  background: linear-gradient(
    180deg,
    #00205b 0,
    #0a2f6b 8rem,
    #1a4a8c 14rem,
    #3d6a9e 19rem,
    #3d6a9e 24rem,
    #7a94b0 26.5rem,
    #b8c5d4 29rem,
    #f0f2f5 31.5rem,
    #f0f2f5 100%
  );
}

.page-brand .section--alt {
  background: linear-gradient(180deg, #efedeb 0%, #f8f7f6 100%);
}

.hero.hero--welcome.hero--brand {
  background: transparent;
  padding: clamp(2rem, 5vw, 3.5rem) 0 0;
}

.hero--brand .hero-welcome__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-hero__back {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.75rem;
  text-decoration: none;
}

.brand-hero__back:hover {
  color: var(--color-white);
}

.brand-hero__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  margin-bottom: 0.85rem;
  background: var(--color-white);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(0, 32, 91, 0.04),
    0 12px 32px rgba(0, 32, 91, 0.1);
}

.brand-hero__logo img {
  max-height: 72px;
  max-width: min(280px, 70vw);
  width: auto;
  object-fit: contain;
}

.hero-welcome__title--brand {
  font-size: clamp(1.75rem, 8vw, 4.5rem);
  font-size: min(4.5rem, max(1.75rem, calc(100cqi / 14)));
  white-space: normal;
}

.hero--brand .hero-welcome__tagline {
  white-space: normal;
  max-width: 40rem;
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.page-brand .brand-page__main.section {
  padding-top: clamp(1.25rem, 3vw, 2rem);
  background: transparent;
}

.page-brand .section:not(.section--alt):not(.home-cta) {
  background: transparent;
}

.page-brand .section-header .lead {
  color: var(--color-gray-600);
}

.brand-promo {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow:
    0 1px 2px rgba(0, 32, 91, 0.04),
    0 12px 32px rgba(0, 32, 91, 0.08);
}

.brand-promo img {
  width: 100%;
  display: block;
}

.brand-promo + .brand-promo {
  margin-top: 1.25rem;
}

/* Tight-crop showroom banner (Durastar current promo) */
.brand-promo--tight {
  max-width: 920px;
  margin-inline: auto;
  aspect-ratio: 21 / 8;
  background: #120c08;
}

.brand-promo--tight img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.brand-promos__note {
  margin-top: 1rem;
  margin-bottom: 0;
  font-weight: 600;
}

.brand-promos__note a {
  color: var(--color-navy-mid);
}

.brand-promos__pricing-header {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.25rem;
}

.brand-promo--chart {
  max-width: 920px;
  margin-inline: auto;
}

@media (max-width: 640px) {
  .brand-promo--tight {
    aspect-ratio: 16 / 9;
  }

  .brand-promo--tight img {
    object-position: center 40%;
  }
}

.brand-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.brand-feature {
  padding: 1.25rem 1.35rem;
  background: var(--color-white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(0, 32, 91, 0.04),
    0 8px 24px rgba(0, 32, 91, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.brand-feature:hover {
  box-shadow:
    0 1px 2px rgba(0, 32, 91, 0.04),
    0 12px 32px rgba(0, 32, 91, 0.1);
  transform: translateY(-2px);
}

.brand-feature h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--color-dark);
}

.brand-feature p {
  font-size: 0.9375rem;
  color: var(--color-gray-600);
  line-height: 1.55;
  margin: 0;
}

.page-brand .two-col .card {
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-top: 4px solid var(--color-red);
  box-shadow:
    0 1px 2px rgba(20, 16, 14, 0.04),
    0 16px 40px rgba(20, 16, 14, 0.08);
}

.page-brand .two-col .btn--dark {
  border-radius: 12px;
  margin-top: 0.5rem;
  box-shadow: 0 4px 0 #0a1628, 0 6px 16px rgba(0, 32, 91, 0.2);
}

.brand-btn-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.brand-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  min-width: 9.5rem;
  min-height: 5.5rem;
  padding: 1rem 1.15rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(0, 32, 91, 0.04),
    0 8px 24px rgba(0, 32, 91, 0.06);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.brand-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 2px rgba(0, 32, 91, 0.04),
    0 12px 32px rgba(0, 32, 91, 0.1);
  border-color: rgba(26, 58, 107, 0.22);
}

.brand-btn:focus-visible {
  outline: 2px solid var(--color-navy-mid);
  outline-offset: 3px;
}

.brand-btn img {
  display: block;
  flex-shrink: 0;
  width: 128px;
  height: 52px;
  max-width: 128px;
  max-height: 52px;
  object-fit: contain;
  object-position: center;
}

.brand-btn__label {
  flex-shrink: 0;
  min-height: 2.4em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-600);
  line-height: 1.2;
  text-align: center;
}

.brand-btn:hover .brand-btn__label {
  color: var(--color-red);
}

.brand-btn.is-current {
  border-color: rgba(191, 10, 48, 0.45);
  box-shadow:
    0 0 0 2px rgba(191, 10, 48, 0.12),
    0 12px 32px rgba(0, 32, 91, 0.1);
}

.brand-btn.is-current .brand-btn__label {
  color: var(--color-red);
}

.page-brand .pricing-note {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  text-align: center;
  margin-top: 1rem;
}

.page-brand .home-cta.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 4.5rem) 0;
  background:
    radial-gradient(ellipse 60% 70% at 10% 100%, rgba(56, 120, 200, 0.22), transparent 52%),
    linear-gradient(145deg, #020814 0%, #00205b 48%, #0a2f6b 100%);
}

.page-brand .home-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(255, 255, 255, 0.04) 75%,
    transparent 75%
  );
  background-size: 24px 24px;
  opacity: 0.35;
  pointer-events: none;
}

.page-brand .home-cta .phone-large {
  font-size: clamp(2rem, 6vw, 2.75rem);
  transition: transform 0.2s ease, color 0.2s ease;
}

.page-brand .home-cta .phone-large:hover {
  transform: scale(1.03);
}

.page-brand .home-cta .btn--primary {
  box-shadow: 0 6px 0 #6d0820, 0 10px 28px rgba(191, 10, 48, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .brand-feature:hover,
  .brand-btn:hover {
    transform: none;
  }
}

@media (max-width: 768px) {
  .page-brand > main {
    background: linear-gradient(
      180deg,
      #00205b 0,
      #0a2f6b 6rem,
      #1a4a8c 11rem,
      #3d6a9e 15.5rem,
      #3d6a9e 22rem,
      #7a94b0 24.5rem,
      #b8c5d4 27rem,
      #f0f2f5 29.5rem,
      #f0f2f5 100%
    );
  }

  .hero-welcome__title--brand {
    font-size: clamp(1.65rem, 10vw, 2.75rem);
  }
}
