/*
 * =====================================================
 *  THE FAT CHEF — SEO & UI IMPROVEMENTS
 *  Version: 2.0 | March 2026
 *  Covers: Image consistency, Core Web Vitals,
 *          Accessibility, UI polish, Signature Dishes,
 *          Menu Cards, QR Menu, Typography, Footer SEO
 * =====================================================
 */

/* -------------------------------------------------------
   0. PERFORMANCE & CORE WEB VITALS
   - Prevent layout shift (CLS) for images / embeds
   - font-display optimization
   - content-visibility for off-screen sections
   ------------------------------------------------------- */

/* Stable font loading — prevents FOIT */
@font-face { font-display: swap; }

/* Reserve image space to prevent CLS */
img {
    max-width: 100%;
    height: auto;
}

/* Force image placeholders to avoid layout shift */
.menu-thumb,
.sig-dish-img-wrap,
.qr-product-img,
.gallery-img,
.team-img,
.blog-thumb,
.experience-bg img {
    aspect-ratio: auto;
    overflow: hidden;
}

/* Lazy-loaded images — smooth fade in */
img.lazy:not([src]) { opacity: 0; }
img.lazy { transition: opacity 0.3s ease; }
img.lazy.loaded,
img.lazy[src]:not([src=""]) { opacity: 1; }

/* Off-screen sections defer rendering */
.tfc-explore-section,
.seo-footer-links,
.footer-area {
    content-visibility: auto;
    contain-intrinsic-size: 0 300px;
}

/* -------------------------------------------------------
   1. ACCESSIBILITY
   ------------------------------------------------------- */

/* Skip link — visible on focus */
.skip-to-content {
    position: fixed;
    top: -100px;
    left: 16px;
    background: #E34242;
    color: #fff !important;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 14px;
    z-index: 99999;
    border-radius: 0 0 6px 6px;
    text-decoration: none;
    transition: top 0.2s ease;
    white-space: nowrap;
}
.skip-to-content:focus {
    top: 0;
    outline: 3px solid #fff;
    color: #fff !important;
}

/* Focus rings — WCAG 2.1 AA */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #E34242 !important;
    outline-offset: 2px;
}

/* Screen-reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* -------------------------------------------------------
   2. MENU CARD IMAGES — EVEN HEIGHT
   Fix the core "images not even" complaint across
   food-menu-area (version 1 grid cards + version 2 list)
   ------------------------------------------------------- */

/* Version 1: Grid card — uniform thumb */
.food-menu-area.food-menu-3-area .food-menu-items .single-menu-item .menu-thumb {
    width: 100%;
    height: 210px;
    flex-shrink: 0;
}
.food-menu-area.food-menu-3-area .food-menu-items .single-menu-item .menu-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Version 2: List style items */
.food-menu-area .food-menu-items .single-menu-item .menu-thumb {
    overflow: hidden;
    flex-shrink: 0;
}
.food-menu-area .food-menu-items .single-menu-item .menu-thumb img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 4px;
}
@media (max-width: 767px) {
    .food-menu-area .food-menu-items .single-menu-item .menu-thumb img {
        height: 180px;
    }
}

/* food-menu-2-area — thumbnail fix */
.food-menu-area.food-menu-2-area .food-menu-items .single-menu-item .menu-thumb {
    overflow: hidden;
    height: 88px;
}
.food-menu-area.food-menu-2-area .food-menu-items .single-menu-item .menu-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
@media (max-width: 991px) {
    .food-menu-area.food-menu-2-area .food-menu-items .single-menu-item .menu-thumb {
        height: 110px;
    }
}

/* Category tab icons — uniform size */
.food-menu-area .tabs-btn ul li a img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* -------------------------------------------------------
   3. SIGNATURE DISHES SECTION — EVEN IMAGE CARDS
   ------------------------------------------------------- */

/* Make all sig-dish-card cards the same height in a row */
.sig-dishes-row .col-lg-3,
.sig-dishes-row .col-lg-4,
.sig-dishes-row .col-md-6 {
    display: flex;
    flex-direction: column;
}
.sig-dish-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Uniform image height for all signature dish cards */
.sig-dish-img-wrap {
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    margin: -30px -22px 18px;
    flex-shrink: 0;
}
.sig-dish-img {
    width: 100%;
    height: 200px !important;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}
.sig-dish-card:hover .sig-dish-img {
    transform: scale(1.06);
}

