/*
 * site.css: the only stylesheet for this site (Golden Fish Inn, Consett).
 *
 * 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        containers
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         rare page-specific rules
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (the original's Elementor breakpoints; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *
 * Values come from the original Elementor CSS (post-14.css / post-13.css) and computed styles.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours */
  --color-gold: #c7930e;          /* header bar, mobile menu, welcome heading */
  --color-navy: #1e284c;          /* gradient start, app heading, button */
  --color-sky: #059cda;           /* gradient end, app text, button hover */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-link: #0000ee;          /* the original's unstyled (browser default) link colour */
  --color-footer-bg: #fafafa;
  --color-menu-hover: #f6f792;    /* mobile menu link hover */
  --gradient-brand: linear-gradient(90deg, var(--color-navy) 0%, var(--color-sky) 100%);

  /* Typography */
  --font-nav: "Roboto", sans-serif;
  --font-display: "Rancho", sans-serif;
  --font-text: "Open Sans", sans-serif;

  /* Layout */
  --container: 1140px;
  --container-header: 1280px;
  --container-app: 1400px;

  /* Motion */
  --duration: 0.3s;
  --ease: ease;
}

/* ============ 2. Fonts (self-hosted Google Fonts, woff2, latin) ============ */
@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: "Open Sans"; src: url("/assets/fonts/open-sans-latin-variable.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Rancho"; src: url("/assets/fonts/rancho-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-text); font-size: 16px; line-height: 1.5; color: var(--color-black); background: var(--color-white); overflow-x: hidden; }
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: var(--color-link); text-decoration: none; }
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; }

/* ============ 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-black); }
.skip-link:focus { left: 16px; }

/* === Component: icon-sprite (hidden SVG symbols in the header partial) === */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* === Component: site-header ===
 * Gold bar, not sticky. Three columns as the original: nav (52%), "Follow us" heading (23%),
 * social icons (24%). Tablet: nav + heading 50/50, icons wrap onto a second row (as the original).
 * Mobile: everything stacked and centred, nav collapses to a burger. */
.site-header { position: relative; z-index: 20; background: var(--color-gold); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; max-width: var(--container-header); margin-inline: auto; }
.site-header__nav { width: 52.031%; padding: 10px; position: relative; }
.site-header__follow { width: 22.922%; padding: 10px; }
.site-header__social { width: 24.345%; padding: 10px; }
.site-header__follow-title { font-family: var(--font-nav); font-weight: 600; font-size: 18px; line-height: 1; color: var(--color-white); text-align: end; }
@media (max-width: 1024px) {
  .site-header__nav { width: 50%; }
  .site-header__follow { width: 50%; padding: 5px 15px 15px; }
  .site-header__follow-title { font-size: 16px; }
}
@media (max-width: 767px) {
  .site-header__nav { width: 100%; padding: 15px; }
  .site-header__follow { width: 100%; }
  .site-header__social { width: 100%; }
  .site-header__follow-title { font-size: 13px; text-align: center; }
}

/* === Component: site-nav ===
 * Desktop/tablet: horizontal list, white underline fades in on hover (Elementor "underline / fade").
 * Mobile: burger (turns into X), full-width gold dropdown that slides open (grid 0fr -> 1fr, 0.3s). */
.site-nav { display: grid; justify-items: start; align-items: stretch; }
.site-nav__list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-nav__list li + li a { margin-inline-start: 10px; }
.site-nav__list li:not(:last-child) a { margin-inline-end: 10px; }
.site-nav__list a { position: relative; display: block; padding: 5px; font-family: var(--font-nav); font-weight: 700; font-size: 18px; line-height: 2.4em; letter-spacing: 1.8px; text-transform: uppercase; color: var(--color-white); }
.site-nav__list a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--color-white); opacity: 0; transition: opacity var(--duration) cubic-bezier(0.58, 0.3, 0.005, 1); }
.site-nav__list a:hover::after, .site-nav__list a:focus-visible::after { opacity: 1; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 6px; margin: 0 auto; border: 0; background: transparent; color: var(--color-white); cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; fill: currentColor; }
.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; }
@media (max-width: 1024px) {
  .site-nav__list a { font-size: 15px; }
}
@media (max-width: 767px) {
  .site-nav { justify-items: center; }
  .nav-toggle { display: inline-flex; }
  .site-nav__menu { position: absolute; left: 0; right: 0; top: calc(100% - 15px); display: grid; grid-template-rows: 0fr; visibility: hidden; background: var(--color-gold); transition: grid-template-rows var(--duration) ease, visibility 0s linear var(--duration); }
  .site-nav__menu.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows var(--duration) ease, visibility 0s; }
  .site-nav__menu.is-instant { transition: none; }
  .site-nav__list { display: block; min-height: 0; overflow: hidden; text-align: center; }
  .site-nav__list li a { margin: 0; padding: 25px 5px; font-size: 20px; }
  .site-nav__list a::after { display: none; }
  .site-nav__list a:hover, .site-nav__list a:focus-visible { color: var(--color-menu-hover); }
}

