/* style.css */

/* --- CSS Variables --- */
:root {
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Merriweather', serif;

    --color-primary: #B2DFDB; /* Pastel Teal */
    --color-primary-darker: #80CBC4; /* Darker Pastel Teal */
    --color-primary-rgb: 178, 223, 219;

    --color-secondary: #E1BEE7; /* Pastel Lavender */
    --color-accent: #FFCCBC;   /* Pastel Peach */
    
    --color-text-dark: #3E2723; /* Dark Brown - For good contrast on light pastels */
    --color-text-light: #FFFFFF;
    --color-text-muted: #795548; /* Muted Brown */

    --color-background-body: #FCF8F7; /* Very light, warm off-white */
    --color-background-light: #FFFFFF;
    --color-background-section-alt: #F5F5F5; /* Light Gray for alternating sections */
    
    --color-border: #D7CCC8; /* Light Brownish Gray */
    --color-shadow: rgba(62, 39, 35, 0.1); /* Shadow based on dark text color */
    --color-shadow-strong: rgba(62, 39, 35, 0.15);

    --border-radius-soft: 12px; /* Softer, more organic */
    --border-radius-medium: 20px; /* For larger elements */
    --border-radius-round: 50px;

    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-medium: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);

    --header-height: 80px;
}

/* --- Base & Reset Styles --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text-dark);
    background-color: var(--color-background-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* For Barba.js transitions */
.barba-leave-active,
.barba-enter-active {
  transition: opacity .5s ease-in-out, transform .5s ease-in-out;
}
.barba-leave {
  opacity: 1;
  transform: translateX(0);
}
.barba-leave-to {
  opacity: 0;
  transform: translateX(-100%); /* Or any other exit animation */
}
.barba-enter {
  opacity: 0;
  transform: translateX(100%); /* Or any other entry animation */
}
.barba-enter-to {
  opacity: 1;
  transform: translateX(0);
}


/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.3;
    margin-bottom: 0.75em;
}

h1 { font-size: 2.8em; text-shadow: 1px 1px 3px rgba(0,0,0,0.1); }
h2 { font-size: 2.2em; text-shadow: 1px 1px 2px rgba(0,0,0,0.05); }
h3 { font-size: 1.6em; }
h4 { font-size: 1.3em; }

p {
    margin-bottom: 1.25em;
    font-size: 1.05em;
}

a {
    color: var(--color-primary-darker);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

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

/* --- Layout --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.page-container { /* For pages other than home, to manage padding */
    padding-top: calc(var(--header-height) + 30px); /* Space for fixed header */
    padding-bottom: 60px;
}

.privacy-policy-page .page-container,
.terms-conditions-page .page-container {
    padding-top: calc(var(--header-height) + 50px); /* Specific padding for privacy/terms */
}


/* --- Header & Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(252, 248, 247, 0.85); /* Semi-transparent body bg */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--color-shadow);
    height: var(--header-height);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    font-family: var(--font-primary);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-text-dark);
    text-decoration: none;
}
.logo a span {
    color: var(--color-secondary);
}

.main-navigation .nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-navigation .nav-menu li {
    margin-left: 25px;
}

.main-navigation .nav-menu a {
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 5px;
    position: relative;
    transition: var(--transition-smooth);
}

.main-navigation .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.main-navigation .nav-menu a:hover,
.main-navigation .nav-menu a.active-link { /* Add .active-link via JS */
    color: var(--color-primary-darker);
}
.main-navigation .nav-menu a:hover::after,
.main-navigation .nav-menu a.active-link::after {
    width: 100%;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 2em;
    color: var(--color-text-dark);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 90vh; /* Use min-height for hero to ensure it's substantial */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--color-text-light);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.3), rgba(var(--color-primary-rgb), 0.1)), 
                linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5em;
    color: var(--color-text-light); /* VA: Hero text must be white */
    margin-bottom: 0.5em;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.3em;
    color: var(--color-text-light); /* VA: Hero text must be white */
    margin-bottom: 1.5em;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

/* --- Global Button Styles --- */
.cta-button,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-text-dark);
    font-family: var(--font-primary);
    font-size: 1.05em;
    font-weight: bold;
    padding: 14px 35px;
    border: none;
    border-radius: var(--border-radius-round);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth), transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(var(--color-primary-rgb), 0.4);
}

.cta-button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: var(--color-primary-darker);
    color: var(--color-text-dark); /* Ensure contrast */
    box-shadow: 0 6px 15px rgba(var(--color-primary-rgb), 0.5);
    transform: translateY(-2px);
}

.cta-button:active,
button:active,
input[type="submit"]:active,
input[type="button"]:active {
    transform: translateY(0px);
    box-shadow: 0 2px 5px rgba(var(--color-primary-rgb), 0.4);
}

