/**
 * Ram Rasoi Express - Main Stylesheet
 * Indian Heritage Theme with Organic & Traditional Design
 */

/* ============================================
   CSS Variables - Brand Colors
   ============================================ */
:root {
    /* Primary Colors (from logo) */
    --rre-primary: #A41E35;
    --rre-primary-dark: #8B1A2D;
    --rre-primary-light: #C42A45;
    
    /* Secondary Colors */
    --rre-secondary: #F7941D;
    --rre-secondary-dark: #E07D0A;
    --rre-secondary-light: #FFB347;
    
    /* Accent Colors */
    --rre-gold: #FFCC00;
    --rre-gold-dark: #D4A800;
    
    /* Nature/Organic Colors */
    --rre-green: #2E7D32;
    --rre-green-light: #4CAF50;
    --rre-earth: #5D4037;
    --rre-earth-light: #795548;
    
    /* Neutral Colors */
    --rre-cream: #FFF8E7;
    --rre-cream-dark: #F5ECD7;
    --rre-white: #FFFFFF;
    --rre-black: #1A1A1A;
    --rre-gray: #6C757D;
    --rre-gray-light: #F8F9FA;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--rre-black);
    background-color: var(--rre-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--rre-black);
}

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

p {
    margin-bottom: 1rem;
    color: var(--rre-gray);
}

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

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

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

/* ============================================
   Utility Classes
   ============================================ */
.bg-primary { background-color: var(--rre-primary) !important; }
.bg-secondary { background-color: var(--rre-secondary) !important; }
.bg-cream { background-color: var(--rre-cream) !important; }
.bg-pattern { 
    background-color: var(--rre-cream);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23A41E35' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.text-primary { color: var(--rre-primary) !important; }
.text-secondary { color: var(--rre-secondary) !important; }
.text-gold { color: var(--rre-gold) !important; }
.text-green { color: var(--rre-green) !important; }

.section-padding {
    padding: 80px 0;
}

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

.section-title .section-subtitle {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--rre-secondary);
    font-weight: 600;
    margin-bottom: 8px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--rre-black);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--rre-primary), var(--rre-secondary));
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--rre-gray);
    max-width: 600px;
    margin: 20px auto 0;
}

.section-subtitle {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--rre-secondary);
    font-weight: 600;
    margin-bottom: 8px;
}

/* Indian Pattern Border */
.indian-border {
    border-image: linear-gradient(90deg, var(--rre-primary), var(--rre-secondary), var(--rre-gold), var(--rre-secondary), var(--rre-primary)) 1;
    border-width: 3px;
    border-style: solid;
}

.indian-border-top {
    border-top: 3px solid;
    border-image: linear-gradient(90deg, transparent, var(--rre-primary), var(--rre-secondary), var(--rre-primary), transparent) 1;
}

.indian-border-bottom {
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, transparent, var(--rre-primary), var(--rre-secondary), var(--rre-primary), transparent) 1;
}

/* Decorative Elements */
.decorative-leaf {
    position: relative;
}

.decorative-leaf::before,
.decorative-leaf::after {
    content: '🌿';
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.3;
}

.decorative-leaf::before {
    left: -30px;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

.decorative-leaf::after {
    right: -30px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg) scaleX(-1);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    font-family: var(--font-body);
    font-weight: 500;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--rre-primary), var(--rre-primary-dark));
    border: none;
    color: var(--rre-white);
    box-shadow: 0 4px 15px rgba(164, 30, 53, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--rre-primary-dark), var(--rre-primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(164, 30, 53, 0.4);
    color: var(--rre-white);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--rre-secondary), var(--rre-secondary-dark));
    border: none;
    color: var(--rre-white);
    box-shadow: 0 4px 15px rgba(247, 148, 29, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--rre-secondary-dark), var(--rre-secondary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 148, 29, 0.4);
    color: var(--rre-white);
}

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

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

.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.3);
}

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

.btn-gold {
    background: linear-gradient(135deg, var(--rre-gold), var(--rre-gold-dark));
    border: none;
    color: var(--rre-black);
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.4);
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
    background: linear-gradient(90deg, var(--rre-primary-dark), var(--rre-primary));
    font-size: 0.85rem;
}

.top-bar a {
    color: rgba(255,255,255,0.9);
}

