/* ==========================================================================
   RoofingCalcTools.com - Complete Master Design & Responsive CSS System
   Covers 100% of HTML Class Names Across All Pages (320px to 2560px+)
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* --------------------------------------------------------------------------
   1. VARIABLES & DESIGN SYSTEM
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --primary-navy: #12345B;
  --dark-navy: #0B2239;
  --roofing-orange: #F59E0B;
  --orange-hover: #D97706;
  --main-bg: #F7F9FC;
  --white: #FFFFFF;
  --primary-text: #172B3A;
  --secondary-text: #64748B;
  --border-color: #E2E8F0;
  --soft-navy-bg: #EEF4FA;
  --success: #16A34A;
  --error: #DC2626;

  /* Typography */
  --font-sans: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 39, 71, 0.04);
  --shadow-md: 0 8px 25px rgba(15, 39, 71, 0.06);
  --shadow-lg: 0 16px 35px rgba(15, 39, 71, 0.10);
  --shadow-orange: 0 6px 20px rgba(245, 158, 11, 0.25);

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max: 1200px;
  --header-height: 82px;
}

@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & ANTI-OVERFLOW RULES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--primary-text);
  background-color: var(--main-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

body.no-scroll {
  overflow: hidden !important;
}

/* Media Elements */
img, svg, video, iframe, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Text Wrapping Protection */
p, h1, h2, h3, h4, h5, h6, span, label, a, td, th, li, code {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

a {
  color: var(--primary-navy);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--roofing-orange);
}

p {
  margin-bottom: 1rem;
  color: var(--secondary-text);
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--dark-navy);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(1.85rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.45rem, 3.5vw, 2.25rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  margin-bottom: 0.75rem;
}

.highlight {
  color: var(--roofing-orange);
}

/* Fluid Container */
.container {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.25rem, var(--container-max));
  }
}

/* --------------------------------------------------------------------------
   3. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  height: var(--header-height);
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo img {
  height: clamp(38px, 6vw, 56px);
  width: auto;
  max-width: clamp(180px, 50vw, 280px);
  object-fit: contain;
}

@media (max-width: 640px) {
  .brand-logo img {
    height: 38px;
    max-width: 195px;
  }
}

.footer-brand .brand-logo img {
  height: 48px;
  background: var(--white);
  padding: 6px 12px;
  border-radius: 8px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.desktop-nav a {
  color: var(--secondary-text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--primary-navy);
}

.desktop-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--roofing-orange);
  border-radius: 3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn-search {
  background: var(--main-bg);
  border: 1px solid var(--border-color);
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-navy);
  transition: var(--transition-fast);
}

.icon-btn-search:hover {
  background: var(--soft-navy-bg);
  border-color: var(--primary-navy);
  color: var(--primary-navy);
}

.btn-header-cta {
  background-color: var(--roofing-orange);
  color: var(--dark-navy);
  font-weight: 800;
  font-size: 0.925rem;
  min-height: 44px;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-header-cta:hover {
  background-color: var(--orange-hover);
  color: var(--dark-navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-orange);
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: none;
  background: var(--soft-navy-bg);
  border: 1px solid var(--border-color);
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--dark-navy);
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: var(--transition-fast);
}

.mobile-nav-toggle:hover {
  background: var(--border-color);
}

/* Mobile Navigation Side Drawer */
.mobile-nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(11, 34, 57, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-inner {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--white);
  padding: 1.25rem 1.25rem 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  border-left: 3px solid var(--roofing-orange);
}

.mobile-nav-menu.active .mobile-nav-inner {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-close {
  background: var(--soft-navy-bg);
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dark-navy);
  transition: var(--transition-fast);
}

.mobile-nav-close:hover {
  background: var(--border-color);
  color: var(--roofing-orange);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0.75rem 1rem;
  background: var(--main-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--dark-navy);
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--soft-navy-bg);
  border-color: var(--primary-navy);
  color: var(--primary-navy);
}

