/* 
 * Fazel General Trading Company - CSS File
 * Modern, responsive design with gold color scheme
 * Version: 2.0
 */

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

/* CSS Custom Properties (Variables) for consistent theming */
:root {
    /* Gold color palette */
    --gold-primary: #D4AF37;
    --gold-secondary: #FFD700;
    --gold-dark: #B8860B;
    --gold-light: #FFF8DC;
    --gold-border: #D4AF37;
    
    /* Background colors */
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    
    /* Text colors */
    --text-dark: #333;
    --text-light: #fff;
    
    /* Effects */
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Base body styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
    position: relative;
}

/* Container for consistent width and padding */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 15px;
}

/* Arabic text styling */
.arabic-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

/* Navigation bar layout */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo container styling */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo-container:hover {
    transform: translateY(-2px);
}

/* Logo image styling */
.logo-img {
    margin-right: 15px;
}

.logo-img img {
    height: 60px;
    width: auto;
    transition: var(--transition);
    border-radius: 8px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.1);
}

/* Logo text styling */
.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold-primary);
    line-height: 1.2;
    margin-bottom: 3px;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
}

/* Main navigation menu */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-menu a:hover {
    color: var(--gold-primary);
}

/* Animated underline effect */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: var(--transition);
}

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

/* Mobile hamburger menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 80px; /* Accounts for fixed header */
}

/* Hero background image */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

/* Dark overlay for better text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.8) 100%);
    z-index: -1;
}

/* Hero content container */
.hero-content {
    position: relative;
    z-index: 1;
    color: var(--text-light);
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--gold-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--gold-light);
    animation: fadeInDown 1s ease 0.2s both;
}

.hero-text {
    font-size: 1.3rem;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease 0.4s both;
}

/* Hero call-to-action button */
.btn-hero {
    display: inline-block;
    background: linear-gradient(45deg, var(--gold-primary), var(--gold-secondary));
    color: var(--dark-bg);
    padding: 15px 35px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.6s both;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
}

/* Gold shine effect at bottom of hero */
.gold-shine {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(212, 175, 55, 0.2), transparent);
    z-index: 0;
}

/* Gold side frames for mobile (only left & right sides) */
.gold-side-frame {
    display: none;
}

/* ============================================
   COMMON SECTION STYLES
   ============================================ */
.section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    color: var(--dark-bg);
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

/* Gold decorative line under section titles */
.gold-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--gold-primary), var(--gold-secondary));
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.about-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.about-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(45deg, var(--gold-primary), var(--gold-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-icon i {
    font-size: 2.5rem;
    color: white;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products {
    background-color: #f5f5f5;
}

.product-category {
    margin-bottom: 80px;
}

.category-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-bg);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gold-primary);
}

/* Product gallery grid */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 3px solid transparent;
}

.gallery-item:hover {
    transform: scale(1.03);
    border-color: var(--gold-primary);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Product grid for individual product cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--gold-primary);
}

.product-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

/* Special class for images that need contain instead of cover */
.product-img img.object-fit-contain {
    object-fit: contain !important;
    background-color: white;
    padding: 5px;
}

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

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

/* Saffron gallery styling */
.saffron-gallery {
    margin: 40px 0;
    text-align: center;
}

.saffron-images {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.saffron-images img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.saffron-images img:hover {
    transform: scale(1.05);
    border-color: var(--gold-primary);
}

/* Production info box */
.production-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-top: 40px;
    border: 2px solid var(--gold-light);
}

.production-image {
    text-align: center;
    margin-top: 30px;
}

.production-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 3px solid var(--gold-light);
}

/* Additional images section */
.additional-images {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.additional-images img {
    width: 300px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.additional-images img:hover {
    transform: scale(1.05);
    border-color: var(--gold-primary);
}

/* ============================================
   STANDARDS SECTION
   ============================================ */
.standards {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.standards .section-title {
    color: var(--text-light);
}

.standards-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.certifications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cert-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.cert-item:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-5px);
    border-color: var(--gold-primary);
}

.cert-item i {
    font-size: 3rem;
    color: var(--gold-primary);
    margin-bottom: 15px;
}

.cert-item h4 {
    color: var(--gold-light);
}

/* ============================================
   FLEET SECTION
   ============================================ */
.fleet {
    background-color: #f0f0f0;
}

.fleet-intro {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 2px solid var(--gold-light);
}

.website-link {
    margin-top: 25px;
    padding: 15px;
    background: linear-gradient(45deg, var(--gold-light), white);
    border-radius: 8px;
    border-left: 4px solid var(--gold-primary);
}

.website-link i {
    color: var(--gold-primary);
    margin-right: 10px;
}

.website-link a {
    color: var(--dark-bg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.website-link a:hover {
    color: var(--gold-dark);
    text-decoration: underline;
}

.fleet-gallery {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.fleet-item {
    width: 500px;
    max-width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 3px solid transparent;
}

.fleet-item:hover {
    border-color: var(--gold-primary);
}

.fleet-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.fleet-item:hover img {
    transform: scale(1.05);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: #111;
    color: var(--text-light);
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    color: var(--gold-primary);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold-primary);
}

/* Footer logo styling */
.footer-logo-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 10px;
    padding: 10px;
    background-color: white;
    margin-bottom: 20px;
    border: 3px solid var(--gold-primary);
}

/* Owner photo styling */
.owner-photo {
    margin-top: 20px;
    text-align: center;
}

.owner-photo img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--gold-primary);
    margin-bottom: 10px;
}