.top-bar a:hover {
    color: var(--rre-gold);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    padding: 15px 0;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand img {
    transition: var(--transition-normal);
}

.navbar.scrolled .navbar-brand img {
    height: 40px;
}

.nav-link {
    font-weight: 500;
    color: var(--rre-black) !important;
    padding: 8px 16px !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--rre-primary);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link.active {
    color: var(--rre-primary) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 10px 0;
    margin-top: 10px;
}

.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--rre-cream);
    color: var(--rre-primary);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--rre-cream) 0%, var(--rre-white) 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 50m-40 0a40,40 0 1,0 80,0a40,40 0 1,0 -80,0' fill='none' stroke='%23A41E35' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--rre-primary);
}

.hero-content .lead {
    font-size: 1.25rem;
    color: var(--rre-gray);
    margin-bottom: 30px;
}

.hero-badges {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--rre-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.hero-badge i {
    font-size: 1.5rem;
    color: var(--rre-secondary);
}

.hero-badge span {
    font-weight: 600;
    color: var(--rre-black);
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--rre-secondary);
    border-radius: var(--radius-xl);
    z-index: -1;
}

/* Hero Slider Section */
.hero-slider-section {
    position: relative;
}

.hero-slide {
    min-height: 85vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-slide .hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #fff;
}

.hero-slide .hero-content h1 span {
    color: var(--rre-secondary);
}

.hero-slide .hero-content .lead {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
}

.hero-subtitle {
    display: inline-block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--rre-secondary);
    font-weight: 600;
    margin-bottom: 15px;
    background: rgba(0,0,0,0.3);
    padding: 8px 16px;
    border-radius: 30px;
}

.hero-slide .hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-slide .hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-slide .hero-badge i {
    font-size: 1.1rem;
    color: var(--rre-secondary);
}

.hero-slide .hero-badge span {
    font-weight: 500;
    color: #fff;
    font-size: 0.9rem;
}

#heroCarousel .carousel-indicators {
    bottom: 30px;
}

#heroCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid transparent;
}

#heroCarousel .carousel-indicators button.active {
    background-color: var(--rre-secondary);
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    opacity: 0.8;
}

#heroCarousel .carousel-control-prev {
    left: 20px;
}

#heroCarousel .carousel-control-next {
    right: 20px;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    background: var(--rre-primary);
    opacity: 1;
}

/* Legacy Hero Carousel */
.hero-carousel .carousel-item {
    height: 80vh;
    min-height: 500px;
}

.hero-carousel .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.hero-carousel .carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    text-align: left;
    left: 10%;
    right: 40%;
}

.hero-carousel .carousel-caption h2 {
    font-size: 3rem;
    color: var(--rre-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* ============================================
   Feature Cards
   ============================================ */
.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--rre-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    height: 100%;
}

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

.feature-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--rre-cream), var(--rre-white));
    border-radius: 50%;
    font-size: 2rem;
    color: var(--rre-primary);
    border: 2px solid var(--rre-cream-dark);
}

.feature-card h4 {
    margin-bottom: 15px;
    color: var(--rre-black);
}

.feature-card p {
    color: var(--rre-gray);
    margin-bottom: 0;
}

/* ============================================
   Menu/Product Cards
   ============================================ */
.menu-card {
    background: var(--rre-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    height: 100%;
}

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

.menu-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition-slow);
    padding: 10px;
}

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

.menu-card .badge-veg {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--rre-green);
    color: var(--rre-white);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.menu-card .badge-bestseller {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--rre-secondary);
    color: var(--rre-white);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.menu-card .card-body {
    padding: 20px;
}

.menu-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--rre-black);
}

.menu-card .card-text {
    font-size: 0.9rem;
    color: var(--rre-gray);
    margin-bottom: 15px;
}

.menu-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rre-primary);
}

.menu-card .spice-level {
    display: flex;
    gap: 3px;
}

.menu-card .spice-level i {
    color: var(--rre-secondary);
    font-size: 0.8rem;
}

.menu-card .spice-level i.inactive {
    color: #ddd;
}

/* ============================================
   Franchise Cards
   ============================================ */
.franchise-card {
    background: var(--rre-white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.franchise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--rre-primary), var(--rre-secondary));
}

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

.franchise-card.featured {
    border: 2px solid var(--rre-secondary);
}

.franchise-card.featured::after {
    content: 'Popular';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--rre-secondary);
    color: var(--rre-white);
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.franchise-card .icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rre-cream);
    border-radius: 50%;
    font-size: 2.5rem;
    color: var(--rre-primary);
}

.franchise-card h3 {
    margin-bottom: 15px;
}

