/* Twin Harbour Interactive – static rebuild of the Salient/WPBakery theme.
   Values are taken from the live site's computed styles; desktop breakpoint matches Salient (1000px). */

:root {
  --orange: #f36f32;
  --orange-button: #ea6725;
  --black: #000;
  --ink: #282828;
  --charcoal: #232323;
  --white: #fff;

  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --font-nav: "Montserrat", system-ui, sans-serif;

  --gutter: clamp(16px, 4.2vw, 60px);
  --container: 2000px;
  --header-h: 80px;
  --section-pad: 64px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font: 500 16px/24px var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(229, 183, 27, 0.6); }

img, picture, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

p { margin: 0 0 24px; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; color: inherit; }

h1, .display {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 64px;
  text-transform: uppercase;
}

h2, .h2 { font-family: var(--font-display); font-size: 40px; line-height: 48px; margin-bottom: 24px; }
h3, .h3 { font-family: var(--font-display); font-size: 32px; line-height: 40px; margin-bottom: 8px; }
.h4 { font-family: var(--font-display); font-size: 32px; line-height: 40px; }
.h6, .anton { font-family: var(--font-display); font-size: 20px; line-height: 32px; }

.lead { font-size: 20px; line-height: 28px; font-weight: 500; }

.kicker {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 20px;
  line-height: 32px;
  font-weight: 600;
  text-transform: uppercase;
}

.text-center { text-align: center; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 8px 16px;
  background: var(--white);
  color: var(--black);
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

@media (min-width: 1000px) {
  h1, .display { font-size: 112px; line-height: 120px; }
  h2, .h2 { font-size: 56px; line-height: 64px; }
  h3, .h3 { font-size: 40px; line-height: 48px; }
  .lead { font-size: 24px; line-height: 32px; }
  :root { --section-pad: 64px; }
}

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

.container--narrow { max-width: calc(800px + 2 * var(--gutter)); }

.section {
  position: relative;
  padding-block: var(--section-pad);
  color: var(--white);
  background-color: var(--ink);
}
.section--compact { padding-block: 40px; }
.section--white { background: var(--white); color: var(--black); }
.section--charcoal { background: var(--charcoal); color: var(--white); }
.section--orange { background: var(--orange); color: var(--black); }
.section--texture {
  background: var(--white) var(--bg) center / cover no-repeat;
  color: var(--black);
}

.split { display: grid; gap: 40px; align-items: start; }
.split--center { align-items: center; }

@media (min-width: 1000px) {
  .split { grid-template-columns: 1fr 1fr; gap: 0; }
  .split > .split__body { padding-inline: 40px; }
  .split > .split__body:first-child { padding-left: 0; }
  .split > .split__body:last-child { padding-right: 0; }
  /* Home "About": live site indents the text column ~9vw from the image. */
  .split--center > .split__body:last-child { padding-left: clamp(40px, 9vw, 190px); }
}

.prose p, .prose ul, .prose ol { margin: 0 0 24px; }
.prose > :last-child { margin-bottom: 0; }
.prose--wide { max-width: 75%; }
@media (max-width: 999px) { .prose--wide { max-width: none; } }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 16px;
  background: var(--orange-button);
  color: var(--white);
  font: 400 12px/20px var(--font-display);
  letter-spacing: 0.02em;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.button:hover { background: var(--black); color: var(--white); }
.button--lg { margin-top: 48px; padding: 22px 32px; font-size: 14px; color: var(--black); }
.button--lg:hover { color: var(--white); }
.button--dark { background: var(--black); color: var(--white); }
.button--dark:hover { background: var(--orange-button); color: var(--black); }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  color: var(--white);
  transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, 0.96);
  color: var(--black);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
}
.site-header__inner { display: flex; align-items: center; height: 100%; gap: 24px; }

