/* ============================================
   GERELTJIN LLC - Main Stylesheet
   Blue Diamond Theme
   ============================================ */

/* CSS Variables */
:root {
    /* Primary Colors - Blue Diamond */
    --primary-blue: #2E7DB5;
    --primary-blue-dark: #1F5A87;
    --primary-blue-light: #4A9FD8;
    
    /* Accent Colors */
    --accent-gold: #D4AF37;
    --accent-gray: #F5F5F5;
    
    /* Text Colors */
    --text-dark: #1A1A1A;
    --text-gray: #666666;
    --text-light: #FFFFFF;
    
    /* Background Colors */
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-dark: #1A1A1A;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Borders */
    --border-radius: 8px;
    --border-radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    /* background-color: #a5acb2; */
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.language-switcher {
    height: 40px;
}

.language-select {
    padding: 0.4rem 0.8rem;
    border: 2px solid #123637;
    border-radius: var(--border-radius);
    background: var(--bg-white);
    color: #123637;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.language-select:hover {
    background: #123637;
    color: var(--text-light);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo:hover {
    transform: scale(1.05);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: #006B5A !important;
    background: var(--accent-gray);
}

.nav-link.active {
    color: #006B5A !important;
    background: var(--accent-gray);
}

.nav-link.nav-cta {
    background: #006B5A;
    color: var(--text-light);
}

.nav-link.nav-cta:hover {
    background: var(--primary-blue-dark);
    color: #f8fafc;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: #123637;
    color: var(--text-light);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: var(--spacing-xl) 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    opacity: 0.9;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-blue-dark);
    border-color: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

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

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

/* ============================================
   SECTIONS
   ============================================ */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: #123637;
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--text-gray);
    margin-bottom: var(--spacing-lg);
}

/* Features Section */
.features {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
    color: #123637;
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Services Section */
.services-preview {
    padding: 100px 0 ;
    background: #f8fafc !important;; 
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.service-card {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid #123637;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.service-card h3 {
    color: #123637;
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

.service-description {
    color: var(--text-gray);
    margin-bottom: var(--spacing-sm);
}

.service-link {
    color: #123637;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.service-link:hover {
    color:  #006B5A ;
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    background: #005B49;
    text-align: center;
}

.cta-section h2 {
    font-size: 40px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 40px;
}

/* Button */
.cta-section .btn-large {
    background: #ffffff;
    color: #123637;
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
} 

.cta-section .btn-large:hover {
    background: #004d3d;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-dark) !important;
    color: var(--text-light) !important;
    padding: var(--spacing-lg) 0 var(--spacing-md) !important;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-blue-light);
    margin-bottom: var(--spacing-sm);
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-blue-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    opacity: 0.7;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

/* ============================================
   FOOTER MAP STYLES
   Add this to the end of your main.css file
   ============================================ */

/* Footer Map Section */
.footer-map-section {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-map-section h3 {
    color: var(--primary-blue-light);
    margin-bottom: var(--spacing-md);
    text-align: center;
    font-size: 1.75rem;
}

.footer-map {
    width: 100%;
    height: 200px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Custom Map Markers */
.custom-marker-wrapper {
    background: transparent;
    border: none;
}

.custom-marker {
    position: relative;
    width: 44px;
    height: 44px;
    background: var(--bg-white);
    border-radius: 50%;
    border: 3px solid var(--primary-blue);
    box-shadow: var(--shadow-lg);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.6rem;
    line-height: 1;
}

/* Pin tail */
.custom-marker::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 10px solid var(--primary-blue);
}


/* Map Popup Styles */
.leaflet-popup-content {
    max-height: 140px;
    overflow-y: auto;
}
.leaflet-popup-content-wrapper {
    border-radius: var(--border-radius);
    padding: 0;
}

.map-popup {
    min-width: 200px;
}

.map-popup h4 {
    color: var(--primary-blue);
    margin: 0 0 0.25rem 0;   /* tighter */
    font-size: 1.05rem;
    line-height: 1.2;       /* tighter lines */
}

.map-popup p {
    color: var(--text-gray);
    margin: 0;  
    font-size: 0.9rem;
    line-height: 1.25;      /* compact */
}

.map-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 0.25rem;
    line-height: 1.2;
}

.map-link:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .footer-map {
        height: 250px;
    }
}

/* Footer Contact List - Enhanced for 3 locations */
.footer-contact li strong {
    color: var(--primary-blue-light);
    display: block;
    margin-top: 0.5rem;
}

.footer-social {
    display: flex;
    
    gap: 16px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-blue-light);
    color: #000;
    transform: translateY(-3px);
}

/* Carousel Images - About Page */
/* Carousel height */
#header-carousel img {
    object-fit: cover;  /* crop image nicely */
}

