/* Central HVAC Homeowner Resource Center
   Additive styles only. Existing global styles remain in styles.css.
*/

.resource-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(68, 163, 232, .18), transparent 30%),
    linear-gradient(135deg, #081a2c 0%, #0b2945 60%, #0d365a 100%);
  color: #fff;
  padding: 72px 0;
}

.resource-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
  gap: 48px;
  align-items: center;
}

.resource-hero .breadcrumb,
.resource-hero .breadcrumb a {
  color: rgba(255, 255, 255, .72);
}

.resource-hero h1 {
  max-width: 850px;
  margin: 12px 0 20px;
  color: #fff;
}

.resource-hero .lead {
  max-width: 760px;
  color: rgba(255, 255, 255, .84);
}

.resource-eyebrow {
  color: #8fd0ff;
}

.resource-hero-card {
  background: rgba(255, 255, 255, .98);
  color: #10233a;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .26);
}

.resource-hero-card h2 {
  margin: 4px 0 18px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.resource-card-kicker,
.resource-card-label,
.resource-topic,
.resource-status {
  display: inline-block;
  font-size: .76rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.resource-card-kicker {
  color: #0b5ed7;
}

.resource-hero-card > a {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 14px 0;
  color: #10233a;
  text-decoration: none;
  border-top: 1px solid #e5ebf1;
}

.resource-hero-card > a:first-of-type {
  border-top: 0;
}

.resource-hero-card > a:hover strong {
  color: #0b5ed7;
}

.resource-hero-card strong,
.resource-hero-card small {
  display: block;
}

.resource-hero-card small {
  margin-top: 3px;
  color: #607086;
}

.resource-search-section {
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

.resource-search {
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 14px 38px rgba(12, 36, 61, .12);
}

.resource-search label {
  display: block;
  margin-bottom: 9px;
  color: #10233a;
  font-weight: 800;
}

.resource-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.resource-search input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #cbd6e2;
  border-radius: 8px;
  font: inherit;
}

.resource-search input:focus {
  outline: 3px solid rgba(11, 94, 215, .15);
  border-color: #0b5ed7;
}

.resource-search-note {
  margin: 9px 0 0;
  color: #6b7787;
  font-size: .84rem;
}

.resource-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.resource-section-heading h2 {
  margin-bottom: 0;
}

.resource-section-heading > p {
  max-width: 520px;
  margin: 0;
  color: #607086;
}

.resource-branch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.resource-branch-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 24px;
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 14px;
  color: #10233a;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(12, 36, 61, .06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.resource-branch-card:hover {
  transform: translateY(-4px);
  border-color: #9bc8f5;
  box-shadow: 0 16px 34px rgba(12, 36, 61, .12);
}

.resource-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #eef6ff;
  font-size: 1.45rem;
}

.resource-card-label {
  margin-bottom: 7px;
  color: #0b5ed7;
}

.resource-branch-card h3 {
  margin: 0 0 10px;
}

.resource-branch-card p {
  margin: 0 0 18px;
  color: #607086;
}

.resource-link {
  margin-top: auto;
  color: #0b5ed7;
  font-weight: 800;
}

.resource-featured-section {
  background: #f4f8fb;
}

.resource-feature-grid,
.resource-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.resource-feature-card,
.resource-article-card {
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 14px;
  padding: 24px;
}

.resource-feature-card {
  border-top: 5px solid #0b5ed7;
}

.resource-status {
  margin-bottom: 14px;
  color: #47637f;
}

.resource-feature-card h3,
.resource-article-card h3 {
  margin-top: 0;
}

.resource-feature-card p,
.resource-article-card p {
  color: #607086;
}

.resource-topic {
  margin-bottom: 12px;
  color: #0b5ed7;
}

.resource-article-card h3 a {
  color: #10233a;
  text-decoration: none;
}

.resource-article-card h3 a:hover {
  color: #0b5ed7;
}

.resource-meta {
  display: block;
  margin-top: 18px;
  color: #7a8796;
  font-size: .84rem;
  font-weight: 700;
}

.resource-view-all {
  white-space: nowrap;
}

.resource-trust-section {
  background: #0b1f33;
  color: #fff;
}

.resource-trust-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.resource-trust-section h2 {
  color: #fff;
}

.resource-trust-section p {
  color: rgba(255, 255, 255, .78);
}

@media (max-width: 1050px) {
  .resource-branch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .resource-hero-grid,
  .resource-trust-grid {
    grid-template-columns: 1fr;
  }

  .resource-feature-grid,
  .resource-article-grid {
    grid-template-columns: 1fr;
  }

  .resource-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 620px) {
  .resource-hero {
    padding: 52px 0 60px;
  }

  .resource-hero-card {
    padding: 22px;
  }

  .resource-search-row,
  .resource-branch-grid {
    grid-template-columns: 1fr;
  }

  .resource-search-row .btn {
    width: 100%;
  }

  .resource-branch-card {
    min-height: 0;
  }
}
