/* ==========================================================================
   M/S Gill Rice Traders - Main Stylesheet
   Premium, Fully Responsive, Dark Green & Gold Luxury Vibe
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --color-primary-green: #0c4d2b;      /* Rich Forest Green */
    --color-secondary-green: #08381e;    /* Deep Obsidian Green */
    --color-accent-gold: #c5a059;       /* Golden Wheat */
    --color-accent-gold-dark: #b59049;  /* Deep Warm Gold */
    --color-dark-espresso: #2c1a11;     /* Warm Espresso Brown */
    --color-espresso-bg: #1f120c;       /* Dark Espresso background */
    --color-off-white: #fcfbfa;         /* Crisp Warm White */
    --color-off-white-dark: #f5f4ef;    /* Soft Warm Gray */
    --color-white: #ffffff;
    --color-black: #000000;
    
    /* Text Colors */
    --color-text-dark: #222222;
    --color-text-light: #ffffff;
    --color-text-muted: #666666;
    --color-text-gold: #c5a059;

    /* Fonts */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Transitions & Shadows */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Layout Constants */
    --header-height: 80px;
}

/* --------------------------------------------------------------------------
   2. Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-off-white);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.container-fluid {
    width: 100%;
    padding: 0 4%;
}

section {
    padding: 100px 0;
    position: relative;
}

/* Titles & Headers */
.section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary-green);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

.section-title.centered {
    text-align: center;
    margin-bottom: 50px;
}

.section-title.dark {
    color: var(--color-dark-espresso);
}

.wheat-decor {
    font-size: 1.8rem;
    color: var(--color-accent-gold);
}

.section-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-accent-gold);
    text-transform: uppercase;
    margin-bottom: 15px;
    position: relative;
}

/* Custom Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background-color: var(--color-primary-green);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(12, 77, 43, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-secondary-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(12, 77, 43, 0.4);
}

.btn-gold {
    background-color: var(--color-accent-gold);
    color: var(--color-white);
    font-size: 0.8rem;
    padding: 8px 20px;
}

.btn-gold:hover {
    background-color: var(--color-accent-gold-dark);
    transform: translateY(-2px);
}

.btn-outline-whatsapp {
    background-color: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

.btn-outline-whatsapp:hover {
    background-color: #25d366; /* WhatsApp Green */
    border-color: #25d366;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-outline-white {
    background-color: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

.btn-outline-white:hover {
    background-color: var(--color-white);
    color: var(--color-primary-green);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   3. Header Navigation (Sticky & Responsive)
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    height: 70px;
    background-color: var(--color-white);
    box-shadow: var(--shadow-medium);
}

.nav-container {
    width: 90%;
    max-width: 1250px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Design */
.logo-area {
    display: flex;
    align-items: center;
}

.logo-image {
    max-height: 55px;
    transition: var(--transition-smooth);
}
.site-header.scrolled .logo-image {
    max-height: 48px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-green);
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-gold);
    letter-spacing: 0.5px;
}

.logo-tagline {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 2px;
    margin-top: 2px;
}

/* Nav Menu */
.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-dark);
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-gold);
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-accent-gold);
}

.nav-link.active::after, .nav-link:hover::after {
    width: 100%;
}

/* WhatsApp Button */
.nav-whatsapp-btn {
    background-color: #25d366;
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.nav-whatsapp-btn:hover {
    background-color: #1ebd59;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--color-primary-green);
    border-radius: 5px;
    transition: var(--transition-smooth);
}

/* --------------------------------------------------------------------------
   4. Hero Slider Section (Swiper & Skew Border Layout)
   -------------------------------------------------------------------------- */
.hero-section {
    padding: 0;
    height: 100vh;
    min-height: 650px;
    width: 100%;
    position: relative;
    margin-top: 0;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--color-black);
}

