/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 100rem) {
    .packages-grid {
        display: flex;
        flex-direction: column;
    }

    .package-card, .custom-card{
        height: auto;
    }

    .custom-features ul li:last-child{
        margin: 0.7rem 0 1.5rem 0;
    }
}





/* Tablet Styles (max-width: 64rem) */
@media (max-width: 64rem) {
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 25rem;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: var(--spacing-2xl);
        padding-top: 4.5rem;
        overflow-y: auto;
        box-shadow: -0.3125rem 0 0.9375rem rgba(0, 0, 0, 0.1);
        transition: var(--transition-base);
        z-index: 1001;
    }
    
    
    .nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 2.75rem;
        height: 2.75rem;
        border: none;
        background: transparent;
        color: var(--navy);
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1002;
    }

    .nav-cta {
        display: none;
    }
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list{
        display: flex;
        flex-direction: column;
        align-items: stretch;   /* stretch so children can be full width */
        width: 100%;
        gap: 0.75rem;
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-xl);
    }

    .nav-list > li,
    .nav-item{
        width: 100%;
    }

    /* left-align the clickable text */
    .nav-link{
        width: 100%;
        text-align: left;        /* text alignment */
        justify-content: flex-start; /* if .nav-link is display:flex */
    }

    .nav-link {
        font-size: 1.125rem;
        padding: var(--spacing-md);
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }





/* Hero Section */
.hero {
    padding: 6.25rem 0 3.75rem;
    min-height: auto;
}

.hero-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
}

.hero-stats {
    justify-content: center;
}

/* Services Grid */
.services-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

/* Value Proposition */
.value-content {
    grid-template-columns: 1fr;
    
    text-align: center;
}

.hero-container{
    
}

.value-points{
    display: flex;
    flex-direction: column;
    justify-items: center;
    justify-content: center;
    align-items: center;
    align-content: center;
    /*border: 2px solid red;*/
}

.value-point {
    text-align: left;
    max-width: 31.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-items: center;
    align-content: center;
    align-items: center;
    /*border: 2px solid black;*/
  
}


 
.value-point:last-child{
    margin-bottom: var(--spacing-xl);
}

.value-point-heading{
    display: flex;
    /*flex-direction: row;*/
    justify-content: center;
    justify-items: center;
    align-content: center;
    align-items: center;
    /*border: 2px solid purple;*/
}

.value-point-heading i{
    padding: 0 1rem 0 0;
}

.value-point-details{
    /*border: 2px solid blue;*/
}



.about-intro{
display: flex;
flex-direction: column;
}


/* CTA Buttons */
.hero-cta,
.cta-buttons {
    justify-content: center;
}

/* Footer */
.footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

.team-member{
    grid-template-columns: 5.5rem 1fr;
    padding: var(--spacing-xl);
}

.member-photo{
    width: 5.5rem;
    height: 5.5rem;
}

.member-photo i{
    font-size: 2.125rem;
}

.contact-grid{
    grid-template-columns: 1fr;
}



}