/* Contact info styling */
.contact-info p {
    margin-bottom: 10px;
}

.contact-info i {
    color: var(--gold-primary);
    margin-right: 10px;
    width: 20px;
}

/* Footer bottom (copyright) */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #aaa;
    font-size: 0.9rem;
}

/* Company name in footer (mobile only) */
.company-name-footer {
    display: none;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.company-name-footer .logo-title {
    color: var(--gold-primary);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.company-name-footer .logo-subtitle {
    color: var(--text-light);
    font-size: 1rem;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--gold-primary), var(--gold-secondary));
    color: var(--dark-bg);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet devices (max-width: 992px) */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.7rem;
    }
    
    .logo-title {
        font-size: 1.2rem;
    }
    
    .logo-subtitle {
        font-size: 0.8rem;
    }
    
    .logo-img img {
        height: 50px;
    }
    
    /* Mobile navigation menu */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: rgba(26, 26, 26, 0.98);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    /* Show hamburger menu on mobile */
    .hamburger {
        display: block;
    }
    
    /* Hamburger animation when active */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .fleet-item {
        width: 100%;
    }
}

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    /* Gold side frames - only left and right borders */
    .gold-side-frame {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        pointer-events: none;
        z-index: 9999;
        border-left: 10px solid;
        border-right: 10px solid;
        border-image: linear-gradient(to bottom, var(--gold-primary), var(--gold-secondary)) 1;
        border-top: none;
        border-bottom: none;
    }
    
    /* Mobile header layout */
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Company name in center of mobile header (using pseudo-element) */
    .navbar::before {
        content: 'Fazel Trading';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        color: var(--gold-primary);
        font-family: 'Playfair Display', serif;
        font-size: 1.2rem;
        font-weight: 600;
        white-space: nowrap;
        z-index: 1;
    }
    
    /* Hide desktop logo text on mobile */
    .logo-text {
        display: none;
    }
    
    .logo-img {
        margin-right: 0;
    }
    
    .logo-img img {
        height: 45px;
        width: 45px;
    }
    
    /* Show company name in footer on mobile */
    .company-name-footer {
        display: block;
    }
    
    /* Adjust hero section for mobile */
    .hero {
        height: 80vh;
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-text {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    /* Adjust product gallery for mobile */
    .product-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .saffron-images img {
        width: 150px;
        height: 150px;
    }
    
    .additional-images img {
        width: 100%;
        height: 200px;
    }
    
    .footer-logo-img {
        width: 120px;
        height: 120px;
    }
}

/* Small mobile devices (max-width: 576px) */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    /* Adjust mobile header company name */
    .navbar::before {
        font-size: 1rem;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .logo-img img {
        height: 40px;
        width: 40px;
    }
    
    /* Thinner gold side frames on very small screens */
    .gold-side-frame {
        border-left-width: 6px;
        border-right-width: 6px;
    }
    
    /* Adjust typography for small screens */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Single column layouts for small screens */
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .certifications {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    /* Footer adjustments for mobile */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .company-name-footer .logo-title {
        font-size: 1.3rem;
    }
    
    .company-name-footer .logo-subtitle {
        font-size: 0.9rem;
    }
}

/* Extra small mobile devices (max-width: 400px) */
@media (max-width: 400px) {
    .navbar::before {
        font-size: 0.9rem;
        max-width: 120px;
    }
    
    .logo-img img {
        height: 35px;
        width: 35px;
    }
}
/* Featured Fazel saffron varieties - additive and responsive */
.featured-saffron-showcase{margin:0 0 34px;padding:24px;background:#fff;border-radius:12px;box-shadow:var(--shadow);border:1px solid rgba(212,175,55,.22)}
.featured-saffron-showcase>h4{text-align:center;margin:0 0 22px;font-size:1.35rem}
.featured-saffron-showcase>h4 .arabic-text{display:block;margin-top:6px}
.featured-saffron-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.featured-saffron-card{margin:0;background:#fff;border-radius:10px;overflow:hidden;box-shadow:var(--shadow);border:2px solid transparent;transition:var(--transition)}
.featured-saffron-card:hover{transform:translateY(-6px);border-color:var(--gold-primary)}
.featured-saffron-card img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover}
.featured-saffron-card figcaption{display:flex;flex-direction:column;gap:5px;padding:16px;text-align:center}
.featured-saffron-card figcaption strong{font-size:1.02rem}
.featured-saffron-card figcaption .arabic-text{margin:0}
@media(max-width:768px){.featured-saffron-showcase{padding:16px}.featured-saffron-grid{grid-template-columns:1fr;gap:16px}}