/* Diagonal Background Skew Panel */
.hero-bg-skew {
    position: absolute;
    top: 0;
    left: -15%;
    width: 63%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 26, 17, 0.88) 0%, rgba(31, 18, 12, 0.92) 100%), url('assets/images/hero_rice.jpg');
    background-size: cover;
    background-position: center;
    transform: skewX(-9deg);
    transform-origin: top left;
    z-index: 2;
    border-right: 5px solid var(--color-accent-gold);
    box-shadow: 15px 0 40px rgba(0, 0, 0, 0.5);
}

/* Hero Content Area overlaying skewed panel */
.hero-content {
    position: relative;
    z-index: 3;
    width: 45%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 8%;
    padding-right: 3%;
    color: var(--color-white);
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-accent-gold);
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-divider-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-accent-gold);
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.hero-divider-text span {
    color: var(--color-white);
}

.hero-desc {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    max-width: 480px;
}

.hero-ctas {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Image on the Right */
.hero-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 6s ease;
}

/* Swiper transitions zoom effect */
.swiper-slide-active .hero-image {
    transform: scale(1);
}

/* Slider Controls */
.hero-pagination {
    bottom: 30px !important;
    left: 8% !important;
    text-align: left;
    width: auto !important;
    z-index: 10;
}

.hero-pagination .swiper-pagination-bullet {
    background-color: var(--color-white) !important;
    opacity: 0.4;
    width: 10px;
    height: 10px;
    margin: 0 6px !important;
}

.hero-pagination .swiper-pagination-bullet-active {
    background-color: var(--color-accent-gold) !important;
    opacity: 1;
    width: 24px;
    border-radius: 5px;
}

.hero-next, .hero-prev {
    color: var(--color-white) !important;
    width: 50px;
    height: 50px;
    background-color: rgba(12, 77, 43, 0.3);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
    top: auto !important;
    bottom: 30px !important;
    margin-top: 0 !important;
    z-index: 10 !important;
}

.hero-next::after, .hero-prev::after {
    font-size: 1.2rem !important;
    font-weight: bold;
}

.hero-next:hover, .hero-prev:hover {
    background-color: var(--color-primary-green);
    border-color: var(--color-accent-gold);
}

.hero-next { right: 8% !important; }
.hero-prev { left: auto !important; right: calc(8% + 65px) !important; }

/* Responsive adjustments for mobile navigation placement to prevent overlay with WhatsApp button */
@media (max-width: 767px) {
    .hero-next, .hero-prev {
        bottom: 110px !important;
    }
}

/* --------------------------------------------------------------------------
   5. About Us Section (Mill Image & Values Grid)
   -------------------------------------------------------------------------- */
.about-section {
    background-color: var(--color-white);
}

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

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
}

.about-content {
    display: flex;
    flex-direction: column;
}

.about-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary-green);
    line-height: 1.2;
    margin-bottom: 10px;
}

.about-subheading {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 25px;
    font-family: var(--font-heading);
}

.about-text {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Values Grid */
.about-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.about-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-smooth);
}

.about-feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon-wrapper {
    width: 65px;
    height: 65px;
    background-color: var(--color-off-white-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-green);
    margin-bottom: 15px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.03);
}

.about-feature-item:hover .feature-icon-wrapper {
    background-color: var(--color-primary-green);
    color: var(--color-accent-gold);
    box-shadow: 0 8px 20px rgba(12, 77, 43, 0.2);
}

.feature-icon {
    width: 28px;
    height: 28px;
}

.feature-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   6. Our Products Section (Rectangular Card Concept matching design image)
   -------------------------------------------------------------------------- */
.products-section {
    background-color: var(--color-off-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-top: 30px;
}

.product-card {
    background-color: var(--color-primary-green);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
}

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

.product-image-container {
    width: 100%;
    height: 190px;
    overflow: hidden;
    position: relative;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

/* Central badge icon overlapping image and green footer */
.product-badge {
    position: absolute;
    top: 190px; /* matches the height of the image container */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--color-primary-green);
    border: 3px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-gold);
    font-size: 1.1rem;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.product-card:hover .product-badge {
    background-color: var(--color-accent-gold);
    border-color: var(--color-white);
    color: var(--color-primary-green);
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 6px 15px rgba(197, 160, 89, 0.4);
}

/* Info block under image */
.product-info-block {
    background-color: var(--color-primary-green);
    width: 100%;
    padding: 40px 20px 25px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-smooth);
    flex-grow: 1;
}

