/* ---------------------------------------------
 * Removed Flyout Menus and restructuring for 
 * Mobile 2025-07-03
  --------------------------------------------- */

/* ---------------------------------------------
   Global Variables and Branding Colors
--------------------------------------------- */
:root {
    --cassiopeia-color-primary: #0000cc;
    --cassiopeia-color-hover: #0033ff;
    --cassiopeia-color-link: #0033ff;
    --cassiopeia-color-text: #111111;
    --hero-bg-gradient: linear-gradient(to right, #0000cc, #0033ff);
  }
  
  /* ---------------------------------------------
     Global Base Styles
  --------------------------------------------- */
  body.site {
    background-color: #f5f7fa;
  }
  
  /* ---------------------------------------------
     Header: Contact Info and Badge (logo-right) - 2025-07-01 GAL
  --------------------------------------------- */
  .header-contact-wrapper {
    background: transparent !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: white;
    border-radius: 8px;
    margin: 0;
    box-shadow: none;
  }
  
  .header-contact-wrapper .cmi-badge {
    max-width: 80px;
    height: auto;
    display: block;
    margin-right: 1rem;
  }
  
  /* Force transparency on the badge container */
  .header-contact-wrapper .header-badge {
    background-color: transparent !important;
    padding: 0;
    margin: 0;
  }
  
  /* Text block next to badge */
  .header-info-block {
    background: transparent;
    padding: 0;
    color: white !important;
    flex: 1;
  }
  
  .header-info-block strong,
  .header-info-block a,
  .header-info-block span {
    color: white;
    text-decoration: none;
  }
  
  .header-info-block a:hover {
    text-decoration: underline;
    color: #ccc !important;
  }
  
  /* Hide CMI badge in portrait mode only - 2025-07-01 GAL */
  @media screen and (max-width: 768px) and (orientation: portrait) {
    .header-contact-wrapper .cmi-badge {
      display: none;
    }
  }
  /* Limit header logo size */
.navbar-brand img {
    max-height: 90px;   /* adjust: 70–110px is typical */
    width: auto;
}
  /* ---------------------------------------------
     Homepage Hero Section
  --------------------------------------------- */
  .homepage-hero {
    background: var(--hero-bg-gradient) !important;
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    margin: 0 -15px 2rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  @media (min-width: 768px) {
    .homepage-hero {
      border-radius: 6px;
      margin: 0 auto 2rem;
      max-width: 100%;
    }
  }
  
  /* ---------------------------------------------
     Hero Content Styling
  --------------------------------------------- */
  .hero-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
  }
  
  .hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
  }
  
  .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0;
  }
  
  .hero-button {
    background: white;
    color: #0000cc;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s ease, color 0.2s ease;
  }
  
  .hero-button.secondary {
    background: #f0f4fb;
  }
  
  .hero-button:hover {
    background: #0033ff;
    color: white;
  }
  
  /* Fix Line Spacing 25-07-01 */
  .hero-content small {
    display: block;
    margin-top: -1rem;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    color: #f0f0f0;
    font-style: italic;
    line-height: 1.4;
  }
  
