/*
Theme Name: Masakn Mart Theme
Theme URI: https://github.com/masakn-mart/masakn-mart-theme
Author: Antigravity AI
Author URI: https://github.com/google-deepmind
Description: A modern, high-performance, and fully editable 2026-style custom WordPress theme for Masakn Mart Supermarket, Kerala. Hand-coded for fast phone-order driven performance.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: masakn-mart-theme
Tags: custom-logo, custom-menu, featured-images, flexible-header, footer-widgets, full-width-template, translation-ready

This theme is GPL-licensed, original, and build-free of third-party builders.
*/

/* ==========================================================================
   0. DESIGN SYSTEM & CSS VARIABLES
   ========================================================================== */
:root {
    --color-primary: #2E8B57; /* SeaGreen / Fresh Grocery Green */
    --color-primary-dark: #21633d;
    --color-primary-light: #eaf6ee;
    --color-accent: #FF9800; /* Warm Accent Orange */
    --color-accent-dark: #e68900;
    --color-accent-light: #fff3e0;
    --color-text-dark: #2c3e50;
    --color-text-muted: #7f8c8d;
    --color-bg-light: #f8f9fa;
    --color-white: #ffffff;
    
    --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    --transition-fast: all 0.2s ease-in-out;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --box-shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --box-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text-dark);
}

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

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

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

/* ==========================================================================
   2. UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

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

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

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-white);
}

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

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

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
}

.badge-active {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.badge-soon {
    background-color: var(--color-accent-light);
    color: var(--color-accent-dark);
    border: 1px dashed var(--color-accent);
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background-color: var(--color-white);
    box-shadow: var(--box-shadow-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-fast);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.custom-logo-link img {
    max-height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-menu a {
    color: var(--color-text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
}

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

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

.header-contact {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 700;
}

.header-phone-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-text-dark);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   4. EVERYWHERE HOME DELIVERY BAND
   ========================================================================== */
.delivery-strip {
    background-color: var(--color-accent);
    color: var(--color-white);
    text-align: center;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.1);
}

.delivery-strip svg {
    animation: bike-shake 2s infinite ease-in-out;
}

@keyframes bike-shake {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    10% { transform: translate(-1px, -1px) rotate(-1deg); }
    20% { transform: translate(1px, 0) rotate(1deg); }
    30% { transform: translate(-1px, 1px) rotate(0); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 0) rotate(-1deg); }
    60% { transform: translate(1px, 1px) rotate(0); }
    70% { transform: translate(-1px, -1px) rotate(1deg); }
    80% { transform: translate(1px, 0) rotate(-1deg); }
    90% { transform: translate(-1px, 1px) rotate(0); }
}

/* ==========================================================================
   5. HERO SECTION / BANNER
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
    display: flex;
    align-items: center;
    min-height: 480px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(33,99,61,0.92) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-content h1 {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   6. BRANCH LOCATOR STRIP & SECTION
   ========================================================================== */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

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

.section-title h2 {
    font-size: 2.2rem;
    color: var(--color-text-dark);
    margin-bottom: 12px;
}

.section-title p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.branch-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: var(--box-shadow-subtle);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

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

.branch-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.branch-card h3 {
    font-size: 1.3rem;
}

.branch-meta {
    list-style: none;
    margin-bottom: 24px;
    flex-grow: 1;
}

.branch-meta li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.branch-meta li strong {
    color: var(--color-text-dark);
}

.branch-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Coming Soon Branches styles */
.branches-coming-soon {
    border-top: 1px dashed rgba(0,0,0,0.1);
    margin-top: 50px;
    padding-top: 50px;
}

.branch-card-soon {
    border: 1px dashed var(--color-accent);
    background-color: var(--color-accent-light);
}

/* ==========================================================================
   7. PRODUCT CATEGORIES GRID
   ========================================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.category-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-subtle);
    transition: var(--transition-smooth);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

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

.category-img {
    height: 180px;
    overflow: hidden;
    position: relative;
    background-color: #eee;
}

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

.category-card:hover .category-img img {
    transform: scale(1.08);
}

.category-info {
    padding: 20px;
}

.category-info h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.category-info p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   8. OFFERS & PROMOTIONS SLIDER
   ========================================================================== */
.offers-slider-container {
    overflow-x: auto;
    display: flex;
    gap: 24px;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.offer-slide {
    flex: 0 0 450px;
    max-width: 100%;
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-subtle);
    display: flex;
    border: 1px solid rgba(0,0,0,0.05);
}

.offer-slide-img {
    flex: 0 0 180px;
    background-color: #eee;
}

.offer-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-slide-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.offer-slide-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.offer-slide-content p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.offer-valid {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent-dark);
}

/* ==========================================================================
   9. WHY CHOOSE US
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon-wrapper svg {
    width: 36px;
    height: 36px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   10. TESTIMONIALS
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-subtle);
    border: 1px solid rgba(0,0,0,0.05);
}

.testimonial-text {
    font-style: italic;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.testimonial-stars {
    color: #FFC107;
    margin-bottom: 15px;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-user-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #ddd;
}

.testimonial-user-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.testimonial-user-info span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   11. CALL-TO-ACTION BAND
   ========================================================================== */
.cta-band {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0;
    text-align: center;
}

.cta-band h2 {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: 12px;
}

.cta-band p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-phones-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-phone-item {
    background-color: rgba(255,255,255,0.1);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    color: var(--color-white);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
}

.cta-phone-item:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: scale(1.05);
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.site-footer {
    background-color: #1a252f;
    color: #ecf0f1;
    padding: 80px 0 30px;
    font-size: 0.9rem;
}

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

.footer-widget-title {
    color: var(--color-white);
    font-size: 1.15rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-accent);
}

.footer-logo img {
    max-height: 50px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bdc3c7;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-branch-list {
    list-style: none;
}

.footer-branch-list li {
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 12px;
}

.footer-branch-list li:last-child {
    border-bottom: none;
}

.footer-branch-name {
    font-weight: 700;
    display: block;
    color: var(--color-white);
    margin-bottom: 4px;
}

.footer-branch-phone {
    color: var(--color-accent);
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #7f8c8d;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bdc3c7;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* ==========================================================================
   13. FLOAT WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: var(--color-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #20ba5a;
    color: var(--color-white);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* ==========================================================================
   14. SUBPAGES LAYOUT (ABOUT, DELIVERY, CONTACT, ETC.)
   ========================================================================== */
.page-banner {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner h1 {
    color: var(--color-white);
    font-size: 2.5rem;
}

.page-content-wrap {
    padding: 60px 0;
}

.rich-text {
    max-width: 800px;
    margin: 0 auto;
}

.rich-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #4a5568;
}

/* Contact page structures */
.contact-columns {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info-panel h3 {
    margin: 30px 0 15px;
    font-size: 1.3rem;
    color: var(--color-primary);
}

.contact-info-list {
    list-style: none;
}

.contact-info-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form-card {
    background: var(--color-white);
    border-radius: var(--border-radius-md);
    padding: 40px;
    box-shadow: var(--box-shadow-hover);
    border: 1px solid rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* ==========================================================================
   15. RESPONSIVE DESIGN MEDIA QUERIES
   ========================================================================== */
@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--box-shadow-hover);
        gap: 15px;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .header-contact {
        margin-left: auto;
        margin-right: 20px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .contact-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 575px) {
    .header-phone-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    .header-phone-btn span {
        display: none;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .branch-actions {
        grid-template-columns: 1fr;
    }
    .offer-slide {
        flex: 0 0 100%;
        flex-direction: column;
    }
    .offer-slide-img {
        flex: 0 0 150px;
    }
}
