@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary: #E31B22;
    /* Premium Red Accent */
    --primary-dark: #C1171D;
    --navy: #0F2B46;
    /* Deep Industrial Navy Foundation */
    --charcoal: #2E2E2E;
    /* Neutral Dark */
    --text-main: #2E2E2E;
    --text-muted: #666666;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --container-width: 1400px;
    --spacing-lg: clamp(4rem, 10vw, 6.5rem);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --whatsapp-green: #25D366;

    /* Fluid Typography Scale based on 48/36/24/16-18 guide */
    --fs-h1: clamp(2.5rem, 8vw, 4.5rem);
    /* Increased for impact */
    --fs-h2: clamp(2rem, 6vw, 3rem);
    --fs-h3: clamp(1.5rem, 4vw, 2rem);
    --fs-h4: 1.2rem;
    --fs-body: clamp(1rem, 1.5vw, 1.1rem);
    --fs-nav: 0.95rem;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Base Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
    /* Performance optimization */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid #EEE;
    /* Clean separation line */
    position: relative;
}

/* Light background sections get a red accent line at the top */
section[style*="background: #FFF"],
section[style*="background: white"],
.section-padding:not(.bg-navy) {
    border-top: 1px solid #EEE;
}

.section-padding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    opacity: 0.1;
    /* Subtle red marker at section start */
}

/* Remove border from last section or specific backgrounds */
.bg-navy,
.page-hero,
.hero,
section:last-of-type {
    border-bottom: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.15;
    font-weight: 700;
    color: var(--navy);
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

h4 {
    font-size: var(--fs-h4);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.7;
    font-size: var(--fs-body);
    overflow-x: hidden;
}

.text-white {
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.1rem 2.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    /* 16px as requested */
    letter-spacing: 0.5px;
    border-radius: 0;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

/* Primary Button: Navy -> White Text -> Red Hover */
.btn-primary {
    background: var(--navy);
    color: var(--white);
    border: 2px solid var(--navy);
}

.btn-primary:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Secondary Button: Transparent -> Navy Border -> Navy Text -> Red Hover */
.btn-outline {
    background: transparent;
    border: 2px solid var(--navy);
    color: var(--navy);
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Header: Dark Navy Background, White Logo */
header {
    background: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(15, 43, 70, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 90px;
    /* Increased for better visibility */
    width: auto;
    display: block;
    transition: var(--transition);
}

.logo a {
    display: inline-block;
}

.logo-img:hover {
    opacity: 0.9;
}

/* Footer logo sizing */
.footer-logo .logo-img {
    height: 100px;
    margin-bottom: 1rem;
}

/* Mobile logo sizing */
@media (max-width: 768px) {
    .logo-img {
        height: 70px;
        /* Increased for mobile visibility */
    }

    .footer-logo .logo-img {
        height: 80px;
        margin: 0 auto 1rem;
        /* Center logo on mobile */
    }
}

.nav-menu ul {
    display: flex;
    gap: 2.5rem;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--navy);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    z-index: 1002;
    padding: 12px 14px;
    /* Larger padding for prominence */
    background: rgba(15, 43, 70, 0.25);
    /* Much darker background */
    border-radius: 8px;
    border: 2px solid var(--navy);
    /* Strong border for definition */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Shadow for depth */
}

.menu-toggle span {
    width: 40px;
    /* Extra large for visibility */
    height: 5px;
    /* Thick bars */
    background: var(--navy);
    /* Solid navy */
    border-radius: 3px;
    transition: var(--transition);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    /* Shadow on bars */
}

.phone-nav {
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-outline {
    border: 1px solid #DDD;
    padding: 0.6rem 1.2rem;
    background: transparent;
    color: #333;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
}

/* Hero - Desktop with Custom Banner */
.hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 600px;
    max-height: 900px;
    position: relative;
    background: linear-gradient(rgba(10, 17, 31, 0.7), rgba(10, 17, 31, 0.7)),
        url('../images/HERO PC BANNER .png') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: var(--fs-h1);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: var(--white);
    max-width: 900px;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
    margin-left: 0;
    font-weight: 500;
}

/* Redefined Solution Cards */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid #EEE;
    border-left: 1px solid #EEE;
}

.solution-card {
    padding: 4rem 2rem;
    border-right: 1px solid #DDD;
    border-bottom: 1px solid #DDD;
    text-align: left;
    transition: var(--transition);
    background: var(--bg-light);
    /* Light Grey Background as requested */
    position: relative;
    overflow: hidden;
}

.solution-card:hover {
    background: var(--navy);
    transform: translateY(-5px);
    z-index: 2;
}

.solution-card:hover h4,
.solution-card:hover .arrow {
    color: var(--white);
}

.solution-card img {
    /* Styles removed as we are transitioning to FontAwesome icons */
    display: none;
}


.solution-card h4 {
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--navy);
    transition: var(--transition);
}

.arrow {
    display: none;
    /* Removed as requested */
}

.solution-card:hover .arrow {
    transform: translateX(5px);
}

/* Dark Sections */
.bg-navy {
    background: var(--navy);
    color: var(--white);
}

.about-dark {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about-dark h2 {
    font-size: var(--fs-h2);
    margin-bottom: 2rem;
}

.about-dark p {
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

/* Image Grid (Three column) */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.image-card {
    height: 480px;
    position: relative;
    overflow: hidden;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.image-card:hover img {
    transform: scale(1.05);
}

.image-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    z-index: 2;
}

.image-card-content h3 {
    font-size: var(--fs-h3);
    margin-bottom: 1rem;
}

/* Partner Logos */
.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    padding: 3rem 0;
    border-bottom: 1px solid #EEE;
}

.partner-logos img {
    height: 40px;
    opacity: 0.6;
    filter: grayscale(1);
    transition: var(--transition);
}

.partner-logos img:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* Contact Section Pattern */
.contact-block {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0;
    background: var(--navy);
}

.contact-form-side {
    padding: var(--spacing-lg) 5%;
}

.contact-form-side h2 {
    font-size: var(--fs-h2);
    color: var(--white);
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1rem 0;
    color: white;
    outline: none;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.map-side {
    height: 100%;
    min-height: 500px;
}

.map-side iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: invert(90%) hue-rotate(180deg);
}

/* Footer */
.main-footer {
    background: var(--white);
    color: var(--navy);
    padding: 5rem 0 2rem;
    border-top: 1px solid #EEE;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3rem;
}

.footer-logo h2 {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--navy);
}

.footer-logo p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-col h5 {
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 1.2px;
    color: var(--navy);
    font-weight: 800;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col li {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-col li:hover {
    color: var(--primary);
    opacity: 1;
    transform: translateX(5px);
    cursor: pointer;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #EEE;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Page Headers (Dedicated Pages) */
.page-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 12rem 0 8rem;
    text-align: center;
    color: var(--white);
    position: relative;
    border-bottom: 4px solid var(--primary);
    overflow: hidden;
}

/* New overlay system to ensure HTML background-images work with gradient */
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 43, 70, 0.85), rgba(15, 43, 70, 0.7));
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: clamp(1.8rem, 8vw, 3.5rem);
    margin-bottom: 1.25rem;
    font-weight: 900;
    color: var(--white);
    /* Explicit white */
    animation: fadeInUp 0.8s ease-out forwards;
    line-height: 1.1;
}