.franchise-card .investment {
    font-size: 2rem;
    font-weight: 700;
    color: var(--rre-primary);
    margin: 20px 0;
}

.franchise-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.franchise-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--rre-cream-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.franchise-card ul li i {
    color: var(--rre-green);
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial-card {
    background: var(--rre-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    position: relative;
    margin-top: 40px;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 6rem;
    font-family: Georgia, serif;
    color: var(--rre-secondary);
    opacity: 0.3;
    line-height: 1;
}

.testimonial-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--rre-secondary);
    margin-top: -60px;
    margin-bottom: 20px;
}

.testimonial-card .content {
    font-style: italic;
    color: var(--rre-gray);
    margin-bottom: 20px;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--rre-black);
}

.testimonial-card .designation {
    font-size: 0.9rem;
    color: var(--rre-gray);
}

.testimonial-card .rating {
    color: var(--rre-gold);
    margin-bottom: 15px;
}

/* ============================================
   Delivery Cards (Swiggy/Zomato)
   ============================================ */
.delivery-card {
    transition: var(--transition-normal);
    border-radius: var(--radius-lg) !important;
}

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

.delivery-card img {
    object-fit: contain;
}

/* ============================================
   Store Locator
   ============================================ */
.store-locator-section {
    background: var(--rre-cream);
}

.search-box {
    background: var(--rre-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.search-box .form-control {
    border: 2px solid var(--rre-cream-dark);
    padding: 15px 20px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.search-box .form-control:focus {
    border-color: var(--rre-primary);
    box-shadow: 0 0 0 3px rgba(164, 30, 53, 0.1);
}

.store-card {
    background: var(--rre-white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    margin-bottom: 15px;
}

.store-card:hover {
    box-shadow: var(--shadow-md);
    border-left: 3px solid var(--rre-primary);
}

.store-card h5 {
    color: var(--rre-primary);
    margin-bottom: 10px;
}

.store-card .distance {
    background: var(--rre-cream);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rre-secondary);
}

.map-container {
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-info-card {
    background: var(--rre-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition-normal);
}

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

.contact-info-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rre-cream);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--rre-primary);
}

.contact-form {
    background: var(--rre-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid var(--rre-cream-dark);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--rre-primary);
    box-shadow: 0 0 0 3px rgba(164, 30, 53, 0.1);
}

.contact-form textarea {
    min-height: 150px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
}

.footer h5 {
    color: var(--rre-secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

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

.footer-links a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition-fast);
}

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

/* ============================================
   Back to Top & WhatsApp Float
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--rre-primary);
    color: var(--rre-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--rre-primary-dark);
    color: var(--rre-white);
    transform: translateY(-3px);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--rre-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.whatsapp-float:hover {
    background: #128C7E;
    color: var(--rre-white);
    transform: scale(1.1);
}

/* ============================================
   Page Headers
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--rre-primary) 0%, var(--rre-primary-dark) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header h1 {
    color: var(--rre-white);
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
}

.page-header .breadcrumb {
    justify-content: center;
    margin-bottom: 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}

.page-header .breadcrumb-item.active {
    color: var(--rre-secondary);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* ============================================
   Forms
   ============================================ */
.form-label {
    font-weight: 500;
    color: var(--rre-black);
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--rre-primary);
    box-shadow: 0 0 0 3px rgba(164, 30, 53, 0.1);
}

.form-check-input:checked {
    background-color: var(--rre-primary);
    border-color: var(--rre-primary);
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    border: none;
    border-radius: var(--radius-md);
    padding: 15px 20px;
}

.alert-success {
    background: rgba(46, 125, 50, 0.1);
    color: var(--rre-green);
}

.alert-danger {
    background: rgba(164, 30, 53, 0.1);
    color: var(--rre-primary);
}

.alert-warning {
    background: rgba(247, 148, 29, 0.1);
    color: var(--rre-secondary-dark);
}

.alert-info {
    background: rgba(33, 150, 243, 0.1);
    color: #1976D2;
}

/* ============================================
   Tables
   ============================================ */
.table {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table thead th {
    background: var(--rre-primary);
    color: var(--rre-white);
    font-weight: 600;
    border: none;
    padding: 15px;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--rre-cream);
}

/* ============================================
   Badges
   ============================================ */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

/* ============================================
   Cards
   ============================================ */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: var(--rre-cream);
    border-bottom: none;
    padding: 20px;
    font-weight: 600;
}

/* ============================================
   Responsive Styles
   ============================================ */

