/* ====================================
   SNOW FEAST FOODS - GLOBAL STYLES
   Modern, responsive frozen food website
   ==================================== */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color palette - icy, fresh theme */
    --primary-blue: #000;
    --primary-blue-dark: #0369a1;
    --secondary-blue: #38bdf8;
    --accent-blue: #0ea5e9;
    --ice-white: #f0f9ff;
    --snow-white: #ffffff;
    --text-dark: #0f172a;
    --text-gray: #475569;
    --text-light: #64748b;
    --border-light: #e2e8f0;
    --success-green: #10b981;
    --hover-overlay: rgba(2, 132, 199, 0.1);

    /* Typography */
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    --font-headings: "Georgia", serif;

    /* Spacing system (8px base) */
    --space-xs: 0.5rem; /* 8px */
    --space-sm: 1rem; /* 16px */
    --space-md: 1.5rem; /* 24px */
    --space-lg: 2rem; /* 32px */
    --space-xl: 3rem; /* 48px */
    --space-2xl: 4rem; /* 64px */
    --space-3xl: 6rem; /* 96px */

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);

    /* Container width */
    --container-max: 1200px;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--snow-white);
}

/* Container utility */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headings);
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: 2.5rem;
}
h2 {
    font-size: 2rem;
}
h3 {
    font-size: 1.5rem;
}
h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-blue-dark);
}

/* ====================================
   HEADER & NAVIGATION
   ==================================== */

.site-header {
    background: var(--snow-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    align-items: center;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--hover-overlay);
    color: var(--primary-blue);
}

.main-nav .cta-link {
    background: var(--primary-blue);
    color: var(--snow-white);
}

.main-nav .cta-link:hover {
    background: var(--primary-blue-dark);
    color: var(--snow-white);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ====================================
   BUTTONS
   ==================================== */

.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--snow-white);
}

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

.btn-secondary {
    background: var(--snow-white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

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

.btn-product {
    background: #fc8019; /* Swiggy orange */
    color: var(--snow-white);
    padding: var(--space-xs) var(--space-md);
    font-size: 0.9rem;
    border-radius: 4px; /* optional for better look */
    transition: background 0.3s ease;
}

.btn-product:hover {
    background: #e56e10; /* slightly darker shade for hover */
}

/* ====================================
   HERO SECTION
   ==================================== */

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* hide video overflow */
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* fill hero section */
    z-index: 0; /* behind content and overlay */
    animation: zoomIn 10s ease-out forwards;
}

/* Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1; /* above video but below content */
}

/* Hero Content */
.hero-content {
    position: relative;
    text-align: center;
    color: #ffffff;
    z-index: 2; /* above overlay and video */
    padding: 0 20px;
}

/* Hero Title */
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

/* Hero Tagline */
.hero-tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

/* Hero Button */
.btn-hero {
    display: inline-block;
    background: #fe5005;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 1s;
    opacity: 0;
}