.mobile-nav-cta {
  width: 100%;
  min-height: 50px;
  margin-top: 0.5rem;
  justify-content: center;
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .btn-header-cta {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   4. BUTTONS & UI CONTROLS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1rem;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background-color: var(--roofing-orange);
  color: var(--dark-navy);
}

.btn-primary:hover {
  background-color: var(--orange-hover);
  color: var(--dark-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
}

.btn-navy {
  background-color: var(--primary-navy);
  color: var(--white);
}

.btn-navy:hover {
  background-color: var(--dark-navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: var(--white);
  color: var(--primary-navy);
  border: 1.5px solid var(--primary-navy);
}

.btn-outline:hover {
  background-color: var(--soft-navy-bg);
  color: var(--dark-navy);
}

.btn-full {
  width: 100%;
}

@media (max-width: 640px) {
  .btn {
    width: 100%;
    min-height: 50px;
    justify-content: center;
    white-space: normal;
  }
}

/* --------------------------------------------------------------------------
   5. HERO SECTION & HERO SAAS CARD
   -------------------------------------------------------------------------- */
.hero-section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--main-bg) 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
  }
}

.hero-content {
  max-width: 650px;
}

/* Badges & Tags */
.badge,
.badge-orange {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--soft-navy-bg);
  color: var(--primary-navy);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(18, 52, 91, 0.12);
}

.badge-orange {
  background: #FEF3C7;
  color: #B45309;
  border-color: #FDE68A;
}

.badge svg {
  color: var(--roofing-orange);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--secondary-text);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

@media (max-width: 640px) {
  .hero-section {
    padding: 1.5rem 0;
  }
  .hero-subtitle {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
  }
  .hero-trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    padding-top: 1.25rem;
    width: 100%;
  }
  .trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.2rem;
    background: var(--soft-navy-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--dark-navy);
    white-space: nowrap;
    gap: 0.2rem;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  }
  .trust-item svg {
    width: 13px;
    height: 13px;
    color: var(--success);
    flex-shrink: 0;
  }
}

.hero-trust-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  background: var(--soft-navy-bg);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dark-navy);
  transition: var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.trust-item:hover {
  border-color: var(--primary-navy);
  background: var(--white);
  transform: translateY(-1px);
}

.trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex-shrink: 0;
}

.hero-visual {
  width: 100%;
}

.hero-saas-card {
  background: var(--white);
  border-radius: 16px;
  padding: clamp(1.25rem, 4vw, 1.75rem);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  width: 100%;
}

.hero-saas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
  gap: 0.5rem;
}

.saas-header-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--dark-navy);
}

.saas-status {
  background: #DCFCE7;
  color: #15803D;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .hero-saas-header {
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    gap: 0.35rem;
  }
  .saas-header-title {
    font-size: 0.88rem;
    gap: 0.35rem;
    white-space: nowrap;
  }
  .saas-header-title svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
  }
  .saas-status {
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
  }
}

.roof-diagram-box {
  background: var(--soft-navy-bg);
  border-radius: 12px;
  padding: 1rem 0.65rem;
  margin-bottom: 1.25rem;
  border: 1px dashed #CBD5E1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.roof-diagram-box svg {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.saas-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .hero-saas-card {
    padding: 1rem 0.75rem;
  }
  .roof-diagram-box {
    padding: 0.75rem 0.35rem;
    margin-bottom: 1rem;
  }
  .saas-metrics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }
  .saas-metric-card {
    padding: 0.5rem 0.25rem;
  }
  .saas-metric-label {
    font-size: 0.65rem;
  }
  .saas-metric-value {
    font-size: 0.95rem;
  }
}

.saas-metric-card {
  background: var(--soft-navy-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  text-align: center;
}

.saas-metric-label {
  font-size: 0.75rem;
  color: var(--secondary-text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.saas-metric-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-navy);
}

.saas-metric-value.highlight-val {
  color: var(--roofing-orange);
}

.hero-floating-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary-text);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   6. CALCULATOR & GUIDE CARD GRIDS
   -------------------------------------------------------------------------- */
.calculators-section,
.benefits-section,
.how-it-works-section,
.guides-section,
.faq-section,
.section-padding {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto clamp(2rem, 4vw, 3rem) auto;
}

