/*
 * site.css: the only stylesheet for marmaristurkishrestaurant.co.uk.
 *
 * Sections, in order:
 *   1. Tokens        colours, fonts, spacing, breakpoints (custom properties)
 *   2. Fonts         @font-face for self-hosted fonts
 *   3. Base          reset and element defaults
 *   4. Layout        container, sections, grids
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         rare page-specific rules: "=== Page: <path> ==="
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (the original's Elementor defaults; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *   The burger menu is used at <= 1024px (as on the original).
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.contact--standalone) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's computed styles) */
  --color-text: #1f2c35;          /* body copy, nav links, menu headings */
  --color-slate: #56788e;         /* About heading, buttons, app card, footer bar */
  --color-slate-dark: #32677e;    /* gallery page heading */
  --color-header-rule: #547c8c;   /* 2px line under the header on /gallery/ */
  --color-orange: #ee751e;        /* "Get in touch" card */
  --color-band: #f2f2f2;          /* "Our menu" grey band */
  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-nav-text: #33373d;      /* mobile dropdown links, burger icon */
  --color-nav-active: #3f444b;    /* mobile dropdown active/open item */
  --color-hero-overlay: rgb(0 0 0 / 0.3);

  /* Typography */
  --font-body: "Roboto", Arial, sans-serif;
  --font-display: "Concert One", "Roboto", Arial, sans-serif;
  --text-base: 1.1rem;            /* 17.6px body copy */
  --leading: 1.7;                 /* 29.92px on 17.6px */
  --leading-menu: 1.6;            /* menu descriptions */

  /* Spacing and shape */
  --container: 1140px;            /* Elementor boxed width */
  --col-pad: 10px;                /* Elementor column padding */
  --section-pad-x: 30px;          /* side padding of sections at <= 1024px */
  --radius: 5px;

  /* Motion (match the original's timings) */
  --duration: 300ms;
  --duration-nav-grow: 400ms;
  --ease: ease;
}

/* ============ 2. Fonts ============ */
/* Self-hosted Google Fonts (latin subset). Roboto is the variable file (weights 300-600 used). */
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-latin-variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Concert One"; src: url("/assets/fonts/concert-one-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ============ 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-size: 1rem; line-height: 1.5; color: var(--color-text); background: var(--color-bg); overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1; }
p { margin: 0; }
a { color: inherit; transition: color var(--duration) var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-slate); outline-offset: 2px; }

/* ============ 4. Layout ============ */
/* Elementor-style boxed container: 1140px wide, columns inside carry 10px padding. */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
@media (max-width: 1024px) {
  .container--padded { padding-inline: var(--section-pad-x); }
}
/* Empty spacer rows between sections (Elementor spacer widgets: 50px + 2 x 10px column padding). */
.spacer { height: 70px; }
@media (max-width: 1024px) { .spacer { height: 50px; } }
.spacer--wide { margin-block: 45px; } /* spacer row with 45px section margins (before "Get in touch") */

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

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

/* === Component: site-header (static, not sticky; burger at <= 1024px) === */
.site-header { position: relative; z-index: 50; background: var(--color-bg); }
.site-header__inner { display: flex; align-items: center; max-width: var(--container); margin-inline: auto; }
.site-header__logo { flex: 0 0 28.333%; padding: var(--col-pad); }
.site-header__logo img { width: 115px; max-width: 100%; }
.site-header__nav-col { flex: 1 1 auto; padding: var(--col-pad); display: flex; justify-content: flex-end; }
.nav-toggle { display: none; }
@media (max-width: 1024px) {
  .site-header { padding: 15px 20px; }
  .site-header__logo { flex-basis: 15%; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin: -5.5px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--color-nav-text);
  }
  .nav-toggle__box { display: inline-flex; align-items: center; justify-content: center; width: 33px; height: 33px; border-radius: 3px; background: rgb(0 0 0 / 0.05); }
  .nav-toggle__icon { width: 22px; height: 22px; }
  .nav-toggle__icon--close { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon--open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon--close { display: block; }
}
@media (max-width: 767px) {
  .site-header__logo { flex-basis: 50%; }
}

