/* index.css - Final Version */

/* =========================== */
/* 1. RESET & VARIABLES (GLOBAL) */
/* =========================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-red: #d9203e;   
    --dark-red: #a3182f;      
    --deep-maroon: #500000;   
    --light-red: #ff5f52;     
    --pale-red: #ffebee;      
    --white: #FFFFFF;
    --off-white: #fafafa;
    --dark-gray: #222222;     
    --medium-gray: #555555;   
    --shadow: 0 4px 20px rgba(217, 32, 62, 0.25);
    --transition: all 0.3s ease;
}

html { overflow-x: hidden; }
body { font-family: 'Montserrat', sans-serif; line-height: 1.6; color: var(--dark-gray); background-color: var(--white); overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* Typography */
h1, h2, h3, h4 { font-family: 'Cinzel', serif; font-weight: 700; }
h1 { font-size: 3rem; } h2 { font-size: 2.2rem; } h3 { font-size: 1.5rem; } p { font-size: 1rem; line-height: 1.6; }

/* Buttons */
.btn { display: inline-block; padding: 15px 30px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; transition: var(--transition); border: none; cursor: pointer; font-family: 'Montserrat', sans-serif; text-align: center; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--primary-red), var(--dark-red)); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: linear-gradient(135deg, var(--dark-red), var(--primary-red)); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(217, 32, 62, 0.4); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--primary-red); transform: translateY(-2px); }

/* Hero Section (TAILORED FOR YOUR VERTICAL IMAGE) */
.hero { 
    height: 100vh; 
    min-height: 600px; 
    width: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    /* Darker at the bottom so your white text is super readable over the bright white glove/cone! */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%), url('images/homepage.jpg'); 
    background-size: cover; 
    background-position: center 25%; /* Keeps the "Mio" logo in view on wide desktop screens */
    position: relative; 
    text-align: center; 
    padding-top: 60px; 
}
.hero-content { max-width: 800px; width: 100%; margin: 0 auto; z-index: 2; position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-title { font-size: 3.5rem; margin-bottom: 20px; color: var(--white); text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); line-height: 1.1; }
.highlight { color: var(--white); position: relative; display: inline-block; border-bottom: 4px solid var(--primary-red); }
.hero-subtitle { font-size: 1.2rem; color: rgba(255, 255, 255, 0.95); margin-bottom: 35px; max-width: 600px; font-weight: 500; text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); }
.hero-btns { display: flex; gap: 20px; justify-content: center; width: 100%; }
.hero .btn-primary { background: var(--primary-red); color: var(--white); box-shadow: 0 5px 15px rgba(0,0,0,0.3); border: 2px solid var(--primary-red); }
.hero .btn-primary:hover { background: var(--dark-red); border-color: var(--dark-red); }

/* VEG BADGE */
.veg-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.65);
    color: #81c784;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 15px;
    border: 1px solid rgba(129, 199, 132, 0.3);
    backdrop-filter: blur(5px);
    letter-spacing: 0.5px;
}

/* Signature Section */
.signature-section { padding: 80px 0; background: var(--white); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-title { color: var(--dark-red); margin-bottom: 10px; position: relative; display: inline-block; }
.section-title::after { content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--primary-red); }
.section-subtitle { color: var(--medium-gray); font-size: 1rem; }
.signature-content { display: flex; align-items: center; gap: 50px; }
.signature-image { flex: 1; }

.sig-real-img { width: 100%; height: 350px; object-fit: cover; border-radius: 20px; box-shadow: 0 10px 30px rgba(217, 32, 62, 0.2); display: block; transition: transform 0.3s ease; }
.sig-real-img:hover { transform: scale(1.02); }

/* CENTERED SIGNATURE FEATURES */
.signature-details { flex: 1; text-align: center; } 
.signature-title { color: var(--primary-red); margin-bottom: 15px; }
.signature-description { color: var(--medium-gray); margin-bottom: 25px; }
.signature-features { display: flex; justify-content: center; gap: 20px; margin-bottom: 25px; }
.feature { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; }
.feature i { color: var(--primary-red); }

/* Categories Grid */
.categories-section { padding: 80px 0; background: var(--pale-red); }
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card { background: var(--white); padding: 30px 20px; border-radius: 15px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-top: 4px solid var(--primary-red); transition: var(--transition); display: flex; flex-direction: column; align-items: center; justify-content: center;}
.category-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(217, 32, 62, 0.15); }
.category-icon { width: 60px; height: 60px; background: linear-gradient(135deg, var(--primary-red), var(--dark-red)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; color: var(--white); font-size: 1.5rem; }
.category-title { color: var(--dark-red); margin-bottom: 10px; font-size: 1.1rem; }

/* VIEW NOW LINK (ANIMATED) */
.view-now {
    display: inline-block;
    margin-top: 5px;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.view-now i {
    margin-left: 5px;
    display: inline-block;
    animation: arrowPulse 1.5s infinite ease-in-out; 
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}

.view-now:hover {
    color: var(--dark-red);
}

.view-now:hover i {
    animation: arrowPulseFast 0.6s infinite ease-in-out; 
}

@keyframes arrowPulseFast {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}


/* Responsive */
@media (max-width: 992px) {
    .signature-content { flex-direction: column; text-align: center; }
    .sig-real-img { height: 300px; max-width: 600px; margin: 0 auto; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .hero { 
        min-height: 100vh; 
        padding: 0; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        background-position: center center; /* Centers the vertical image perfectly on vertical phones */
    }
    .hero-title { font-size: 2.5rem; } 
    .hero-subtitle { font-size: 1rem; padding: 0 15px; margin-bottom: 30px; }
    .hero-btns { flex-direction: column; align-items: center; justify-content: center; width: 100%; gap: 20px; }
    .hero-btns .btn { width: 80%; max-width: 280px; text-align: center; margin: 0 auto; }
    
    .sig-real-img { height: 250px; }
    
    /* MOBILE 2x2 GRID FIX */
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .category-card { padding: 25px 15px; }
    .category-icon { width: 50px; height: 50px; font-size: 1.2rem; }
    .category-title { font-size: 1rem; }
}

@media (max-width: 380px) {
    h1, .hero-title { font-size: 2rem; }
    h2, .section-title { font-size: 1.6rem; }
    .container { padding: 0 15px; }
    .hero-btns .btn { width: 90%; }
}