/* --- CSS Reset & Variables --- */
:root {
    --nuron-dark: #1b3228;
    --nuron-light: #8ba24c;
    --nuron-dark-hover: #13241c;
    --nuron-light-hover: #758a3f;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9f8;
    --bg-white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Top Contact Bar --- */
.top-bar {
    background-color: var(--nuron-dark);
    color: var(--text-light);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.top-bar a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--nuron-light);
}

/* --- Header & Navigation --- */
header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    max-height: 60px;
    width: auto;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--nuron-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.btn-nav {
    border: 2px solid var(--nuron-light);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--nuron-light) !important;
}

.btn-nav:hover {
    background-color: var(--nuron-light);
    color: var(--text-light) !important;
}

/* --- Hero Section --- */
.hero {
    background-color: var(--nuron-dark);
    color: var(--text-light);
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--nuron-light);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background-color: var(--nuron-light);
    color: var(--text-light);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--nuron-light-hover);
}

/* --- Client Logo Carousel --- */
.clients {
    background-color: var(--bg-white);
    padding: 40px 0;
    border-bottom: 1px solid #e5e5e5;
    overflow: hidden;
}

.clients-title {
    text-align: center;
    color: #888;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
    font-weight: 600;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Adding a fade gradient on the left and right sides of the carousel */
.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.carousel-track {
    display: flex;
    align-items: center;
    gap: 50px;
    /* Adjust width to accommodate all logos. Animation moves 50% of the track */
    width: max-content;
    animation: scroll 20s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.client-logo {
    height: 50px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.3s ease, filter 0.3s ease;
    filter: grayscale(100%);
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* The keyframe animation smoothly scrolls the duplicated track */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 25px)); } /* -25px accounts for half the gap */
}

/* --- Services Section --- */
.services {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--nuron-dark);
    margin-bottom: 50px;
}

.service-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    align-items: stretch;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--nuron-light);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 30px;
    flex-grow: 1;
}

.service-content h3 {
    color: var(--nuron-dark);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-content p {
    margin-bottom: 15px;
    font-weight: 500;
}

.service-list {
    list-style-type: disc;
    margin-left: 20px;
    color: #555;
}

.service-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* --- Contact Section --- */
.contact {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.form-container {
    max-width: 900px;
}

.form-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-details {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--nuron-light);
}

.contact-details h3 {
    margin-bottom: 20px;
    color: var(--nuron-dark);
}

.contact-details p {
    margin-bottom: 10px;
}

.contact-details a {
    color: var(--nuron-light);
    text-decoration: none;
    font-weight: 600;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--nuron-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--nuron-light);
}

.form-submit {
    font-size: 1.1rem;
    margin-top: 10px;
}

/* ---Whatsapp Link --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
  }

/* --- Footer --- */
footer {
    background-color: var(--nuron-dark);
    color: var(--text-light);
    padding: 30px 0;
    text-align: center;
}

.footer-content a {
    color: var(--nuron-light);
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .top-bar-content {
        justify-content: center;
    }
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-container::before,
    .carousel-container::after {
        width: 50px; /* Reduce gradient fade on smaller screens */
    }
}

/* --- About Page Specific Styles --- */

.page-header {
    background-color: var(--nuron-dark);
    color: var(--text-light);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--nuron-light);
    margin-bottom: 10px;
}

.about-content {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    color: var(--nuron-dark);
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #444;
}

.mission-vision {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mv-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--nuron-light);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.mv-card h3 {
    color: var(--nuron-dark);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.divider {
    border: 0;
    height: 1px;
    background: #e5e5e5;
    margin: 60px 0;
}

.accreditations-section {
    text-align: center;
}

.accreditations-section h2 {
    color: var(--nuron-dark);
    margin-bottom: 15px;
    font-size: 2rem;
}

.accreditations-section > p {
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #555;
    font-size: 1.1rem;
}

.saqcc-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.saqcc-card {
    background-color: var(--nuron-dark);
    color: var(--text-light);
    padding: 25px 40px;
    border-radius: 8px;
    min-width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.saqcc-card h4 {
    color: var(--nuron-light);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.saqcc-card .role {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.saqcc-card .credential {
    font-size: 1.1rem;
    background-color: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 4px;
}

/* Active Nav State for better UX */
.nav-links a.active {
    color: var(--nuron-light);
    border-bottom: 2px solid var(--nuron-light);
    padding-bottom: 4px;
}

/* Responsive adjustments for About Page */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--nuron-dark);
    color: var(--text-light);
    padding: 15px 5%;
    display: none; /* Hidden by default, shown via JS */
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.95rem;
}

.cookie-banner a {
    color: var(--nuron-light);
    text-decoration: underline;
}

.cookie-banner .btn-primary {
    padding: 8px 20px;
    margin-left: 20px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .cookie-banner .btn-primary {
        margin-left: 0;
        width: 100%;
    }
}