/*
 * site.css: the only stylesheet for texantrio.co.uk.
 *
 * Sections, in order:
 *   1. Tokens        colours, fonts, spacing (custom properties)
 *   2. Fonts         @font-face for self-hosted fonts
 *   3. Base          reset and element defaults
 *   4. Layout        container, sections, columns, "stack" (Elementor-style widget spacing)
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         rare page-specific rules
 *   7. Utilities
 *
 * Breakpoints (the original Elementor ones; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *
 * Measurements come from the original's computed styles (design-system/orig-measure.json).
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours */
  --color-black: #000000;
  --color-ink: #171717;          /* header bar, shape divider, dark headings on white */
  --color-ink-2: #111111;        /* contact + footer background, dark button */
  --color-dark-overlaid: #070707;/* #000 with a #171717 overlay at 30% (about + info text sections) */
  --color-white: #ffffff;
  --color-nav-dropdown: #0f202a; /* phone dropdown background */
  --color-nav-active: #3f444b;   /* phone dropdown active/hover item */
  --color-nav-accent: #61ce70;   /* tablet nav hover/active (Elementor global accent) */

  /* Typography */
  --font-body: "EB Garamond", Garamond, "Times New Roman", serif;
  --font-nav: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;

  /* Layout */
  --container: 1140px;
  --widget-gap: 20px;            /* Elementor widget spacing */

  /* Motion */
  --duration: 300ms;
  --ease: ease;
}

/* ============ 2. Fonts ============ */
/* Google Fonts (SIL OFL), latin subset, self-hosted. */
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/eb-garamond-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ============ 3. Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-weight: 400; color: var(--color-ink); background: var(--color-white); }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; vertical-align: middle; border: 0; }
h1, h2, h3, h4 { font-family: var(--font-body); font-weight: 400; line-height: 1; margin: 0; }
a { color: var(--color-white); text-decoration: none; transition: color var(--duration) var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ============ 4. Layout ============ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
@media (max-width: 1024px) { .container { max-width: 1024px; } }

/* Two (or more) equal columns; stack below 768px like Elementor columns. */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.cols--middle { align-items: center; }

/* A column of "widgets": 20px between them (like Elementor), margins never collapse. */
.stack { display: flex; flex-direction: column; min-width: 0; }
.stack > * { margin: 0; }
.stack > *:not(:last-child) { margin-bottom: var(--widget-gap); }
.stack--center { justify-content: center; }

/* Text block (Elementor text editor): paragraphs keep the browser's 1em margins. */
.text p { margin: 1em 0; }

/* ============ 5. Components ============ */

/* === Component: skip-link === */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 8px 16px; background: var(--color-white); color: var(--color-ink); }
.skip-link:focus { left: 16px; }

/* === Component: site-header (desktop >= 1025px) === */
.site-header { position: relative; z-index: 3; background: var(--color-ink); padding-top: 30px; }
.site-header__inner { display: grid; grid-template-columns: 40% 20% 39.332%; align-items: end; }
.site-header__nav--left { padding-right: 50px; }
.site-header__nav--right { padding-left: 50px; }
.header-links { display: flex; justify-content: flex-end; gap: 45px; list-style: none; margin: 0; padding: 0; }
.site-header__nav--right .header-links { justify-content: flex-start; }
.header-links a { display: block; font-family: var(--font-nav); font-size: 1.1rem; line-height: normal; text-transform: uppercase; color: var(--color-white); }
.site-header__logo { position: relative; align-self: stretch; }
.site-header__logo img { position: absolute; top: -15px; left: 0; width: 100%; height: 220px; object-fit: contain; object-position: center; }
@media (max-width: 1024px) { .site-header { display: none; } }

/* === Component: nav-bar (compact header <= 1024px, fixed) === */
.nav-bar { display: none; }
@media (max-width: 1024px) {
  .nav-bar { display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 10; background: var(--color-ink); }
  .nav-bar__inner { position: relative; display: flex; align-items: center; justify-content: center; min-height: 66px; padding: 10px; }
  .nav-toggle { display: none; }
  .site-nav__list { display: flex; justify-content: center; list-style: none; margin: 0; padding: 0; }
  .site-nav a { position: relative; display: block; padding: 13px 20px; font-family: var(--font-nav); font-size: 1.2rem; line-height: 20px; text-transform: uppercase; color: var(--color-white); }
  /* Elementor "underline" pointer with fade */
  .site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--color-nav-accent); opacity: 0; transition: opacity var(--duration) var(--ease); }
  .site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: var(--color-nav-accent); }
  .site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current="page"]::after { opacity: 1; }
}
@media (max-width: 767px) {
  .nav-bar__inner { min-height: 53px; padding: 0 4.5px; justify-content: flex-end; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--color-white); cursor: pointer; }
  .nav-toggle__close { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
  /* Full-width dropdown under the bar; slides down (grid 0fr -> 1fr). align-items: stretch keeps the list clipped while it animates. */
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: grid; grid-template-rows: 0fr; align-items: stretch; visibility: hidden; background: var(--color-nav-dropdown); transition: grid-template-rows var(--duration) var(--ease), visibility 0s linear var(--duration); }
  .site-nav.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows var(--duration) var(--ease), visibility 0s; }
  .site-nav__clip { overflow: hidden; min-height: 0; }
  .site-nav__list { display: block; }
  .site-nav a { padding: 10px 20px; }
  .site-nav a::after { display: none; }
  .site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: var(--color-white); background: var(--color-nav-active); }
}

