/*
Theme Name: The Local Gembrook v2.3.5
Theme URI: https://thelocalgembrook.com.au/
Author: The Local Gembrook
Author URI: https://thelocalgembrook.com.au/
Description: A widescreen, fully responsive Gutenberg-first WordPress block theme for The Local Gembrook - a country pub in Gembrook, VIC. v2.3: wider site canvas, guaranteed-white hero text on every page, shared CTA/Find Us sections across the site, and four new special-event pages (Burger, Parma, Steak Night, Sunday Sessions) under a What's On dropdown.
Version: 2.3.5
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thelocal-v2-3-5
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --tl-white: #ffffff;
  --tl-cream: #f2ece5;
  --tl-cream-2: #ece3d8;
  --tl-gold: #fcdd93;
  --tl-amber: #ecae55;
  --tl-amber-dark: #d99a3f;
  --tl-black: #000000;
  --tl-ink: #1a1712;
  --tl-muted: #5c564c;
  --tl-line: rgba(0, 0, 0, 0.12);
  --tl-line-light: rgba(255, 255, 255, 0.16);
  --tl-max: 1600px;
  --tl-content: 820px;
  --tl-radius-sm: 6px;
  --tl-radius: 14px;
  --tl-radius-lg: 22px;
  --tl-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
  --tl-shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.1);
  --tl-font-heading: "Montserrat", "Arial Black", "Segoe UI", ui-sans-serif, sans-serif;
  --tl-font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--tl-white);
  color: var(--tl-ink);
  font-family: var(--tl-font-body);
  font-size: clamp(1rem, 0.97rem + 0.1vw, 1.1rem);
  line-height: 1.7;
  overflow-x: hidden;
}

body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: var(--tl-max);
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--tl-amber-dark);
}

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

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--tl-amber);
  outline-offset: 3px;
}

.wp-site-blocks {
  min-height: 100vh;
  overflow-x: hidden;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--tl-font-heading);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.4rem, 2rem + 3.2vw, 4.4rem);
}

h2 {
  font-size: clamp(1.9rem, 1.6rem + 1.8vw, 2.9rem);
}

h3 {
  font-size: clamp(1.2rem, 1.05rem + 0.75vw, 1.5rem);
}

p {
  margin: 0 0 1em;
}

/* =========================================================
   LAYOUT HELPERS
   ========================================================= */
.tl-container {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--tl-max);
  padding-left: calc(clamp(1.25rem, 4vw, 3rem) + 20px);
  padding-right: calc(clamp(1.25rem, 4vw, 3rem) + 20px);
  width: 100%;
}

.tl-section {
  padding-bottom: clamp(3.2rem, 7vw, 6.5rem);
  padding-top: clamp(3.2rem, 7vw, 6.5rem);
}

.tl-section-tight {
  padding-bottom: clamp(2.2rem, 4.5vw, 3.6rem);
  padding-top: clamp(2.2rem, 4.5vw, 3.6rem);
}

.tl-cream {
  background: var(--tl-cream);
}

.tl-black {
  background: var(--tl-black);
  color: var(--tl-white);
}

.tl-black h1, .tl-black h2, .tl-black h3 {
  color: var(--tl-white);
}

.tl-amber-band {
  background: var(--tl-amber);
  color: var(--tl-black);
}

/* Heading with flanking rules, centered */
.tl-heading-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}

.tl-rule-heading {
  align-items: center;
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  justify-content: center;
  margin-bottom: 0.9rem;
}

.tl-rule-heading::before,
.tl-rule-heading::after {
  background: var(--tl-amber);
  content: "";
  height: 2px;
  width: clamp(24px, 4vw, 64px);
}

.tl-rule-heading span {
  color: var(--tl-ink);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tl-subtitle {
  color: var(--tl-muted);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.15rem);
  margin: 0 auto 0;
  max-width: 620px;
}

.tl-eyebrow {
  align-items: center;
  color: var(--tl-amber-dark);
  display: flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 0.75rem;
  letter-spacing: 0.14em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.tl-eyebrow::after {
  background: var(--tl-amber);
  content: "";
  height: 2px;
  width: 46px;
}

.tl-black .tl-eyebrow,
.tl-hero .tl-eyebrow {
  color: var(--tl-gold);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.wp-block-button__link {
  border-radius: var(--tl-radius-sm);
  font-family: var(--tl-font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  min-height: 50px;
  padding: 0.85rem 1.6rem;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.wp-block-button__link:hover {
  transform: translateY(-2px);
}

.is-style-fill .wp-block-button__link,
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--tl-amber);
  border: 2px solid var(--tl-amber);
  color: var(--tl-black);
}

.is-style-fill .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  background: var(--tl-gold);
  border-color: var(--tl-gold);
  box-shadow: var(--tl-shadow-sm);
  color: var(--tl-black);
}

.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid currentColor;
  color: currentColor;
}

