/*
Theme Name: Table & Fork
Description: An independent block theme for Mediterranean restaurants and cafés.
Version: 0.1.4
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
Author: web-templates
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: table-and-fork
Domain Path: /languages
*/

/* Shared presentation for native blocks in the editor and on the front end. */
html { scroll-padding-top: 7rem; }
body { margin: 0; }
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
:where(h1, h2, h3, p, a) { overflow-wrap: anywhere; }
:where(h1, h2, h3) { text-wrap: balance; }
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid var(--wp--preset--color--primary);
    outline-offset: 4px;
}
:where(.tf-hero, .tf-closing) :where(a, button):focus-visible {
    outline-color: var(--wp--preset--color--accent);
}
.wp-block-button__link { min-height: 44px; box-sizing: border-box; text-decoration: none; }
.wp-block-button__link:hover { filter: brightness(0.94); }
.wp-block-button.is-style-outline > .wp-block-button__link { border-width: 1px; }
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close {
    min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
}
.wp-block-navigation-item__content { padding-block: .5rem; }
.tf-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--wp--preset--color--surface);
    border-bottom: 1px solid var(--wp--preset--color--border);
}
.admin-bar .tf-site-header { top: 32px; }
.tf-header { padding-block: .9rem; }
.tf-header-row { gap: 1rem; }
.tf-header .wp-block-site-logo { flex-shrink: 0; }
.tf-header .wp-block-site-logo img { width: 44px; max-width: 100%; height: auto; }

/* Demo mark and native site title remain independently editable. */

.tf-header .wp-block-navigation { margin-inline-start: auto; }
.tf-header .wp-block-navigation__container { gap: 1rem; }
.tf-header .wp-block-button__link { padding: .7rem 1rem; font-size: .85rem; }
.tf-section { padding-block: var(--wp--preset--spacing--50); margin-block: 0; }
.tf-section > .alignwide { width: 100%; }
.tf-section .wp-block-columns { gap: 2rem; margin-bottom: 0; }
.tf-eyebrow { font-size: .75rem; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; }
.tf-lead { font-size: 1.15rem; max-width:  40rem; }
.tf-hours, .tf-demo-note { font-size: .85rem; }
.tf-demo-note { color: var(--wp--preset--color--muted); }

.tf-closing .tf-eyebrow { color: var(--wp--preset--color--accent); }

.tf-hero-columns { align-items: center !important; }
.tf-hero-columns > .wp-block-column { flex-basis: 0; }

.tf-closing .wp-block-button:not(.is-style-outline) .wp-block-button__link {
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--primary);
}
:where(.tf-hero, .tf-closing) .wp-block-button.is-style-outline .wp-block-button__link { color: inherit; border-color: currentColor; }
.tf-surface { background: var(--wp--preset--color--surface); }
.tf-photo { margin: 0; }
.tf-photo img { display: block; width: 100%; height: auto; border-radius: 2px; }
.tf-image-text { align-items: center !important; gap: 4rem !important; }
.tf-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.tf-gallery > * { margin: 0 !important; max-width: none !important; }
.tf-gallery .tf-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.tf-dish { padding-block: 1.25rem; border-bottom: 1px solid var(--wp--preset--color--border); }
.tf-dish-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; }
.tf-dish-heading > * { margin: 0 !important; max-width: none !important; }
.tf-dish-heading h3 { flex: 1; font-family: var(--wp--preset--font-family--body); font-weight: 600; font-size: 1.12rem; letter-spacing: 0; }
.tf-price { flex-shrink: 0; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.tf-dish-copy > p { color: var(--wp--preset--color--muted); margin-top: .5rem; font-size: .95rem; }
.tf-menu-category { padding-block: 2rem; }
.tf-menu-category > .alignwide { max-width: 860px; }
.tf-featured .tf-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.tf-featured .tf-dish { padding-top: 0; border: 0; }
.tf-featured .tf-dish-heading { gap: .8rem; }
.tf-closing { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--on-primary); }
.tf-closing-columns { align-items: center !important; }
.tf-closing h2 { max-width: 14em; }
.tf-page-intro { padding-block: 3rem; border-bottom: 1px solid var(--wp--preset--color--border); }
.tf-page-intro h1 { font-size: clamp(2.3rem, 4vw, 3.4rem); max-width: 22em; }
.tf-page-intro .tf-lead { max-width: 48rem; }
.tf-contact-columns { gap: 4rem !important; }
.tf-footer { padding-block: 2rem; border-top: 1px solid var(--wp--preset--color--border); background: var(--wp--preset--color--surface); }
@media (max-width: 1100px) {
    .tf-header .wp-block-site-logo img { width: 44px; }
    .tf-header .wp-block-navigation__container { gap: .65rem; }
}
@media (max-width: 900px) {
    .tf-header > .tf-header-row { flex-wrap: nowrap; }
    .tf-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
    .tf-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
    .tf-header .wp-block-navigation__responsive-container.is-menu-open { padding: 2rem; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--text); }
    .tf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1rem; }
    .tf-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
    .admin-bar .tf-site-header { top: 46px; }
    .tf-image-text, .tf-contact-columns { gap: 2rem !important; }

}
@media (max-width: 600px) {
    .admin-bar .tf-site-header { top: 0; }
    .tf-header { padding-block: .65rem; }
    .tf-header-row { gap: .6rem; }
    .tf-header .wp-block-site-logo img { width: 36px; }
    .tf-header .wp-block-button__link { max-width: 100px; font-size: .75rem; padding: .5rem .6rem; }
    .tf-header .wp-block-buttons { flex-shrink: 0; }
    .tf-gallery { grid-template-columns: minmax(0, 1fr); }
    .tf-page-intro { padding-block: 2rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 380px) { .tf-header .wp-block-site-logo img { width: 32px; } }

.tf-hero { background: var(--wp--preset--color--background); color: var(--wp--preset--color--text); padding-block: 3rem; }
.tf-hero .tf-eyebrow { color: var(--wp--preset--color--primary); }
.tf-hero h1 { max-width: 11em; }
.tf-hero .tf-photo img { border-radius: 160px 160px 2px 2px; height: 570px; object-fit: cover; object-position: center; }
.tf-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--on-primary); }
.tf-hero .wp-block-button__link:focus-visible { outline-color: var(--wp--preset--color--primary); }
.tf-brand { gap: .65rem; }
.tf-header .wp-block-site-title { font-family: var(--wp--preset--font-family--heading); font-size: 1.4rem; max-width: 12rem; line-height: 1.1; }
.tf-header .wp-block-site-title a { text-decoration: none; }
.tf-footer .wp-block-site-logo img { width: 48px; height: auto; }
.tf-closing .tf-photo img { max-height: 320px; object-fit: cover; }
@media (max-width: 782px) { .tf-hero .tf-photo img { height: auto; max-height: 440px; } }
@media (max-width: 600px) {
    .tf-header .wp-block-site-title { font-size: 1.1rem; max-width: 6rem; }
    .tf-brand { gap: .4rem; }
    .tf-dish-heading { gap: 1rem; }
    .tf-dish-heading h3 { font-size: 1rem; }
    .tf-hero { padding-block: 2rem; }
}