.product-card:hover .product-info-block {
    background-color: var(--color-secondary-green);
}

.product-name {
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    margin-top: 5px;
}

.btn-view-details {
    width: 75%;
    background-color: var(--color-accent-gold);
    color: var(--color-espresso-bg);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-view-details:hover {
    background-color: var(--color-white);
    color: var(--color-primary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   7. Why Choose Us Section (Grid Matrix Layout)
   -------------------------------------------------------------------------- */
.why-choose-us-section {
    background-color: var(--color-white);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border: 1px solid #e8e7e1;
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
}

.why-item {
    padding: 45px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid #e8e7e1;
    transition: var(--transition-smooth);
    background-color: var(--color-white);
}

.why-item:last-child {
    border-right: none;
}

.why-item:hover {
    background-color: var(--color-off-white);
    transform: scale(1.02);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
}

.why-icon-wrapper {
    width: 50px;
    height: 50px;
    color: var(--color-primary-green);
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.why-item:hover .why-icon-wrapper {
    color: var(--color-accent-gold);
    transform: scale(1.1);
}

.why-icon-wrapper svg {
    width: 100%;
    height: 100%;
}

.why-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.why-item-desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   8. Our Brands & We Export To Section
   -------------------------------------------------------------------------- */
.brands-export-section {
    padding: 0;
    background-color: var(--color-off-white);
}

.brands-export-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    min-height: 520px;
}

/* Left Brand Panel (Forest Green) */
.brands-panel {
    background-color: var(--color-primary-green);
    color: var(--color-white);
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.panel-title.dark {
    color: var(--color-primary-green);
}

.header-line {
    flex-grow: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
}

.export-panel .header-line {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Swiper Brand Slider (Single Image View Carousel) */
.brand-swiper {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding-bottom: 45px;
    position: relative;
    overflow: hidden;
}

.brand-next, .brand-prev {
    color: var(--color-accent-gold) !important;
    width: 40px;
    height: 40px;
    background-color: rgba(197, 160, 89, 0.1);
    border-radius: 50%;
    border: 1.5px solid var(--color-accent-gold);
    transition: var(--transition-smooth);
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: -20px !important;
    z-index: 10 !important;
    cursor: pointer;
}
.brand-next::after, .brand-prev::after {
    font-size: 1rem !important;
    font-weight: bold;
}
.brand-next:hover, .brand-prev:hover {
    background-color: var(--color-accent-gold);
    color: var(--color-primary-green) !important;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}
.brand-next { right: 5px !important; }
.brand-prev { left: 5px !important; }

.brand-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.brand-carousel-image {
    width: 100%;
    max-width: 240px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.45));
    transition: var(--transition-smooth);
}

.brand-slide:hover .brand-carousel-image {
    transform: translateY(-8px) scale(1.04);
}

/* Custom styles for Brand slider bullets pagination */
.brand-pagination {
    bottom: 0 !important;
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100% !important;
}

.brand-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.35) !important;
    opacity: 1;
    transition: var(--transition-smooth);
    border-radius: 50%;
}

.brand-pagination .swiper-pagination-bullet-active {
    background-color: var(--color-accent-gold) !important;
    width: 22px;
    border-radius: 5px;
}

/* Right Export Panel (Light Gray) */
.export-panel {
    background-color: var(--color-off-white-dark);
    padding: 80px 8%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 520px;
}

.export-panel .panel-header {
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}

.export-map-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    z-index: 1;
    pointer-events: none;
    margin-bottom: 0;
    opacity: 0.8;
}

.world-map-svg {
    width: 100%;
    height: auto;
}

