/* 
  Fezzan Dates - Premium Stylesheet
*/

:root {
    /* Colors based on Fezzan Logo */
    --primary: #063A13;          /* Deep Forest Green */
    --primary-dark: #03220A;
    --primary-light: #125522;
    --secondary: #1A1A1A;        /* Dark Charcoal/Black */
    --accent: #FFD500;           /* Bright Yellow */
    
    --bg-main: #FAFCFA;          /* Crisp off-white */
    --bg-light: #ffffff;
    --bg-dark: #04220B;          /* Very deep green almost black */
    
    --text-dark: #1A1A1A;
    --text-muted: #5B635D;
    --text-light: #ffffff;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --section-pad: 5rem 0;
    --nav-height: 80px;

    /* --- CSS Reset & Variables --- */
:root {
    /* Luxury Branding Colors */
    --primary: #113620; /* Deep, luxury green */
    --secondary: #1a1a1a; 
    --accent: #D4AF37; /* Soft gold / Premium metallic gold */
    --bg-color: #FAF9F6; /* Natural premium beige / off-white */
    --bg-light: #FFFFFF; /* Pure white for cards */
    --text-color: #2D2D2D;
    --text-muted: #666666;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

h1 { font-size: 3.8rem; letter-spacing: -1px; }
h2 { font-size: 2.5rem; letter-spacing: -0.5px; }
h3 { font-size: 1.8rem; }

.section-label {
    display: inline-block;
    color: var(--accent);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}    display: block;
}

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

.bg-dark {
    background-color: var(--primary);
    color: white;
}

.bg-dark .section-label { color: var(--accent); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark p { color: white; }
.bg-dark .text-muted { color: rgba(255,255,255,0.7); }

.bg-gray {
    background-color: #F1F1EF;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 500;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(6, 58, 19, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Topbar */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002; /* Higher than navbar */
    height: 40px;
    display: flex;
    align-items: center;
    transition: transform 0.35s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 40px; /* Space for the topbar */
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(255, 255, 255, 0.98); /* Always start white */
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    z-index: 1000;
}

/* Only go transparent when hero is on the page (class added by JS) */
.hero-page .navbar:not(.scrolled) {
    background-color: transparent;
    box-shadow: none;
}

.navbar.scrolled {
    top: 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light); /* Initial transparent state */
    transition: var(--transition);
}

.navbar.scrolled .logo-text {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none; /* Removed the ugly bullet points */
    margin: 0;
    padding: 0;
    align-items: center;
}

.brand-logo {
    height: 70px;
    width: auto;
    transition: filter 0.3s ease, transform 0.3s ease;
    display: block;
}

/* Make logo pure white ONLY when on hero page and not scrolled */
.hero-page .navbar:not(.scrolled) .brand-logo {
    filter: brightness(0) invert(1);
}

.nav-links li a {
    color: var(--secondary); /* Dark by default — works on all inner pages */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    text-decoration: none;
}

/* On hero pages (index.html), links are white before scroll */
.hero-page .navbar:not(.scrolled) .nav-links li a:not(.btn-primary) {
    color: var(--text-light);
}

.navbar.scrolled .nav-links li a:not(.btn-primary) {
    color: var(--secondary);
}

.nav-links li a.btn-primary {
    color: var(--text-light) !important;
}

.nav-links li a.btn-primary:hover {
    color: var(--accent) !important;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links li a.btn-primary::after {
    display: none; /* No underline for button */
}

.nav-links li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--secondary);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    background-image: url('images/hero_b2b.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Elegant soft gradient protecting text without being a heavy box */
    background: linear-gradient(90deg, rgba(17, 54, 32, 0.9) 0%, rgba(17, 54, 32, 0.5) 50%, rgba(17, 54, 32, 0.1) 100%);
    z-index: 1;
}

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

.hero-content h1 {
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    color: rgba(255,255,255,0.95);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* Split Hero (General) */
.split-hero {
    display: flex;
    background-color: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.02);
}
/* The properties below were incorrectly placed outside the closing brace of the above .split-hero rule. Removed them. */
/*    letter-spacing: 1.5px; */
/*    margin-bottom: 1.5rem; */
/*    backdrop-filter: blur(5px); */
/* } */ /* This closing brace was also misplaced */

.hero-title {
    color: var(--text-light);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    max-width: 600px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Split Hero for Inner Pages */
.split-hero {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 5rem;
    padding-top: 2rem;
}

.split-hero .text-col {
    flex: 1;
}

.split-hero .media-col {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 12px;
}

.video-overlay:hover {
    background: rgba(0,0,0,0.4);
}

.play-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-size: 2rem;
    padding-left: 5px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.video-overlay:hover .play-icon {
    transform: scale(1.1);
    background: var(--accent);
    color: var(--secondary);
}

/* Sections */
.section {
    padding: var(--section-pad);
}

.section-label {
    display: block;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Elegant Spec Tables */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.spec-table tr {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table td {
    padding: 1.25rem 0;
    font-size: 1rem;
    vertical-align: middle;
}

.spec-table td.label {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    width: 45%;
    padding-right: 1rem;
}

.spec-table td.value {
    color: var(--text-muted);
    text-align: right;
    font-weight: 500;
}

/* Light / Dark Context Overrides */
.bg-dark .spec-table tr {
    border-bottom-color: rgba(255,255,255,0.1);
}

.bg-dark .spec-table td.label {
    color: var(--accent);
}

.bg-dark .spec-table td.value {
    color: white;
}

/* Stats Section */
.stats-section {
    padding: 0;
    position: relative;
    z-index: 10;
    margin-top: -60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    text-align: center;
    background: #ffffff;
    padding: 3rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    align-items: center;
}

.stat-card {
    padding: 1rem;
    border-right: 1px solid rgba(0,0,0,0.06);
}
.stat-card:last-child {
    border-right: none;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: baseline;
    letter-spacing: -1px;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 600;
    margin-left: 2px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

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

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.benefits-list {
    margin-top: 2rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--secondary);
}

.benefits-list i {
    color: var(--accent);
    font-size: 1.2rem;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary);
    color: var(--text-light);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 8px solid var(--bg-main);
    box-shadow: var(--shadow-md);
}

.exp-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.exp-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--bg-main);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(6, 58, 19, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: var(--text-light);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    gap: 0.8rem;
}

/* CTA */
.cta {
    background: linear-gradient(to right, rgba(6, 58, 19, 0.95), rgba(4, 34, 11, 0.95)), url('images/cta-bg.jpg') center/cover fixed;
    color: var(--text-light);
    padding: 6rem 0;
}

.cta-title {
    color: var(--text-light);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: #a09792;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col.links ul li a {
    color: #a09792;
}

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

.footer-col.contact ul li {
    color: #a09792;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.footer-col.contact ul li i {
    color: var(--primary);
    margin-top: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #a09792;
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: #a09792;
}

.legal-links a:hover {
    color: var(--primary);
}

/* Trusted Partners */
.partners-section {
    background-color: var(--bg-light); /* Crisp white/beige */
    padding: 6rem 0 5rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.partners-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.partners-tagline {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 4rem;
    line-height: 1.8;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3rem 2rem;
    align-items: center;
    justify-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1.25rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    filter: grayscale(100%) opacity(0.45);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: default;
    width: 100%;
}

.partner-logo i {
    font-size: 2.2rem;
    color: var(--secondary);
}

.partner-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-5px);
}

.partner-logo:hover i {
    color: var(--accent); /* Turn icon gold on hover */
}

.partner-logo:hover span {
    color: var(--primary); /* Turn text green on hover */
}

.trust-element {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    display: inline-block;
}

.trust-element p {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.trust-element p i {
    color: var(--accent);
    font-size: 1.2rem;
}

.partner-disclaimer {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-top: 1rem;
    font-style: italic;
    font-family: var(--font-body);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 992px) {
    .partners-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
    .hero-title { font-size: 3rem; }
    .about-grid { grid-template-columns: 1fr; }
    .about-image-wrapper { margin-top: 2rem; }
    .experience-badge { bottom: 10px; right: 10px; width: 120px; height: 120px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .partner-logo { font-size: 0.9rem; flex-direction: column; text-align: center; }
    .partner-logo i { font-size: 1.8rem; margin-bottom: 0.3rem; }
    
    .nav-links, .nav-btn { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-title { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .split-hero { flex-direction: column; }
}