/* ===== Section Menu Mobile Improvements - 2025-07-03 GAL ===== */
@media (max-width: 768px) {
    .mod-menu .nav > li {
      margin-bottom: 0.75rem;
    }
  
    .mod-menu .nav > li > a {
      font-weight: bold;
      font-size: 1.1rem;
    }
  
    .mod-menu .nav > li ul {
      padding-left: 1rem;
      margin-top: 0.25rem;
    }
  
    .mod-menu .nav > li ul li {
      margin-bottom: 0.25rem;
    }
  
    .mod-menu .nav > li ul li a {
      font-weight: normal;
      font-size: 0.95rem;
    }
  }
  
  
  /* ---------------------------------------------
     RSForm Styling (Desktop)
     Updated: 2025-07-01 GAL
  --------------------------------------------- */
  .rsform {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: auto;
  }
  
  .rsform .mb-3,
  .rsform-block {
    margin-bottom: 1.5rem;
  }
  
  .rsform-block label.form-label,
  .formControlLabel {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
    display: block;
  }
  
  .formRequired {
    color: #cc0000;
    margin-left: 3px;
  }
  
  .rsform input[type="text"],
  .rsform input[type="email"],
  .rsform input[type="tel"],
  .rsform input[type="number"],
  .rsform select,
  .rsform textarea {
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    width: 100%;
    border: 1px solid #ccc;
    background-color: #fff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    transition: border-color 0.2s;
  }
  
  .rsform input:focus,
  .rsform select:focus,
  .rsform textarea:focus {
    border-color: #0000cc;
    outline: none;
  }
  
  .formValidation {
    color: #d00;
    font-size: 0.875rem;
    margin-top: 0.25rem;
  }
  
  .rsform input[type="submit"] {
    background-color: #0000cc;
    color: #fff;
    padding: 0.6rem 1.25rem;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    transition: background-color 0.3s;
  }
  
  .rsform input[type="submit"]:hover {
    background-color: #0033ff;
  }
  
  /* ---------------------------------------------
     RSForm Responsive & Mobile Styles
     Updated: 2025-07-01 GAL
  --------------------------------------------- */
  @media (max-width: 768px) {
    body {
      overflow-x: hidden;
    }
  
    .header-contact-wrapper {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .rsform {
      padding: 1rem;
    }
  
    .rsform .formControlLabel {
      font-size: 1rem;
    }
  
    .rsform input[type="submit"] {
      width: 100%;
      font-size: 1.1rem;
      display: block;
      margin: 1rem auto 0 auto;
    }
  
    .rsform .row {
      flex-direction: column;
    }
  
    .rsform .col-md-6,
    .rsform .col-md-3,
    .rsform .col-md-12 {
      width: 100%;
      margin-bottom: 1rem;
    }
  
    .rsform input[type="checkbox"],
    .rsform select {
      margin-top: 0.5rem;
    }
  }

/* ==========================================================================
   4-Square Review Styling for Joomla 5
   File: user.css
   Section: Reviews Category Blog View
   Updated: 2025-07-11 by GAL
   - Reviews use article content with:
     <p class="review-text">...</p>
     <p class="review-signature">...</p>
   - Star rating pulled from custom field 'star-rating'
   - Layout handled via blog_item.php override
========================================================================== */

/* === Outer Review Wrapper === */
/* <blockquote class="review-blockquote"> still used in override */
.review-blockquote {
  background-color: #f5f7fa;
  border-left: 5px solid #0000cc;
  border-radius: 6px;
  margin: 0.75rem 0;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* === Inner Box: review-box === */
.review-box {
  background-color: #f8f9fc;
  border: 1px solid #dbe0ea;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 0;
  font-style: italic;
  color: #333;
}

/* === Review Text Paragraph === */
.review-text {
  display: inline;
  margin: 0;
  font-size: 1.05em;
}

/* === Footer with Stars + Signature === */
.review-footer-inline {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1em;
  font-size: 1.1em;
}

.review-stars-inline {
  color: gold;
  font-size: 1.3em;
  line-height: 1;
  white-space: nowrap;
}

.review-signature {
  margin: 0;
  font-weight: bold;
  color: #333;
}

/* ==========================================================================
   Layout Spacing Adjustments (Review Page Only)
========================================================================== */

/* Reduce space between stacked reviews */
.com-content-category-blog__item {
  margin-bottom: 1.25rem;
}

/* Reduce top padding above the reviews */
.com-content-category-blog {
  margin-top: 0 !important;
  padding-top: 0.5rem;
}

/* ==========================================================================
   Hide Article Title Lists on Review Pages Only
========================================================================== */
body.itemid-126 ol.com-content-blog__links,
body.itemid-147 .com-content-blog__links {
  display: none;
}

/* ==========================================================================
   END Review Styling Section
========================================================================== */


/* ============================================================================
   VENT YOUR ATTIC ARTICLE – CUSTOM STYLING
   Purpose: Styles for semantic images and layout within the attic ventilation article
   Last updated: 2025-07-07
   Author: Greg Liebig / ChatGPT Formatting Pass
============================================================================ */

/* Style <figure> blocks for clean spacing and centering */
figure {
  margin: 1em auto;
  padding: 0;
  text-align: center;
}

/* Ensure all images scale responsively inside figures */
figure img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Caption styling: subdued text under images */
figcaption {
  font-size: 0.9em;
  color: #555;
  margin-top: 0.3em;
}

/* Flexbox container for rows of related images */
.image-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5em;
}

/* Individual image figures inside the image row */
.image-row figure {
  flex: 1 1 200px;
  max-width: 240px;
}

/* ==========================================================================
   Resources Landing Page "Cards" (no tables)
   Purpose: Make /resources readable and scannable
   Updated: 2025-12-19 GAL
   Notes:
   - Wrap links in .resources-cards > .resources-card containers
   - Keeps the Resources page as a true landing page (Single Article)
========================================================================== */

.resources-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.resources-card {
  background: #ffffff;
  border: 1px solid #dbe0ea;
  border-radius: 10px;
  padding: 1.25rem 1.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.resources-card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.resources-card p {
  margin: 0;
  max-width: 70ch;
}

/* Desktop: 2 columns when there is room */
@media (min-width: 900px) {
  .resources-cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* CTA module: remove the "box" look and make it blend with article flow */
.cta-inline,
.cta-inline .card,
.cta-inline .moduletable,
.cta-inline .module-content {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.cta-inline {
  padding: 0 !important;
  margin: 2rem 0 !important;
}

/* Hide Honeypot Fields (RSForm: multiple layouts) */
input[name="must_enter"],
input[name="form[must_enter]"],
label[for="must_enter"],
label[for="form_must_enter"],
.rsform-block-must_enter,
.rsform-block-form_must_enter {
  display: none !important;
}
