/* ============================================
   Delhi House Frontend Styles
   Modern, Responsive Design System
   Note: Top bar, Header, and Footer styles are in layout.css
   ============================================ */

:root {
    /* Brand Colors */
    --primary-color: #EA1C24;
    --secondary-color: #F45B69;
    --accent-color: #F29BAB;
    --dark-color: #1A1A1A;
    --light-bg: #FFF5F7;
    --gold-color: #C9A35E;
    --eton-blue-color: #81B09C;
    
    /* Extended Color Palette */
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    
    /* Text Colors */
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --text-white: #ffffff;
    
    /* Spacing */
    --spacing-xs: 0.2rem;
    --spacing-sm: 0.4rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1rem;
    --spacing-xl: 1.5rem;
    --spacing-xxl: 2rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-pill: 50px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   Base Styles & Enhanced Typography
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
    font-size: 15px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Enhanced Heading Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    /* color: var(--dark-color); */
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(1.875rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
}

h4 {
    font-size: clamp(1.0625rem, 2vw, 1.375rem);
    font-weight: 600;
}

h5 {
    font-size: clamp(1rem, 1.5vw, 1.1875rem);
    font-weight: 600;
    font-family: 'Cormorant Garamond', serif;
}

h6 {
    font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
    font-weight: 600;
    font-family: 'Jost', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Paragraph & Body Text */
p {
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
    font-size: 0.9375rem;
    /* color: var(--text-secondary); */
}

p.lead {
    font-size: 1.0625rem;
    line-height: 1.5;
    font-weight: 400;
    /* color: var(--text-primary); */
    letter-spacing: -0.01em;
}

/* Links */
a {
    transition: var(--transition-base);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

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

/* Strong & Bold Text */
strong, b {
    font-weight: 600;
    color: var(--light-color);
}

/* Emphasis */
em, i {
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
}

/* Small Text */
small, .small {
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* Blockquotes */
blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--text-primary);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-left: 3px solid var(--primary-color);
    margin: var(--spacing-xl) 0;
    background: var(--light-bg);
    border-radius: var(--radius-md);
}

blockquote cite {
    display: block;
    font-size: 0.8125rem;
    font-style: normal;
    font-family: 'Jost', sans-serif;
    color: var(--text-muted);
    margin-top: var(--spacing-sm);
}

/* Lists */
ul, ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

/* Display Text */
.display-1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.display-2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.display-3 {
    font-size: clamp(1.625rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.display-4 {
    font-size: clamp(1.375rem, 3vw, 2.125rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* ============================================
   Sections & Components Styling
   ============================================ */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 10px 24px;
    font-weight: 600;
    font-family: 'Jost', sans-serif;
    font-size: 0.875rem;
    border-radius: 50px;
    transition: all 0.3s;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(199, 63, 101, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 24px;
    font-weight: 600;
    font-family: 'Jost', sans-serif;
    font-size: 0.875rem;
    border-radius: 50px;
    transition: all 0.3s;
    letter-spacing: 0.01em;
}

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

/* Cards */
.card {
    transition: all 0.3s;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.card-img-top {
    transition: transform 0.5s;
}

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

/* ============================================
   Responsive Design
   ============================================ */
.alert {
    border-radius: 10px;
    border: none;
}

.badge {
    padding: 4px 10px;
    font-weight: 600;
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    border-radius: 16px;
    letter-spacing: 0.02em;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,.1);
    border-radius: 10px;
    padding: 10px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 8px 15px;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    transform: translateX(5px);
}

/* ============================================
   Forms & Input Styles
   ============================================ */

.form-control, .form-select {
    border-radius: var(--radius-md);
    border: 2px solid #e9ecef;
    padding: 0.625rem 0.875rem;
    transition: var(--transition-base);
    font-size: 0.875rem;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(234, 28, 36, 0.15);
}

.form-control::placeholder {
    color: #999;
    font-weight: 400;
}

.form-label {
    font-weight: 600;
    font-family: 'Jost', sans-serif;
    font-size: 0.875rem;
    color: var(--dark-color);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.01em;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

/* ============================================
   Loading Spinner
   ============================================ */

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spinner-rotate 1s linear infinite;
}

@keyframes spinner-rotate {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Utility Classes
   ============================================ */

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.bg-pattern {
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,.05) 10px, rgba(255,255,255,.05) 20px);
}

.shadow-hover {
    transition: var(--transition-base);
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   Tables
   ============================================ */

.table-custom {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table-custom thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.table-custom thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table-custom tbody tr {
    transition: var(--transition-base);
}

.table-custom tbody tr:hover {
    background: var(--light-bg);
}

.table-custom tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* ============================================
   Breadcrumb
   ============================================ */

.breadcrumb-custom {
    background: var(--light-bg);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-xl);
}

.breadcrumb-custom .breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   Pagination
   ============================================ */

.pagination .page-link {
    border-radius: var(--radius-md);
    margin: 0 0.2rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ============================================
   Price Tag
   ============================================ */

.price-tag {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--gold-color), #d4af6a);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-pill);
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.custom-alert-text {
    color: var(--gold-color) !important
}

/* ============================================
   Notification Toast
   ============================================ */

.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}

.toast-custom {
    min-width: 300px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: none;
}

.toast-custom .toast-header {
    background: var(--primary-color);
    color: white;
    border: none;
}

/* ============================================
   Status Badges
   ============================================ */

.status-badge {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.confirmed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.completed {
    background: #d4edda;
    color: #155724;
}

.status-badge.cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
    text-align: center;
    padding: var(--spacing-xxl);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

.empty-state-title {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.empty-state-text {
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 991.98px) {
    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .toast-container {
        right: 10px;
        left: 10px;
    }
    
    .toast-custom {
        min-width: auto;
    }
}

@media (max-width: 575.98px) {
    .btn-primary,
    .btn-outline-primary {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .card-body {
        padding: 20px !important;
    }
    
    .stats-number {
        font-size: 36px;
    }
    
    .price-tag {
        font-size: 1rem;
        padding: 0.4rem 1rem;
    }
}

/* ============================================
   Scroll to Top Button  
   ============================================ */

/* Section Styling */
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    font-family: 'Jost', sans-serif;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 400;
    margin-bottom: 40px;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

/* ============================================
   Sections & Components Styling
   ============================================ */
.hero-carousel .carousel-item { position: relative; z-index: 0; }
.hero-carousel .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* stronger overlay */
    z-index: 1;                     /* above image */
    pointer-events: none;
}
.hero-carousel .carousel-caption.hero-caption {
    position: absolute;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;             /* full slide area */
    display: flex;
    flex-direction: column;
    align-items: center;             /* center horizontally */
    justify-content: center;         /* center vertically */
    text-align: center;
    padding: 0 1rem;
    z-index: 2;                      /* above overlay */
}
.hero-carousel .hero-title,
.hero-carousel .hero-subtitle {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
    text-align: center;
    margin: 0;
}
.hero-carousel .hero-subtitle { margin-top: .5rem; }
.hero-carousel .carousel-caption.hero-caption > .mt-4 {
    margin-top: 1rem !important;
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: center;         /* center buttons */
}
.hero-carousel .hero-btn { box-shadow: 0 2px 6px rgba(0,0,0,.25); }

/* Responsive slide height */
.hero-carousel .carousel-item img { height: 70vh; object-fit: cover; }
@media (max-width: 576px) {
    .hero-carousel .carousel-item img { height: 60vh; }
}

.menu-list { list-style:none; margin:0; padding:0; }
.menu-item { display:flex; align-items:flex-start; justify-content:space-between; padding:14px 0; border-bottom: 1px solid rgba(185,147,90,.25); }
.menu-item-name { font-size:20px; }
.menu-item-price { font-size:18px; white-space:nowrap; color:var(--text); }
.empty { color: var(--muted); font-style: italic; padding: 8px 0; }