/* ==========================================================================
   ASTRION - MODULE-SPECIFIC STYLES
   ========================================================================== */

/* ==========================================================================
   HERO SECTION - Updated Styles
   ========================================================================== */

.hero-section {
    background-color: var(--color-background-light);
    /* The padding on the parent section now controls the vertical spacing. */
    /* We remove padding-bottom: 0; to let the image fill the space. */
}

/* We align items to the start of the grid cell now */
.hero-section .grid-2-col {
    align-items: start; 
}

.hero-section__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertial padding is inherited, and we add horizontal padding as requested */
/*     padding: var(--spacing-large) var(--spacing-xlarge);  */
    padding: var(--spacing-xlarge); 
    height: 100%; /* Ensures the content block also aligns correctly */
}

.hero-section__company-logo {
    margin-bottom: var(--spacing-xlarge);
}

.hero-section__company-logo img {
    max-width: 150px;
}

.hero-section__title {
    font-size: var(--font-size-h1); /* Using theme variable */
    line-height: 1.2;
    font-weight: var(--font-weight-normal); /* Changed from 400 for consistency */
    max-width: 550px; /* Slightly increased max-width for better text flow */
}

.hero-section__title-line1,
.hero-section__title-line2 {
    display: block;
}

.hero-section__title-line2 {
    font-weight: var(--font-weight-bold);
}

.hero-section__subtitle-wrapper {
    display: flex;
    align-items: center;
    font-weight: var(--font-weight-bold);
/*     margin-top: 0.25em; */
}

.hero-section__title-inline-logo {
    height: 0.9em;
    width: auto;
    margin-left: 0.3em;
    margin-bottom: 0.2em;
}

.hero-section__text {
    max-width: 500px;
    margin-top: var(--spacing-medium);
    font-size: 1.1rem;
}

.hero-section__buttons {
    margin-top: var(--spacing-large);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-small);
}

.hero-section__image-wrapper {
    height: 100%;
}

/* The image will cover the full area of its wrapper without distortion */
.hero-section__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ==========================================================================
   PRODUCT SHOWCASE SECTION
   ========================================================================== */

.product-showcase-section {
    /* 2. Changed background color to light */
    background-color: var(--color-text-light);
}

.product-showcase-section .container {
    /* 3. Added vertical padding to the container */
    padding-top: var(--spacing-xlarge);
    padding-bottom: var(--spacing-xlarge);
}

.product-showcase-section__title {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-large);
}

.product-grid {
    display: grid;
    /* Responsive grid: 4 columns on desktop, 2 on tablet */
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-large) var(--spacing-medium);
    justify-items: center;
/*     margin-bottom: var(--spacing-large); */
}

.product-item {
    /* 4. Added the circular gradient background */
    background-image: linear-gradient(
        to bottom, 
        hsla(from var(--color-primary) h s l / 80%), /* color-primary with 80% opacity */
        var(--color-accent)
    );
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px var(--button-hover-shadow-alt);
}

.product-item img {
    max-width: 80%;
    max-height: 80%;
}



/* ==========================================================================
   FEATURE SECTION
   ========================================================================== */

.feature-section {
    background-color: var(--color-background-light);
    /* Remove default padding to allow image to be flush with edges */
    padding-top: 0;
    padding-bottom: 0;
}

.feature-section .grid-2-col {
    /* Ensure the grid itself has no gap to allow images to be flush */
    gap: 0;
}

/* New class for the rich text title */
.feature-section__title {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--spacing-medium);
}

.feature-section__image-wrapper {
    height: 100%;
}

.feature-section__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-section__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 3. Increased padding for the content area */
    padding: var(--spacing-xlarge);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-medium) 0;
    display: grid;
    gap: var(--spacing-large);
    max-width: 90%;
}

.feature-list__item {
    display: flex;
    align-items: flex-start; /* Align to top for multi-line text */
    gap: var(--spacing-medium);
}