/* === Component: site-nav (desktop horizontal menu with hover dropdown; mobile slide-down list) === */
.site-nav__list { display: flex; flex-wrap: wrap; justify-content: flex-end; list-style: none; margin: 0; padding: 0; }
.site-nav__item { position: relative; }
.site-nav__link {
  display: flex; align-items: center; padding: 13px 20px; border: 0; background: none; cursor: pointer;
  font: 400 1.1rem/20px var(--font-body); color: var(--color-text); text-decoration: none;
  transition: transform var(--duration-nav-grow) var(--ease);
}
.site-nav__caret { width: 10px; height: 16px; margin-left: 10px; fill: currentColor; }
.site-nav__sub { list-style: none; margin: 0; padding: 0; background: var(--color-white); }
.site-nav__sub a { display: block; padding: 13px 28px; font: 500 13px/20px var(--font-body); color: var(--color-text); text-decoration: none; white-space: nowrap; }

@media (min-width: 1025px) {
  /* Hover "grow" pointer, as Elementor's e--animation-grow */
  .site-nav__link:hover, .site-nav__link:focus-visible, .site-nav__item--has-sub:hover > .site-nav__link { transform: scale(1.2); }
  .site-nav__sub { position: absolute; top: 100%; left: 0; min-width: 100%; z-index: 60; visibility: hidden; opacity: 0; transition: opacity 150ms var(--ease), visibility 0s linear 150ms; }
  .site-nav__item--has-sub:hover > .site-nav__sub,
  .site-nav__item--has-sub.is-open > .site-nav__sub { visibility: visible; opacity: 1; transition-delay: 0s; }
  .site-nav__sub a:hover { color: var(--color-slate); }
}

@media (max-width: 1024px) {
  /* Full-width list below the burger (Elementor "stretch" dropdown), slides open with a 0fr -> 1fr grid row.
     align-items: stretch keeps the list clipped while the row animates. */
  .site-header__nav-col { position: static; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: calc(50% + 68.5px); z-index: 60;
    display: grid; grid-template-rows: 0fr; align-items: stretch; background: var(--color-white);
    transition: grid-template-rows var(--duration) var(--ease), visibility 0s linear var(--duration); visibility: hidden;
  }
  .site-nav.is-open { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
  .site-nav__list { min-height: 0; overflow: hidden; display: block; }
  .site-nav__link { width: 100%; padding: 10px 20px; color: var(--color-nav-text); text-align: left; min-height: 40px; }
  .site-nav__link[aria-current="page"], .site-nav__link[aria-expanded="true"], .site-nav__link:hover { background: var(--color-nav-active); color: var(--color-white); }
  .site-nav__sub { display: none; }
  .site-nav__item--has-sub.is-open > .site-nav__sub { display: block; }
  .site-nav__sub a { padding: 10px 20px 10px 28px; font-size: 11.05px; color: var(--color-nav-text); }
  .site-nav__sub a:hover { background: var(--color-nav-active); color: var(--color-white); }
}

/* === Component: hero (home banner: background image + 30% black overlay) === */
.hero { position: relative; display: flex; align-items: center; justify-content: center; min-height: 540px; padding: var(--col-pad); background: url("/wp-content/uploads/2021/05/banner-image.jpg") left top / cover no-repeat; text-align: center; color: var(--color-white); }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--color-hero-overlay); }
.hero__inner { position: relative; padding-bottom: 33px; }
.hero__title { font: 600 52px/1 var(--font-display); }
.hero__tagline { margin-top: 13px; font: 700 32.76px/normal var(--font-display); }

/* === Component: about (text column + image column; the image is hidden on phones, as on the original) === */
.about { display: flex; align-items: flex-start; max-width: var(--container); margin-inline: auto; }
.about__text { flex: 0 0 50%; padding: var(--col-pad); margin-right: 40px; flex-basis: calc(50% - 40px); }
.about__media { flex: 1 1 50%; padding: var(--col-pad); }
.about__media img { width: 100%; border-radius: var(--radius); }
.about__title { margin-top: -4px; font: 700 32.76px/normal var(--font-display); color: var(--color-slate); }
.about .rich-text { margin-top: 22.76px; }
.about .button { margin-top: 20px; }
@media (max-width: 1024px) {
  .about { flex-wrap: wrap; padding-inline: var(--section-pad-x); }
  .about__text { flex-basis: calc(100% - 40px); }
  .about__media { flex-basis: 100%; }
  .about__media img { width: auto; margin-inline: auto; }
}
@media (max-width: 767px) {
  .about__media { display: none; }
}