.world-map-svg path[fill="#f4efe6"] {
    fill: #dedacf !important;
    stroke: #cdc8b6 !important;
}

/* Map Animations & Highlights */
.map-pulse-marker {
    animation: markerPulse 2s infinite ease-in-out;
}

.map-pulse-ring {
    animation: ringExpand 2s infinite ease-in-out;
    transform-origin: 595px 215px;
}

.export-route-line {
    stroke-dasharray: 6;
    animation: dashRoute 30s linear infinite;
}

@keyframes markerPulse {
    0% { r: 6; fill: var(--color-accent-gold); }
    50% { r: 8; fill: var(--color-primary-green); }
    100% { r: 6; fill: var(--color-accent-gold); }
}

@keyframes ringExpand {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

@keyframes dashRoute {
    to {
        stroke-dashoffset: -1000;
    }
}

/* Country Badges horizontal row layout (forced into 6 items per row) */
.export-countries-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px 12px;
    position: relative;
    z-index: 2;
    margin-top: auto;
    width: 100%;
}

.country-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    transition: var(--transition-smooth);
}

.country-badge:hover {
    transform: translateY(-2px);
}

/* Custom CSS Flags Rendering */
.custom-flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    display: inline-flex;
    flex-shrink: 0;
}

.custom-flag.ksa {
    background-color: #0c4d2b;
}

.custom-flag.ksa .ksa-sword {
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: 16px;
    height: 1.5px;
    background-color: #ffffff;
}

.custom-flag.uae {
    display: flex;
}

.uae-red {
    width: 25%;
    height: 100%;
    background-color: #ff0000;
}