/* Mobile Styles (max-width: 48rem) */
@media (max-width: 48rem) {
    :root {
        --font-size-base: 0.875rem;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.375rem; }
    h4 { font-size: 1.125rem; }
    
    /* Navigation */
    .logo h1 {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        width: 90%;
        padding: var(--spacing-xl);
    }
    
    /* Hero Section */
    .hero {
        padding: 5.625rem 0 3.125rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .hero-graphic {
        width: 12.5rem;
        height: 12.5rem;
    }
    
    .hero-graphic i {
        font-size: 4rem;
    }
    
    
.systems-grid{
    display: flex;
    flex-wrap: wrap;

}    
.systems-card{
  width: 100%;
  max-width: 23rem; /* matches grid max */
  }
  

    
    /* Services */
    .services-overview {
        padding: var(--spacing-2xl) 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .service-card {
        padding: var(--spacing-xl);
    }
    
    .service-icon {
        width: 3.75rem;
        height: 3.75rem;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    
    .package-card{
        max-width: 22rem;
    }

    
    /* Value Proposition */
    .value-prop {
        padding: var(--spacing-2xl) 0;
    }
    
    .value-graphic {
        width: 12.5rem;

    }
    
    .value-graphic i {
        font-size: 4rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-lg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info p {
        justify-content: center;
    }

    .process-timeline::before{
        display: none;
    }

    .process-step{
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .step-number{
        width: 2.25rem;
        height: 2.25rem;
    }

    .step-content{
        padding: var(--spacing-lg);
    }
    .benefit-card{
        padding: var(--spacing-xl);
    }

    .contact-item{
        grid-template-columns: 2.25rem 1fr;
            }
    
    .contact-item-details{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        
    }

    .contact-item i{
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1rem;
    }
    
    
    /* Force consistent label column + field column */
.contact-form form .form-group{
  display: grid;
  grid-template-columns: 5rem 1fr; /* label width + field width */
  align-items: center;
    margin-bottom: 1.25rem;
    
  
}

.form-group label{
    font-size: 0.7rem;
}
    
    /* Consistent control sizing */
.contact-form input,
.contact-form select {
  width: 100%;
  box-sizing: border-box;
  min-height: 3.25rem;
  padding: 0.1rem 1rem;   /* restore top/bottom padding */
  line-height: 1.2;
  font-size: 0.7rem;
}

/* Keep textarea separate */
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 1rem;
  line-height: 1.4;
}

    
.newsletter-content{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    justify-items: center;
    align-items: center;
    align-content: center;
}    
    
.newsletter-form .form-group{
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-items: center;
    align-items: center;
    align-content: center;
    margin: 0 0 2rem 0;
  }    
    
    
}

/* Small Mobile Styles (max-width: 30rem) */
@media (max-width: 30rem) {
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    /* Buttons */
    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.875rem;
    }
    
    .btn-large {
        padding: var(--spacing-md) var(--spacing-xl);
        font-size: 1rem;
    }
    
    /* Hero */
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    /* Services */
    .service-packages {
        flex-direction: column;
        align-items: center;
    }
    
    .package-tag {
        width: 100%;
        text-align: center;
    }
    

    
    /* Section Spacing */
    .section-header {
        margin-bottom: var(--spacing-2xl);
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
}

/* Large Desktop Styles (min-width: 87.5rem) */
@media (min-width: 87.5rem) {
    .container {
        max-width: 87.5rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .hero-graphic {
        width: 21.875rem;
        height: 21.875rem;
    }
    
    .value-graphic {
        width: 18.75rem;
      
    }
}

/* Ultra-Wide Screens (min-width: 100rem) */
@media (min-width: 100rem) {
    .container {
        max-width: 100rem;
    }
    
    :root {
        --font-size-base: 1.125rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}



/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .nav-toggle,
    .hero-cta,
    .cta-section,
    .footer {
        display: none;
    }
    
    .hero {
        padding: 2.5rem 0;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1 { font-size: 18pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 14pt; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --navy: #000000;
        --red: #ff0000;
        --grey: #333333;
        --white: #ffffff;
    }
    
    .btn-primary {
        border: 0.125rem solid currentColor;
    }
}

/* ===== DARK MODE SUPPORT ===== */
/* Navigation dropdown behavior on mobile */
@media (max-width: 48rem) {
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.nav-list .submenu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    border: none;
    box-shadow: none;
    padding: 0.5rem 0 0.5rem 1rem;
    background: transparent;
}



/* When the parent item is expanded via JS by toggling .submenu-open on <li> */
.nav-list li.submenu-open > .submenu {
    display: block;
}

.nav-list .submenu a.nav-link {
    padding: 0.5rem 0.5rem;
}

.nav-list .submenu-level-2 {
    margin-left: 0;
}

/* On mobile, keep caret icons but don't rely on hover */
.nav-list li:hover > .submenu,
.nav-list li:focus-within > .submenu {
    display: none;
}
}
