/* Google Fonts: Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-dark: #2f3f23;
    --accent-light: #91ba6a;
    --button-bg: #242d1a;
    --text-white: #ffffff;
    --text-dark: #242d1a;
    --bg-light: #f9f9f9;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

.fw-semi {
    font-weight: 600;
}

.text-primary-dark {
    color: var(--primary-dark);
}

.text-accent {
    color: var(--accent-light);
}

/* Buttons */
.btn-custom {
    background-color: var(--button-bg);
    color: var(--accent-light);
    border: 1px solid var(--accent-light);
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background-color: var(--accent-light);
    color: var(--button-bg);
    border-color: var(--button-bg);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(145, 186, 106, 0.4);
}

/* Navigation */
.navbar {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    padding-top: 20px;
    padding-bottom: 20px;
    transition: background 0.3s;
}

.navbar-brand img {
    height: 50px;
}

.nav-link {
    color: var(--text-white) !important;
    font-size: 16px;
    font-weight: 500;
    margin: 0 10px;
    position: relative; /* For the pseudo-element */
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-light);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-light) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--text-white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 63, 35, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.hero-title-small {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
}

.hero-title-large {
    font-size: 70px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-white);
}

.hero-desc {
    font-size: 16px;
    max-width: 600px;
    margin-top: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Language Switcher */
.lang-switch {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--text-white);
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s;
}

.lang-switch:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    color: var(--primary-dark);
}

/* About Section */
.about-section {
    position: relative;
    background-image: url('../images/about-cadi-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-white);
}

/* Dark Green Overlay for About */
/* Dark Green Overlay removed as per user request */

.about-section .container {
    position: relative;
    z-index: 1;
}

/* Section Title Pill */
.section-title-line {
    position: relative;
    display: flex;
    /* Aligns pill and text */
    align-items: center;
    gap: 15px;
    /* Space between pill and text */
    margin-bottom: 20px;
    --pill-color: var(--accent-light);
    /* Default color */
    font-size: 30px;
    font-weight: 700;
}

.partners-section img {
    transition: transform 0.5s ease;
}

.partners-section img:hover {
    transform: scale(1.02);
}

.section-title-line.justify-content-center {
    justify-content: center;
}

.section-title-line::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 1.3em;
    /* Approximate height of the title line */
    background-color: var(--pill-color);
    border-radius: 10px;
    /* Fully rounded edges */
    flex-shrink: 0;
}

/* Remove old border styles if present to avoid conflicts */
/* RTL Logic handled automatically by flexbox order, but ensure simple overrides are removed */
html[dir="rtl"] .section-title-line {
    border: none;
    padding: 0;
}

.about-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease;
}

.about-img:hover {
    transform: scale(1.02);
}

.about-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}


/* Vision Section */
.vision-section {
    position: relative;
    background-image: url('../images/cadi-our-vision-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    text-align: center;
    color: var(--text-white);
}

.vision-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay */
    z-index: 1;
}

.vision-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

/* .vision-title removed to uniform with section-title-line */

.vision-desc {
    font-size: 18px;
    line-height: 1.6;
}

/* Brands Section */
.brands-section {
    background-color: #fff;
    text-align: center;
}

.brands-slider {
    /* Kept for potential wrapper needs, but Flex styles removed for Splide */
    padding: 20px 0;
}

.brand-item {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
    /* Ensure it takes full width of the Splide slide */
    width: 100%;
}

.brand-item img {
    max-height: 80px;
    object-fit: contain;
}

.brand-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Partners Section */
.partners-section {
    background-color: var(--primary-dark);
    color: var(--text-white);
}

.partner-list {
    list-style: none;
    padding: 0;
}

.partner-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 16px;
    transition: transform 0.3s ease;
    cursor: default;
}

.partner-item:hover {
    transform: translateX(10px);
}

/* RTL Hover for partner item */
html[dir="rtl"] .partner-item:hover {
    transform: translateX(-10px);
}

.partner-item::before {
    content: "✓";
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    background-color: var(--accent-light);
    color: var(--primary-dark);
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
    font-size: 14px;
}

/* RTL partner list */
html[dir="rtl"] .partner-item::before {
    margin-right: 0;
    margin-left: 15px;
}

.partners-img-placeholder {
    background-color: #ccc;
    height: 400px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-weight: bold;
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-light);
}

.contact-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    /* Background removed and auto sizing */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.contact-icon img {
    width: 60px;
    height: 60px;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: #fff;
    padding: 60px 0 20px;
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--accent-light);
}

.footer-logo img {
    height: 80px;
    margin-bottom: 20px;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-light);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    font-size: 14px;
    text-align: center;
}