.is-style-outline .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.tl-black .is-style-outline .wp-block-button__link:hover,
.tl-hero .is-style-outline .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--tl-white);
}

.tl-cream .is-style-outline .wp-block-button__link,
.tl-white .is-style-outline .wp-block-button__link {
  border-color: var(--tl-black);
  color: var(--tl-black);
}

.tl-cream .is-style-outline .wp-block-button__link:hover,
.tl-white .is-style-outline .wp-block-button__link:hover {
  background: var(--tl-black);
  color: var(--tl-white);
}

/* =========================================================
   HEADER
   ========================================================= */
.tl-header-wrap {
  background: var(--tl-black);
  color: var(--tl-white);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Every part of the header (nav, dropdowns) is pinned to a solid black
   background explicitly - background-color does not inherit in CSS, so
   leaving it to "inherit" from .tl-header-wrap is what produced mismatched
   grey/white panels in earlier versions. */
.tl-header-wrap,
.tl-header-wrap .wp-block-navigation,
.tl-header-wrap .wp-block-navigation__submenu-container {
  background-color: var(--tl-black);
}

/* Single-line flex header: [left menu + hamburger] -- [logo] -- [right menu + phone].
   Both sides share equal flex-basis so the logo always sits dead-centre,
   regardless of how many links either menu holds - this replaced an earlier
   CSS-grid version where the desktop menu and the mobile hamburger could
   occupy the same grid cell and visually collide. */
.tl-header {
  align-items: center;
  display: flex;
  gap: clamp(0.75rem, 2vw, 2rem);
  justify-content: space-between;
  min-height: 76px;
  padding-bottom: 0.5rem;
  padding-top: 0.5rem;
}

.tl-header-side {
  align-items: center;
  display: flex;
  flex: 1 1 0;
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
}

.tl-header-left {
  justify-content: flex-start;
}

.tl-header-right {
  justify-content: flex-end;
}

.tl-header-logo {
  flex: 0 0 auto;
}

.tl-header .custom-logo,
.tl-header .wp-block-site-logo img {
  max-height: 96px;
  width: auto;
}

/* Desktop left/right menus - hidden below 1024px in favour of the hamburger */
.tl-nav-l,
.tl-nav-r {
  display: block;
}

.tl-nav .wp-block-navigation__container {
  align-items: center;
  gap: clamp(0.85rem, 1.6vw, 1.6rem);
}

.tl-nav a,
.tl-nav .wp-block-navigation-item__content {
  color: var(--tl-white);
  font-family: var(--tl-font-heading);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.1rem;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.tl-nav a::after {
  background: var(--tl-amber);
  bottom: -2px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transition: width 160ms ease;
  width: 0;
}

.tl-nav .current-menu-item > a::after,
.tl-nav .wp-block-navigation-item.current-menu-item > a::after,
.tl-nav a:hover::after {
  width: 100%;
}

.tl-nav a:hover,
.tl-nav .wp-block-navigation-item__content:hover {
  color: var(--tl-gold);
}

.tl-nav .wp-block-navigation__submenu-icon {
  height: 0.7em;
  width: 0.7em;
}

.tl-nav .wp-block-navigation__submenu-icon path {
  fill: currentColor;
}

/* Desktop dropdowns (Our Story > Gallery, What's On > the 4 special nights) */
.tl-nav .wp-block-navigation__submenu-container {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--tl-radius-sm);
  min-width: 220px;
  padding: 0.4rem;
}

.tl-nav .wp-block-navigation__submenu-container a {
  padding: 0.6rem 0.75rem;
  white-space: nowrap;
}

/* The right-hand menu's dropdown (What's On) would otherwise expand off the
   right edge of the viewport, since submenus open flush with their
   parent's left edge by default - flip it to hang from the right instead. */
.tl-nav-r .wp-block-navigation-submenu > .wp-block-navigation__submenu-container {
  left: auto;
  right: 0;
}

.tl-phone-btn {
  align-items: center;
  background: var(--tl-amber);
  border: 2px solid var(--tl-amber);
  border-radius: var(--tl-radius-sm);
  color: var(--tl-black);
  display: inline-flex;
  font-family: var(--tl-font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  gap: 0.5rem;
  justify-content: center;
  letter-spacing: 0.02em;
  min-height: 42px;
  padding: 0.55rem 1.05rem;
  text-decoration: none;
  white-space: nowrap;
}

.tl-phone-btn svg {
  flex: none;
  height: 16px;
  width: 16px;
}

.tl-phone-btn:hover {
  background: var(--tl-gold);
  border-color: var(--tl-gold);
  color: var(--tl-black);
}

/* =========================================================
   HAMBURGER + MOBILE PANEL (hard-coded, JS-driven - not the
   WP core Navigation block's own overlay, which proved
   unreliable across breakpoints)
   ========================================================= */
.tl-hamburger {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--tl-white);
  cursor: pointer;
  display: none;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 40px;
}

.tl-hamburger svg {
  height: 26px;
  pointer-events: none;
  width: 26px;
}

.tl-hamburger .tl-hamburger-close {
  display: none;
}

.tl-hamburger[aria-expanded="true"] .tl-hamburger-open {
  display: none;
}

.tl-hamburger[aria-expanded="true"] .tl-hamburger-close {
  display: block;
}

.tl-mobile-panel {
  background: var(--tl-black);
  bottom: 0;
  color: var(--tl-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  left: 0;
  opacity: 0;
  overflow-y: auto;
  padding: 6.5rem 1.75rem 2rem;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
  visibility: hidden;
  z-index: 999999;
}

.tl-mobile-panel[hidden] {
  display: flex;
}

.tl-mobile-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

body.tl-panel-open {
  overflow: hidden;
}

.tl-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tl-mobile-nav > a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--tl-white);
  font-family: var(--tl-font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.85rem 0;
  text-decoration: none;
  text-transform: uppercase;
}

.tl-mobile-submenu {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tl-mobile-submenu-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--tl-white);
  cursor: pointer;
  display: flex;
  font-family: var(--tl-font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: 0.02em;
  padding: 0.85rem 0;
  text-transform: uppercase;
  width: 100%;
}

.tl-mobile-submenu-toggle svg {
  height: 18px;
  transition: transform 160ms ease;
  width: 18px;
}

.tl-mobile-submenu-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.tl-mobile-submenu-panel {
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0 0 0.85rem 1rem;
}

.tl-mobile-submenu.is-open .tl-mobile-submenu-panel {
  display: flex;
}

.tl-mobile-submenu-panel a {
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--tl-font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.55rem 0;
  text-decoration: none;
  text-transform: uppercase;
}

.tl-mobile-panel-footer {
  padding-top: 1.5rem;
}

.tl-mobile-panel-footer .tl-phone-btn {
  justify-content: center;
  width: 100%;
}

/* Below 1024px: hide both desktop menus, show only the hamburger */
@media (max-width: 1024px) {
  .tl-nav-l,
  .tl-nav-r {
    display: none;
  }

  .tl-hamburger {
    display: flex;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.tl-hero {
  align-items: center;
  color: var(--tl-white);
  display: grid;
  min-height: clamp(560px, 78vh, 880px);
  overflow: hidden;
  position: relative;
}

/* Force every hero text node white, explicitly and with !important. The
   cover block's "isDark" attribute only hints the editor UI - it does not
   itself guarantee white text on the published front end, which is why
   headings/paragraphs could render in the theme's default near-black body
   colour once live even though the editor preview looked correct. */
.tl-hero h1,
.tl-hero h2,
.tl-hero h3,
.tl-hero p:not(.tl-subhead):not(.tl-eyebrow),
.tl-hero span:not(.tl-eyebrow *),
.tl-hero strong,
.tl-hero .wp-block-heading {
  color: var(--tl-white) !important;
}

.tl-hero .tl-eyebrow,
.tl-hero .tl-subhead {
  color: var(--tl-gold) !important;
}

.tl-hero .is-style-outline .wp-block-button__link {
  border-color: var(--tl-white) !important;
  color: var(--tl-white) !important;
}

.tl-hero .is-style-outline .wp-block-button__link:hover {
  background: var(--tl-white) !important;
  color: var(--tl-black) !important;
}

/* The amber-filled primary button keeps black text by design (legibility
   against the amber fill) - re-affirmed here so it never inherits the
   white-text rule above. */
.tl-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  color: var(--tl-black) !important;
}

.tl-hero::before {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.62) 42%, rgba(0, 0, 0, 0.18) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.tl-hero .wp-block-cover__image-background {
  transform: scale(1.01);
}

.tl-hero .wp-block-cover__inner-container {
  margin: 0 auto;
  max-width: var(--tl-max);
  padding: clamp(6.5rem, 11vw, 9rem) calc(clamp(1.25rem, 4vw, 3rem) + 20px) clamp(3.5rem, 7vw, 6rem);
  position: relative;
  width: 100%;
  z-index: 2;
}

.tl-hero h1 {
  color: var(--tl-white);
  max-width: 760px;
}

.tl-hero .tl-subhead {
  color: var(--tl-gold);
  font-family: var(--tl-font-heading);
  font-size: clamp(1rem, 0.85rem + 0.6vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0.6rem 0 1.1rem;
  text-transform: uppercase;
}

.tl-hero p:not(.tl-subhead):not(.tl-eyebrow) {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.18rem);
  max-width: 560px;
}

.tl-hero .wp-block-buttons {
  margin-top: 1.6rem;
}

/* smaller inner-page hero */
.tl-page-hero {
  min-height: clamp(360px, 42vh, 480px);
}

.tl-page-hero .wp-block-cover__inner-container {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(7.5rem, 13vw, 10rem);
}

/* =========================================================
   INFO STRIP (4 columns with icons + dividers)
   ========================================================= */
.tl-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tl-info-item {
  border-left: 1px solid var(--tl-line);
  padding: 0.5rem clamp(1rem, 2vw, 1.8rem);
  text-align: center;
}

.tl-info-item:first-child {
  border-left: none;
}

.tl-info-icon {
  color: var(--tl-amber-dark);
  margin: 0 auto 0.9rem;
  height: 40px;
  width: 40px;
}

.tl-info-item h3 {
  font-size: clamp(0.98rem, 0.9rem + 0.3vw, 1.15rem);
  margin-bottom: 0.55rem;
}

.tl-info-item p {
  color: var(--tl-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* =========================================================
   WELCOME / SPLIT SECTION
   ========================================================= */
.tl-split {
  align-items: stretch;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr 1fr;
}

.tl-split.tl-split-reverse {
  grid-template-columns: 1fr 1fr;
}

.tl-split.tl-split-reverse > :first-child {
  order: 2;
}

.tl-split-copy {
  align-self: center;
}

.tl-split-copy h2 {
  margin-bottom: 1.1rem;
}

.tl-split-copy p {
  color: var(--tl-ink);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
}

.tl-split-media {
  border-radius: var(--tl-radius-lg);
  min-height: 320px;
  overflow: hidden;
  position: relative;
}

.tl-split-media img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

/* Dashed placeholder box on the special-event pages, ready for a future
   photo to be dropped in via the block editor. */
.tl-image-frame {
  align-items: center;
  background: var(--tl-cream);
  border: 2px dashed rgba(0, 0, 0, 0.2);
  border-radius: var(--tl-radius-lg);
  display: flex;
  justify-content: center;
  margin: 0;
  min-height: 320px;
}

.tl-image-frame span {
  align-items: center;
  color: var(--tl-muted);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem;
  text-align: center;
}

.tl-image-frame svg {
  color: var(--tl-amber-dark);
  height: 40px;
  width: 40px;
}

.tl-image-frame em {
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 600;
}

/* =========================================================
   SPECIALS TEASER (clickable tiles linking to the special-event pages)
   ========================================================= */
.tl-specials-grid {
  border-radius: var(--tl-radius);
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 3vw, 1.5rem);
}

.tl-special-item {
  color: inherit;
  display: block;
  text-decoration: none;
  transition: transform 180ms ease;
}

.tl-special-item:hover {
  color: inherit;
  transform: translateY(-3px);
}

.tl-special-item:hover .tl-info-icon {
  color: var(--tl-amber);
}

.tl-special-item-title {
  display: block;
  font-family: var(--tl-font-heading);
  font-size: clamp(0.98rem, 0.9rem + 0.3vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

/* =========================================================
   FOOD TEASER / IMAGE GRID
   ========================================================= */
.tl-food-grid {
  display: grid;
  gap: clamp(1.1rem, 2vw, 1.75rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(2rem, 4vw, 3rem) 0;
}

.tl-food-item figure {
  aspect-ratio: 1 / 1;
  border-radius: var(--tl-radius);
  margin: 0 0 0.9rem;
  overflow: hidden;
}

.tl-food-item img {
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
  width: 100%;
}

.tl-food-item:hover img {
  transform: scale(1.05);
}

.tl-food-item figcaption {
  font-family: var(--tl-font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
}

.tl-center-cta {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
}

/* =========================================================
   CARD GRIDS (Our Story / What's On)
   ========================================================= */
.tl-card-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tl-card {
  background: var(--tl-white);
  border-radius: var(--tl-radius);
  box-shadow: var(--tl-shadow-sm);
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.tl-card:hover {
  box-shadow: var(--tl-shadow);
  transform: translateY(-4px);
}

.tl-card figure {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
}

.tl-card img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.tl-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
}

.tl-card-body h3 {
  margin-bottom: 0.55rem;
}

.tl-card-body p {
  color: var(--tl-muted);
  margin: 0;
}

.tl-event-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tl-event-card {
  background: var(--tl-white);
  border-radius: var(--tl-radius);
  box-shadow: var(--tl-shadow-sm);
  padding: clamp(1.4rem, 2.5vw, 2rem);
}

.tl-tag {
  background: var(--tl-gold);
  border-radius: 999px;
  display: inline-block;
  font-family: var(--tl-font-heading);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
  padding: 0.32rem 0.8rem;
  text-transform: uppercase;
}

.tl-event-card h3 {
  margin-bottom: 0.5rem;
}

.tl-event-card p {
  color: var(--tl-muted);
  margin: 0;
}

.tl-placeholder-box {
  background: var(--tl-white);
  border: 1px dashed var(--tl-line);
  border-radius: var(--tl-radius);
  padding: clamp(1.4rem, 2.5vw, 2rem);
}

/* =========================================================
   INSTAGRAM SECTION
   ========================================================= */
.tl-insta-split {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 0.9fr 1.1fr;
}

.tl-insta-icon {
  color: var(--tl-amber);
  height: 34px;
  margin-bottom: 1rem;
  width: 34px;
}

.tl-insta-split h2 {
  margin-bottom: 0.75rem;
}

.tl-insta-split p {
  color: rgba(255, 255, 255, 0.78);
}

.tl-insta-grid {
  display: grid;
  gap: clamp(0.6rem, 1.5vw, 1rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tl-insta-grid figure {
  aspect-ratio: 1 / 1;
  border-radius: var(--tl-radius-sm);
  margin: 0;
  overflow: hidden;
}

.tl-insta-grid img {
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, opacity 220ms ease;
  width: 100%;
}

.tl-insta-grid a:hover img {
  opacity: 0.85;
  transform: scale(1.04);
}

/* =========================================================
   REVIEWS
   ========================================================= */
.tl-reviews-split {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 0.7fr 1.3fr;
}

.tl-rating-block {
  align-items: flex-start;
  display: flex;
  gap: 1.1rem;
}

.tl-rating-badge {
  align-items: center;
  background: var(--tl-white);
  border: 3px solid var(--tl-amber);
  border-radius: 50%;
  color: var(--tl-ink);
  display: flex;
  flex: none;
  font-family: var(--tl-font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  height: 82px;
  justify-content: center;
  width: 82px;
}

.tl-rating-copy .tl-stars {
  color: var(--tl-amber-dark);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}

.tl-rating-copy strong {
  display: block;
  font-family: var(--tl-font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tl-rating-copy span {
  color: var(--tl-muted);
  font-size: 0.9rem;
}

.tl-review-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tl-review-card {
  background: var(--tl-white);
  border-radius: var(--tl-radius);
  box-shadow: var(--tl-shadow-sm);
  padding: clamp(1.3rem, 2.2vw, 1.75rem);
}

.tl-review-card .tl-quote-mark {
  color: var(--tl-amber);
  font-family: Georgia, serif;
  font-size: 2.6rem;
  line-height: 1;
  display: block;
  margin-bottom: 0.3rem;
}

.tl-review-card p {
  color: var(--tl-ink);
  font-style: italic;
  margin-bottom: 0.9rem;
}

.tl-review-card .tl-review-author {
  color: var(--tl-muted);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 700;
}

/* =========================================================
   CONTACT / FIND US
   ========================================================= */
.tl-contact-grid {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 0.85fr 1.15fr;
}

.tl-contact-grid h3 {
  margin-bottom: 0.55rem;
  margin-top: 1.5rem;
}

.tl-contact-grid h3:first-child {
  margin-top: 0;
}

.tl-contact-list {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.tl-contact-list li {
  align-items: flex-start;
  display: flex;
  gap: 0.7rem;
}

.tl-contact-list svg {
  color: var(--tl-amber-dark);
  flex: none;
  height: 20px;
  margin-top: 0.2rem;
  width: 20px;
}

.tl-map {
  background: var(--tl-cream);
  border: 1px solid var(--tl-line);
  border-radius: var(--tl-radius);
  overflow: hidden;
  min-height: 340px;
}

.tl-map iframe {
  border: 0;
  display: block;
  height: 100%;
  min-height: 340px;
  width: 100%;
}

.tl-map-placeholder {
  align-items: center;
  background: linear-gradient(135deg, var(--tl-cream), var(--tl-gold));
  display: grid;
  height: 100%;
  min-height: 340px;
  place-items: center;
  text-align: center;
}

/* =========================================================
   FORM (shortcode placeholder styled like screenshot forms)
   ========================================================= */
.tl-form-wrap {
  background: var(--tl-white);
  border-radius: var(--tl-radius);
  box-shadow: var(--tl-shadow-sm);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.tl-form-wrap .tl-form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.tl-form-wrap label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tl-form-wrap input,
.tl-form-wrap textarea {
  background: var(--tl-cream);
  border: 1px solid var(--tl-line);
  border-radius: var(--tl-radius-sm);
  font-family: var(--tl-font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  width: 100%;
}

.tl-form-wrap textarea {
  min-height: 120px;
  resize: vertical;
}

.tl-form-wrap .tl-form-full {
  margin-bottom: 1rem;
}

.tl-form-note {
  color: var(--tl-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* =========================================================
   MENU PAGE
   ========================================================= */
.tl-menu-legend {
  background: var(--tl-white);
  border: 1px solid var(--tl-line);
  border-radius: var(--tl-radius);
  padding: clamp(1.1rem, 2vw, 1.5rem);
}

.tl-menu-legend p {
  margin: 0 0 0.5rem;
}

.tl-menu-legend p:last-child {
  margin-bottom: 0;
}

.tl-menu-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tl-menu-section {
  background: var(--tl-white);
  border-radius: var(--tl-radius);
  box-shadow: var(--tl-shadow-sm);
  padding: clamp(1.4rem, 2.5vw, 2rem);
}

.tl-menu-section h2 {
  border-bottom: 3px solid var(--tl-amber);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.6rem);
  margin-bottom: 1.1rem;
  padding-bottom: 0.7rem;
}

.tl-menu-item {
  border-bottom: 1px dotted var(--tl-line);
  padding: 0.78rem 0;
}

.tl-menu-item:last-child {
  border-bottom: 0;
}

.tl-menu-item strong {
  align-items: baseline;
  display: flex;
  font-family: var(--tl-font-heading);
  font-size: 1rem;
  gap: 0.75rem;
  justify-content: space-between;
  letter-spacing: 0.01em;
}

.tl-menu-item em {
  color: var(--tl-amber-dark);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.tl-menu-item p {
  color: var(--tl-muted);
  font-size: 0.92rem;
  margin: 0.35rem 0 0;
}

/* =========================================================
   GALLERY
   ========================================================= */
.wp-block-gallery img {
  border-radius: var(--tl-radius-sm);
  transition: transform 220ms ease;
}

.wp-block-gallery figure:hover img {
  transform: scale(1.03);
}

/* =========================================================
   FOOTER
   ========================================================= */
.tl-footer {
  background: var(--tl-black);
  color: rgba(255, 255, 255, 0.86);
  padding-bottom: 2rem;
  padding-top: clamp(3.5rem, 6vw, 5rem);
}

.tl-footer a {
  color: var(--tl-white);
  text-decoration: none;
}

.tl-footer a:hover {
  color: var(--tl-gold);
}

.tl-footer-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 2.5rem);
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
}

.tl-footer .custom-logo,
.tl-footer .wp-block-site-logo img {
  max-height: 150px;
  width: auto;
  margin-bottom: 0.4rem;
}

.tl-footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  margin: 1rem 0 1.4rem;
}

.tl-social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.tl-social-row a {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.tl-social-row a:hover {
  background: var(--tl-amber);
  color: var(--tl-black);
}

.tl-social-row svg {
  height: 18px;
  width: 18px;
}

.tl-footer h3 {
  color: var(--tl-gold);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.1rem;
}

.tl-footer-list {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tl-footer-hours {
  display: grid;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tl-footer-hours li {
  align-items: baseline;
  display: flex;
  font-size: 0.92rem;
  gap: 0.75rem;
  justify-content: space-between;
}

.tl-footer-hours span:first-child {
  color: rgba(255, 255, 255, 0.65);
}

.tl-footer-map {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--tl-radius-sm);
  display: block;
  min-height: 190px;
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
}

.tl-footer-map iframe {
  border: 0;
  display: block;
  filter: grayscale(0.15) contrast(1.05);
  height: 100%;
  min-height: 190px;
  width: 100%;
}

.tl-footer-map img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.tl-footer-map .tl-pin {
  color: #e0483e;
  height: 30px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -60%);
  width: 30px;
}

/* =========================================================
   BRAND MARK (mid-page logo accent)
   ========================================================= */
.tl-brand-mark {
  display: flex;
  justify-content: center;
  margin: 0 auto clamp(1.25rem, 3vw, 2rem);
}

.tl-brand-mark img {
  height: auto;
  max-height: clamp(56px, 8vw, 84px);
  width: auto;
}

.tl-copyright-bar {
  align-items: center;
  border-top: 1px solid var(--tl-line-light);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  margin-top: clamp(2.2rem, 4vw, 3.2rem);
  padding-top: 1.4rem;
}

.tl-copyright-bar p {
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.tl-legal-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tl-legal-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   Widescreen > 1440 / Desktop 1280-1440 / Laptop 1024-1280 /
   Tablet 768-1024 / Mobile < 768 / Small mobile < 480
   ========================================================= */

/* Widescreen enhancement */
@media (min-width: 1600px) {
  .tl-container {
    max-width: 1760px;
  }
}

@media (min-width: 1920px) {
  .tl-container {
    max-width: 1920px;
  }
}

/* Laptop / small desktop */
@media (max-width: 1200px) {
  .tl-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .tl-header {
    gap: clamp(0.5rem, 2vw, 1.25rem);
    min-height: 68px;
  }

  .tl-header .custom-logo,
  .tl-header .wp-block-site-logo img {
    max-height: 72px;
  }

  .tl-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tl-info-item:nth-child(3) {
    border-left: none;
  }

  .tl-info-item {
    border-bottom: 1px solid var(--tl-line);
    padding-bottom: 1.4rem;
    margin-bottom: 0.4rem;
  }

  .tl-split,
  .tl-insta-split,
  .tl-reviews-split {
    grid-template-columns: 1fr;
  }

  .tl-split.tl-split-reverse > :first-child {
    order: 0;
  }

  .tl-split-media,
  .tl-image-frame {
    min-height: 280px;
    order: -1;
  }

  .tl-food-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tl-card-grid,
  .tl-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tl-insta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tl-menu-grid {
    grid-template-columns: 1fr;
  }

  .tl-contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .tl-header {
    gap: 0.5rem;
    min-height: 60px;
  }

  .tl-header .custom-logo,
  .tl-header .wp-block-site-logo img {
    max-height: 56px;
  }

  .tl-phone-btn span {
    display: none;
  }

  .tl-phone-btn {
    padding: 0.65rem;
    width: 48px;
  }

  .tl-hero {
    min-height: 620px;
  }

  .tl-hero::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.82) 100%);
  }

  .tl-hero .wp-block-cover__inner-container {
    padding-bottom: 2.5rem;
  }

  .tl-info-grid {
    grid-template-columns: 1fr;
  }

  .tl-info-item {
    border-left: none !important;
  }

  .tl-food-grid,
  .tl-card-grid,
  .tl-event-grid,
  .tl-review-grid {
    grid-template-columns: 1fr;
  }

  .tl-insta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tl-footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .tl-rating-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .tl-form-wrap .tl-form-row {
    grid-template-columns: 1fr;
  }

  .wp-block-buttons {
    width: 100%;
  }

  .wp-block-button,
  .wp-block-button__link {
    width: 100%;
  }

  .tl-copyright-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  h1 {
    font-size: clamp(2.1rem, 1.7rem + 5vw, 2.8rem);
  }

  .tl-menu-item strong {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