.logo { position: relative; display: block; width: 165px; }
.logo img { width: 165px; height: auto; }
.logo__dark { position: absolute; inset: 0; opacity: 0; }
.logo__light, .logo__dark { display: block; transition: opacity 0.3s; }
.is-scrolled .logo__light, .is-open .logo__light { opacity: 0; }
.is-scrolled .logo__dark, .is-open .logo__dark { opacity: 1; }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav__list { display: flex; align-items: center; }
.site-nav__list > li { position: relative; }
.site-nav__list > li > a,
.site-nav__parent {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 28px 16px;
  border: 0;
  background: none;
  color: inherit;
  font: 400 16px/24px var(--font-nav);
  cursor: pointer;
  transition: color 0.2s;
}
.site-nav__parent .icon { width: 16px; height: 16px; }
.site-nav__list > li > a:hover,
.site-nav__parent:hover,
.site-nav [aria-current="page"],
.site-nav .is-active > .site-nav__parent { color: var(--orange); }

.site-nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  padding: 20px !important;
  background: var(--white);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.has-children:hover > .site-nav__sub,
.has-children:focus-within > .site-nav__sub,
.site-nav__parent[aria-expanded="true"] + .site-nav__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.site-nav__sub a {
  display: block;
  padding: 6px;
  color: var(--black);
  font: 400 16px/24px var(--font-nav);
}
.site-nav__sub a:hover,
.site-nav__sub a[aria-current="page"] { color: var(--orange); }

.site-nav__social { display: none; }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.menu-toggle__lines,
.menu-toggle__lines::before,
.menu-toggle__lines::after {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 0.25s, background-color 0.25s;
}
.menu-toggle__lines { position: relative; }
.menu-toggle__lines::before,
.menu-toggle__lines::after { content: ""; position: absolute; left: 0; }
.menu-toggle__lines::before { top: -7px; }
.menu-toggle__lines::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 999px) {
  :root { --header-h: 72px; }
  .logo, .logo img { width: 120px; }
  .menu-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px var(--gutter) 48px;
    background: var(--ink);
    color: var(--white);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
  }
  .is-open .site-nav { opacity: 1; visibility: visible; }
  .site-nav__list { flex-direction: column; align-items: flex-start; }
  .site-nav__list > li > a,
  .site-nav__parent { padding: 12px 0; font: 400 40px/48px var(--font-display); }
  .site-nav__parent .icon { width: 28px; height: 28px; }
  .site-nav__sub {
    position: static;
    width: auto;
    padding: 0 0 8px 16px !important;
    background: none;
    box-shadow: none;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav__parent[aria-expanded="true"] + .site-nav__sub { display: block; }
  .site-nav__sub a { color: var(--white); font: 400 28px/36px var(--font-display); }
  .site-nav__social { display: flex; gap: 24px; margin-top: 40px !important; }
  .site-nav__social a:hover { color: var(--orange); }
  body.menu-open { overflow: hidden; }
}

/* ---------- Heroes ---------- */
.hero {
  background: var(--black) var(--bg) center / cover no-repeat;
  color: var(--white);
}
.hero--page { padding: calc(var(--header-h) + 64px) 0 160px; }
.hero--legal { padding: calc(var(--header-h) + 64px) 0 72px; }
.display--orange { color: var(--orange); }

@media (min-width: 1000px) {
  .hero--page { padding: 144px 0 244px; }
  .hero--legal { padding: 144px 0 72px; }
}

.hero--home { padding: calc(var(--header-h) + 20px) 0 60px; background-position: center bottom; }
.hero--home__panel {
  padding: 72px 24px 48px;
  background: var(--charcoal) var(--panel-bg) center / cover no-repeat;
}
.hero--home .lead { margin: 16px 0 0; }
@media (min-width: 1000px) {
  .hero--home { padding: 100px 0 60px; }
  .hero--home__panel { padding: 128px 8vw; }
  .hero--home .lead { margin-top: 16px; }
}

/* ---------- Cards / CTA ---------- */
.card { padding: 40px 24px; color: var(--black); }
.card--tint { background: rgba(255, 255, 255, 0.9); }
.card--white { background: var(--white); }
.card .lead, .card p { margin-top: 16px; }
@media (min-width: 1000px) {
  .card { width: 50%; padding: 64px 48px; }
  .section--orange { padding-block: 64px; }
}