/* === Component: social-icons ===
 * Round white outline icons; hover: translucent white fill + grow (Elementor "grow", 0.3s).
 * Size = icon + 2 x padding: desktop 30px + 0.3em, tablet 16px + 0.4em, mobile 14px + 0.4em. */
.social-icons { --icon-size: 30px; --icon-padding: 0.3em; --gap: 12px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 var(--gap); list-style: none; margin: 0; padding: 15px; }
.social-icons__link { display: inline-flex; align-items: center; justify-content: center; font-size: var(--icon-size); width: calc(var(--icon-size) + 2 * var(--icon-padding)); height: calc(var(--icon-size) + 2 * var(--icon-padding)); border: 2px solid var(--color-white); border-radius: 50%; background: rgb(0 0 0 / 0.01); color: var(--color-white); transition: background-color var(--duration), transform var(--duration); }
.social-icons__link svg { width: 1em; height: 1em; fill: currentColor; }
.social-icons__link:hover { background: rgb(255 255 255 / 0.46); transform: scale(1.1); }
@media (max-width: 1024px) {
  .social-icons { --icon-size: 16px; --icon-padding: 0.4em; --gap: 9px; }
}
@media (max-width: 767px) {
  .social-icons { --icon-size: 14px; --gap: 8px; justify-content: center; }
}

/* === Component: wave (Elementor "wave-brush" shape divider, white) ===
 * <div class="wave wave--bottom"><svg viewBox="0 0 283.5 27.8" preserveAspectRatio="none"><use href="#wave-brush"/></svg></div>
 * Hidden on mobile (height 0 in the original). */
.wave { position: absolute; left: 0; width: 100%; overflow: hidden; line-height: 0; direction: ltr; pointer-events: none; }
.wave svg { display: block; position: relative; left: 50%; width: calc(100% + 1.3px); fill: var(--color-white); transform: translateX(-50%); }
.wave--top { top: -1px; z-index: 2; }
.wave--bottom { bottom: -1px; transform: rotate(180deg); }
.wave--bottom svg { width: calc(110% + 1.3px); height: 130px; transform: translateX(-50%) rotateY(180deg); }
@media (max-width: 1024px) {
  .wave svg { height: 130px; }
}
@media (max-width: 767px) {
  .wave { display: none; }
}

/* === Component: hero (gradient band with the large logo and a wave at the bottom) === */
.hero { position: relative; background: var(--gradient-brand); padding: 20px 0 200px; text-align: center; }
.hero__inner { padding: 10px; }
.hero__logo { display: inline-block; vertical-align: top; }
.hero__logo img { width: 480px; }
@media (max-width: 1024px) {
  .hero { padding: 50px 50px 150px; }
  .hero__inner { padding: 0; }
  .hero__logo img { width: min(264px, 33vw - 33px); }
}
@media (max-width: 767px) {
  .hero { padding: 0 0 50px; }
  .hero__inner { padding: 50px 20px; }
  .hero__logo { display: block; padding: 30px; }
  .hero__logo img { width: 100%; }
}

/* === Component: display-heading (Rancho, uppercase, faux-bold as the original) === */
.display-heading { font-family: var(--font-display); font-weight: 700; font-size: 68px; line-height: 42px; letter-spacing: 5px; text-transform: uppercase; text-align: center; }
.display-heading--gold { color: var(--color-gold); }
.display-heading--navy { color: var(--color-navy); }

/* === Component: welcome (award badge, heading, 3-image gallery) === */
.welcome { padding: 100px 0; text-align: center; }
.welcome__award { width: 250px; margin: 0 auto 60px; }
.welcome .display-heading { margin-bottom: 62px; }
@media (max-width: 1024px) {
  .welcome { padding: 100px 25px; }
  .welcome .display-heading { font-size: 37px; }
}
@media (max-width: 767px) {
  .welcome { padding: 50px 20px; }
  .welcome .display-heading { font-size: 26px; }
}

/* === Component: gallery (GLightbox; one shared slideshow; 3 columns, stacked on mobile) === */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; margin: 0; padding: 0; list-style: none; }
.gallery figure { margin: 0; }
.gallery a { display: block; }
.gallery img { width: 100%; }
@media (max-width: 767px) {
  .gallery { grid-template-columns: 1fr; }
}

