/* ==========================================================================
   The Fat Chef · homepage
   Within the site theme: DM Sans, the brand red, the dark candlelight tone of
   the hero. One heading style, one card style, one button style. Mobile first.
   Everything is scoped to .tfc-home so other pages are untouched.
   ========================================================================== */

.tfc-home {
    --th-ink: #1c1a19;
    --th-ink-2: #4a4542;
    --th-muted: #6f6964;
    --th-line: #ece4da;
    --th-warm: #faf6f1;
    --th-red: #E34242;
    --th-red-dark: #c42f2f;
    --th-night: #120d0a;
    --th-radius: 16px;
    color: var(--th-ink);
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.tfc-home h1, .tfc-home h2, .tfc-home h3 { font-family: "DM Sans", system-ui, sans-serif; color: var(--th-ink); }
.tfc-home p { color: var(--th-ink-2); }
.tfc-home a { text-decoration: none; }

/* ---------- shared pieces ---------- */
.th-section { padding: 56px 0; }
.th-head { margin-bottom: 24px; }
.th-eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--th-red); margin-bottom: 8px; }
.th-head h2 { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.th-muted { color: var(--th-muted) !important; font-size: 14px; }

.th-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 22px; border-radius: 999px;
    font-size: 15px; font-weight: 700; line-height: 1; letter-spacing: 0;
    border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s;
    text-transform: none; white-space: nowrap;
}
.th-btn--primary { background: var(--th-red); border-color: var(--th-red); color: #fff !important; }
.th-btn--primary:hover { background: var(--th-red-dark); border-color: var(--th-red-dark); }
.th-btn--ghost { background: #fff; border-color: var(--th-line); color: var(--th-ink) !important; }
.th-btn--ghost:hover { border-color: var(--th-ink); }
.th-btn--light { background: #fff; color: var(--th-ink) !important; }
.th-btn--outline-light { border-color: rgba(255,255,255,.45); color: #fff !important; }
.th-btn--outline-light:hover { border-color: #fff; }
.th-btn--center { display: flex; width: max-content; margin: 28px auto 0; }
.th-link { font-weight: 700; color: var(--th-red) !important; }
.th-link i { font-size: 12px; margin-left: 4px; }

/* ---------- 1. intro ---------- */
.th-intro { padding: 32px 0 8px; text-align: center; }
.th-intro__title { font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; margin: 0 auto 12px; max-width: 760px; }
.th-intro__sub { font-size: 16px; line-height: 1.55; margin: 0 auto 22px; max-width: 620px; }
.th-intro__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 520px; margin: 0 auto; }
.th-intro__actions .th-btn--primary { grid-column: 1 / -1; }
.th-rating { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--th-ink-2) !important; }
.th-rating strong { color: var(--th-ink); }
.th-rating__stars { color: #f2a93b; letter-spacing: 1px; }
.th-rating__stars span { color: #e3d8ca; }

/* ---------- 2. dishes + menu ---------- */
.th-dishes { background: var(--th-warm); }
.th-row {
    display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -15px; padding: 4px 15px 8px; scroll-padding: 0 15px;
}
.th-row::-webkit-scrollbar { display: none; }
.th-dish { scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--th-line); border-radius: var(--th-radius); padding: 12px 12px 14px; color: var(--th-ink) !important; transition: transform .2s, box-shadow .2s; }
.th-dish:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(60, 35, 10, .10); }
.th-dish__plate { display: block; aspect-ratio: 1; border-radius: 12px; background: radial-gradient(circle at 50% 42%, #fff 0, #f3ebe1 70%); margin-bottom: 12px; }
.th-dish__plate img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(70, 40, 10, .22)); }
.th-dish__name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.th-dish__price { margin-top: 4px; font-size: 14px; color: var(--th-muted); }
.th-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.th-cats a { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--th-line); color: var(--th-ink) !important; font-size: 14px; font-weight: 500; }
.th-cats a:hover { border-color: var(--th-red); color: var(--th-red) !important; }

/* ---------- 3. plan your visit ---------- */
.th-visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.th-visit__tile { position: relative; display: block; border-radius: var(--th-radius); overflow: hidden; aspect-ratio: 1; background: #2a211c; }
.th-visit__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.th-visit__tile:hover img { transform: scale(1.04); }
.th-visit__tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,8,6,0) 30%, rgba(12,8,6,.55) 55%, rgba(12,8,6,.92) 100%); }
.th-visit__text { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.th-visit__text strong { display: block; font-size: 16px; line-height: 1.2; }
.th-visit__text span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.35; opacity: .85; }