/* === Component: rich-text (body copy: Roboto Light 17.6px) === */
.rich-text { display: flow-root; font-size: var(--text-base); font-weight: 300; line-height: var(--leading); }
.rich-text p { margin-block: 17.6px; }
.rich-text--white { color: var(--color-white); }
.rich-text--flush > :first-child { margin-top: 0; }

/* === Component: button (solid slate, 5px radius) === */
.button { display: inline-block; padding: 15px 30px; border-radius: var(--radius); background: var(--color-slate); color: var(--color-white); font: 500 16px/16px var(--font-body); text-decoration: none; }
/* Outline variant (app download buttons): white 1px border, transparent fill, Roboto Light */
.button--outline { padding: 15px 30px; border: 1px solid var(--color-white); background: transparent; font-weight: 300; transition: border-color 200ms ease-in-out, background-color 200ms ease-in-out; }
.button-group { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 1024px) {
  .button-group { flex-direction: column; align-items: flex-start; }
}

/* === Component: menu-list ("Our menu" grey band, 4 / 2 / 1 columns) === */
.menu-list { background: var(--color-band); padding: 50px 0 50px; }
.menu-list__title { padding-bottom: 40px; font: 600 42px/1 var(--font-display); color: var(--color-text); }
.menu-list__grid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 30px; }
.menu-list__item { padding-right: 30px; }
.menu-list__item:nth-child(4n) { padding-right: 0; }
.menu-list__name { font: 600 20px/1 var(--font-display); color: var(--color-text); }
.menu-list__desc { margin-block: 17.6px; font-size: var(--text-base); font-weight: 300; line-height: var(--leading-menu); }
@media (max-width: 1024px) {
  .menu-list { padding: 30px var(--section-pad-x) 20px; }
  .menu-list__title { padding-bottom: 30px; }
  .menu-list__grid { grid-template-columns: repeat(2, 1fr); row-gap: 0; }
  /* As the original: the 1st, 4th and 8th items run full column width, the others keep a 30px right gap */
  .menu-list__item { padding-bottom: 10px; }
  .menu-list__item:nth-child(7), .menu-list__item:nth-child(8) { padding-bottom: 0; }
  .menu-list__item:nth-child(3), .menu-list__item:nth-child(4) { padding-bottom: 20px; } /* end of the original's first menu row */
  .menu-list__item:first-child { padding-right: 0; }
}
@media (max-width: 767px) {
  .menu-list__grid { grid-template-columns: 1fr; }
  .menu-list__item:nth-child(3) { padding-bottom: 0; }
}

/* === Component: app-promo (phone mock-up + image with overlapping slate card) === */
.app-promo { display: flex; align-items: center; max-width: var(--container); margin-inline: auto; }
.app-promo__device { flex: 0 0 38.509%; min-width: 0; padding: var(--col-pad); display: flex; justify-content: center; }
.app-promo__body { flex: 0 0 61.491%; min-width: 0; padding: var(--col-pad); }
.app-promo__image img { width: 100%; border-radius: var(--radius); }
.app-promo__card { position: relative; margin: -240px 30px 30px; padding: 30px; border-radius: var(--radius); background: var(--color-slate); color: var(--color-white); }
.app-promo__title { font: 600 42px/1 var(--font-display); }
.app-promo__card .rich-text { margin-block: 20px; }
@media (max-width: 1024px) {
  .app-promo { padding-inline: var(--section-pad-x); }
  .app-promo__image { display: none; }
  .app-promo__card { margin: 0; }
}
@media (max-width: 767px) {
  .app-promo { flex-direction: column; align-items: stretch; }
  .app-promo__device, .app-promo__body { flex: none; }
}