.feature-list__icon {
    background-color: var(--color-primary);
    border-radius: 50%;
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevents icon from shrinking */
}

.feature-list__icon img {
    width: 90%;
    height: 90%;
}

/* 2. Styles for the rich text feature content */
.feature-list__text {
    /* Add styling for h3, p within the rich text field */
}
.feature-list__text h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
}
.feature-list__text p {
    margin: 0;
    line-height: 1.5;
}

.feature-section__cta-button {
    margin-top: var(--spacing-large);
    /* This ensures the button aligns to the start (left) and does not stretch to fill the width on desktop */
    align-self: flex-start;
}

.feature-section__title hr {
    border: none; 
    border-top: 1px solid var(--color-primary); 
}

/* --- Trust & Recognition Section --- */
.trust-section {
    position: relative;
    overflow: hidden;
    background-color: #fdfdfd;
}
.trust-section__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
/*     opacity: 0.15; */
}
.trust-section__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.trust-section__content {
    position: relative;
    z-index: 2;
    padding-top: var(--spacing-xlarge);
    padding-bottom: var(--spacing-xlarge);
}

.trust-section__text-copy {
    max-width: 80%; 
    margin: var(--spacing-large) auto; /* Top, horizontal-auto, bottom, horizontal-auto */
    font-size: 1.1rem;
    line-height: 1.7;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-medium);
    justify-items: center;
    align-items: start;
    margin-top: var(--spacing-xlarge);
}
.certification-item {
    text-align: center;
}
.certification-item__image-wrapper {
    width: 120px;
    height: 120px;
    background-color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    transition: all .3s ease;
}
.certification-item__image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.certification-item__image-wrapper img {
    max-width: 60%;
}

.certification-item__text {
    font-weight: var(--font-weight-bold);
    color: var(--color-headings);
    font-size: 0.9rem;
    margin-top: var(--spacing-small);
    max-width: 120px;
}

/* --- Form Section --- */
.form-section {
    background-color: var(--color-background-alt);
    /* 1. Added vertical padding to the section */
    padding-top: var(--spacing-xlarge);
    padding-bottom: var(--spacing-xlarge);
}
.form-section__content {
    color: var(--color-text-dark); /* Sets default text color for this section */
}

.form-section__heading {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--spacing-medium);
    color: var(--color-text-dark);
    max-width: 60%;
    /* 2. Added auto margins to center the heading block */
    margin-left: auto;
    margin-right: auto;
}

.form-section__subtext {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-large);
    font-size: 1.1rem;
    color: var(--color-text-dark); 
}

