/* assets/css/style.css */
/* Chef Consulting Services - Grant Kipling (CCS) Slate & Steel Color Scheme */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&family=Pacifico&display=swap');

:root {
    --bg-dark: #121b22;
    --bg-card: #1a2732;
    --bg-card-hover: #223342;
    --bg-glass: rgba(26, 39, 50, 0.85);
    
    --accent-primary: #38bdf8;
    --accent-light: #ffffff;
    --accent-dark: #0284c7;
    --brand-silver: #e2e8f0;
    --brand-slate: #334155;
    
    --brand-gradient: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #38bdf8 100%);
    --button-gradient: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --border-color: rgba(56, 189, 248, 0.2);
    --border-bright: rgba(56, 189, 248, 0.5);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-brand: 0 0 25px rgba(56, 189, 248, 0.2);
    
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-title, .font-serif {
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    letter-spacing: 0.5px;
}

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

a:hover {
    color: var(--accent-light);
}

/* Layout Container */
.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

/* Header Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 16px;
}

.brand-logo img,
.header-logo-img {
    height: 64px !important;
    max-height: 64px !important;
    width: auto !important;
    max-width: 100% !important;
    border-radius: 50%;
    border: 2px solid var(--border-bright);
    box-shadow: var(--shadow-brand);
    object-fit: contain;
    flex-shrink: 0;
}

.brand-logo svg,
.header-logo-svg {
    height: 64px !important;
    max-height: 64px !important;
    width: 64px !important;
    max-width: 64px !important;
    flex-shrink: 0;
}

.brand-text-main {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    display: block;
}

.brand-text-sub {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-primary);
    background: rgba(56, 189, 248, 0.1);
}

.btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--border-bright);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: rgba(56, 189, 248, 0.12);
    color: #ffffff;
    border-color: var(--accent-primary);
}

/* Flash Messages */
.flash-alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
}

.flash-success {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

.flash-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 100px 0 80px 0;
    background: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.1) 0%, rgba(18, 27, 34, 1) 75%);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.hero-slideshow-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(8, 12, 16, 0.75) 0%, rgba(12, 19, 25, 0.85) 60%, rgba(18, 27, 34, 0.98) 100%);
    z-index: 3;
    backdrop-filter: blur(2px);
}

.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(18, 27, 34, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}

.hero-slider-btn:hover {
    background: var(--gold-primary);
    color: #000000;
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    transform: translateY(-50%) scale(1.08);
}

.hero-slider-btn.prev {
    left: 20px;
}

.hero-slider-btn.next {
    right: 20px;
}

.hero-slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active, .hero-dot:hover {
    background: var(--gold-primary);
    width: 28px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
}

.hero-tagline {
    display: inline-block;
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 16px;
    padding: 6px 18px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: rgba(26, 39, 50, 0.6);
}

.hero-title {
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 24px;
    color: #ffffff;
    text-transform: uppercase;
    font-variant: normal;
    font-variant-caps: normal;
    letter-spacing: 1px;
}

.hero-title span {
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    font-variant: normal;
    font-variant-caps: normal;
    letter-spacing: 1px;
}

.hero-desc {
    max-width: 760px;
    margin: 0 auto 36px auto;
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 300;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Cards & Grids */
.section-padding {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--accent-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

/* Chef Card Styling */
.chef-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.chef-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-bright);
    box-shadow: var(--shadow-brand);
}

.chef-card-header {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 340px;
    min-height: 220px;
    background: #141f27;
    overflow: hidden;
}

.chef-card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 15%;
    transition: var(--transition);
}

.chef-card:hover .chef-card-header img {
    transform: scale(1.05);
}

.chef-search-grid {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.badge-status {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(13, 23, 32, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.badge-approved {
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.5);
}

.badge-pending {
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.5);
}

.chef-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.chef-name {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 6px;
}

.chef-cuisine {
    color: var(--accent-primary);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chef-bio-box {
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--accent-primary);
    padding: 12px 14px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    min-height: 80px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chef-meta-row {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.chef-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.food-preview-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 20px;
}

.food-preview-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #141f27;
    cursor: pointer;
}

.food-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.food-preview-thumb:hover img {
    transform: scale(1.15);
}

/* Chef Details Responsive Container & Image */
.chef-details-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.chef-detail-profile-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 380px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--border-bright);
    background: #141f27;
}

.chef-detail-profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 15%;
}