/* === Component: hero === */
.hero { position: relative; z-index: 2; display: flex; align-items: center; min-height: 600px; background-color: var(--color-ink); background-position: center; background-size: cover; text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 0.5); }
.hero__shape { position: absolute; top: -1px; left: 50%; width: calc(100% + 1.3px); height: 80px; transform: translateX(-50%); fill: var(--color-ink); pointer-events: none; }
.hero__inner { position: relative; padding: 10px; }
.hero__logo { display: none; margin-inline: auto; }
.hero__title { font-size: 5rem; color: var(--color-white); }
.hero__trustpilot { min-height: 52px; }
@media (max-width: 1024px) {
  .hero__shape { display: none; }
  .hero__logo { display: block; }
}
@media (max-width: 767px) { .hero__title { font-size: 2.4rem; } }

/* === Component: button (outlined, square) === */
.button { display: inline-block; padding: 15px 30px; border: 1px solid currentColor; border-radius: 0; background: transparent; font-family: var(--font-body); font-size: 1.2rem; line-height: 1; text-align: center; color: var(--color-white); }
.button--dark { color: var(--color-ink-2); }
.button-row { text-align: left; }
.button-row--center { text-align: center; }
@media (max-width: 767px) { .button-row .button { display: block; width: 100%; } }

/* === Component: photo-strip (four background photos under the hero) === */
.photo-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 400px; }
.photo-strip__item { background-position: center; background-repeat: no-repeat; background-size: cover; }
@media (max-width: 767px) { .photo-strip { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 150px; min-height: 600px; } }

/* === Component: section (dark/white bands and their padding) === */
.section { padding: 100px 0; }
.section--dark { background: var(--color-dark-overlaid); color: var(--color-white); }
.section--ink { background: var(--color-ink); color: var(--color-white); }
.section--ink-2 { background: var(--color-ink-2); color: var(--color-white); }
.section--white { background: var(--color-white); color: var(--color-ink); }
.section--menu { padding: 200px 0; }
.section--order { padding: 0; }
.section--contact { padding: 150px 0 50px; }
@media (max-width: 1024px) {
  .section, .section--menu, .section--order, .section--contact { padding: 100px 50px; }
}
@media (max-width: 767px) {
  .section, .section--menu { padding: 50px 25px; }
  .section--order { padding: 0 25px; }
  .section--contact { padding: 50px 20px; }
}

/* === Component: section-title === */
.section-title { font-size: 3rem; }
.section-title--center { text-align: center; }
.section-subtitle { font-size: 2rem; }
.section-subtitle--spaced { margin-top: 25px !important; }
.small-title { font-size: 1.5rem; }
@media (max-width: 767px) {
  .section-title { font-size: 2rem; }
  .section-subtitle { font-size: 1.4rem; }
}

/* === Component: intro-cols (About Us / Our Best / Our Service) === */
.intro-cols__col--first { padding-right: 80px; }
.intro-cols__col--second { padding-left: 80px; }
.intro-cols__text { font-size: 1.3rem; line-height: 1.7em; }
.intro-cols__text--loose { line-height: 1.9em; }
.intro-cols__text--spaced { margin-bottom: 30px !important; }
@media (max-width: 767px) { .intro-cols__col--second .section-title { margin-top: 40px; } }

/* === Component: gallery (Elementor image gallery; GLightbox opens a.glightbox) === */
.gallery-block { padding: 10px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; align-items: start; }
.gallery--1 { grid-template-columns: minmax(0, 1fr); text-align: center; }
.gallery a { display: block; }
.gallery img { display: block; height: auto; }
.gallery:not(.gallery--1) img { width: 100%; }
/* one-column gallery: image at its natural size (width attribute), centred */
.gallery--1 img { display: inline-block; }
@media (max-width: 767px) { .gallery { grid-template-columns: minmax(0, 1fr); } }

