/* --- Variables & Reset --- */
:root {
    --primary-color: #1b5e20;
    /* Deep Forest Green for RRC */
    --secondary-color: #4caf50;
    /* Fresh Green */
    --accent-color: #fdd835;
    /* Gold/Yellow for Highlights */
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #f9fff9;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

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

ul {
    list-style: none;
}

/* --- Utility Classes --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 70px 0;
    border-bottom: 1px solid #dcdcdc; /* Visual partition between sections */
}

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

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-color);
    color: var(--text-dark);
    border-radius: 5px;
    font-weight: bold;
    transition: var(--transition);
    margin-top: 15px;
}

.btn-primary:hover {
    background: #fff;
    color: var(--text-dark);
}

/* --- HIGHLIGHTED NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: fixed;
    /* Fixed to stay on top */
    top: 0;
    width: 100%;
    z-index: 1000;
    color: var(--text-light);

    /* Highlight Styling */
    background-color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Kept from original, assuming it's still desired for icon/text spacing */
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-size: 1.5rem; /* Moved from original .logo */
    font-weight: 700; /* Changed from 'bold' in original .logo */
    color: var(--accent-color); /* Moved from original .logo */
}

.tagline {
    font-size: 0.8rem;
    font-weight: 400;
    color: #e0e0e0;
    margin-top: -2px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
}

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

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

.btn-contact:hover {
    background: var(--accent-color);
    color: var(--primary-color) !important;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* --- Hero Carousel --- */
.carousel-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 0;
    /* Nav is fixed, content sits behind it */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Darker overlay for text pop */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 25px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid white;
    color: white;
    font-size: 1.5rem;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    border-radius: 50%;
}

.carousel-btn:hover {
    background: var(--accent-color);
    color: var(--text-dark);
    border-color: var(--accent-color);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

/* --- Grids (Products & Services) --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card,
.service-box {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid #eee;
}

.card:hover,
.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
    text-align: center;
}

.card-body h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-box {
    padding: 40px 25px;
    text-align: center;
    border-bottom: 4px solid transparent;
}

.service-box:hover {
    border-bottom: 4px solid var(--accent-color);
}

#regulatory-service-box,
#import-export-service-box,
#pvp-service-box {
    cursor: pointer;
}

.service-box .icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    /* border-radius: 10px; */ /* Removed for logo */
    /* border: 5px solid white; */ /* Removed for logo */
    /* box-shadow: 15px 15px 0 var(--secondary-color); */ /* Removed for logo */
    display: block; /* Ensures no bottom gap */
}

.left-align {
    text-align: left;
}

.btn-secondary {
    padding: 10px 25px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin-top: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}

/* --- Clients --- */
.client-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    /* Thinner border */
    padding: 15px 30px;
    border-radius: 8px;
    background: white;
    height: 100px;
    /* Fixed height for consistency */
    width: 200px;
    /* Fixed width for better grid */
    transition: var(--transition);
}

.client-logo:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.client-logo:hover img {
    transform: scale(1.05);
    /* Add a subtle zoom instead of color change */
}

/* --- Footer Layout Updates --- */
footer {
    background: #111;
    color: #ccc;
    padding-top: 60px;
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    justify-content: space-between;
}

/* Specific Column Widths */
.brand-col {
    flex: 1;
    min-width: 250px;
}

.contact-col {
    flex: 1;
    min-width: 200px;
}

/* Make the Products column wider to fit the list */
.products-col {
    flex: 2;
    min-width: 300px;
    text-align: center; /* Center the heading */
}

.footer-col h3 {
    margin-bottom: 25px;
    color: var(--accent-color);
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

/* Grid Layout for the Long Product List */
.footer-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 Columns */
    gap: 10px 20px;
    /* Row Gap 10px, Column Gap 20px */
    text-align: left; /* Keep list items left aligned */
}

.footer-list-grid li {
    list-style: none;
}

.footer-list-grid a {
    color: #bbb;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
}

.footer-list-grid a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
    /* Slight slide effect on hover */
}

.footer-col p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.copyright {
    text-align: center;
    background: #000;
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.85rem;
}

/* --- Mobile Responsiveness for Footer --- */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-list-grid {
        grid-template-columns: 1fr;
        /* Stack into 1 column on small screens */
    }

    .brand-col,
    .products-col,
    .contact-col {
        width: 100%;
    }
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

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

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

    .carousel-container {
        height: 80vh;
        margin-top: 60px;
    }

    /* Adjust for fixed nav */
}

/* --- Contact Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

.close-btn:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    margin: 0;
    text-align: center;
    border-bottom: 4px solid var(--accent-color);
}

.modal-body {
    padding: 30px;
}

.modal-body p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.modal-body p i {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-top: 3px;
    width: 20px;
    text-align: center;
}

.modal-social {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.modal-social a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #f0f0f0;
    border-radius: 20px;
    color: var(--text-dark);
    transition: 0.3s;
    font-weight: 500;
}

.modal-social a:hover {
    background: var(--primary-color);
    color: white;
}

/* --- Contact Form Styles --- */
.contact-form-container {
    text-align: center;
}

.form-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.form-subtitle {
    color: #666;
    font-size: 0.9rem !important; /* Override modal p style */
    margin-bottom: 25px !important;
    display: block !important; /* Override flex */
    text-align: center !important;
}

.contact-form {
    text-align: left;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 25px; /* Rounded pill shape */
    background-color: #e8f4fd; /* Light blueish tint */
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
}

.contact-form textarea {
    border-radius: 15px; /* Less rounded for textarea */
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    background-color: #fff;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #1b5e20; /* Dark Green */
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}


/* --- About Modal Specifics --- */
.about-modal-content {
    max-width: 800px; /* Wider for reading */
}

.scrollable-content {
    max-height: 60vh; /* Limit height to keep it within viewport */
    overflow-y: auto; /* Enable vertical scrolling */
    padding-right: 15px; /* Space for scrollbar */
    text-align: justify;
}

/* Custom Scrollbar for the modal */
.scrollable-content::-webkit-scrollbar {
    width: 8px;
}

.scrollable-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.scrollable-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.scrollable-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.scrollable-content h3 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.scrollable-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}