/* === Component: phone-frame (CSS stand-in for the Elementor Extras "devices" widget, jet black skin) === */
.phone-frame { position: relative; width: 272px; max-width: calc(100% - 5px); aspect-ratio: 272 / 574; margin-inline: 2.5px; border-radius: 40px; background: #000; }
.phone-frame::before { /* speaker */
  content: ""; position: absolute; top: 36px; left: 50%; width: 44px; height: 3px; margin-left: -22px; border-radius: 2px; background: #3a3a3a;
}
.phone-frame::after { /* home button */
  content: ""; position: absolute; bottom: 15px; left: 50%; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; background: #333;
}
.phone-frame__camera { position: absolute; top: 34px; left: calc(50% - 47px); width: 6px; height: 6px; border-radius: 50%; background: #3a3a3a; }
.phone-frame__btn { position: absolute; width: 3px; background: #000; }
.phone-frame__btn--mute { left: -3px; top: 72px; height: 15px; }
.phone-frame__btn--vol-up { left: -3px; top: 122px; height: 31px; }
.phone-frame__btn--vol-down { left: -3px; top: 163px; height: 31px; }
.phone-frame__btn--power { right: -3px; top: 122px; height: 31px; }
.phone-frame__screen { position: absolute; top: 11.7%; bottom: 12.2%; left: 4.8%; right: 4.8%; overflow: hidden; display: flex; align-items: flex-end; background: #111; }
.phone-frame__screen img { width: 100%; }

/* === Component: contact (orange "Get in touch" card; overlaps the map on the home page) === */
.contact { position: relative; z-index: 10; max-width: 1520px; margin-inline: auto; }
.contact__card { width: 35.921%; padding: 30px; border-radius: var(--radius); background: var(--color-orange); color: var(--color-white); }
.contact__title { font: 600 42px/1 var(--font-display); }
.contact__card .rich-text { margin-top: 20px; }
.contact--over-map { margin-bottom: -424px; }
@media (max-width: 1024px) {
  .contact { padding-inline: var(--section-pad-x); }
  .contact__card { width: 70%; }
}
@media (max-width: 767px) {
  .contact__card { width: 100%; }
}

/* === Component: map (keyless Google Maps iframe, full width x 450px) === */
.map { display: block; width: 100%; height: 450px; border: 0; }

/* === Component: page-title (centred page heading, gallery) === */
.page-title { padding: var(--col-pad); text-align: center; font: 600 65px/1 var(--font-body); color: var(--color-slate-dark); }

/* === Component: gallery (5 / 2 / 1 square thumbnails, 24px gaps; GLightbox opens the full image) === */
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.gallery a { display: block; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 1024px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .gallery { grid-template-columns: 1fr; } }
/* GLightbox: match the original Elementor lightbox (dark overlay, white caption) */
.glightbox-clean .gslide-description { background: transparent; }
.glightbox-clean .gslide-title { margin: 0; color: #fff; font: 400 14px/1.4 var(--font-body); text-align: center; }
.glightbox-clean .gdesc-inner { padding: 12px 0 0; }
.goverlay { background: rgb(0 0 0 / 0.9); }

/* === Component: site-footer (slate bar: name left, credit right; stacked and centred on phones) === */
.site-footer { background: var(--color-slate); color: var(--color-white); }
.site-footer__inner { display: flex; max-width: var(--container); margin-inline: auto; }
.site-footer__col { flex: 1 1 50%; padding: var(--col-pad); }
.site-footer__col p { margin-block: 20px; font: 400 20px/normal var(--font-display); }
.site-footer__credit { text-align: right; }
.site-footer__credit a { color: inherit; text-decoration: none; }
.site-footer__credit a:hover { text-decoration: underline; }
@media (max-width: 767px) {
  .site-footer__inner { flex-direction: column; }
  .site-footer__col, .site-footer__credit { text-align: center; }
}

/* === Component: contact-email (replaces WordPress forms; none on this site, kept for future use) === */
.contact-email { display: grid; gap: 16px; justify-items: start; }
.contact-email__address { font-weight: 600; word-break: break-word; }
.contact-email__phone a { color: inherit; }

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

/* === Page: /gallery/ === */
.page-gallery .site-header { border-bottom: 2px solid var(--color-header-rule); }
.gallery-page { max-width: 1440px; margin: 60px auto; padding: var(--col-pad); }
.gallery-page .page-title { margin-bottom: 53px; padding: 0; }

/* ============ 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; }
}

/* === Page: /404.html (added by redirects-seo step) === */
.not-found { max-width: var(--container); margin: 60px auto 80px; padding: 0 var(--section-pad-x); text-align: center; }
.not-found .rich-text { margin-block: 20px 30px; }
.not-found__links { justify-content: center; }
@media (max-width: 1024px) { .not-found__links { flex-direction: row; align-items: center; } }