.chef-card-footer {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.chef-card-footer .btn-primary, .chef-card-footer .btn-outline {
    flex: 1;
    text-align: center;
    justify-content: center;
}

/* Lightbox Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-md);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--accent-primary);
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: #0f171e;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

/* Permanent Solid White Date Picker & Calendar Indicator */
input[type="date"].form-control, input[type="date"] {
    color-scheme: light !important;
    color: #111111 !important;
    background-color: #ffffff !important;
    font-weight: 700 !important;
    border: 1px solid #ffffff !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none !important;
    cursor: pointer !important;
    opacity: 1 !important;
    width: 24px !important;
    height: 24px !important;
    background-color: rgba(0, 0, 0, 0.08) !important;
    border-radius: 4px !important;
    padding: 2px !important;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1 !important;
    background-color: var(--accent-primary) !important;
    filter: invert(1) !important;
    transform: scale(1.05);
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

.help-text {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 5px;
}

/* Image Upload Previews Grid */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.upload-box {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.upload-box:hover {
    border-color: var(--accent-primary);
    background: rgba(56, 189, 248, 0.08);
}

.upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-preview {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-top: 6px;
    display: none;
}

/* Services Grid */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-brand);
}

.service-icon {
    width: 50px;
    height: 50px;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.service-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    background: #0b1116;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand-title {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 400px;
}

.footer-links h4 {
    color: var(--accent-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

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

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

/* Social Media Bar */
.social-icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.social-icon-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--accent-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Floating WhatsApp Widget */
.whatsapp-float-widget {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    background: #25d366 !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    z-index: 999999 !important;
    text-decoration: none !important;
    font-size: 0.92rem !important;
    transition: var(--transition) !important;
}

.whatsapp-float-widget:hover {
    background: #1eb956 !important;
    transform: scale(1.06) !important;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.7) !important;
    color: #ffffff !important;
}

@media (max-width: 576px) {
    .whatsapp-float-widget span:last-child {
        display: none !important;
    }
    .whatsapp-float-widget {
        padding: 12px !important;
        border-radius: 50% !important;
        bottom: 16px !important;
        right: 16px !important;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Mac Retina Typography & Touch Enhancements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

input:not([type="checkbox"]):not([type="radio"]), select, textarea {
    -webkit-appearance: none;
}

/* Ensure Checkboxes & Radios Always Display Crisp Visible Tickboxes */
input[type="checkbox"], input[type="radio"] {
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
    display: inline-block !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    cursor: pointer !important;
    accent-color: var(--accent-primary) !important;
    vertical-align: middle !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.table-responsive, .modal-content {
    -webkit-overflow-scrolling: touch;
}

/* Mobile & Tablet Responsive Breakpoints (12" Tablets, iPads & Mobile) */
.mobile-toggle-btn {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-bright);
    color: var(--gold-primary);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
    z-index: 1001;
    transition: var(--transition);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-toggle-btn:hover, .mobile-toggle-btn:active {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold-primary);
    color: #ffffff;
}

/* Mobile & Tablet Breakpoint (Up to 1366px, Touch Devices & Android/iPad Tablets in Landscape) */
@media screen and (max-width: 1366px),
       screen and (pointer: coarse),
       screen and (max-device-width: 1366px) {
    .header-inner {
        flex-wrap: wrap;
        position: relative;
    }
    .mobile-toggle-btn {
        display: flex !important;
        align-items: center;
        gap: 8px;
    }
    .main-nav,
    .nav-menu,
    #main_nav_menu {
        display: none !important;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        background: #0d1720;
        padding: 20px;
        border-radius: var(--radius-md);
        border: 1px solid var(--border-bright);
        margin-top: 16px;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
        position: relative;
        z-index: 1000;
    }
    .main-nav.active,
    .nav-menu.active,
    #main_nav_menu.active {
        display: flex !important;
    }
    .nav-menu .nav-link,
    .nav-menu .btn-outline,
    .nav-menu .btn-primary {
        width: 100%;
        text-align: left;
        display: block;
        padding: 12px 16px;
        font-size: 1rem;
        box-sizing: border-box;
    }
    
    /* Responsive Logo Scaling for 12" & 13" Android Tablets & iPads */
    .brand-logo img,
    .header-logo-img {
        height: 56px !important;
        max-height: 56px !important;
        width: auto !important;
    }
    .brand-logo svg,
    .header-logo-svg {
        height: 56px !important;
        max-height: 56px !important;
        width: 56px !important;
        max-width: 56px !important;
    }
    .brand-text-main {
        font-size: 1.1rem;
    }
    .brand-text-sub {
        font-size: 0.62rem;
    }
}

/* Desktop Displays (Wider than 1366px with Mouse) */
@media screen and (min-width: 1367px) and (pointer: fine) {
    .mobile-toggle-btn {
        display: none !important;
    }
    .main-nav,
    .nav-menu,
    #main_nav_menu {
        display: flex !important;
        align-items: center;
        gap: 16px;
        flex-wrap: nowrap;
    }
}

@media (max-width: 1200px) {
    .container {
        width: 94%;
        padding: 0 16px;
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .chef-card-header {
        aspect-ratio: 4 / 3;
        max-height: 320px;
    }
}

@media (max-width: 992px) {
    .chef-details-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .chef-detail-profile-img {
        max-height: 340px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.1rem !important;
    }
    .section-title {
        font-size: 1.8rem !important;
    }
    .grid-2, .grid-3, .grid-4, .details-grid, .footer-grid, .chef-search-grid {
        grid-template-columns: 1fr !important;
    }
    .chef-search-grid {
        gap: 14px !important;
    }
    .chef-search-grid .btn-primary,
    .chef-search-grid .btn-outline {
        width: 100% !important;
    }
    form div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    .upload-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .food-preview-strip {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 6px !important;
    }
    .chef-card-header {
        aspect-ratio: 4 / 3;
        max-height: 280px;
        min-height: 200px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    /* Responsive Logo Scaling for Smaller Tablets & Mobile */
    .brand-logo img {
        max-height: 60px !important;
    }
    .brand-logo svg {
        max-height: 60px !important;
        max-width: 60px !important;
        height: 60px !important;
        width: 60px !important;
    }
}

@media (max-width: 480px) {
    .food-preview-strip {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 4px !important;
    }
    .upload-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .chef-card-header {
        aspect-ratio: 4 / 3;
        max-height: 240px;
    }
    .brand-logo img {
        max-height: 46px !important;
    }
    .brand-logo svg {
        max-height: 46px !important;
        max-width: 46px !important;
        height: 46px !important;
        width: 46px !important;
    }
    .brand-text-main {
        font-size: 0.95rem;
    }
    .brand-text-sub {
        font-size: 0.55rem;
    }
}

/* ==========================================================================
   Universal Calendar Grid & Event Styles (Client Enquiries & Chef Schedule)
   ========================================================================== */
.calendar-container {
    background: var(--bg-card, #0e1726);
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: var(--radius-md, 12px);
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

.calendar-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.08));
}

.calendar-grid-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary, #d4af37);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px 8px 0 0;
    padding: 12px 0;
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
    border-bottom: none;
}

.calendar-grid-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-left: 1px solid var(--border-color, rgba(255,255,255,0.08));
    border-top: 1px solid var(--border-color, rgba(255,255,255,0.08));
}