/* Stretch card body so CTA always stays at bottom */
.sig-dish-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.sig-desc { flex: 1; }
.sig-cta { margin-top: auto; }

/* When no image is present — icon fill equally */
.sig-dish-icon-wrap {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
}

/* -------------------------------------------------------
   4. QR MENU — EVEN PRODUCT IMAGES
   ------------------------------------------------------- */
.qr-product-image-wrap,
.qr-menu .product-img-wrap {
    overflow: hidden;
    border-radius: 8px;
}
.qr-product-image-wrap img,
.qr-menu .product-img-wrap img,
.qr-menu img.product-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 8px;
}
@media (max-width: 575px) {
    .qr-product-image-wrap img,
    .qr-menu .product-img-wrap img,
    .qr-menu img.product-img {
        height: 120px;
    }
}

/* -------------------------------------------------------
   5. GOOD FOOD / SPECIAL SECTION — EVEN IMAGES
   ------------------------------------------------------- */
.good-food-item img:not(.food-shape-img) {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 8px;
}

/* -------------------------------------------------------
   6. GALLERY — UNIFORM ASPECT RATIO
   ------------------------------------------------------- */
.gallery-item,
.gallery-img-wrap {
    overflow: hidden;
    border-radius: 8px;
}
.gallery-item img,
.gallery-img-wrap img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-item:hover img,
.gallery-img-wrap:hover img {
    transform: scale(1.05);
}
@media (max-width: 767px) {
    .gallery-item img,
    .gallery-img-wrap img {
        height: 180px;
    }
}

/* -------------------------------------------------------
   7. BLOG CARDS — EVEN THUMBNAILS
   ------------------------------------------------------- */
.single-blog-post .blog-img,
.blog-thumb-wrap {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}
.single-blog-post .blog-img img,
.blog-thumb-wrap img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}
.single-blog-post:hover .blog-img img,
.blog-thumb-wrap:hover img {
    transform: scale(1.04);
}

/* -------------------------------------------------------
   8. HERO SECTION — LCP OPTIMISATION
   Prevent layout shift for hero background images
   ------------------------------------------------------- */
.hero-area,
.slider-area,
.page-title-area {
    min-height: 500px;
}
@media (max-width: 767px) {
    .hero-area,
    .slider-area,
    .page-title-area {
        min-height: 320px;
    }
}

/* -------------------------------------------------------
   9. TRUST BAR — IMPROVED VISIBILITY
   ------------------------------------------------------- */
