/* --- Variables & Core Theme --- */
:root {
    --navy-blue: #0B3052;
    --navy-dark: #072038;
    --teal: #1F8381;
    --teal-light: #2AABA8;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Crucial for small 4-inch screens */
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem); /* Auto-scales based on screen size */
    font-weight: 700;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0; 
    min-height: 100px; 
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    /* Prevents the logo container from taking up too much space on mobile */
    max-width: 70%; 
}

.brand-logo img {
    /* Desktop size */
    width: 350px;
    height: auto; /* Changed from fixed height to auto to preserve aspect ratio perfectly */
    max-height: 120px;
    object-fit: contain; 
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--navy-blue);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--teal);
}

/* Mobile Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px; /* Makes it easier to tap on 4-inch screens */
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--navy-blue);
    transition: 0.3s;
    border-radius: 2px;
}

/* --- Ultra-Premium Hero Slider --- */
.hero-slider{
    position:relative;
    overflow:hidden;
    width:100%;
    height:650px;
}

.hero-slider .slide{
    position:absolute !important;
    inset:0;
    width:100%;
    height:100%;
    display:flex;
    align-items:center;

    opacity:0;
    visibility:hidden;

    transition:opacity .8s ease;

    background-size:cover;
    background-position:center;
}

.hero-slider .slide.active{
    opacity:1;
    visibility:visible;
    z-index:2;
}

/* --- Premium Staggered Text Animations --- */
.hero-slider .slide .hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    color: var(--white);
    padding: 0 20px;
}

/* Initial state of text (hidden and pushed down) */
.hero-slider .slide .hero-content > * {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); /* Buttery smooth easing */
}

/* When active, cascade them in one by one */
.hero-slider .slide.active .badge { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.hero-slider .slide.active h1 { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.hero-slider .slide.active p { transition-delay: 0.8s; opacity: 1; transform: translateY(0); }
.hero-slider .slide.active .btn { transition-delay: 1.0s; opacity: 1; transform: translateY(0); }

/* Slide Typography & Buttons */
.hero-slider .badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-slider h1 {
    color: var(--white);
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4); /* Stronger shadow for readability */
}

.hero-slider p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    opacity: 0.95;
    margin-bottom: 35px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.8;
}

/* Slider Controls (Arrows & Dots) */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: all 0.3s ease;
    border-radius: 50%;
}
.prev-btn { left: 30px; }
.next-btn { right: 30px; }

.slider-btn:hover {
    background: var(--teal);
    border-color: var(--teal);
    transform: translateY(-50%) scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.dot.active {
    background: transparent;
    border-color: var(--teal-light);
    transform: scale(1.5);
}
.dot:hover:not(.active) {
    background: var(--teal);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--teal);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(31, 131, 129, 0.3);
}

.btn-primary:hover {
    background-color: var(--teal-light);
    transform: translateY(-3px);
}

/* --- Content Sections --- */
.lead-text {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.premium-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
    border-bottom: 4px solid var(--teal);
}

.premium-card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card-divider {
    height: 3px;
    width: 50px;
    background-color: var(--teal);
    margin: 15px 0;
}

/* --- Core Values --- */
.core-values {
    background-color: var(--navy-blue);
    color: var(--white);
}

.values-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.value-item {
    background: rgba(255,255,255,0.1);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 500;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: 0.3s;
}

.value-item:hover {
    background: var(--teal);
    border-color: var(--teal);
}

/* --- Footer --- */
/* --- Premium Footer --- */
.site-footer {
    background-color: var(--navy-dark);
    color: var(--white);
    padding: 80px 0 0;
    position: relative;
    border-top: 4px solid var(--teal); /* Striking brand color border */
}

.footer-grid {
    display: grid;
    /* Gives the brand description more room than the links on desktop */
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 50px;
    margin-bottom: 60px;
}

/* Brand Section */
/* --- Footer Brand Logo Fix --- */
.footer-logo {
    width: 100%; /* Forces the image to respect the container width */
    max-width: 250px; /* Strict maximum width limit */
    height: auto;
    max-height: 85px; /* Strict maximum height limit */
    object-fit: contain; /* Prevents stretching */
    object-position: left center; /* Keeps it aligned perfectly to the left */
    margin-bottom: 20px;
    display: block; /* Removes any weird inline-link spacing */
    border-radius: 8px; /* Soft edges if your logo has a white background */
}

/* Ensure the link wrapper doesn't stretch */
.footer-brand a {
    display: inline-block;
    width: 100%;
    max-width: 250px;
}

.footer-brand .tagline {
    color: var(--teal-light);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
}

.footer-desc {
    color: #A0B3C6; /* Soft blue-grey for easy reading on dark backgrounds */
    line-height: 1.8;
    max-width: 350px;
    margin-bottom: 25px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-links a:hover {
    background-color: var(--teal);
    border-color: var(--teal);
    transform: translateY(-5px); /* Floating effect */
    box-shadow: 0 5px 15px rgba(31, 131, 129, 0.4);
}

/* Footer Headings */
.footer-grid h4 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-grid h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--teal); /* Premium underline accent */
}

/* Links List */
.footer-links ul, .contact-info {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #A0B3C6;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--teal-light);
    transform: translateX(5px); /* Elegant slide-right effect on hover */
}

/* Contact Info */
.contact-info li {
    color: #A0B3C6;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
}

/* Footer Bottom */
.footer-bottom {
    background-color: #041221; /* Extra dark for the legal section */
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: #777;
    font-size: 0.9rem;
}