.form-wrapper {
    background-color: var(--color-text-light);
    border-radius: 20px;
    padding: var(--spacing-large);
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
/* Increase specificity for HubSpot form fields */
.form-wrapper .hs-form-field {
    margin-bottom: var(--spacing-medium);
}

.form-wrapper .hs-form-field label {
    color: var(--color-text-dark);
    font-weight: 500;
}
.form-wrapper .hs-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.form-wrapper .hs-button {
   border: none !important;
    display: block !important;
    margin: var(--spacing-medium) auto 0 auto;
    width: auto;
    background-color: var(--color-primary);
    border-radius: var(--button-border-radius); !important;
    color: var(--color-text-light);
    font-weight: 600;
    padding: var(--button-padding);
}

  /* ==========================================================================
   6. GLOBAL FOOTER STYLE REVERT
   - Add this block to the end of your stylesheet.
   - It forcefully resets styles for the footer to prevent them from being
     affected by the landing page styles above.
   ========================================================================== */

/* This targets the main footer container by its class from the inspector */
.footer-container-wrapper h1,
.footer-container-wrapper h2,
.footer-container-wrapper h3 {
    /* Revert heading colors and margins to a neutral default */
    color: #FFFFFF !important; /* White text for dark background */
    margin-bottom: 1rem !important;
    font-weight: bold !important;
}

.footer-container-wrapper p {
    /* Revert paragraph text styles */
    color: #FFFFFF !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

/* MODIFIED: Using a more specific selector to target the menu links directly */
.footer-container-wrapper .widget-type-menu a {
    /* Revert link styles to white */
    color: #FFFFFF !important;
    text-decoration: none !important; /* Remove underline */
    font-weight: normal !important;
}

.footer-container-wrapper .widget-type-menu a:hover {
    /* Add a simple hover effect */
    text-decoration: underline !important;
}

/* ADDED: New rule to fix social icon layout */
.footer-container-wrapper .social-sharing .hs_cos_wrapper_type_social_sharing {
    display: flex !important;
    flex-direction: row !important; /* Align icons horizontally */
    align-items: center !important;
    gap: 15px !important; /* Adds space between icons */
}

/* If you have buttons in your footer, you may need to revert them too */
.footer-container-wrapper .btn {
    background-color: #6c757d !important; /* A neutral grey */
    color: #FFFFFF !important;
    border-radius: 0.25rem !important; /* A more standard, less round button */
    padding: 0.5rem 1rem !important;
}

/* ==========================================================================
   5. MOBILE RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 992px) {
  :root {
    --spacing-large: 3rem;
    --spacing-xlarge: 4rem;
  }


@media (max-width: 768px) {
  :root {
    --font-size-h1: 2.25rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.25rem;
    --spacing-large: 3rem;
    --spacing-xlarge: 4rem;
  }

}

/* --- Module-Specific Mobile Overrides --- */
@media (max-width: 768px) {

    .hero-section {
        /* Keep vertical padding consistent */
        padding-top: var(--spacing-large);
        padding-bottom: var(--spacing-large);
    }
  
  .hero-section__company-logo {
    margin-bottom: var(--spacing-medium);
}
    
    .hero-section .grid-2-col {
        /* Stack the content and image */
        grid-template-columns: 1fr;
    }

    .hero-section__image-wrapper {
        /* Move image to the top on mobile */
        order: -1;
        /* Give it a fixed height on mobile for better appearance */
        height: 300px; 
        margin-bottom: var(--spacing-large);
        display:none;
    }
    
    .hero-section__content {
        /* Center all content vertically and horizontally */
        text-align: center;
        align-items: center;
        /* Match horizontal padding of other sections */
        padding: 0 var(--spacing-medium); 
    }
    
    .hero-section__subtitle-wrapper {
        /* Center the items inside this flex container */
        justify-content: center;
    }
  
  .hero-section__text {
    margin-top: 0;
  }
    
    .hero-section__buttons {
        /* Ensure the button container takes full width */
        width: 100%;
        justify-content: center;
    }

    .hero-section__buttons .btn {
        /* Make each button span the full width */
        width: 100%;
        text-align: center;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-large) var(--spacing-medium);
    }
    .feature-section__content {
        padding: var(--spacing-large) var(--spacing-medium) var(--spacing-xlarge);
        align-items: center;
        text-align: center;
    }
    
    .feature-list {
        max-width: 100%;
    }
  
     .feature-section__cta-button {
        width: 100%;
    }

    .feature-list__item {
        flex-direction: column;
        align-items: center;
    }
    
    /* This class will reverse the column order on mobile */
    .feature-section .grid-2-col.reverse-on-mobile > :first-child {
        order: 2;
    }

    .feature-section .grid-2-col.reverse-on-mobile > :last-child {
        order: 1;
    }
  
  .trust-section__text-copy {
        max-width: 90%; 
    }
  
  .form-section__subtext {
    max-width: 90%;

  
}

/* ==========================================================================
   HERO SECTION - Wide Screen Overrides
   ========================================================================== */

@media (min-width: 1200px) {
    .hero-section__content {
        /*
         * On wider screens, this increases the left padding based on the viewport width (vw),
         * creating more space on the left that scales with the screen size.
         * The right padding is also increased for balance.
         */
        padding-left: 8vw;
        padding-right: 4vw;
    }
}
  
