/*
 * site.css: the only stylesheet for thaidicqshack.je (Thai Dicq Shack, Le Dicq, St Saviour, Jersey).
 *
 * 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
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         rare page-specific rules: "=== Page: <path> ==="
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (Elementor defaults on the original; media queries can't use custom properties):
 *   mobile  ≤ 767px    tablet 768px–1024px    desktop ≥ 1025px
 *
 * Values come from the live page (computed styles, 2026-10-23, uncached) and, for the
 * "About us / Order Now" hero only, from the archived page CSS (Wayback 2024-01-17), because the
 * live hero is empty (Elementor Pro switched off on the server).
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.info-col--soft) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's computed styles) */
  --color-text: #000000;
  --color-text-soft: rgba(12, 12, 12, 0.86);   /* address, footer */
  --color-bg: #ffffff;
  --color-purple: #502b53;                     /* hero, app band, icons, rules, footer link */
  --color-purple-dark: #28162a;                /* Order Now button hover */
  --color-white: #ffffff;

  /* Typography */
  --font-serif: "Times New Roman", Times, serif;   /* hero, info headings (system font, as on the original) */
  --font-condensed: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --font-footer: "Open Sans", Arial, sans-serif;
  --font-body: var(--font-serif);

  /* Spacing */
  --container: 1140px;
  --gutter: 10px;          /* Elementor column padding */
  --widget-gap: 20px;      /* Elementor space between widgets */

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