.page-hero p {
    color: var(--white);
    /* Explicit white */
    opacity: 1;
    max-width: 800px;
    margin: 0 auto;
    font-size: clamp(0.95rem, 2.5vw, 1.25rem);
    line-height: 1.6;
}

/* Responsive Overrides & Optimizations */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .solutions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Feature Items */
.feature-item {
    padding: 2.5rem;
    background: var(--bg-light);
    border-top: 4px solid var(--primary);
    /* Accent Red Area */
    transition: var(--transition);
}

.feature-item:hover {
    background: var(--white);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transform: translateY(-10px);
}

@media (max-width: 992px) {
    .container {
        padding: 0 5%;
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .about-dark {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 3.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--navy);
        /* Changed to Navy for better consistency */
        z-index: 1001;
        display: flex;
        padding: 5rem 5% 2rem;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
    }

    .nav-menu a {
        font-size: 1rem;
        color: var(--white) !important;
        /* Force white text in menu */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1rem;
        width: 100%;
    }

    .dropdown-content {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        padding-left: 1.5rem;
        margin-top: 0.5rem;
        background: transparent;
    }

    .dropdown-content a {
        border-bottom: none;
        font-size: 0.85rem;
        opacity: 0.8;
    }

    .header-meta {
        display: none;
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-dark {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .image-card {
        height: 320px;
    }

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

    .contact-form-side {
        padding: 4rem 5%;
    }

    .map-side {
        min-height: 350px;
    }

    .hero {
        aspect-ratio: 4 / 3;
        min-height: 500px;
        max-height: 700px;
        padding: 8rem 0 4rem;
        text-align: center;
        background: linear-gradient(rgba(10, 17, 31, 0.7), rgba(10, 17, 31, 0.7)),
            url('../images/HERO BANNER MOBILE SIZE .jpeg') center/cover no-repeat;
    }

    .hero-content h1 {
        line-height: 1.2;
    }

    .hero-content p {
        margin: 0 auto 2rem;
    }

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

    .grid-title {
        text-align: center;
        margin-bottom: 2.5rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-top: 2rem;
    }

    .footer-col h5 {
        margin-bottom: 1rem;
    }

    .footer-col li {
        margin-bottom: 0.75rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
        padding: 1.5rem 0;
    }

    /* Oversize text optimization */
    h1 {
        font-size: 1.8rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    p {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .hero {
        aspect-ratio: 1 / 1;
        min-height: 400px;
        max-height: 550px;
        padding: 4rem 0 2.5rem;
        background: linear-gradient(rgba(10, 17, 31, 0.7), rgba(10, 17, 31, 0.7)),
            url('../images/HERO BANNER MOBILE SIZE .jpeg') center/cover no-repeat;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .page-hero {
        padding: 5rem 0 3rem;
        /* Further reduced padding */
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Back to 2 columns for icons */
        gap: 1rem;
    }

    .solution-card {
        padding: 1.5rem 1rem;
    }

    .btn {
        width: 100%;
        /* Full width buttons for easier mobile clicking */
        justify-content: center;
        padding: 0.8rem 1.2rem;
    }

    .solution-card img {
        height: 40px;
        /* Smaller icon size */
        margin-bottom: 1rem;
    }

    .solution-card h4 {
        font-size: 0.7rem;
    }
}

/* Utility classes */
.img-responsive {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--whatsapp-green);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: var(--transition);
    font-size: 2rem;
}

.whatsapp-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-widget svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-top: 3px solid var(--primary);
    left: 0;
}

.dropdown-content a {
    color: var(--text-main) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 1px solid #F0F0F0;
    transition: none;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--primary) !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown>a::after {
    content: ' ▾';
    font-size: 10px;
    opacity: 0.5;
}

/* Grid & List Styles for Product Pages */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.product-meta-list {
    list-style: none;
    margin-top: 2rem;
}

.product-meta-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #EEE;
    display: flex;
    align-items: start;
    gap: 1.5rem;
}

.product-meta-list li strong {
    color: var(--primary);
    min-width: 140px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.product-meta-list li span {
    font-size: 0.95rem;
    color: #444;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.tag {
    background: #F0F0F0;
    padding: 0.4rem 1.2rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* New Grid Classes for Content Layout Optimization */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Footer Copyright Bar */
.footer-copyright-wrapper {
    background: var(--navy);
    color: var(--white);
    padding: 1.5rem 0;
    width: 100%;
}

.footer-copyright-wrapper .footer-bottom {
    border-top: none;
    padding-top: 0;
    color: var(--white);
}

/* Responsive Grid Layouts */
@media (max-width: 992px) {
    .highlight-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Ensure content padding is optimized */
    .section-padding {
        padding: 4rem 0;
    }
}

/* FontAwesome Icon Styles for Solution Cards */
.solution-card i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    /* Allows transform */
    transition: var(--transition);
}

.solution-card:hover i {
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
    /* playful interaction */
}

/* Ensure highlight grid text is readable on navy background */
.bg-navy h2 {
    color: var(--white) !important;
}

.bg-navy h5 {
    color: var(--primary) !important;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.bg-navy p {
    color: #e0e0e0 !important;
    /* Lighter grey for better contrast on navy */
}

/* Social Icons in Footer */
.social-links {
    display: flex;
    gap: 1.5rem;
    padding: 0;
    list-style: none;
    margin-top: 1rem;
}

.social-links a {
    color: var(--navy);
    font-size: 1.5rem;
    /* Larger icons */
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F0F0F0;
    /* Subtle circle background */
}

.social-links a:hover {
    color: var(--white);
    background: var(--primary);
    transform: translateY(-3px);
}

/* Product Spec Lists - Add icons */
.product-meta-list li i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-right: 0.8rem;
    /* Adjust spacing */
}

/* Ensure strong text aligns nicely with icon */
.product-meta-list li strong {
    display: flex;
    align-items: center;
}

/* Mission & Vision Section - Desktop Styles */
.mission-vision-container {
    padding: 10rem 0;
    gap: 10rem;
}

.mission-vision-section h2 {
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.mission-vision-section p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
}

/* Tablet Optimization (max-width: 992px) */
@media (max-width: 992px) {
    .mission-vision-container {
        padding: 6rem 0;
        gap: 4rem;
        grid-template-columns: 1fr;
        /* Force single column earlier */
        /* Force single column earlier */
        text-align: center;
    }

    .mission-vision-section h2 {
        margin-bottom: 1.5rem;
    }
}

/* Mobile Optimization (max-width: 768px) */
@media (max-width: 768px) {
    .mission-vision-container {
        padding: 4rem 0;
        gap: 3rem;
        /* Inherits single column from 992px */
    }

    .mission-vision-section h2 {
        margin-bottom: 1rem;
        font-size: 1.75rem;
    }

    .mission-vision-section p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .mission-vision-section span {
        font-size: 0.75rem !important;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .mission-vision-container {
        padding: 3rem 0;
        gap: 3rem;
    }

    .mission-vision-section h2 {
        font-size: 1.5rem;
    }

    .mission-vision-section p {
        font-size: 0.95rem;
        opacity: 0.9 !important;
    }
}

/* Technical Advantages Grid - Desktop */
.technical-advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Tablet View (max-width: 992px) */
@media (max-width: 992px) {
    .technical-advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Mobile View (max-width: 768px) */
@media (max-width: 768px) {
    .technical-advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .technical-advantages-grid h2 {
        margin-bottom: 2.5rem !important;
        font-size: 1.5rem !important;
    }

    .technical-advantages-grid .feature-item {
        padding: 2rem 1.5rem;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .technical-advantages-grid {
        gap: 1rem;
    }

    .technical-advantages-grid h2 {
        margin-bottom: 2rem !important;
    }

    .technical-advantages-grid .feature-item {
        padding: 1.5rem 1rem;
    }

    .technical-advantages-grid .feature-item h4 {
        font-size: 1.1rem;
    }

    .technical-advantages-grid .feature-item p {
        font-size: 0.85rem !important;
    }
}

/* Foundation Features Grid - Desktop */
.foundation-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

/* Tablet View (max-width: 992px) */
@media (max-width: 992px) {
    .foundation-features-grid {
        gap: 3rem;
    }
}

/* Mobile View (max-width: 768px) */
@media (max-width: 768px) {
    .foundation-features-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .foundation-features-grid h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
        text-align: center;
    }

    .foundation-features-grid p {
        text-align: center;
        font-size: 1rem !important;
    }

    .foundation-features-grid>div:last-child {
        /* The nested grid with feature items */
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .foundation-features-grid {
        gap: 2rem;
    }

    .foundation-features-grid h2 {
        font-size: 1.3rem !important;
    }
}

/* Red CTA Section Optimization */
.cta-section-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Tablet View (max-width: 992px) */
@media (max-width: 992px) {
    .cta-section-flex h2 {
        font-size: 1.5rem !important;
    }
}

/* Mobile View (max-width: 768px) */
@media (max-width: 768px) {
    .cta-section-flex {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .cta-section-flex h2 {
        font-size: 1.3rem !important;
        margin-bottom: 0.5rem !important;
    }

    .cta-section-flex p {
        font-size: 0.95rem !important;
    }

    .cta-section-flex .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .cta-section-flex h2 {
        font-size: 1.2rem !important;
    }

    .cta-section-flex .btn {
        max-width: 100%;
        padding: 0.9rem 1.5rem !important;
    }
}

/* Nested Grid in Foundation Tools (2-column feature items) */
.foundation-nested-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .foundation-nested-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* FAQ Section Styling */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-item summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    /* Remove default triangle */
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
    border-top: 1px solid #f0f0f0;
}

@media (max-width: 768px) {
    .faq-item summary {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .faq-item summary::after {
        font-size: 1.2rem;
    }

    .faq-content {
        padding: 0 1rem 1rem;
        font-size: 0.95rem;
    }
}

/* Legal Pages Styling */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
    color: var(--navy);
    position: relative;
    padding-bottom: 1rem;
}

.legal-content h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--navy);
    font-weight: 700;
}

.legal-content p,
.legal-content ul {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #444;
    font-size: 1.05rem;
}

.legal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}