/* Tablet Landscape */
@media (max-width: 991.98px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-slide {
        min-height: 70vh;
    }
    
    .hero-slide .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-carousel .carousel-caption {
        left: 5%;
        right: 5%;
        text-align: center;
    }
    
    .hero-carousel .carousel-caption h2 {
        font-size: 2rem;
    }
    
    .navbar-collapse {
        background: var(--rre-white);
        padding: 20px;
        margin-top: 15px;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 16px !important;
        border-bottom: 1px solid var(--rre-cream);
    }
    
    .navbar-collapse .btn {
        width: 100%;
        margin-top: 15px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .menu-card .card-img-wrapper {
        height: 180px;
    }
    
    .franchise-card {
        padding: 30px;
    }
    
    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 45px;
        height: 45px;
    }
    
    #heroCarousel .carousel-control-prev {
        left: 10px;
    }
    
    #heroCarousel .carousel-control-next {
        right: 10px;
    }
}

/* Tablet Portrait & Large Mobile */
@media (max-width: 767.98px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .section-title h2::after {
        width: 60px;
    }
    
    .section-title p {
        font-size: 0.95rem;
    }
    
    .section-subtitle {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }
    
    /* Hero Slider Mobile */
    .hero-slide {
        min-height: 80vh;
        padding: 20px 0;
    }
    
    .hero-slide .hero-content {
        text-align: center;
    }
    
    .hero-slide .hero-content h1 {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }
    
    .hero-slide .hero-content .lead {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .hero-slide .hero-badges {
        justify-content: center;
    }
    
    .hero-slide .hero-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .hero-slide .hero-badge i {
        font-size: 0.9rem;
    }
    
    .hero-slide .d-flex.gap-3 {
        flex-direction: column;
        gap: 10px !important;
    }
    
    .hero-slide .btn-lg {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
    
    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        display: none;
    }
    
    #heroCarousel .carousel-indicators {
        bottom: 15px;
    }
    
    /* Legacy Hero */
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-badge {
        width: 100%;
        justify-content: center;
    }
    
    /* Page Header */
    .page-header {
        padding: 50px 0;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    /* Cards */
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-card .icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .feature-card h4 {
        font-size: 1.1rem;
    }
    
    .menu-card .card-img-wrapper {
        height: 160px;
    }
    
    .menu-card .card-body {
        padding: 15px;
    }
    
    .menu-card .card-title {
        font-size: 1rem;
    }
    
    .menu-card .price {
        font-size: 1rem;
    }
    
    .franchise-card {
        padding: 25px 20px;
    }
    
    .franchise-card .investment {
        font-size: 1.5rem;
    }
    
    .store-card {
        padding: 20px;
    }
    
    .testimonial-card {
        padding: 25px 20px;
        margin-top: 30px;
    }
    
    .testimonial-card .avatar {
        width: 60px;
        height: 60px;
        margin-top: -45px;
    }
    
    /* Delivery Cards */
    .delivery-card {
        padding: 20px !important;
    }
    
    .delivery-card img {
        height: 40px !important;
    }
    
    .delivery-card h5 {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer {
        text-align: center;
    }
    
    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-3 {
        margin-bottom: 30px;
    }
    
    .footer h5 {
        margin-bottom: 15px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    /* Floating Elements */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 15px;
    }
    
    .back-to-top {
        bottom: 80px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    /* Forms */
    .form-control {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .form-control-lg {
        padding: 12px 18px;
    }
    
    /* Tables - Make scrollable */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Stats Counter */
    .counter {
        font-size: 2rem !important;
    }
    
    /* Gallery */
    .gallery-item {
        height: 200px;
    }
}

/* Small Mobile */
@media (max-width: 575.98px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.35rem; }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .section-padding {
        padding: 30px 0;
    }
    
    .hero-slide {
        min-height: 85vh;
    }
    
    .hero-slide .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-slide .hero-badges {
        gap: 8px;
    }
    
    .hero-slide .hero-badge {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 1.35rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .menu-card .card-img-wrapper {
        height: 140px;
    }
    
    .testimonial-card {
        padding: 20px 15px;
    }
    
    /* Top bar hide on very small screens */
    .top-bar {
        display: none !important;
    }
    
    /* Accordion FAQ */
    .accordion-button {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
    
    .accordion-body {
        padding: 15px;
        font-size: 0.9rem;
    }
}

/* ============================================
   Animation Classes
   ============================================ */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .navbar,
    .top-bar,
    .footer,
    .back-to-top,
    .whatsapp-float {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}