.uae-bars {
    width: 75%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.uae-green { height: 33.3%; background-color: #00732f; }
.uae-white { height: 33.3%; background-color: #ffffff; }
.uae-black { height: 33.4%; background-color: #000000; }

.custom-flag.qatar {
    display: flex;
}

.qatar-white {
    width: 30%;
    height: 100%;
    background-color: #ffffff;
}

.qatar-maroon {
    width: 70%;
    height: 100%;
    background-color: #8d1b3d;
}

.custom-flag.oman {
    display: grid;
    grid-template-columns: 28% 72%;
    background-color: #db161b;
}

.oman-red-l {
    background-color: #db161b;
}

.oman-bars {
    display: grid;
    grid-template-rows: 35% 30% 35%;
}

.oman-white { background-color: #ffffff; }
.oman-bars::before { content: ''; background-color: #db161b; }
.oman-green { background-color: #167d3e; }

.custom-flag.kuwait {
    display: flex;
    position: relative;
}

.kuwait-bars {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.kuwait-green { height: 33.3%; background-color: #007a3d; }
.kuwait-white { height: 33.3%; background-color: #ffffff; }
.kuwait-red { height: 33.4%; background-color: #ce1126; }

.kuwait-wedge {
    position: absolute;
    left: 0;
    top: 0;
    width: 25%;
    height: 100%;
    background-color: #000000;
    clip-path: polygon(0 0, 100% 25%, 100% 75%, 0 100%);
    z-index: 2;
}

.custom-flag.africa {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    font-size: 1.15rem;
    margin-top: -2px;
}

/* Custom Flag: Iran */
.custom-flag.iran {
    display: flex;
    flex-direction: column;
}
.iran-green { height: 33.3%; background-color: #239f40; }
.iran-white { height: 33.3%; background-color: #ffffff; }
.iran-red { height: 33.4%; background-color: #da0000; }

/* Custom Flag: Australia */
.custom-flag.australia {
    background-color: #002B7F;
    position: relative;
}
.australia-canton {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 50%;
    background-color: #E21E33;
    border-right: 0.5px solid #ffffff;
    border-bottom: 0.5px solid #ffffff;
}
.australia-stars {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 3px;
    height: 3px;
    background-color: #ffffff;
    box-shadow: -5px 0 0 #ffffff, -2px -3px 0 #ffffff;
}

/* Custom Flag: New Zealand */
.custom-flag.nz {
    background-color: #00247D;
    position: relative;
}
.nz-canton {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 50%;
    background-color: #E21E31;
    border-right: 0.5px solid #ffffff;
    border-bottom: 0.5px solid #ffffff;
}
.nz-stars {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 3px;
    height: 3px;
    background-color: #E21E31;
    box-shadow: -4px -1px 0 #E21E31;
}

/* Custom Flag: USA */
.custom-flag.usa {
    background: repeating-linear-gradient(
        to bottom,
        #ff0000,
        #ff0000 1.2px,
        #ffffff 1.2px,
        #ffffff 2.4px
    );
    position: relative;
}
.usa-canton {
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 50%;
    background-color: #002B7F;
}
.usa-stars {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 1px;
    height: 1px;
    background-color: #ffffff;
    box-shadow: 2px 0 0 #ffffff, 0 2px 0 #ffffff, 2px 2px 0 #ffffff, 4px 0 0 #ffffff, 4px 2px 0 #ffffff;
}

/* Custom Flag: Europe (EU) */
.custom-flag.eu {
    background-color: #003399;
    position: relative;
}
.eu-stars {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border: 1.5px dotted #ffcc00;
    border-radius: 50%;
}

.country-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-text-dark);
    letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   9. Gallery Section (Thumbnail Grid Layout)
   -------------------------------------------------------------------------- */
.gallery-section {
    background-color: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.gallery-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background-color: var(--color-off-white);
    transition: var(--transition-smooth);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.gallery-image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-card:hover .gallery-image {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 77, 43, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 2;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom-icon {
    width: 45px;
    height: 45px;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-green);
    font-size: 1.1rem;
    box-shadow: var(--shadow-medium);
    transform: scale(0.8);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.gallery-card:hover .gallery-zoom-icon {
    transform: scale(1);
}

/* Green footer block */
.gallery-info-block {
    background-color: var(--color-primary-green);
    padding: 15px 10px;
    text-align: center;
    transition: var(--transition-smooth);
}

.gallery-card:hover .gallery-info-block {
    background-color: var(--color-secondary-green);
}

.gallery-item-title {
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Lightbox Modal for Gallery zoom */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(14, 15, 17, 0.95);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--color-white);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--color-accent-gold);
    transform: scale(1.1);
}

.lightbox-content {
    display: block;
    max-width: 85%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-heavy);
    animation: lightboxZoom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.lightbox-caption {
    margin-top: 20px;
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    border-bottom: 2px solid var(--color-accent-gold);
    padding-bottom: 5px;
    animation: lightboxFadeIn 0.5s ease-out forwards;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   10. Get In Touch Section (Contact Info, AJAX Form & Leaflet)
   -------------------------------------------------------------------------- */
.contact-section {
    background-color: var(--color-off-white-dark);
    padding-bottom: 0; /* Let it touch the footer directly */
}

.contact-container {
    width: 90%;
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    background-color: var(--color-white);
}

/* Column 1: Info (Solid Forest Green) */
.contact-info-panel {
    background-color: var(--color-primary-green);
    color: var(--color-white);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-gold);
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.info-item:hover .info-icon {
    background-color: var(--color-accent-gold);
    color: var(--color-primary-green);
    transform: rotate(15deg);
}

.info-details {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.info-link, .info-value {
    font-size: 1rem;
    font-weight: 600;
}

.info-link:hover {
    color: var(--color-accent-gold);
}

/* Column 2: Form Panel (White) */
.contact-form-panel {
    padding: 60px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

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

.form-group.half {
    width: 50%;
}

.form-group.full {
    width: 100%;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #e1dfd8;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    background-color: var(--color-off-white);
    color: var(--color-text-dark);
    outline: none;
    transition: var(--transition-smooth);
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--color-primary-green);
    background-color: var(--color-white);
    box-shadow: 0 4px 12px rgba(12, 77, 43, 0.05);
}

.form-textarea {
    resize: none;
}

.btn-submit-message {
    background-color: var(--color-primary-green);
    color: var(--color-white);
    width: 100%;
    padding: 16px 20px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(12, 77, 43, 0.2);
}

.btn-submit-message:hover {
    background-color: var(--color-secondary-green);
    box-shadow: 0 6px 20px rgba(12, 77, 43, 0.35);
}

/* Status Toasts */
.form-status {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.form-status.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 12px;
}

.form-status.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 12px;
}

/* Column 3: Map Panel */
.contact-map-panel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.map-element {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Custom Styled Marker Leaflet */
.custom-leaflet-marker {
    background-color: var(--color-primary-green);
    border: 2px solid var(--color-accent-gold);
    border-radius: 50%;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-medium);
}

/* --------------------------------------------------------------------------
   11. Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background-color: var(--color-dark-espresso);
    color: rgba(255, 255, 255, 0.6);
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    width: 90%;
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.copyright-text {
    font-weight: 500;
}

.credits-text {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.heart-icon {
    color: var(--color-accent-gold);
}

/* --------------------------------------------------------------------------
   12. Floating CTA Actions (WhatsApp Button)
   -------------------------------------------------------------------------- */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: var(--transition-smooth);
    animation: floatPulse 2s infinite ease-in-out;
}

.floating-whatsapp-btn:hover {
    background-color: #1ebd59;
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

@keyframes floatPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --------------------------------------------------------------------------
   13. Responsive Media Queries
   -------------------------------------------------------------------------- */

/* Responsive Table Widescreen */
@media (max-width: 1200px) {
    .hero-bg-skew {
        width: 68%;
    }
    .hero-content {
        width: 50%;
    }
    .about-image {
        height: 480px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .why-choose-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .why-item {
        border-bottom: 1px solid #e8e7e1;
    }
    .why-item:nth-child(3), .why-item:nth-child(6) {
        border-right: none;
    }
    .why-item:nth-child(4), .why-item:nth-child(5), .why-item:nth-child(6) {
        border-bottom: none;
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
    .contact-map-panel {
        min-height: 350px;
    }
}

/* Tablet Media Queries */
@media (max-width: 991px) {
    .site-header {
        height: 70px;
    }
    
    /* Navigation drawer menu */
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        transition: var(--transition-smooth);
        padding: 40px;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
    
    .nav-whatsapp-btn {
        margin-left: auto;
        margin-right: 20px;
        padding: 8px 16px;
    }

    /* Stack Hero slider */
    .hero-bg-skew {
        display: none;
    }
    .hero-content {
        width: 100%;
        background: linear-gradient(135deg, rgba(44, 26, 17, 0.95) 0%, rgba(31, 18, 12, 0.95) 100%);
        padding: 80px 8%;
    }
    .hero-image-wrapper {
        width: 100%;
    }
    .hero-title {
        font-size: 2.5rem;
    }

    /* Stack About Us */
    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .about-image {
        height: 400px;
    }
    .about-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Stack Brands & Export */
    .brands-export-grid {
        grid-template-columns: 1fr;
    }
    .brands-panel, .export-panel {
        padding: 60px 8%;
    }
}

/* Mobile Media Queries */
@media (max-width: 767px) {
    section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-divider-text {
        font-size: 0.8rem;
    }
    .hero-desc {
        font-size: 0.95rem;
    }
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%;
    }
    .nav-whatsapp-btn {
        display: none; /* Hide on small screen header to save space, rely on floating */
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    .why-item {
        border-right: none;
        border-bottom: 1px solid #e8e7e1;
        padding: 30px 20px;
    }
    .why-item:last-child {
        border-bottom: none;
    }
    .brand-showcase {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    .brand-image-wrapper {
        width: 140px;
    }
    .export-countries-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-form-panel {
        padding: 40px 20px;
    }
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    .form-group.half {
        width: 100%;
    }
    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .export-countries-list {
        grid-template-columns: 1fr;
    }
    .about-features-grid {
        grid-template-columns: 1fr;
    }
}