.btn-hero:hover {
    background: #ff8a50;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes zoomIn {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

/* ====================================
   ABOUT SECTION
   ==================================== */

.about-section {
    padding: var(--space-3xl) 0;
    background: var(--ice-white);
}

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

.about-content h2 {
    color: var(--primary-blue);
    margin-bottom: var(--space-lg);
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ====================================
   SHIPPING INFO
   ==================================== */

.shipping-info {
    padding: var(--space-2xl) 0;
    background: var(--snow-white);
}

.info-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: linear-gradient(
        135deg,
        var(--ice-white) 0%,
        var(--snow-white) 100%
    );
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 700px;
    margin: 0 auto;
}

.info-icon {
    color: var(--primary-blue);
    flex-shrink: 0;
}

.info-content h3 {
    color: var(--primary-blue);
    margin-bottom: var(--space-xs);
}

/* ====================================
   QUICK CONTACT SECTION
   ==================================== */

.quick-contact {
    padding: var(--space-3xl) 0;
    background: var(--ice-white);
}

.quick-contact h2 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: var(--space-xl);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.contact-card {
    background: var(--snow-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
}

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

.contact-icon {
    color: var(--primary-blue);
    margin-bottom: var(--space-md);
}

.contact-card h3 {
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.contact-card p {
    color: var(--text-gray);
    margin-bottom: var(--space-xs);
}

.contact-person {
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-cta {
    text-align: center;
}

/* ====================================
   PAGE HEADER
   ==================================== */

.page-header {
    background: url("/images/herobaner1.jpg") no-repeat center center/cover;
    color: var(--snow-white);
    padding: var(--space-2xl) 0;
    text-align: center;
}

.page-header h1 {
    color: var(--snow-white);
    margin-bottom: var(--space-sm);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* ====================================
   CATEGORY FILTERS
   ==================================== */

.category-filters {
    background: var(--snow-white);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.filter-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}
.category-filters {
    background: var(--snow-white);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 70px; /* Height of the header */
    z-index: 100;
}

.filter-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--space-sm) var(--space-lg);
    background: var(--ice-white);
    color: var(--primary-blue);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--primary-blue);
    color: var(--snow-white);
    transform: translateY(-2px);
}

/* ====================================
   PRODUCTS SECTION
   ==================================== */

.products-section {
    padding: var(--space-2xl) 0;
}

.products-section:nth-child(even) {
    background: var(--ice-white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    color: var(--primary-blue);
    margin-bottom: var(--space-sm);
}

.availability-note {
    color: var(--text-light);
    font-style: italic;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.product-card {
    background: var(--snow-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.product-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--ice-white) 0%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: var(--space-md);
}

.product-info h3 {
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
    font-size: 1.2rem;
}

.product-info p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
    min-height: 3rem;
}

/* ====================================
   FAQ SECTION
   ==================================== */

.faq-section {
    padding: var(--space-2xl) 0;
    background: var(--snow-white);
}

.faq-section h2 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: var(--space-xl);
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: var(--space-lg);
}

.faq-item {
    background: var(--ice-white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-blue);
}

.faq-item h3 {
    color: var(--primary-blue);
    margin-bottom: var(--space-sm);
}

.faq-item p {
    color: var(--text-gray);
    margin: 0;
}

/* ====================================
   CONTACT PAGE
   ==================================== */

.contact-section {
    padding: var(--space-2xl) 0;
    background: var(--ice-white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    max-width: 1100px;
    margin: 0 auto;
}

.contact-form-wrapper,
.contact-info-wrapper {
    background: var(--snow-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    color: var(--primary-blue);
    margin-bottom: var(--space-md);
}

.form-note {
    background: var(--ice-white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-blue);
    margin-bottom: var(--space-lg);
    font-size: 0.95rem;
    color: var(--text-gray);
}

.form-note a {
    font-weight: 600;
}

/* Form styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

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

.form-group label {
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text-dark);
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--space-sm);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Contact info styles */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.contact-detail-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.detail-icon {
    color: var(--primary-blue);
    flex-shrink: 0;
    margin-top: 4px;
}

.detail-content h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
}

.detail-content p {
    color: var(--text-gray);
    margin-bottom: 0;
}

.detail-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: var(--space-xs);
}

.wholesale-highlight,
.business-hours {
    background: var(--ice-white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.wholesale-highlight h3,
.business-hours h3 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
}

.wholesale-highlight p,
.business-hours p {
    color: var(--text-gray);
    margin: 0;
}

/* ====================================
   FOOTER
   ==================================== */

.site-footer {
    background: var(--text-dark);
    color: var(--ice-white);
    padding: var(--space-2xl) 0 var(--space-md);
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--snow-white);
    margin-bottom: var(--space-md);
}

.footer-section p {
    color: var(--ice-white);
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-xs);
}

.footer-section a {
    color: var(--ice-white);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--secondary-blue);
}

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

.footer-bottom p {
    color: var(--ice-white);
    opacity: 0.7;
    margin: 0;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: var(--space-md);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
}

/* Mobile (600px and below) */
@media (max-width: 600px) {
    :root {
        --space-xl: 2rem;
        --space-2xl: 2.5rem;
        --space-3xl: 3rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--snow-white);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.active {
        max-height: 400px;
    }

    .main-nav ul {
        flex-direction: column;
        padding: var(--space-md);
        gap: 0;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: var(--space-sm);
    }

    .category-filters {
        /* Revert to default sticky behavior on mobile */
        position: sticky;
        top: 60px; /* Adjust for smaller mobile header */
    }

    .filter-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scrollbar-width: none; /* Hide scrollbar for Firefox */
    }

    .hero {
        height: 60vh;
        min-height: 400px;
    }

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

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

    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    h1 {
        font-size: 1.75rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.25rem;
    }
}

/* Extra small devices (400px and below) */
@media (max-width: 400px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }
}
