/* Golden Legacy Studios — shared styles.
   Holds the design tokens plus the components that need media queries or
   states (header, skip link) and therefore cannot live as inline styles.
   Page-specific styling stays in each page's own <style> block. */

:root {
  --gls-black: #0B0B0C;
  --gls-black-deep: #08080A;
  --gls-ink: #3A3D42;
  --gls-muted: #666B73;
  --gls-paper: #FAF8F4;
  --gls-rule: #E6E2D9;
  --gls-gold: #C9A24A;
  --gls-gold-light: #E3C878;
  --gls-gold-deep: #8A6A1F;
  --gls-on-gold: #14100A;
  --gls-serif: 'Libre Caslon Display', Georgia, serif;
  --gls-sans: 'Work Sans', system-ui, sans-serif;
  /* Set from JS to the real height of the sticky header (0 when it is not
     sticky), so anchors and the Services sub-nav sit just below it. */
  --gls-header-h: 71px;
}

/* ---- Base reset (previously copy-pasted into every page) ---------------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #FFFFFF; color: var(--gls-ink); font-family: var(--gls-sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--gls-gold-deep); text-decoration: none; }
a:hover { color: var(--gls-black); }
::selection { background: var(--gls-gold); color: var(--gls-on-gold); }

html { scroll-padding-top: var(--gls-header-h); }

/* Keyboard focus that is visible on both the light and the dark sections. */
:focus-visible { outline: 2px solid var(--gls-gold-deep); outline-offset: 3px; }
.gls-header :focus-visible,
.gls-footer :focus-visible { outline-color: var(--gls-gold-light); }

/* ---- Skip link ---------------------------------------------------------- */
.gls-skip {
  position: absolute; left: 12px; top: 0; z-index: 100;
  transform: translateY(-160%);
  background: var(--gls-gold); color: var(--gls-on-gold);
  padding: 12px 18px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
}
.gls-skip:focus { transform: translateY(12px); }

/* ---- Header ------------------------------------------------------------- */
.gls-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--gls-black);
  border-bottom: 1px solid rgba(201,162,74,0.28);
}
.gls-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
}
.gls-brand { display: flex; align-items: center; gap: 12px; color: #FFFFFF; flex-shrink: 0; }
.gls-brand:hover { color: #FFFFFF; }
.gls-brand-name { font-family: var(--gls-serif); font-size: 19px; white-space: nowrap; }
.gls-nav {
  margin-left: auto;
  display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.gls-nav a {
  color: rgba(255,255,255,0.72); padding: 6px 0; border-bottom: 1px solid transparent;
}
.gls-nav a:hover { color: #FFFFFF; }
.gls-nav a[aria-current="page"] { color: #FFFFFF; border-bottom-color: var(--gls-gold); }
.gls-cta {
  background: var(--gls-gold); color: var(--gls-on-gold);
  padding: 11px 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.gls-cta:hover { background: var(--gls-gold-light); color: var(--gls-on-gold); }

/* Tablet and below: two compact rows instead of a tall wrapped block —
   brand + call-to-action on top, the four page links spread underneath. */
@media (max-width: 899px) {
  .gls-header-inner { padding: 10px 16px; gap: 4px 12px; }
  .gls-brand { order: 1; gap: 10px; }
  .gls-brand-name { font-size: 17px; }
  .gls-cta { order: 2; margin-left: auto; padding: 10px 14px; font-size: 11px; letter-spacing: 0.1em; }
  .gls-nav {
    order: 3; flex: 1 0 100%; margin-left: 0; gap: 0;
    justify-content: space-between; font-size: 11px; letter-spacing: 0.1em;
  }
  .gls-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; }
}

/* Phones: let the header scroll away instead of permanently costing screen. */
@media (max-width: 599px) {
  .gls-header { position: static; }
}
/* Small phones: tighten row one so brand + call-to-action stay side by side. */
@media (max-width: 420px) {
  .gls-brand { gap: 8px; }
  .gls-brand-name { font-size: 15px; }
  .gls-cta { padding: 9px 12px; font-size: 10px; letter-spacing: 0.08em; }
}
/* Very narrow phones: the Contact link directly below covers the same action. */
@media (max-width: 354px) {
  .gls-cta { display: none; }
}
@media (max-height: 480px) {
  .gls-header { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