/* ---------- Games ---------- */
.games { padding-top: 96px; padding-bottom: 108px; }
.games h2 { margin-bottom: 0; }
.game-grid {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 24px;
}
@media (min-width: 1000px) { .game-grid { grid-template-columns: 1fr 1fr; } }

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 100%;
  padding: 52px 24px;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
}
.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--charcoal) var(--bg) center / cover no-repeat;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.game-card:hover::before { transform: scale(1.06); }
.game-card__logo img { width: min(300px, 60vw); }
.game-card__cta { font: 400 20px/32px var(--font-display); transition: color 0.2s; }
.game-card:hover .game-card__cta { color: var(--orange); }
@media (min-width: 1000px) { .game-card { padding-block: 72px; } }

/* ---------- Contact ---------- */
.contact { padding: calc(var(--header-h) + 64px) 0 72px; }
.contact__grid { display: grid; gap: 40px; margin-top: 52px; }
.contact__details .h4 { margin-bottom: 8px; }
.contact__details p { margin-bottom: 8px; }
.contact__details .link-anton { margin-bottom: 16px; }
.contact__details .h4:not(:first-child) { margin-top: 24px; }
.link-anton a { color: var(--orange); font: 400 20px/32px var(--font-display); }
.link-anton a:hover { color: var(--white); }
.contact__social { margin: 12px 0 24px !important; }
.contact__social a:hover { color: var(--orange); }
.contact__maps { padding: 25px; background: var(--orange); color: var(--black); }
.contact__maps .h6 { margin-bottom: 7px; }
.contact__map + .h6 { margin-top: 40px; }
@media (min-width: 1000px) {
  .contact { padding: 168px 0 108px; }
  .contact__grid { grid-template-columns: 3fr 7fr; gap: 18px; margin-inline: 8.33%; }
}

/* ---------- Legal ---------- */
.legal {
  padding: 80px 0 128px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 49%, var(--white) 100%),
    var(--white) var(--bg) center / cover no-repeat;
  color: var(--ink);
}
.prose--legal h2 { margin: 0 0 8px; color: var(--black); }
.prose--legal h3 { margin: 0 0 8px; color: var(--black); }
.prose--legal * + h2, .prose--legal * + h3 { margin-top: 16px; }
.prose--legal strong { font-weight: 600; }
.prose--legal ul, .prose--legal ol { margin: 0 0 30px 30px; padding: 0; }
.prose--legal a { text-decoration: underline; text-underline-offset: 2px; }
.prose--legal a:hover { color: var(--orange); }
.prose--legal table {
  display: block;
  width: 100%;
  overflow-x: auto;
  margin: 0 0 24px;
  border-collapse: collapse;
  background: var(--white);
}
.prose--legal th, .prose--legal td { padding: 10px; vertical-align: baseline; text-align: left; border: 1px solid rgba(0, 0, 0, 0.1); }
.prose--legal th { font-weight: 700; }
@media (min-width: 1000px) {
  .prose--legal { margin-inline: 8.33%; }
  .prose--legal table { display: table; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--white); color: var(--black); }
.site-footer__widgets {
  display: grid;
  gap: 32px;
  padding-top: 64px;
  padding-bottom: 40px;
}
.site-footer__logos img { width: 240px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer__links a:hover, .site-footer__links .link-button:hover { color: var(--orange); }
.site-footer__heading { margin: 0 0 7px; font: 500 24px/32px var(--font-body); }
.site-footer__info p { margin-bottom: 16px; }
.site-footer__info strong { font-weight: 600; }
.site-footer__copyright {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}
.site-footer__copyright p { margin: 0; }
.site-footer__copyright a { color: rgba(0, 0, 0, 0.5); }
@media (min-width: 1000px) {
  .site-footer__widgets { grid-template-columns: repeat(4, 1fr); gap: 27px; padding-top: 80px; }
}
@media (max-width: 999px) {
  .site-footer__widgets > [aria-hidden="true"] { display: none; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}