/* Secondary Button Style (Example) */
.cta-button.secondary {
    background-color: transparent;
    color: var(--color-primary-darker);
    border: 2px solid var(--color-primary);
    box-shadow: none;
}
.cta-button.secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-dark);
    border-color: var(--color-primary);
}


/* --- Content Sections --- */
.content-section {
    padding: 60px 0;
}

.section-alternate {
    background-color: var(--color-background-section-alt);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5em;
    position: relative;
    padding-bottom: 15px;
    color: var(--color-text-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15em;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: -30px auto 40px auto;
    line-height: 1.6;
}

/* --- Card Styles (Global) --- */
.card {
    background-color: var(--color-background-light);
    border-radius: var(--border-radius-medium); /* Biomorphic feel */
    box-shadow: 0 5px 20px var(--color-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    /* align-items: center; */ /* Removed for full-width image */
    text-align: center; /* For content inside card-content */
    height: 100%; /* For equal height in grids */
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 30px var(--color-shadow-strong);
}

.card-image { /* Container for the image */
    width: 100%;
    height: 220px; /* Fixed height for consistent card image sizes */
    overflow: hidden;
    /* display: flex; justify-content: center; align-items: center; */ /* No longer needed due to object-fit */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, might crop */
    transition: transform 0.4s ease;
}

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

.card-content {
    padding: 25px;
    flex-grow: 1; /* Allows content to take remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes content and potential buttons apart */
}

.card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--color-text-dark);
}

.card-content p {
    font-size: 0.95em;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-content .cta-button {
    margin-top: auto; /* Pushes button to the bottom if card is taller */
    padding: 10px 20px;
    font-size: 0.9em;
}


/* --- Section Specific Styles --- */

/* Mission Section */
.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.mission-image img {
    border-radius: var(--border-radius-medium);
    box-shadow: 0 8px 25px var(--color-shadow);
}

/* Innovation Section */
.innovation-gallery, .portfolio-gallery, .awards-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.toggle-section {
    margin-top: 40px;
}
.toggle-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8em;
}
.toggle-item {
    background-color: var(--color-background-light);
    margin-bottom: 10px;
    border-radius: var(--border-radius-soft);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 5px var(--color-shadow);
}
.toggle-item summary {
    padding: 15px 20px;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-text-dark);
    cursor: pointer;
    list-style: none; /* Remove default marker */
    position: relative;
    outline: none;
}
.toggle-item summary::-webkit-details-marker { display: none; } /* Chrome */
.toggle-item summary::after {
    content: '+'; /* Collapsed state */
    font-size: 1.5em;
    color: var(--color-primary);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease-out;
}
.toggle-item[open] summary::after {
    content: '−'; /* Expanded state */
    transform: translateY(-50%) rotate(180deg);
}
.toggle-item p {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
    color: var(--color-text-muted);
}


/* External Resources Section */
.external-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}
.link-card {
    background-color: var(--color-background-light);
    padding: 25px;
    border-radius: var(--border-radius-soft);
    box-shadow: 0 4px 15px var(--color-shadow);
    transition: var(--transition-smooth);
}
.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--color-shadow-strong);
}
.link-title {
    font-size: 1.2em;
    margin-bottom: 10px;
}
.link-title a {
    color: var(--color-primary-darker);
    font-weight: 600;
}
.link-title a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}
.link-description {
    font-size: 0.9em;
    color: var(--color-text-muted);
    margin-bottom: 0;
}


/* Careers Section */
.careers-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Text takes more space */
    gap: 40px;
    align-items: center;
}
.careers-image img {
    border-radius: var(--border-radius-medium);
    box-shadow: 0 8px 25px var(--color-shadow);
}

/* Contact Call to Action (before footer on index) */
#contact-cta {
    background-color: var(--color-secondary); /* Using secondary for variation */
    color: var(--color-text-dark); /* Dark text on pastel secondary */
}
#contact-cta .section-title, #contact-cta .section-subtitle {
    color: var(--color-text-dark);
}
#contact-cta .section-title::after {
    background-color: var(--color-primary);
}
#contact-cta .cta-button {
    background-color: var(--color-primary);
    color: var(--color-text-dark);
}
#contact-cta .cta-button:hover {
    background-color: var(--color-primary-darker);
}

/* Contact Form Page Styles (contacts.html) */
.contact-form-section {
    padding: 60px 0;
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--color-background-light);
    padding: 40px;
    border-radius: var(--border-radius-medium);
    box-shadow: 0 10px 30px var(--color-shadow);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-dark);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-soft); /* Biomorphic */
    font-family: var(--font-secondary);
    font-size: 1em;
    color: var(--color-text-dark);
    background-color: #fff; /* Ensure white background for inputs */
    transition: var(--transition-smooth);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.3);
}
.form-group textarea {
    min-height: 150px;
    resize: vertical;
}
.form-group .cta-button {
    width: 100%;
    padding: 15px;
}