.calendar-day-cell {
    min-height: 120px;
    background: #090e17;
    border-right: 1px solid var(--border-color, rgba(255,255,255,0.08));
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.08));
    padding: 8px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: background 0.2s ease;
}

.calendar-day-cell:hover {
    background: #0d1522;
}

.calendar-day-cell.other-month {
    background: #05080e;
    opacity: 0.45;
}

.calendar-day-cell.today {
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
}

.calendar-day-cell.today .day-number {
    background: var(--gold-primary, #d4af37);
    color: #000000;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.day-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 6px;
    align-self: flex-start;
}

.calendar-events-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow-y: auto;
    max-height: 110px;
}

/* Event Item Badges */
.cal-event-pill {
    font-size: 0.76rem;
    padding: 4px 8px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cal-event-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* Specific Requested Enquiry (YELLOW) */
.cal-event-yellow {
    background: rgba(234, 179, 8, 0.2);
    border: 1px solid #eab308;
    color: #fef08a;
}

.cal-event-yellow:hover {
    background: rgba(234, 179, 8, 0.35);
}

/* Confirmed/Booked Enquiry (GREEN) */
.cal-event-green {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    color: #86efac;
}

.cal-event-green:hover {
    background: rgba(34, 197, 94, 0.35);
}

/* Closed / Cancelled Enquiry (GRAY) */
.cal-event-gray {
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid #64748b;
    color: #cbd5e1;
}

/* Chef Unavailable / Time-Out (PURPLE / DARK RED) */
.cal-event-purple {
    background: rgba(168, 85, 247, 0.25);
    border: 1px solid #a855f7;
    color: #e9d5ff;
}

.cal-event-purple:hover {
    background: rgba(168, 85, 247, 0.4);
}

/* Legend Box */
.calendar-legend {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}

.legend-yellow { background: #eab308; }
.legend-green { background: #22c55e; }
.legend-purple { background: #a855f7; }
.legend-gray { background: #64748b; }

@media (max-width: 900px) {
    .calendar-day-cell {
        min-height: 90px;
        padding: 4px;
    }
    .cal-event-pill {
        font-size: 0.7rem;
        padding: 2px 4px;
    }
}

/* ==========================================================================
   View Mode Tabs (Month / Week / Day / Year) & Extended Grids
   ========================================================================== */
.calendar-view-tabs {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.cal-view-tab {
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cal-view-tab:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.05);
}

.cal-view-tab.active {
    background: var(--gold-primary, #d4af37);
    color: #000000;
    font-weight: 800;
}

/* Year View 12-Month Grid */
.calendar-year-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.year-month-card {
    background: #090e17;
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
    border-radius: 8px;
    padding: 12px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.year-month-card:hover {
    border-color: var(--gold-primary, #d4af37);
    transform: translateY(-2px);
}

.year-month-header {
    font-weight: 700;
    color: var(--gold-primary, #d4af37);
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.year-mini-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    font-size: 0.7rem;
    text-align: center;
}

.mini-day {
    padding: 3px 0;
    border-radius: 2px;
    color: #64748b;
}

.mini-day.has-yellow { background: rgba(234, 179, 8, 0.4); color: #fff; font-weight: 700; }
.mini-day.has-green { background: rgba(34, 197, 94, 0.4); color: #fff; font-weight: 700; }
.mini-day.has-purple { background: rgba(168, 85, 247, 0.4); color: #fff; font-weight: 700; }

/* Day View Agenda */
.day-agenda-card {
    background: #090e17;
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

@media (max-width: 1024px) {
    .calendar-year-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .calendar-year-grid {
        grid-template-columns: 1fr;
    }
}