/* ---------- 4. reviews ---------- */
.th-reviews { padding: 8px 0 0; }
.th-reviews__card { background: var(--th-night); color: #fff; border-radius: 22px; padding: 28px 22px; display: grid; gap: 20px; text-align: center; }
.th-reviews__score strong { display: block; font-size: 48px; line-height: 1; font-weight: 700; color: #fff; }
.th-reviews__score .th-rating__stars { display: block; font-size: 20px; margin: 8px 0 4px; }
.th-reviews__score .th-rating__stars span { color: #5a4a3e; }
.th-reviews__score > span:last-child { color: rgba(255,255,255,.75); font-size: 14px; }
.th-reviews__actions { display: grid; gap: 10px; }

/* ---------- 5. story ---------- */
.th-story__grid { display: grid; gap: 24px; align-items: center; }
.th-story__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.th-story__text h2 { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; margin: 0 0 14px; }
.th-story__text p { font-size: 16px; line-height: 1.7; margin: 0 0 16px; }

/* ---------- 6. find us ---------- */
.th-find { background: var(--th-warm); }
.th-find__grid { display: grid; gap: 12px; }
.th-find__block { background: #fff; border: 1px solid var(--th-line); border-radius: var(--th-radius); padding: 18px; }
.th-find__block h3 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--th-muted); margin: 0 0 8px; }
.th-find__block p { margin: 0 0 4px; font-size: 15px; line-height: 1.55; }
.th-find__block a { color: var(--th-ink) !important; font-weight: 600; }
.th-hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 15px; }
.th-hours dt { font-weight: 600; color: var(--th-ink); }
.th-hours dd { margin: 0; color: var(--th-ink-2); }
.th-find__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }

/* ---------- 7. questions ---------- */
.th-faq__list { border-top: 1px solid var(--th-line); }
.th-faq__item { border-bottom: 1px solid var(--th-line); }
.th-faq__item summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 700; font-size: 16px; color: var(--th-ink); }
.th-faq__item summary::-webkit-details-marker { display: none; }
.th-faq__item summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--th-red); }
.th-faq__item[open] summary::after { content: '–'; }
.th-faq__item p { margin: 0 0 18px; font-size: 15px; line-height: 1.65; }

/* ---------- larger screens ---------- */
@media (min-width: 768px) {
    .th-section { padding: 80px 0; }
    .th-head { margin-bottom: 32px; }
    .th-head h2, .th-story__text h2 { font-size: 36px; }
    .th-intro { padding: 48px 0 16px; }
    .th-intro__title { font-size: 34px; }
    .th-intro__actions { display: flex; justify-content: center; max-width: none; }
    .th-row { grid-auto-columns: calc((100% - 5 * 16px) / 6); gap: 16px; overflow: visible; margin: 0; padding: 4px 0 8px; }
    .th-visit__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .th-visit__text strong { font-size: 19px; }
    .th-visit__text span { font-size: 14px; }
    .th-reviews__card { grid-template-columns: auto 1fr; align-items: center; text-align: left; padding: 36px 44px; }
    .th-reviews__score { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 18px; }
    .th-reviews__score strong { grid-row: span 2; font-size: 64px; }
    .th-reviews__score .th-rating__stars { margin: 0; }
    .th-reviews__actions { grid-auto-flow: column; justify-content: end; }
    .th-story__grid { grid-template-columns: 5fr 7fr; gap: 56px; }
    .th-find__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .th-find__actions { display: flex; justify-content: center; }
    .th-faq__list { max-width: 820px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .th-row { grid-auto-columns: calc((100% - 2 * 16px) / 3); overflow-x: auto; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .th-row { grid-auto-columns: calc((100% - 2 * 16px) / 3); overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .th-dish, .th-visit__tile img { transition: none; }
}

/* ---------- slides added in the admin (after the four campaign slides) ----------
   Whatever photo the admin picks, a dark wash on the text side keeps white
   text readable; buttons match the rest of the site. */
.tfc-db-slide { position: relative; background-color: #120d0a; }
.tfc-db-slide::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(18,13,10,.88) 0%, rgba(18,13,10,.62) 45%, rgba(18,13,10,.15) 80%); }
.tfc-db-slide > .container { position: relative; z-index: 1; }
.tfc-db-slide .banner-thumb { z-index: 1; }
.tfc-db-slide .banner-content .title { color: #fff; font-family: "DM Sans", system-ui, sans-serif; font-weight: 700; letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.tfc-db-slide .banner-content p { color: rgba(255,255,255,.85); text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.tfc-db-slide .banner-content .main-btn { border-radius: 999px; }
@media (max-width: 767px) {
    .tfc-db-slide::before { background: linear-gradient(180deg, rgba(18,13,10,.55) 0%, rgba(18,13,10,.85) 100%); }
}