/* Success Page Styling */
.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
    background-color: var(--color-background-body);
}
.success-content {
    background-color: var(--color-background-light);
    padding: 50px;
    border-radius: var(--border-radius-medium);
    box-shadow: 0 10px 40px var(--color-shadow-strong);
    max-width: 600px;
}
.success-content h1 {
    color: var(--color-primary-darker);
    font-size: 2.8em;
    margin-bottom: 20px;
}
.success-content p {
    font-size: 1.2em;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

/* --- Footer --- */
.site-footer {
    background-color: #332E2E; /* Darker, earthy tone for footer */
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 0 0 0;
    font-size: 0.95em;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.footer-column h4.footer-heading {
    font-family: var(--font-primary);
    font-size: 1.3em;
    color: var(--color-text-light);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-column h4.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-column ul a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-social .social-links a {
    /* Text-based social links as per requirement */
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-title { font-size: 2.8em; }
    .hero-subtitle { font-size: 1.15em; }
    .section-title { font-size: 2em; }

    .mission-content, .careers-content {
        grid-template-columns: 1fr; /* Stack columns */
    }
    .mission-image, .careers-image {
        margin-top: 30px;
        order: -1; /* Image on top for mission/careers on mobile */
    }
    .careers-content .careers-image {
        order: initial; /* Keep image after text for careers on mobile */
    }
     .careers-content .careers-text {
        text-align: center;
    }
    .careers-content .careers-text .cta-button {
        margin: 20px auto 0;
    }
}

@media (max-width: 768px) {
    :root { --header-height: 70px; }
    html { font-size: 15px; }
    .hero-title { font-size: 2.2em; }
    .hero-subtitle { font-size: 1.05em; }
    .cta-button, button, input[type="submit"] { padding: 12px 25px; font-size: 1em; }
    .section-title { font-size: 1.8em; }

    .main-navigation .menu-toggle {
        display: block; /* Show burger icon */
        z-index: 1001; /* Above nav menu */
    }
    .main-navigation .nav-menu {
        display: none; /* Hide menu by default */
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: rgba(252, 248, 247, 0.98); /* Slightly more opaque for readability */
        box-shadow: 0 5px 10px var(--color-shadow);
        padding: 20px 0;
        text-align: center;
    }
    .main-navigation .nav-menu.active {
        display: flex; /* Show when active */
    }
    .main-navigation .nav-menu li {
        margin: 0;
        width: 100%;
    }
    .main-navigation .nav-menu a {
        display: block;
        padding: 15px 20px;
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }
    .main-navigation .nav-menu li:last-child a {
        border-bottom: none;
    }
    .main-navigation .nav-menu a::after { display: none; } /* No underline on mobile */

    .footer-container {
        grid-template-columns: 1fr; /* Stack footer columns */
        text-align: center;
    }
    .footer-column h4.footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    .hero-title { font-size: 1.9em; }
    .hero-subtitle { font-size: 1em; }
    .container { width: 95%; }
    .contact-form-container { padding: 25px; }
    .card-content { padding: 20px; }
    .card-title { font-size: 1.2em; }
}

/* --- Animations (using Animate.css classes via JS/IntersectionObserver) --- */
/* Example of setting initial state for elements to be animated */
.animate__animated {
    visibility: visible; /* Hide until animation starts */
}
.animate__fadeInUp, .animate__fadeIn, .animate__slideInUp {
    /* Animate.css will handle the animation, this ensures it's hidden before animating */
}

/* Parallax effect preparation (JS will handle transform values) */
.parallax-bg {
    background-attachment: fixed; /* Basic parallax, can be enhanced with JS */
}

/* Read More Link Style (Generic) */
.read-more-link {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-primary-darker);
    text-decoration: none;
    padding: 5px 0;
    position: relative;
    transition: var(--transition-smooth);
}
.read-more-link::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.2s ease;
}
.read-more-link:hover {
    color: var(--color-accent);
    text-decoration: none; /* Keep it clean */
}
.read-more-link:hover::after {
    transform: translateX(5px);
}

/* Special page containers - ensuring header doesn't overlap */
.privacy-page-main, .terms-page-main, .about-page-main, .contacts-page-main {
    padding-top: calc(var(--header-height) + 40px); /* Add padding for fixed header */
}
.success-page-main { /* success.html has its own centering, no top padding needed like this */
    padding-top: 0;
}

/* Ensure body content is not hidden by fixed header */
body.has-fixed-header { /* Add this class to body via JS if needed */
  padding-top: var(--header-height);
}
/* Simpler way for all pages by default */
/* main.main-content might need this if it's the first element after header */
main.main-content:not(:has(.hero-section)) { /* Only if hero is not present */
    padding-top: calc(var(--header-height) + 20px);
}
/* The .page-container already handles this for non-home pages */