.section-eyebrow {
  color: var(--roofing-orange);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}

.cards-grid,
.guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cards-grid,
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid,
  .guides-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Calculator Card */
.calc-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-fast);
  position: relative;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.calc-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-navy);
  box-shadow: var(--shadow-md);
}

.calc-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--soft-navy-bg);
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.calc-card-category {
  font-size: 0.75rem;
  color: var(--roofing-orange);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.calc-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 0.75rem;
}

.calc-card-desc {
  font-size: 0.925rem;
  color: var(--secondary-text);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.calc-card-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--primary-navy);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.calc-card-link span {
  transition: transform 0.2s ease;
}

.calc-card:hover .calc-card-link span {
  transform: translateX(4px);
}

/* Guide Card */
.guide-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.guide-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-navy);
  box-shadow: var(--shadow-md);
}

.guide-tag {
  background: #FEF3C7;
  color: #B45309;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
  display: inline-block;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.guide-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--dark-navy);
}

.guide-card p {
  font-size: 0.925rem;
  color: var(--secondary-text);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.guide-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--primary-navy);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.guide-link span {
  transition: transform 0.2s ease;
}

.guide-card:hover .guide-link span {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   7. FEATURES, STEPS & TRUST SECTIONS
   -------------------------------------------------------------------------- */
.bg-soft {
  background-color: var(--soft-navy-bg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.benefit-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--soft-navy-bg);
  color: var(--roofing-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 14px;
  border: 1px solid var(--border-color);
}

.step-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--roofing-orange);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.85;
}

/* Dark CTA Banner Section */
.featured-cta-section {
  padding: 0;
  margin: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.featured-cta-card,
.dark-cta-banner {
  background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-navy) 100%);
  color: var(--white);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .featured-cta-card {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}