.trust-bar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 11px 0;
    border-bottom: 2px solid #E34242;
    position: relative;
    z-index: 50;
}
.trust-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}
.trust-bar-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
.trust-bar-item i {
    font-size: 15px;
    color: #E34242;
    flex-shrink: 0;
}
.trust-bar-item .rating-stars {
    color: #f4b942;
    font-size: 13px;
    letter-spacing: 1px;
}
.trust-bar-item a {
    color: #E34242;
    text-decoration: underline;
    font-size: 12px;
}
.trust-bar-item a:hover { color: #fff; }
@media (max-width: 767px) {
    .trust-bar .container {
        gap: 14px;
        justify-content: flex-start;
        padding-left: 16px;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .trust-bar-item { font-size: 11.5px; }
}

/* -------------------------------------------------------
   10. SEO FOOTER LINKS — IMPROVED LAYOUT
   ------------------------------------------------------- */
.seo-footer-links {
    background: #111;
    padding: 50px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.seo-footer-heading {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E34242;
    font-family: "DM Sans", sans-serif;
}
.seo-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.seo-footer-list li {
    margin-bottom: 9px;
}
.seo-footer-list li a {
    color: rgba(255,255,255,0.62);
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s, padding-left 0.2s;
    line-height: 1.5;
}
.seo-footer-list li a:hover {
    color: #E34242;
    padding-left: 4px;
    text-decoration: none;
}
.seo-footer-address {
    color: rgba(255,255,255,0.62);
    font-size: 13px;
    font-style: normal;
    line-height: 1.8;
}
.seo-footer-address strong { color: rgba(255,255,255,0.9); }
.seo-footer-address a { color: rgba(255,255,255,0.62); text-decoration: none; }
.seo-footer-address a:hover { color: #E34242; }
@media (max-width: 767px) {
    .seo-footer-links { padding: 36px 0 30px; }
    .seo-footer-heading { margin-bottom: 14px; }
}

/* -------------------------------------------------------
   11. NAVIGATION — STICKY CLARITY
   ------------------------------------------------------- */
.navigation.sticky {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Logo max size */
.navbar-brand img {
    max-width: 140px;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* -------------------------------------------------------
   12. SECTION TITLES — CONSISTENT H2 SIZING
   ------------------------------------------------------- */
.section-title .title {
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.25;
}
.section-title span {
    font-size: clamp(14px, 1.5vw, 18px);
}

/* Page title H1 sizing */
.page-title-item .title,
.page-title-area .title {
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.15;
    font-weight: 900;
    color: #fff;
}

/* -------------------------------------------------------
   13. BUTTONS — IMPROVED CONTRAST & TOUCH TARGETS
   ------------------------------------------------------- */
.main-btn {
    min-height: 48px;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.main-btn:focus-visible {
    outline: 3px solid #E34242;
    outline-offset: 2px;
}

/* -------------------------------------------------------
   14. EXPERIENCE / INTRO SECTION — IMAGE FIT
   ------------------------------------------------------- */
.experience-bg img {
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.experience-play-item img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

/* -------------------------------------------------------
   15. FAQ SECTION — BETTER ACCORDION STYLING
   ------------------------------------------------------- */
.faq-section {
    padding: 80px 0 60px;
    background: #fff;
}
.faq-section .card {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0 !important;
    margin-bottom: 0;
}
.faq-section .card-header {
    background: transparent;
    border: none;
    padding: 0;
}
.faq-section .card-header .btn-link {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: "DM Sans", sans-serif;
    padding: 18px 20px 18px 0;
    width: 100%;
    text-align: left;
    text-decoration: none;
    border: none;
    background: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.4;
    transition: color 0.2s;
}
.faq-section .card-header .btn-link:hover,
.faq-section .card-header .btn-link:not(.collapsed) {
    color: #E34242;
    text-decoration: none;
}
.faq-section .card-header .btn-link::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: #E34242;
    flex-shrink: 0;
    margin-left: 12px;
    line-height: 1;
    transition: transform 0.3s ease;
}
.faq-section .card-header .btn-link:not(.collapsed)::after {
    content: '−';
}
.faq-section .card-body {
    font-size: 14.5px;
    color: #64656a;
    line-height: 1.85;
    padding: 0 0 18px;
}

/* -------------------------------------------------------
   16. BREADCRUMB — SEO FRIENDLY
   ------------------------------------------------------- */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 12px 0 0;
}
.breadcrumb-item {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}
.breadcrumb-item a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
}
.breadcrumb-item a:hover { color: #fff; }
.breadcrumb-item.active { color: #E34242; }
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
    content: "›";
    font-size: 15px;
}

/* -------------------------------------------------------
   17. CONTACT PAGE — FORM IMPROVEMENTS
   ------------------------------------------------------- */
.contact-form .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: block;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    border: 1.5px solid #e8e8e8;
    border-radius: 4px;
    font-size: 14px;
    padding: 12px 16px;
    width: 100%;
    transition: border-color 0.2s;
    color: #333;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: #E34242;
    outline: none;
    box-shadow: 0 0 0 3px rgba(227,66,66,0.1);
}

/* -------------------------------------------------------
   18. RESERVATION PAGE — FORM POLISH
   ------------------------------------------------------- */
.rb-form-wrap {
    border-radius: 16px;
    overflow: hidden;
}

/* -------------------------------------------------------
   19. BLOG DETAIL — TYPOGRAPHY FOR SEO
   ------------------------------------------------------- */
.blog-details-content h1,
.blog-details-content h2,
.blog-details-content h3 {
    font-family: "DM Sans", sans-serif;
    font-weight: 900;
    color: #1a1a1a;
    margin: 28px 0 14px;
    line-height: 1.25;
}
.blog-details-content h1 { font-size: 32px; }
.blog-details-content h2 { font-size: 26px; }
.blog-details-content h3 { font-size: 20px; }
.blog-details-content p {
    font-size: 15.5px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 16px;
}
.blog-details-content a {
    color: #E34242;
    text-decoration: underline;
}

/* -------------------------------------------------------
   20. HOMEPAGE SEO SECTIONS (added via index.blade.php)
   ------------------------------------------------------- */

/* Why Dine With Us */
.tfc-why-section {
    background: #fff;
    padding: 75px 0 60px;
}
.tfc-why-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    margin-bottom: 24px;
    height: calc(100% - 24px);
}
.tfc-why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border-color: #E34242;
}
.tfc-why-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(227,66,66,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 24px;
    color: #E34242;
    transition: background 0.2s;
}
.tfc-why-card:hover .tfc-why-icon { background: rgba(227,66,66,0.18); }
.tfc-why-card h3 {
    font-size: 17px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-family: "DM Sans", sans-serif;
}
.tfc-why-card p {
    font-size: 13.5px;
    color: #64656a;
    line-height: 1.75;
    margin: 0;
}

/* Neighbourhood / Local SEO section */
.tfc-neighbourhood-section {
    background: #f8f9fa;
    padding: 70px 0 60px;
    border-top: 1px solid #eee;
}
.tfc-neighbourhood-section .section-title .title { color: #1a1a1a; }
.tfc-nearby-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.tfc-nearby-list li {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13.5px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.tfc-nearby-list li:hover {
    border-color: #E34242;
    box-shadow: 0 4px 12px rgba(227,66,66,0.08);
}
.tfc-nearby-list li i { color: #E34242; font-size: 14px; flex-shrink: 0; }
.tfc-nearby-list li strong { color: #1a1a1a; }
@media (max-width: 575px) {
    .tfc-nearby-list { grid-template-columns: 1fr; }
}

/* Homepage FAQ section */
.tfc-homepage-faq {
    background: #fff;
    padding: 70px 0 60px;
}
.tfc-faq-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 0;
}
.tfc-faq-item:first-child { padding-top: 0; }
.hfaq-q {
    font-size: 15.5px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-family: "DM Sans", sans-serif;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}
.hfaq-q::before {
    content: 'Q';
    background: #E34242;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
}
.hfaq-a {
    font-size: 14px;
    color: #64656a;
    line-height: 1.85;
    padding-left: 28px;
    margin: 0;
}

/* About / Story section */
.tfc-about-section {
    background: #1a1a1a;
    padding: 75px 0 60px;
    color: #fff;
}
.tfc-about-text {
    font-size: 15px;
    color: rgba(255,255,255,0.72);
    line-height: 1.9;
}
.tfc-about-text strong { color: #fff; }
.tfc-about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}
.tfc-about-badge {
    background: rgba(227,66,66,0.15);
    border: 1px solid rgba(227,66,66,0.3);
    color: #E34242;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.tfc-stat-box {
    text-align: center;
    padding: 28px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    margin-bottom: 20px;
}
.tfc-stat-number {
    font-size: 36px;
    font-weight: 900;
    color: #E34242;
    font-family: "DM Sans", sans-serif;
    line-height: 1;
    display: block;
    margin-bottom: 6px;
}
.tfc-stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* -------------------------------------------------------
   21. PRINT STYLES — HIDE DECORATIVE ELEMENTS
   ------------------------------------------------------- */
@media print {
    .trust-bar,
    .tfc-trust-strip,
    .seo-footer-links,
    .request-loader,
    #preloader,
    .go-top-area,
    .navbar,
    .footer-area::before { display: none !important; }
    body { color: #000; }
    a { color: #000; text-decoration: underline; }
}

/* -------------------------------------------------------
   22. MOBILE — GLOBAL TOUCH & SPACING IMPROVEMENTS
   ------------------------------------------------------- */
@media (max-width: 767px) {
    /* Larger touch targets */
    a, button, .nav-item a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .navigation .navbar .navbar-nav .nav-item a {
        min-height: unset;
        display: block;
    }
    /* Horizontal scroll sections */
    .food-menu-area .tabs-btn ul {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }
    /* Prevent text overflow */
    .section-title .title,
    .experience-content .title,
    .page-title-item .title {
        word-break: break-word;
    }
}

/* -------------------------------------------------------
   23. STRUCTURED DATA HELPERS (CSS mirrors schema)
   These invisible elements feed speakable schema selectors
   ------------------------------------------------------- */
.tfc-seo-heading {
    /* Visible section headings targeted by speakable schema */
}
.tfc-about-text {
    /* Visible about text targeted by speakable schema */
}

/* -------------------------------------------------------
   24. LOADING STATE — FOOD ITEMS LOADER
   ------------------------------------------------------- */
.food-items-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    width: 100%;
}
.food-items-loader img {
    max-width: 40px;
    height: 40px;
    object-fit: contain;
}
