/* ==========================================================================
   Barkat Shakh Bhaji Bhandar - Main Stylesheet
   ========================================================================== */

/* --- Custom Variables & Reset --- */
:root {
    --primary: #2E7D32;
    --secondary: #43A047;
    --accent: #FF9800;
    --white: #FFFFFF;
    --background: #F8FAFC;
    --dark: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--background);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* --- Reusable Components --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 16px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 48px;
    font-size: 1rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

.btn-dark {
    background-color: var(--dark);
    color: var(--white);
}

.btn-dark:hover {
    background-color: #0f172a;
}

/* --- Header / Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
}

.header.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled .navbar {
    padding: 10px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

.header.scrolled .brand-name {
    color: var(--dark);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
}

.header.scrolled .nav-link {
    color: var(--dark);
}

.header.scrolled .nav-link:hover, 
.header.scrolled .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: transparent;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.header.scrolled .menu-toggle span {
    background-color: var(--dark);
}

/* --- Inner Page Hero Header --- */
.page-hero {
    background: linear-gradient(rgba(46, 125, 50, 0.85), rgba(30, 41, 57, 0.9)), url('../images/wholesale-market.jpg') center/cover no-repeat;
    padding: 160px 0 80px;
    color: var(--white);
    text-align: center;
}

.page-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
}

.breadcrumb a:hover {
    color: var(--accent);
}

/* --- Home: Hero --- */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.65)), url('../images/fresh-vegetables.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-btns {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* --- Home: Preview Section Grid --- */
.about-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.preview-img-wrapper img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.about-preview-content h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.about-preview-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* --- Home & About: Why Choose Us --- */
.why-choose-us {
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    background-color: var(--background);
    padding: 40px 32px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(73, 160, 71, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Home: Product Categories --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.product-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background-color: var(--background);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
}

/* --- Home: CTA Section --- */
.cta-section {
    background: linear-gradient(rgba(46, 125, 50, 0.9), rgba(46, 125, 50, 0.95)), url('../images/wholesale-vegetable-market.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.cta-content max-width {
    max-width: 650px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    color: rgba(255,255,255,0.9);
}

/* --- About Page Structure --- */
.story-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.story-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.mvv-card {
    background-color: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary);
}

.mvv-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.mvv-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Gallery Page Structure --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 280px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(30, 41, 57, 0.85));
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    transform: translateY(10px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay h3 {
    transform: translateY(0);
}

/* --- Lightbox Modal Engine --- */
.lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 24px;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}

.lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--white);
    font-weight: 500;
}

/* --- Contact Page Layout --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-detail-card {
    background-color: var(--white);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-detail-card h3 {
    margin-bottom: 16px;
    font-size: 1.2rem;
    color: var(--primary);
    border-bottom: 2px solid var(--background);
    padding-bottom: 8px;
}

.contact-detail-card p {
    color: var(--dark);
    font-weight: 500;
    margin-bottom: 6px;
}

.contact-detail-card span {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: block;
}

.form-panel {
    background-color: var(--white);
    padding: 48px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input, .form-group textarea {
    font-family: var(--font);
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: var(--background);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.map-container {
    margin-top: 48px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Privacy Policy Sheet --- */
.policy-content {
    background-color: var(--white);
    padding: 48px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    max-width: 850px;
    margin: 0 auto;
}

.policy-content h2 {
    font-size: 1.5rem;
    margin: 32px 0 16px;
    color: var(--primary);
}

.policy-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.98rem;
}

.policy-content ul {
    margin-bottom: 16px;
    padding-left: 20px;
    list-style-type: disc;
    color: var(--text-muted);
}

.policy-content li {
    margin-bottom: 8px;
}

/* --- Footer Area --- */
.footer {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 64px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 48px;
    margin-bottom: 30px;
}

.footer-brand h2 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h3, .footer-contact h3 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 24px;
    position: relative;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
    margin-top: 8px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact li {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
}

.footer-contact span {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

/* --- Utility Components --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    border: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary);
    transform: translateY(-4px);
}

/* --- Core Keyframe Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}