/* ============ 2. Fonts ============ */
/* Self-hosted Google Fonts (latin subset, variable files cover the weights in use). */
@font-face { font-family: "Roboto Condensed"; src: url("/assets/fonts/roboto-condensed-latin-var.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("/assets/fonts/roboto-condensed-latin-italic-var.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/assets/fonts/open-sans-latin-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ============ 3. Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--color-text); background: var(--color-bg); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1; }
p, ul { margin: 0; }
a { color: inherit; text-decoration: none; transition: color var(--duration) var(--ease), background-color var(--duration) var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
/* Font Awesome 4.7 glyphs as inline SVG: 1em tall, width = glyph advance (as the icon font drew them) */
.icon { display: inline-block; height: 1em; width: 1em; fill: currentColor; flex: none; vertical-align: middle; }
.icon--facebook { width: 0.5714em; }
.icon--tripadvisor { width: 1.2857em; }
.icon--instagram { width: 0.8571em; }
.icon--calendar { width: 0.9286em; }
.icon--map { width: 1em; }
.icon--phone { width: 0.7857em; }

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

/* ============ 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: banner (repeating Thai pattern, social icons top-left, centred logo) === */
.banner { background: url("/wp-content/uploads/2018/09/thai-dicqbackground.png") center center repeat; padding: 0 0 75px; }
.banner__inner { padding: var(--gutter); }
.banner__logo { display: block; width: 525px; max-width: 100%; margin-inline: auto; }
.banner__logo img { display: block; width: 100%; }
@media (max-width: 1024px) {
  .banner { padding: 50px 0; }
  .banner__logo { width: 45%; }
}
@media (max-width: 767px) {
  .banner__logo { width: 100%; }
}

/* === Component: social-links (white Font Awesome icons on a transparent square, 50px) === */
.social-links { display: flex; flex-wrap: wrap; gap: 0 5px; margin-bottom: var(--widget-gap); padding: 0; list-style: none; }
.social-links__link { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 10%; font-size: 25px; color: var(--color-white); transition: opacity var(--duration) var(--ease); }
.social-links__link:hover { opacity: 0.9; }

/* === Component: hero ("About us" block with Order Now; the original's one-slide Elementor Pro slider) ===
 * Rebuilt from the archived page CSS (2024-01-17): #502b53, 400 / 289 / 330px tall plus a 50px band
 * below, Times New Roman, content 40% / 67% / 80% wide, white outline button. min-height (not a fixed
 * height) so the text is never clipped on narrow screens. */
.hero { background: var(--color-purple); padding-bottom: 50px; }
.hero__inner { display: flex; align-items: center; justify-content: center; min-height: 400px; padding: 50px; color: var(--color-white); text-align: center; }
.hero__content { max-width: 40%; }
.hero__heading { margin-bottom: 21px; font-family: var(--font-serif); font-size: 53px; font-weight: 400; line-height: 1; text-transform: uppercase; }
.hero__text { margin-bottom: 30px; font-family: var(--font-serif); font-size: 20px; line-height: 1.4; }
.hero__button { display: inline-block; padding: 10px 20px; border: 2px solid var(--color-white); border-radius: 2px; background: transparent; color: var(--color-white); font-family: var(--font-serif); font-size: 19px; line-height: 0.5em; }
.hero__button:hover, .hero__button:focus-visible { background: var(--color-purple-dark); color: var(--color-white); }
@media (max-width: 1024px) {
  .hero__inner { min-height: 289px; }
  .hero__content { max-width: 67%; }
  .hero__heading { font-size: 40px; }
  .hero__text { font-size: 17px; }
}
@media (max-width: 767px) {
  .hero__inner { min-height: 330px; }
  .hero__content { max-width: 80%; }
}

/* === Component: map (keyless Google Maps iframe, full width) === */
.map { display: block; width: 100%; height: 378px; border: 0; }
@media (max-width: 1024px) { .map { height: 250px; } }

/* === Component: info-columns (opening times / find us / contact us) === */
.info { background: var(--color-bg); padding: 100px 0; }
.info__inner { display: flex; align-items: center; max-width: var(--container); margin-inline: auto; }
.info-col { flex: 1 1 0; min-width: 0; padding: var(--gutter); text-align: center; }
.info-col--first { margin-right: 80px; }
.info-col--middle { margin-inline: 40px; }
.info-col--last { margin-left: 80px; }
.info-col__heading { margin-bottom: var(--widget-gap); font-family: var(--font-serif); font-size: 32px; font-weight: 300; line-height: 1; letter-spacing: 1px; text-transform: uppercase; color: var(--color-text); }
.info-col__icon { margin-bottom: 27px; /* 20px widget gap + the 7px the icon font line box added on the original */ font-size: 40px; line-height: 1; color: var(--color-purple); }
.info-col__icon .icon { vertical-align: top; }
.info-col__icon--phone .icon { transform: rotate(260deg); }
.info-col__text { font-family: var(--font-condensed); font-size: 18px; line-height: 1.5; letter-spacing: 0.8px; text-transform: uppercase; color: var(--color-text); }
.info-col__text--soft { color: var(--color-text-soft); }
.info-col__phone { padding: 10px; border-block: 2px solid var(--color-purple); }
.info-col__phone h2 { font-family: var(--font-condensed); font-size: 25px; font-weight: 400; line-height: 1; letter-spacing: 1px; color: var(--color-text); }
.info-col__phone a { color: var(--color-text); }
@media (max-width: 1024px) {
  .info { padding: 50px var(--gutter); }
  .info-col--first, .info-col--middle, .info-col--last { margin: 0; }
  .info-col__heading { font-size: 30px; }
  .info-col__text--hours { font-size: 14px; }
  .info-col__phone { padding: 20px 0; }
  .info-col__phone h2 { font-size: 30px; }
}
@media (max-width: 767px) {
  .info__inner { flex-direction: column; align-items: stretch; }
  .info-col { flex: none; }
  .info-col--first, .info-col--last { padding: 0 50px; }
  .info-col--middle { padding: 50px; }
  .info-col__heading { font-size: 35px; }
  .info-col__text { line-height: 1.66; }
}

/* === Component: app-band (purple "Search Thai Dicq Shack in the App Stores" block) === */
.app-band { background: var(--color-purple); padding: 80px; color: var(--color-white); }
.app-band__inner { max-width: var(--container); margin-inline: auto; padding: var(--gutter); text-align: center; }
.app-band h2 { margin-bottom: var(--widget-gap); font-family: var(--font-condensed); font-style: italic; font-weight: 400; font-size: 45px; line-height: 1; letter-spacing: 1px; color: var(--color-white); }
.app-band .app-band__title { font-size: 70px; }
.app-band .app-band__lead { font-size: 26px; }
.app-badges { display: flex; }
.app-badges__item { flex: 1 1 0; padding: var(--gutter); display: flex; }
.app-badges__item:first-child { justify-content: flex-end; }
.app-badges__item a { display: block; width: 40%; max-width: 112px; }
.app-badges__item img { display: block; width: 100%; }
@media (max-width: 1024px) {
  .app-band { padding: 40px 80px; }
  .app-band h2, .app-band .app-band__title { font-size: 40px; }
  .app-band .app-band__lead { font-size: 25px; }
  .app-badges__item a { width: 70%; max-width: 196px; }
}
@media (max-width: 767px) {
  .app-band { padding: 50px 20px; }
  .app-band h2 { font-size: 26px; }
  .app-band .app-band__title { font-size: 40px; }
  .app-band .app-band__lead { font-size: 16px; }
  .app-badges { flex-direction: column; }
  .app-badges__item, .app-badges__item:first-child { justify-content: center; }
}

/* === Component: site-footer (copyright bar) === */
.site-footer { background: var(--color-bg); padding: var(--gutter); }
.site-footer__inner { max-width: calc(var(--container) - 2 * var(--gutter)); margin-inline: auto; }
.site-footer__copyright { margin: 20px 0 22.5px; text-align: center; font-family: var(--font-footer); font-size: 15px; font-weight: 700; line-height: 1.5; letter-spacing: 0.8px; text-transform: uppercase; color: var(--color-text-soft); }
.site-footer__copyright a { color: var(--color-purple); text-decoration: underline; }
@media (max-width: 767px) {
  .site-footer__copyright { line-height: 1.66; }
}

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

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

/* === Page: /404.html === */
.not-found { background: var(--color-purple); padding: 100px 20px; text-align: center; color: var(--color-white); }
.not-found h1 { margin-bottom: 21px; font-family: var(--font-serif); font-size: 53px; font-weight: 400; text-transform: uppercase; }
.not-found p { margin-bottom: 30px; font-size: 20px; line-height: 1.4; }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 1024px) { .not-found h1 { font-size: 40px; } .not-found p { font-size: 17px; } }

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

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