/* 
  ==============================================
  Sri Raani Dry Fruits Traders - Master Styles
  ==============================================
*/

:root {
    /* Premium Light Color Palette */
    --clr-bg: #FCFBF8;          /* Soft creamy white background */
    --clr-surface: #FFFFFF;     /* White surface */
    --clr-surface-light: #F4F1E9;/* Slightly off-white for contrast elements */
    --clr-primary: #B8652A;     /* Rich Rust/Golden Terracotta */
    --clr-primary-hover: #A0521E; /* Deeper Rust orange */
    --clr-text: #2D2825;        /* Very dark charcoal/brown */
    --clr-text-muted: #6B615A;  /* Medium brown-grey */
    --clr-accent: #8C2412;      /* Deep rich red */
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Effects */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
}

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

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

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

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

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

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

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

.section {
    padding: 6rem 0;
}

.text-center { text-align: center; }
.mt-5 { margin-top: 3rem; }

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-bg);
    box-shadow: 0 4px 15px rgba(184, 101, 42, 0.3);
}

.btn-primary:hover {
    background-color: var(--clr-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(184, 101, 42, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--clr-primary);
    border: 1px solid var(--clr-primary);
}

.btn-secondary:hover {
    background-color: rgba(184, 101, 42, 0.1);
    transform: translateY(-3px);
}

/* Titles */
.section-title h2 {
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: 0.5rem;
}

.title-underline {
    height: 3px;
    width: 80px;
    background: linear-gradient(90deg, transparent, var(--clr-primary), transparent);
    margin: 0 auto 1.5rem;
}
.title-underline.left {
    margin: 0 0 1.5rem 0;
    background: linear-gradient(90deg, var(--clr-primary), transparent);
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: #3A2010;
    line-height: 1.1;
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(255, 234, 168, 1), 0 0 30px rgba(255, 234, 168, 0.8), 0 0 50px rgba(255, 234, 168, 0.6);
}

.crowned-r {
    position: relative;
    display: inline-block;
}

.crown-icon {
    position: absolute;
    top: -0.55em;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.55em;
    color: #3A2010;
}

.logo-subtext {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #FFFFFF;
    background-color: #3A2010;
    padding: 2px 14px;
    border-radius: 4px;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-primary);
    transition: var(--transition-fast);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--clr-primary);
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(252, 251, 248, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.hero-title .highlight {
    color: var(--clr-primary);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #F0F0F0;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

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

.about-heading {
    font-size: 2rem;
    color: var(--clr-primary);
}

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

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--clr-surface);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--clr-primary);
    box-shadow: 0 10px 20px rgba(184, 101, 42, 0.1);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: 1rem;
}

.stat-item h4 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--clr-text-muted);
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--clr-surface-light);
}

/* Products Section */
.bg-light {
    background-color: var(--clr-surface);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--clr-surface-light);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid var(--glass-border);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(184, 101, 42, 0.3);
}

.product-img-wrapper {
    height: 250px;
    overflow: hidden;
}

.product-img-wrapper img, .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.2);
}

.placeholder-img.color-1 { background: linear-gradient(135deg, #2c1a12, #5a3821); }
.placeholder-img.color-2 { background: linear-gradient(135deg, #1e2a1e, #3a5c3a); }
.placeholder-img.color-3 { background: linear-gradient(135deg, #3a221f, #703c31); }

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--clr-primary);
}

.product-info p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.disclaimer {
    color: var(--clr-primary);
    background: rgba(184, 101, 42, 0.1);
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    border: 1px solid rgba(184, 101, 42, 0.2);
}

/* Wholesale Section */
.wholesale {
    background: linear-gradient(rgba(252, 251, 248, 0.92), rgba(252, 251, 248, 0.92)), url('../images/cashews.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.wholesale-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.wholesale-content h2 {
    font-size: 2.8rem;
    color: var(--clr-text);
}

.wholesale-lead {
    font-size: 1.3rem;
    color: var(--clr-primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.wholesale-content p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.wholesale-features {
    list-style: none;
}

.wholesale-features li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wholesale-features li i {
    color: var(--clr-primary);
    font-size: 1.2rem;
}

.wholesale-image img {
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(184, 101, 42, 0.15);
    border: 1px solid rgba(184, 101, 42, 0.2);
}

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

.benefit-card {
    background: var(--clr-surface);
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.benefit-card:hover {
    transform: translateY(-10px);
    background: var(--clr-surface-light);
    border-color: rgba(184, 101, 42, 0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(184, 101, 42, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--clr-primary);
    color: var(--clr-bg);
}

.benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--clr-text-muted);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 4/3;
}

.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #FFFFFF;
    background: var(--clr-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 2;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: var(--transition-fast);
    z-index: 1;
}

.gallery-item:hover::before { opacity: 1; }
.gallery-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

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

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--clr-surface);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(184, 101, 42, 0.1);
    color: var(--clr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h4 {
    font-family: var(--font-body);
    color: var(--clr-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.info-content p {
    color: var(--clr-text-muted);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}
.info-content a:hover {
    color: var(--clr-primary);
}

.contact-form-container {
    background: var(--clr-surface-light);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--clr-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--clr-surface);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--clr-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    background: rgba(244, 241, 233, 0.8);
}

.form-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Footer */
.footer {
    background: #1F1B18;
    color: #FFFFFF;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-logo {
    color: var(--clr-primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-url {
    color: #D1CCCA;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--clr-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #D1CCCA;
    transition: var(--transition-fast);
}

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

.copyright {
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {transform:scale(0.8); opacity: 0;}
    to {transform:scale(1); opacity: 1;}
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--clr-primary);
    text-decoration: none;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.slide-in-left.visible, .slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.stagger-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.stagger-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-title { font-size: 3rem; }
    
    .about-grid, .wholesale-container, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-text, .wholesale-content {
        order: 2;
    }
    .about-image, .wholesale-image {
        order: 1;
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-cta { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
    .stats { grid-template-columns: 1fr; }
    .section { padding: 4rem 0; }
    .contact-form-container { padding: 2rem 1.5rem; }
}