.featured-cta-content h2,
.dark-cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.featured-cta-content p,
.dark-cta-banner p {
  color: #CBD5E1;
  font-size: clamp(1rem, 2vw, 1.1rem);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.featured-cta-widget {
  width: 100%;
}

.cta-widget-inner {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.cta-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-widget-badge {
  background: var(--roofing-orange);
  color: var(--dark-navy);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  text-transform: uppercase;
}

.cta-widget-title {
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

.cta-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.cta-metric-item {
  background: rgba(11, 34, 57, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  text-align: center;
}

.cta-label {
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.25rem;
}

.cta-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
}

.cta-val.highlight-orange {
  color: var(--roofing-orange);
}

/* --------------------------------------------------------------------------
   8. CALCULATOR PAGE & APP LAYOUT
   -------------------------------------------------------------------------- */
.calculator-page {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  flex: 1;
}

.calc-header-summary {
  margin-bottom: 2rem;
  max-width: 800px;
}

.calc-app-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

@media (min-width: 1024px) {
  .calc-app-layout {
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
  }
}

@media (min-width: 1280px) {
  .calc-app-layout {
    grid-template-columns: 1fr 420px;
  }
}

.calc-widget-card,
.calc-form-card {
  background: var(--white);
  border-radius: 16px;
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group,
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-group label,
.input-group label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark-navy);
}

.form-control,
.form-group input,
.form-group select,
.input-group input,
.input-group select {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font-size: 16px;
  font-family: var(--font-sans);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  background-color: var(--white);
  color: var(--primary-text);
  transition: var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus,
.form-group input:focus,
.form-group select:focus,
.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 3px rgba(18, 52, 91, 0.15);
}

select.form-control,
.form-group select,
.input-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%3C172B3A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.alert-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: none;
}

/* Results Display Box */
.results-panel {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.primary-result-box {
  background: var(--dark-navy);
  color: var(--white);
  border-radius: 14px;
  padding: clamp(1.25rem, 4vw, 1.75rem);
  margin-bottom: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.primary-result-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
  font-weight: 700;
}

.primary-result-val,
.primary-result-value {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 900;
  color: var(--roofing-orange);
  margin: 0.3rem 0;
  line-height: 1.1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.secondary-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 480px) {
  .secondary-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.secondary-result-item {
  background: var(--soft-navy-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.sec-result-label,
.secondary-result-label {
  font-size: 0.8rem;
  color: var(--secondary-text);
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

.sec-result-value,
.secondary-result-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-navy);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.btn-copy-results,
.js-copy-results {
  width: 100%;
  min-height: 48px;
  background: var(--soft-navy-bg);
  border: 1.5px solid var(--primary-navy);
  color: var(--primary-navy);
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  margin-top: 0.5rem;
}

.btn-copy-results:hover,
.js-copy-results:hover {
  background: var(--primary-navy);
  color: var(--white);
}

.calc-side-panel,
.sidebar-box {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.calc-side-panel h3,
.sidebar-box h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.calc-details-content {
  margin-top: 2.5rem;
  max-width: 860px;
}

.content-block {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: clamp(1.25rem, 4vw, 2rem);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.content-block h2 {
  margin-top: 0.5rem;
}

.content-block ul,
.content-block ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--secondary-text);
}

.content-block li {
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   9. BREADCRUMBS
   -------------------------------------------------------------------------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--secondary-text);
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.breadcrumbs a {
  color: var(--secondary-text);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.breadcrumbs a:hover {
  color: var(--primary-navy);
}

.breadcrumbs span.current {
  color: var(--dark-navy);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   10. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-container,
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.accordion-item {
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1.5px solid var(--border-color);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.accordion-item.active {
  border-color: var(--primary-navy);
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  width: 100%;
  min-height: 52px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--white);
  border: none;
  border-radius: 12px;
  font-size: clamp(1rem, 2.5vw, 1.05rem);
  font-weight: 700;
  color: var(--dark-navy);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.accordion-header:hover {
  background: var(--soft-navy-bg);
}

.accordion-item.active .accordion-header {
  background: var(--soft-navy-bg);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.accordion-header svg,
.accordion-icon {
  flex-shrink: 0;
  color: var(--roofing-orange);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.accordion-item.active .accordion-icon {
  color: var(--primary-navy);
  background: rgba(18, 52, 91, 0.12);
}

.accordion-content {
  background: var(--white);
  border-top: 1px solid var(--border-color);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
}

.accordion-item.active .accordion-content {
  opacity: 1;
}

.accordion-content p,
.accordion-body {
  padding: 1.15rem 1.25rem;
  margin: 0;
  color: var(--secondary-text);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   11. TABLES & TABLE WRAPPER
   -------------------------------------------------------------------------- */
.table-wrapper {
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--white);
}

.custom-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.custom-table th {
  background-color: var(--dark-navy);
  color: var(--white);
  font-weight: 700;
  padding: 1rem 1.25rem;
  white-space: nowrap;
}

.custom-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--primary-text);
}

.custom-table tr:nth-child(even) {
  background-color: #F8FAFC;
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.ad-space {
  background: var(--main-bg);
  border: 1px dashed #CBD5E1;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  color: #94A3B8;
  font-size: 0.85rem;
  margin: 2rem 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   12. SEARCH MODAL OVERLAY
   -------------------------------------------------------------------------- */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 34, 57, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 5vh, 4rem) 1rem;
}

.search-modal.active {
  display: flex;
}

.search-modal-box {
  background: var(--white);
  border-radius: 16px;
  width: min(100%, 640px);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-lg);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.search-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.search-modal-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-modal-input {
  width: 100%;
  height: 52px;
  min-height: 48px;
  padding: 0 1.25rem 0 3rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  outline: none;
  background: var(--main-bg);
}

.search-modal-input:focus {
  border-color: var(--primary-navy);
  background: var(--white);
}

.search-modal-icon {
  position: absolute;
  left: 1rem;
  color: var(--secondary-text);
  pointer-events: none;
}

.search-modal-close-btn {
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--secondary-text);
  font-size: 1.5rem;
  border-radius: 8px;
}

.search-modal-close-btn:hover {
  background: var(--soft-navy-bg);
  color: var(--dark-navy);
}

.search-modal-results {
  margin-top: 1.25rem;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-right: 0.35rem;
}

.search-modal-results::-webkit-scrollbar {
  width: 6px;
}
.search-modal-results::-webkit-scrollbar-track {
  background: var(--soft-navy-bg);
  border-radius: 4px;
}
.search-modal-results::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
.search-modal-results::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-text);
}

.search-result-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  background: var(--main-bg);
  border: 1.5px solid var(--border-color);
  text-decoration: none;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.search-result-item:hover {
  background: var(--soft-navy-bg);
  border-color: var(--primary-navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.search-result-category {
  font-size: 0.725rem;
  color: var(--roofing-orange);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.search-result-title {
  font-size: 0.975rem;
  color: var(--dark-navy);
  font-weight: 700;
  line-height: 1.35;
}

.search-result-item:hover .search-result-title {
  color: var(--primary-navy);
}

/* --------------------------------------------------------------------------
   13. SITE FOOTER RESPONSIVENESS
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--dark-navy);
  color: var(--white);
  padding: clamp(2.25rem, 4.5vw, 3.25rem) 0 1.5rem 0;
  margin-top: auto;
  border-top: 1px solid #1E293B;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1.25rem;
  }
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: 1.3fr repeat(4, 1fr);
    gap: 1.75rem;
  }
}

.footer-brand p {
  color: #94A3B8;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 280px;
  line-height: 1.5;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.2rem;
}

.footer-col a {
  color: #CBD5E1;
  font-size: 0.875rem;
  display: inline-block;
  padding: 0.25rem 0;
  min-height: auto;
  line-height: 1.35;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--roofing-orange);
}

.footer-bottom {
  border-top: 1px solid #1E3A5F;
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #94A3B8;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-legal-links a {
  color: #94A3B8;
  min-height: auto;
  padding: 0.25rem 0;
  display: inline-flex;
  align-items: center;
}

.footer-legal-links a:hover {
  color: var(--white);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-legal-links {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   14. UTILITY HELPER CLASSES
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* --------------------------------------------------------------------------
   15. ARTICLE PAGE & KNOWLEDGE HUB STYLES
   -------------------------------------------------------------------------- */
.article-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

@media (min-width: 1024px) {
  .article-layout-grid {
    grid-template-columns: 1fr 320px;
    gap: 3rem;
  }
}

.article-main-content {
  width: 100%;
  max-width: 780px;
}

.guide-category-badge {
  display: inline-block;
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.article-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--primary-text);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  font-size: 0.875rem;
  color: var(--secondary-text);
  padding: 0.85rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.toc-card,
.toc-box {
  background: var(--soft-navy-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.mobile-only-toc {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-only-toc {
    display: none;
  }
}

.toc-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--dark-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.toc-list a {
  color: var(--primary-navy);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

.toc-list a:hover {
  color: var(--roofing-orange);
  text-decoration: underline;
}

.formula-box {
  background: var(--soft-navy-bg);
  border-left: 4px solid var(--roofing-orange);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.formula-title {
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--roofing-orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.formula-expr {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-navy);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  margin-bottom: 0.5rem;
}

.formula-vars {
  font-size: 0.875rem;
  color: var(--secondary-text);
  line-height: 1.5;
}

.calc-cta-card {
  background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-navy) 100%);
  color: var(--white);
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-md);
}

.calc-cta-card h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.calc-cta-card p {
  color: #CBD5E1;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sticky-sidebar-widget {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-links a {
  color: var(--primary-navy);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
}

.sidebar-links a:hover {
  color: var(--roofing-orange);
}

.featured-guide-hero {
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  transition: var(--transition-fast);
}

@media (min-width: 768px) {
  .featured-guide-hero {
    grid-template-columns: 1fr 1fr;
  }
}

.featured-hero-content {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-hero-visual {
  background: var(--soft-navy-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.footer-email-link {
  color: #FFFFFF;
  text-decoration: none !important;
  font-weight: 500;
  word-break: break-all;
  transition: color 0.2s ease;
}

.footer-email-link:hover {
  color: var(--roofing-orange);
  text-decoration: none !important;
}