/* === Component: menu-list (dish rows: image + name + description, two per row) === */
.menu-row { display: grid; grid-template-columns: 15% 35% 15% 35%; padding-bottom: 40px; }
.menu-item__img { text-align: center; }
.menu-item__img--start { text-align: left; }
.menu-item__body { display: flex; flex-direction: column; }
.menu-item__name { margin: 20px 0 var(--widget-gap); font-size: 1.5rem; color: var(--color-ink); }
.menu-item__desc { font-size: 1.2rem; line-height: 1.5em; color: var(--color-ink); }
.menu-item__desc p { margin: 1em 0; }
.menu-item__fixed-size { font-size: 19.2px; } /* the original pinned some descriptions to 19.2px at every width */
.stack > .menu-list { margin-bottom: 0; }
@media (max-width: 1024px) { .menu-item__desc { font-size: 0.9rem; } }
@media (max-width: 767px) {
  .menu-row { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
  .menu-item__name { font-size: 0.9rem; }
  .menu-item__desc { font-size: 0.8rem; }
}

/* === Component: menu-section (white "Our Menu" band) === */
.menu-section__col { padding: 0; }
.menu-section__gallery { margin-bottom: 100px !important; }
.menu-section__posters { margin-top: 100px; margin-bottom: 0 !important; }
@media (max-width: 767px) { .menu-section__col { padding: 25px; } }

/* === Component: fhrs (Food Standards Agency badge embed) === */
.fhrs { max-width: 300px; width: 100%; margin-inline: auto; font-size: 16px; }
.fhrs img { vertical-align: baseline; } /* badge sits on the text baseline, as on the original */

/* === Component: info-text (long text block on black) === */
.info-text { font-size: 1.3rem; line-height: 1.9em; color: var(--color-white); }
.info-text p { margin: 0 0 1.9em; }
.info-text p:last-child { margin-bottom: 0; }

/* === Component: media-split (image beside text: Order Online / Download Our App) === */
.media-split { padding: 100px 0; }
.media-split--last { padding: 0 0 100px; }
.media-split__media img { display: block; width: 100%; height: auto; }
.media-split__media--end { align-self: end; }
.media-split__body { padding: 50px; }
.media-split__text { font-size: 1.2rem; line-height: 1.5em; }
.media-split__badges { text-align: left; }
.media-split__badges img { display: inline-block; }
@media (max-width: 767px) {
  .media-split__body { padding: 0; }
  .media-split__body .section-title, .media-split__text { text-align: center; }
  .media-split__text { font-size: 0.9rem; }
  .media-split__badges { padding-bottom: 20px; }
  .media-split__media--end { margin-top: 10px; }
}

/* === Component: contact (Get In Touch: address, phone, hours, email, links, map) === */
.contact__text { font-size: 1.2rem; line-height: 1.6em; }
.contact__links { font-size: 1.2rem; line-height: normal; }
.hours { border-collapse: separate; border-spacing: 2px; font: inherit; color: inherit; }
.hours td { padding: 1px; text-align: left; vertical-align: middle; }

/* === Component: map === */
.map { display: block; width: 100%; height: 870px; border: 0; }
@media (max-width: 767px) { .map { height: 300px; } }

/* === Component: contact-email (for a future contact form; not used on the original) === */
.contact-email { display: grid; gap: 16px; justify-items: start; }
.contact-email__address { word-break: break-word; }

/* === Component: site-footer === */
.site-footer { background: var(--color-ink-2); color: var(--color-white); }
.site-footer__inner { display: grid; grid-template-columns: 50% 50%; align-items: center; }
.site-footer__col { display: flex; align-items: center; padding: 10px; }
.site-footer__col--end { justify-content: flex-end; }
.site-footer p { margin: 1em 0; font-size: 1.2rem; line-height: normal; }
.site-footer__credit { margin: 0 !important; }
@media (max-width: 767px) {
  .site-footer__inner { grid-template-columns: 55% 45%; }
  .site-footer p { font-size: 14px; }
}

/* === Component: not-found (404 page) === */
.not-found { text-align: center; }
.section.not-found { min-height: 70vh; padding-top: 260px; } /* clears the overlapping logo (desktop) / fixed bar (tablet, phone) */
@media (max-width: 1024px) { .section.not-found { padding-top: 150px; } }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; list-style: none; margin: 30px 0 0; padding: 0; font-size: 1.2rem; }
.not-found__links a { color: var(--color-white); text-decoration: underline; }

/* === Component: popup (starter; unused) === */
.popup { border: 0; padding: 30px; max-width: min(90vw, 600px); }
.popup::backdrop { background: rgb(0 0 0 / 0.6); }

/* === Component: reveal (starter; unused, GSAP not loaded) === */
.reveal-ready [data-reveal] { visibility: hidden; }

/* === Component: lightbox (GLightbox overrides, closer to the Elementor lightbox) === */
.glightbox-clean .goverlay { background: rgb(0 0 0 / 0.92); }

/* ============ 6. Pages ============ */

/* ============ 7. Utilities ============ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.text-center { text-align: center; }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { visibility: visible !important; }
}