.legal-links a {
    color: #777;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 20px;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: var(--teal-light);
}

/* =========================================
   INNER PAGES CSS (About, Products, Contact)
   ========================================= */

/* --- Page Header Banner --- */
.page-header {
    position: relative;
    height: 40vh;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-color: var(--navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 40px;
}

.page-title {
    color: var(--white);
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--teal-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- Shared Typography & Spacing --- */
.teal-subtext {
    display: block;
    color: var(--teal);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.mb-50 {
    margin-bottom: 50px;
}

/* --- Story Grid Layout --- */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.story-content.text-white p {
    color: rgba(255,255,255,0.85);
}

/* --- Premium Image Boxes --- */
.premium-image-box {
    position: relative;
    border-radius: 12px;
    z-index: 1;
}

.premium-image-box img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    display: block;
    position: relative;
    z-index: 2;
}

/* The teal offset square behind the image */
.image-accent-border {
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--teal);
    border-radius: 12px;
    z-index: 0;
}

/* --- Capabilities Grid (3 Columns) --- */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cap-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border-top: 3px solid transparent;
    transition: all 0.3s ease;
}

.cap-card:hover {
    border-top-color: var(--teal);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.cap-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cap-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.cap-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Premium List Styling --- */
.premium-list {
    list-style: none;
    margin-top: 25px;
}

.premium-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.premium-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--teal-light);
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- Responsive Adjustments for Inner Pages --- */
@media (max-width: 992px) {
    .story-grid {
        grid-template-columns: 1fr; /* Stacks image and text on tablets and phones */
        gap: 40px;
    }
    
    .reverse-mobile .story-image-wrapper {
        grid-row: 2; /* Puts image below text on mobile for the Sustainability section */
    }
    
    .reverse-mobile .story-content {
        grid-row: 1; 
    }
    
    .image-accent-border {
        left: 10px; /* Reduces the offset so it doesn't break mobile screens */
        top: 15px;
    }
}

@media (max-width: 768px) {
    .page-header {
        height: 30vh;
        min-height: 250px;
    }
}

/* --- Premium Mobile Responsiveness (4 to 7 inches focus) --- */
@media (max-width: 768px) {
    /* Mobile Menu Hamburger Button */
    .mobile-menu-btn {
        display: flex;
        padding: 10px !important; /* Larger touch target for thumbs */
        margin-right: 5px;
        z-index: 1001; /* Keeps it above the dropdown */
    }

    /* Slimmer but spacious header for mobile */
    .nav-wrapper {
        min-height: 85px; 
        padding: 10px 15px; 
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Container ensures logo and button never overlap */
    .brand-logo {
        max-width: 75%; /* Allows logo to be large but protects the menu button */
        display: flex;
        align-items: center;
    }

    /* THE FIX: Highly fluid, large, and crisp logo sizing */
    .brand-logo img {
        width: 100%; 
        max-width: 260px; /* Significantly increased max-width */
        height: auto;
        max-height: 65px; /* Perfect height for an 85px header */
        padding: 0 !important; /* CRITICAL FIX: Removed the 20px padding that was crushing the logo */
        object-fit: contain;
        object-position: left center; /* Keeps logo nicely aligned to the left */
    }
    
    /* Responsive Hero Text */
    .slider-btn { display: none; } /* Keeps UI clean on small phones */
    .hero-slider { 
        height: 70vh; 
        min-height: 550px; 
    } 
    .slider-dots { bottom: 20px; }
    
    .hero-content {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 2.75rem); /* Flawless text scaling */
        margin-bottom: 15px;
    }

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

    /* Premium Mobile Dropdown Menu */
    .main-nav {
        position: absolute;
        top: 100%; 
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 15px 25px rgba(0,0,0,0.1);
        padding: 30px 20px;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        /* Premium, buttery-smooth dropdown animation */
        transition: clip-path 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
        border-top: 1px solid rgba(0,0,0,0.05); /* Clean separation line */
    }

    .main-nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .nav-links a {
        font-size: 1.1rem; /* Slightly larger text for mobile tapping */
        display: block;
        width: 100%;
        text-align: center;
        padding: 5px 0;
    }

    /* Cards and Layout Adjustments */
    .section-padding {
        padding: 60px 0; /* Reduced padding for mobile to save vertical space */
    }

    .premium-card {
        padding: 40px 25px; /* Balanced padding for cards */
        text-align: center; /* Centers content beautifully on mobile */
    }
    
    /* Values Grid - Full width buttons for easy thumb-tapping */
    .value-item {
        width: 100%; 
        text-align: center;
        padding: 16px 20px;
        font-size: 1.05rem;
    }
    
    /* Center align footer on mobile */
    .footer-grid {
        grid-template-columns: 1fr; /* Stacks everything cleanly on mobile */
        gap: 40px;
        text-align: center; /* Centers all text */
    }

    .footer-desc {
        margin: 0 auto 25px auto;
    }

    .social-links {
        justify-content: center;
    }

    /* Centers the teal underline on mobile */
    .footer-grid h4::after {
        left: 50%; 
        transform: translateX(-50%);
    }

    .contact-info li {
        justify-content: center;
        text-align: center;
    }
    
    .bottom-flex {
        justify-content: center;
        text-align: center;
    }
    
    .legal-links a {
        margin: 0 10px; /* Adjust spacing so links wrap nicely */
    }
}

/* Extra fix for very small 4-inch devices (like older phones) */
@media (max-width: 400px) {
    .brand-logo img {
        max-width: 200px;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
}