/* --- Global Styles & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Lato:wght@300;400;700&display=swap');

:root {
    --primary-color: #00b4d8;
    --dark-blue: #03045e;
    --background-light: #fdfdfd;
    --background-alt: #f7faff;
    --text-color: #555;
    --heading-color: #023047;
    --white: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-dark: rgba(0, 0, 0, 0.15);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--dark-blue); /* Sets background for any space below the footer */
    overflow-x: hidden;
    display: flex; /* Key for sticky footer layout */
    flex-direction: column;
    min-height: 100vh;
}

/* Page Wrapper for robust layout stability */
.page-wrapper {
    background-color: var(--white);
    position: relative;
    z-index: 10;
    flex: 1 0 auto; /* Ensures it grows to fill available space */
}
main { padding-top: 100px; } /* Space for fixed header on inner pages */
body.home-page main { padding-top: 0; } /* No space needed on homepage */


.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.content-section { padding: 6rem 0; position: relative; }

/* --- Header --- */
.main-header { padding: 1.5rem 0; position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: all 0.4s ease; }
body:not(.home-page) .main-header { background-color: var(--white); box-shadow: 0 2px 15px var(--shadow-light); }
body.home-page .main-header { background-color: transparent; }
.main-header.scrolled { background-color: var(--white); padding: 1rem 0; box-shadow: 0 2px 15px var(--shadow-light); }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 60px; transition: height 0.4s ease; }
.main-header.scrolled .logo img { height: 50px; }
.main-nav ul { list-style: none; display: flex; }
.main-nav ul li { margin-left: 35px; }
.main-nav a { text-decoration: none; font-weight: 700; position: relative; padding: 5px 0; font-family: var(--font-heading); color: var(--heading-color); transition: color 0.3s ease; }
body.home-page .main-header:not(.scrolled) .main-nav a { color: var(--white); text-shadow: 1px 1px 2px rgba(0,0,0,0.3); }
.main-nav a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: width 0.4s ease; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

/* --- Video Hero --- */
.video-hero { position: relative; height: 100vh; width: 100%; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.video-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.video-background video { width: 100%; height: 100%; object-fit: cover; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(10deg, var(--dark-blue) 10%, rgba(3, 4, 94, 0.5) 70%); z-index: 2; }
.hero-content { position: relative; z-index: 3; color: var(--white); }
.hero-content h1 { font-family: var(--font-heading); font-size: 4rem; font-weight: 800; line-height: 1.2; text-shadow: 2px 2px 10px var(--shadow-dark); }
.hero-content p { font-size: 1.2rem; font-weight: 300; max-width: 650px; margin: 1.5rem auto 2.5rem; text-shadow: 1px 1px 5px var(--shadow-dark); }
.btn { padding: 14px 35px; border-radius: 50px; text-decoration: none; font-weight: 700; display: inline-block; border: none; transition: all 0.3s ease; cursor: pointer; box-shadow: 0 5px 15px var(--shadow-light); }
.btn-primary { background-color: var(--primary-color); color: var(--white); }
.btn-primary:hover { background-color: var(--white); color: var(--primary-color); transform: translateY(-4px) scale(1.05); box-shadow: 0 8px 25px var(--shadow-dark); }

/* --- Content Styling --- */
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title span { font-size: 0.9rem; font-weight: 700; color: var(--primary-color); text-transform: uppercase; letter-spacing: 1.5px; }
.section-title h2 { font-family: var(--font-heading); font-size: 2.8rem; color: var(--heading-color); margin-top: 0.5rem; }
.section-title p { max-width: 600px; margin: 1rem auto 0; }

.purity-journey, .testimonials-section { background-color: var(--background-alt); }
.process-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.process-card { background: var(--white); padding: 2rem; border-radius: 12px; box-shadow: 0 5px 25px var(--shadow-light); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #eee; }
.process-card:hover { transform: translateY(-10px); box-shadow: 0 12px 35px var(--shadow-dark); }
.card-icon { font-family: var(--font-heading); font-size: 1.8rem; width: 60px; height: 60px; line-height: 60px; border-radius: 50%; background-color: var(--primary-color); color: var(--white); margin: 0 auto 1.5rem; }
.process-card h3 { font-family: var(--font-heading); color: var(--heading-color); margin-bottom: 1rem; }

.testimonial-carousel-wrapper { max-width: 800px; margin: 0 auto; position: relative; overflow: hidden; border-radius: 12px; }
.testimonial-carousel { display: flex; transition: transform 0.5s ease-in-out; }
.testimonial-slide { flex: 0 0 100%; background: var(--white); padding: 3rem; text-align: center; border-radius: 12px; box-shadow: 0 10px 40px var(--shadow-light);}
.quote { font-size: 1.2rem; font-style: italic; font-weight: 300; color: var(--heading-color); margin-bottom: 2rem; line-height: 1.8; }
.author { display: flex; align-items: center; justify-content: center; }
.author-pic { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin-right: 1rem; border: 3px solid var(--primary-color); }
.author-info strong { display: block; color: var(--heading-color); font-weight: 700; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.7); color: var(--dark-blue); border: none; border-radius: 50%; width: 45px; height: 45px; font-size: 1.5rem; cursor: pointer; z-index: 10; transition: background 0.3s; }
.carousel-btn:hover { background: var(--white); }
.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

/* Scroll Animations */
.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.process-card.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.process-card.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.process-card.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* --- Professional Footer --- */
.main-footer {
    background-color: var(--dark-blue);
    color: #a9c1d4;
    padding-top: 150px; /* Space created by the shape and negative margin */
    padding-bottom: 2rem;
    font-size: 0.95rem;
    position: relative;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
    margin-top: -120px;
    z-index: 5;
}
.footer-main { display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.footer-col { flex: 1; min-width: 250px; }
.footer-col .footer-logo img { height: 50px; margin-bottom: 1rem; }
.footer-col h3 { font-family: var(--font-heading); color: var(--white); font-size: 1.2rem; margin-bottom: 1.5rem; position: relative; padding-bottom: 0.5rem; }
.footer-col h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background-color: var(--primary-color); }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
.footer-col a:hover { color: var(--primary-color); }
.contact-item { display: flex; align-items: center; margin-bottom: 1rem; }
.contact-item .icon { font-size: 1.2rem; margin-right: 1rem; }
.footer-bottom { text-align: center; padding-top: 3rem; margin-top: 3rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 3rem; }
    .section-title h2 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .main-header { display: none; }
    main { padding-top: 0 !important; }
    .video-hero { min-height: 80vh; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; }
    .content-section { padding: 4rem 0; }
    .main-footer { clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%); margin-top: -80px; padding-top: 100px; }
    .quote { font-size: 1rem; }
    .testimonial-slide { padding: 2rem; }
}