/* === Component: app (FREE Mobile App: text + button left, award badge right; badge first on mobile) === */
.app { padding: 0 0 62px; }
.app__inner { display: grid; grid-template-columns: 49.857% 21.357% 28.422%; align-items: center; max-width: var(--container-app); min-height: 70vh; margin-inline: auto; }
.app__text { grid-column: 1; text-align: center; }
.app__badge { grid-column: 3; }
.app__badge img { width: 100%; }
.app .display-heading { margin-bottom: 62px; }
.app__lead { font-family: var(--font-text); font-weight: 700; font-size: 25px; line-height: 42px; color: var(--color-sky); margin-bottom: 46px; }
@media (max-width: 1024px) {
  .app { padding: 0 25px; }
  .app__inner { min-height: 675px; }
  .app .display-heading { font-size: 38px; }
  .app__lead { font-size: 21px; }
}
@media (max-width: 767px) {
  .app { padding: 5px 25px 50px; }
  .app__inner { display: flex; flex-direction: column-reverse; align-items: stretch; justify-content: center; min-height: 612px; }
  .app .display-heading { font-size: 42px; line-height: 68px; margin: 26px 0 20px; }
  .app__lead { font-size: 20px; }
}

/* === Component: button (outline pill, navy; hover: sky fill, white text, grow 0.3s) === */
.button { display: inline-block; padding: 20px 40px; border: 5px solid var(--color-navy); border-radius: 50px; background: rgb(255 255 255 / 0); box-shadow: 0 3px 6px 0 rgb(0 0 0 / 0.1); font-family: var(--font-text); font-weight: 700; font-size: 18px; line-height: 1; letter-spacing: 0.5px; color: var(--color-navy); text-align: center; transition: all var(--duration); }
.button:hover, .button:focus-visible { background: var(--color-sky); color: var(--color-white); border-color: rgb(255 255 255 / 0); transform: scale(1.1); }

/* === Component: contact (gradient band: logo, address, phone, hours | map; wave at the top) === */
.contact { position: relative; background: var(--gradient-brand); padding: 250px 0 80px; }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.contact__info { padding: 10px; text-align: center; color: var(--color-white); }
.contact__map { padding: 0 100px 0 0; }
.contact__logo { width: 230px; margin: 0 auto 46px; }
.contact__address { font-weight: 600; font-size: 16px; line-height: 32px; margin-bottom: 20px; }
.contact__hours { font-weight: 600; font-size: 16px; line-height: 42px; }
.contact__hours strong { font-weight: 900; }
@media (max-width: 1024px) {
  .contact { padding: 150px 20px 50px; }
  .contact__map { padding: 0; }
}
@media (max-width: 767px) {
  .contact { padding: 50px 0; }
  .contact__inner { grid-template-columns: 1fr; }
  .contact__info { padding: 50px; }
  .contact__map { padding: 0 15px 50px; }
}

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

/* === Component: site-footer (bar: copyright left, credit right; stacked and centred on mobile) === */
.site-footer { background: var(--color-footer-bg); }
.site-footer__inner { display: grid; grid-template-columns: 1fr 1fr; max-width: var(--container); margin-inline: auto; }
.site-footer h2 { padding: 10px; font-family: var(--font-text); font-weight: 300; font-size: 16px; line-height: 26px; color: var(--color-black); }
.site-footer__copyright { text-align: start; }
.site-footer__credit { text-align: end; }
.site-footer__credit a { color: var(--color-black); font-weight: 400; }
@media (max-width: 767px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__copyright, .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: center; text-align: center; }
.contact-email__address { font-weight: 600; word-break: break-word; }

/* === Component: lightbox (GLightbox styling to resemble Elementor's dark lightbox) === */
.glightbox-clean .gslide-description { background: transparent; }
.glightbox-clean .gslide-title { color: var(--color-white); font-family: var(--font-text); font-size: 16px; text-align: center; margin: 0; }
.glightbox-clean .gdesc-inner { padding: 12px; }
.goverlay { background: rgb(0 0 0 / 0.92); }

/* === Component: reveal (GSAP animates these; hidden only once GSAP has loaded) === */
.reveal-ready [data-reveal] { visibility: hidden; }

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

/* === Page: 404 === */
.not-found { padding: 100px 20px; text-align: center; }
.not-found .display-heading { margin-bottom: 42px; }
.not-found p { font-weight: 700; font-size: 21px; line-height: 42px; color: var(--color-sky); margin-bottom: 30px; }

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