/* ================================================================
   styles.css — Your HVAC Company
   Shared styles for index.html, about.html, contact.html,
   resources.html
   ================================================================ */

/* ----------------------------------------------------------------
   CSS VARIABLES — Edit here to rebrand
   ---------------------------------------------------------------- */
:root {
  /* Colors */
  --navy:         #0c1c35;
  --navy-mid:     #152a4a;
  --navy-light:   #1d3a66;
  --navy-faint:   #e8edf5;
  --green:        #3ea84a;
  --green-dark:   #2e8038;
  --green-light:  #a8d5ac;
  --green-faint:  #edf7ee;
  --cream:        #f8f6f1;
  --warm-white:   #fdfcfa;
  --gray-50:      #f9f8f6;
  --gray-100:     #f1efe9;
  --gray-200:     #e2dfd7;
  --gray-300:     #cbc7be;
  --gray-400:     #9e9b94;
  --gray-500:     #706e68;
  --gray-600:     #504e49;
  --gray-800:     #2c2b27;
  --text-dark:    #18170f;
  --text-mid:     #38362f;
  --white:        #ffffff;
  --amber:        #f59e0b;

  /* Shadows */
  --shadow-xs:    0 1px 4px rgba(12,28,53,0.07);
  --shadow-sm:    0 2px 10px rgba(12,28,53,0.09);
  --shadow-md:    0 6px 24px rgba(12,28,53,0.12);
  --shadow-lg:    0 14px 44px rgba(12,28,53,0.16);
  --shadow-xl:    0 24px 64px rgba(12,28,53,0.22);

  /* Radii */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   22px;
  --r-xl:   32px;
  --r-pill: 999px;

  /* Typography */
  --font-display: 'Sora', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Transitions */
  --t-fast:   0.18s ease;
  --t-base:   0.25s ease;
  --t-slow:   0.4s ease;

  /* Layout */
  --max-w:    1100px;
  --nav-h:    66px;
}

/* ----------------------------------------------------------------
   RESET
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--warm-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ----------------------------------------------------------------
   LAYOUT HELPERS
   ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 22px;
}

section { padding: 80px 0; }

.section-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-title.light { color: var(--white); }

.section-sub {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.72;
  max-width: 540px;
}

.section-sub.light { color: rgba(255,255,255,0.62); }

.divider {
  width: 44px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  margin: 14px 0 22px;
}

/* ----------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast),
    box-shadow var(--t-fast),
    transform var(--t-fast);
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 4px 20px rgba(62,168,74,0.35);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-lg {
  font-size: 0.96rem;
  padding: 15px 30px;
}

.btn-sm {
  font-size: 0.8rem;
  padding: 9px 18px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ----------------------------------------------------------------
   NAVIGATION — 3-zone layout: Logo | Center Links | Phone + CTA
   ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--navy);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 20px rgba(12,28,53,0.25);
}

/* Mobile: logo left, hamburger right */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 22px;
  gap: 0;
}

/* REPLACE: Swap this with your real logo image
   Example: <a href="index.html"><img src="logo.png" alt="Your HVAC Company" style="height:38px;"></a> */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--green);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.nav-logo-text span {
  color: var(--green-light);
}

/* Center nav links — hidden on mobile */
.nav-links {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  padding: 8px 13px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.09);
}

.nav-links a.active {
  color: var(--green-light);
  background: rgba(255,255,255,0.07);
}

/* Right zone: phone + CTA — hidden on mobile */
.nav-right {
  display: none;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* REPLACE: Update with your real phone number */
.nav-phone {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--t-fast);
}
.nav-phone:hover { color: var(--white); }

/* Hamburger */
.hamburger {
  background: none;
  border: none;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop: show all 3 zones */
@media (min-width: 840px) {
  .nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "logo links right";
  }
  .nav-logo { grid-area: logo; }
  .nav-links { display: flex; grid-area: links; }
  .nav-right { display: flex; grid-area: right; justify-content: flex-end; }
  .hamburger { display: none; }
}

/* Tight screen: hide phone, keep CTA */
@media (min-width: 840px) and (max-width: 1020px) {
  .nav-phone { display: none; }
  .nav-links a { font-size: 0.82rem; padding: 8px 10px; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--navy-mid);
  padding: 10px 22px 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 10px 30px rgba(12,28,53,0.35);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 899;
}

.mobile-drawer.open { display: flex; }

.mobile-drawer a {
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  padding: 13px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--t-fast);
  text-decoration: none;
}

.mobile-drawer a:last-of-type { border-bottom: none; }
.mobile-drawer a:hover { color: var(--green-light); }

.mobile-drawer-cta {
  margin-top: 14px;
  width: 100%;
  justify-content: center;
}

/* Phone in drawer */
.mobile-drawer-phone {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5) !important;
  padding: 10px 6px !important;
  border-bottom: none !important;
}

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
.site-footer {
  background: #09162a;
  padding: 56px 0 28px;
  color: rgba(255,255,255,0.65);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

@media (min-width: 580px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* REPLACE: Swap footer logo with real business logo */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin-bottom: 20px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.62);
}

.footer-contact-item a { transition: color var(--t-fast); }
.footer-contact-item a:hover { color: var(--green-light); }

.footer-col-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 16px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--t-fast);
}