/* Carousel height */
#header-carousel,
#header-carousel .carousel-item {
    height: 80vh;
}

.carousel-img {
    height: 100%;
    object-fit: cover;
}

/* Dark color layer */
.carousel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 25, 55, 0.7);
    display: flex;
    align-items: center;
}

/* Text on image */
.carousel-text {
    color: white;
    padding-left: 10%;
}

.carousel-text h1 {
    font-weight: 700;
}

.carousel-text p {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ff7a18;
}

@media (max-width: 768px) {

    .container {
        padding: 0 1rem;
    }

    /* NAVBAR */
    .mobile-menu-toggle {
        display: flex !important;
    }

    /* Slide-in from right — single consistent approach */
    .nav-menu {
        position: fixed !important;
        top: 70px !important;
        right: -100% !important;
        left: auto !important;
        width: 75% !important;
        max-width: 300px !important;
        height: calc(100vh - 70px) !important;
        background: var(--bg-white) !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
        padding: 1rem 1.5rem !important;
        box-shadow: var(--shadow-lg) !important;
        transition: right 0.3s ease !important;
        overflow-y: auto !important;
        z-index: 1000 !important;
        /* Override the display:none from desktop */
        display: flex !important;
    }

    .nav-menu.active {
        right: 0 !important;
    }

    .nav-menu li {
        width: 100% !important;
        border-bottom: 1px solid var(--accent-gray) !important;
        display: block !important;
    }

    .nav-link {
        display: block !important;
        width: 100% !important;
        padding: 0.85rem 0.5rem !important;
    }

    .language-switcher {
        width: 100%;
        margin-top: 0.75rem;
    }

    .language-select {
        width: 100%;
    }

    /* HERO */
    .hero {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    /* BUTTONS */
    .btn,
    .btn-large {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
    }

    /* SECTION TITLES */
    .section-title {
        font-size: 1.8rem;
    }

    /* GRIDS — all single column */
    .features-grid,
    .services-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-section {
        padding: 60px 20px;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    /* CAROUSEL */
    #header-carousel,
    #header-carousel .carousel-item {
        height: 50vh;
    }

    .carousel-text {
        padding-left: 5%;
        padding-right: 5%;
    }

    .carousel-text h1 {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 768px) {

    /* Footer — compact 2-column layout */
    .footer {
        padding: var(--spacing-md) 0 var(--spacing-sm) !important;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.25rem !important;
        margin-bottom: 1.25rem !important;
    }

    /* Company info spans full width */
    .footer-content .footer-section:first-child {
        grid-column: 1 / -1;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 0.85rem !important;
        margin-bottom: 0.6rem !important;
        letter-spacing: 0.05em;
    }

    .footer-section p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }

    /* Quick links — tighter */
    .footer-links li,
    .footer-contact li {
        margin-bottom: 0.3rem !important;
        font-size: 0.85rem !important;
    }

    .footer-links a {
        font-size: 0.85rem !important;
    }

    /* Social icons — smaller */
    .footer-social {
        margin-top: 0.75rem !important;
        gap: 10px !important;
    }

    .footer-social a {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }

    /* Map — hide on mobile to save space */
    .footer-section:last-child {
        grid-column: 1 / -1;
    }

    .footer-map {
        height: 250px !important;
    }

    /* Footer bottom */
    .footer-bottom {
        padding-top: 1rem !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .footer-content .footer-section:first-child {
        grid-column: 1;
    }

    .footer-section:last-child {
        grid-column: 1;
    }

    /* Collapse quick links into 2 columns inline */
    .footer-links {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.25rem 1rem !important;
    }

    .footer-map {
        height: 250px !important;
    }
}