.footer-links-list a:hover { color: var(--green-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ----------------------------------------------------------------
   HERO — shared base (each page overrides specifics)
   ---------------------------------------------------------------- */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 85% 35%, rgba(62,168,74,0.11) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at -5% 85%, rgba(62,168,74,0.07) 0%, transparent 55%),
    linear-gradient(155deg, #0c1c35 0%, #152a4a 55%, #1d3a66 100%);
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* ----------------------------------------------------------------
   CARDS (generic)
   ---------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ----------------------------------------------------------------
   TRUST BADGES (inline hero pills)
   ---------------------------------------------------------------- */
.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--r-pill);
  padding: 8px 15px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.86);
}

.trust-pill-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   SCROLL REVEAL
   ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* stagger helpers */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* ----------------------------------------------------------------
   FORMS
   ---------------------------------------------------------------- */
.form-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: 0.025em;
  display: block;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(62,168,74,0.14);
}

.form-control.error {
  border-color: #dc2626;
  background: #fff8f8;
}

.form-control::placeholder { color: var(--gray-300); }

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239e9b94' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

textarea.form-control {
  min-height: 115px;
  resize: vertical;
  line-height: 1.6;
}

.form-group { display: flex; flex-direction: column; margin-bottom: 18px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 540px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.radio-opt {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  color: var(--gray-800);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
}

.radio-opt input[type="radio"],
.checkbox-opt input[type="checkbox"] {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkbox-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray-600);
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-opt input { flex-shrink: 0; margin-top: 2px; }

/* ----------------------------------------------------------------
   SUCCESS MESSAGE (form)
   ---------------------------------------------------------------- */
.form-success {
  display: none;
  background: var(--green-faint);
  border: 1.5px solid var(--green);
  border-radius: var(--r-md);
  padding: 36px 28px;
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.form-success.visible { display: flex; }

.form-success-icon { font-size: 2.6rem; }

.form-success-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green-dark);
}

.form-success-msg {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ----------------------------------------------------------------
   DARK SECTION VARIANT
   ---------------------------------------------------------------- */
.section-dark {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(62,168,74,0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* ----------------------------------------------------------------
   DARK CARD VARIANT
   ---------------------------------------------------------------- */
.card-dark {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  padding: 26px 24px;
  transition: background var(--t-base), border-color var(--t-base);
}

.card-dark:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(62,168,74,0.35);
}

/* ----------------------------------------------------------------
   CHECK LIST
   ---------------------------------------------------------------- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.check-icon {
  width: 24px;
  height: 24px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--white);
  flex-shrink: 0;
  margin-top: 2px;
}

.check-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.check-text p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ----------------------------------------------------------------
   CTA BANNER
   ---------------------------------------------------------------- */
.cta-banner {
  background: var(--navy);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(62,168,74,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.cta-banner-inner { position: relative; z-index: 1; }

.cta-banner-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.cta-banner-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 30px;
}

/* ----------------------------------------------------------------
   PAGE HERO (inner pages — shorter)
   ---------------------------------------------------------------- */
.page-hero {
  background: var(--navy);
  padding: 60px 0 56px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, #0c1c35 0%, #152a4a 60%, #1d3a66 100%);
  pointer-events: none;
}

.page-hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 12px;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  line-height: 1.7;
}

/* ----------------------------------------------------------------
   RESPONSIVE UTILITIES
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  section { padding: 60px 0; }
  .btn-group { gap: 10px; }
  .btn { white-space: normal; text-align: center; }
}

/* ----------------------------------------------------------------
   IMAGE PLACEHOLDERS
   Used wherever real photos haven't been added yet.
   Replace the .img-placeholder element with a real <img> tag.
   ---------------------------------------------------------------- */
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(145deg, var(--navy-mid) 0%, var(--navy-light) 100%);
  color: rgba(255,255,255,0.4);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
  /* width/height set by parent */
}

.img-placeholder-icon {
  font-size: 1.8rem;
  opacity: 0.5;
}

/* ----------------------------------------------------------------
   RESOURCES PAGE
   ---------------------------------------------------------------- */

/* Filter chips */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  margin-bottom: 44px;
}

.filter-chip {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  transition:
    background var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast);
}

.filter-chip:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.filter-chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* Resource card grid */
.resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 580px) {
  .resources-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .resources-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Resource card */
.resource-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Resource card thumbnail */
.resource-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.resource-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* REPLACE: Each .resource-thumb has an .img-placeholder until real images are added */
.resource-thumb .img-placeholder {
  width: 100%;
  height: 100%;
}

/* Resource card body */
.resource-body {
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.resource-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-faint);
  border: 1px solid rgba(62,168,74,0.18);
  padding: 3px 9px;
  border-radius: var(--r-pill);
  align-self: flex-start;
}

.resource-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.resource-excerpt {
  font-size: 0.87rem;
  color: var(--gray-500);
  line-height: 1.65;
  flex: 1;
}

.resource-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-top: 6px;
  text-decoration: none;
  transition: gap var(--t-fast);
}

.resource-read-more:hover { gap: 9px; }

/* Hidden card (filtered out) */
.resource-card.hidden {
  display: none;
}

/* Resources: no results message */
.resources-empty {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  font-size: 0.95rem;
  color: var(--gray-400);
  font-style: italic;
}

.resources-empty.visible { display: block; }

/* Resources coming-soon note */
.resources-more-note {
  text-align: center;
  margin-top: 40px;
  padding: 22px 24px;
  background: var(--navy-faint);
  border: 1px solid rgba(29,58,102,0.12);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  color: var(--navy-light);
  line-height: 1.65;
}

.resources-more-note strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
}

