/* Emerald Shores Casino — demo site
   Palette taken from the EmployeeIQ tenant's PWA Branding so all three
   products in the demo read as one company. */

:root {
  --emerald:      #0B5F45;
  --emerald-deep: #063C2C;
  --emerald-lit:  #12A576;
  --mint:         #6FD9B0;
  --ink:          #0D1A15;
  --body:         #3A4A43;
  --muted:        #6B7C74;
  --mist:         #EEF3F1;
  --mist-deep:    #DFE8E4;
  --paper:        #FFFFFF;
  --rule:         #D5E0DB;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 62ch;
  --wide: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--emerald); }
:focus-visible { outline: 2px solid var(--emerald-lit); outline-offset: 3px; }

.shell { max-width: var(--wide); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 720px; }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(29px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.015em; }
h3 { font-size: 21px; line-height: 1.25; }
p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.6; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald-lit);
  margin: 0 0 14px;
}
.on-dark .eyebrow { color: var(--mint); }

/* ---------- wordmark ---------- */

.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark svg { flex: none; }
.mark-text { display: flex; flex-direction: column; line-height: 1; }
.mark-name {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
  color: var(--emerald);
  letter-spacing: 0.01em;
}
.mark-sub {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--muted);
  margin-top: 4px;
}
.on-dark .mark-name { color: #fff; }
.on-dark .mark-sub { color: var(--mint); }

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav a {
  font-size: 14.5px; font-weight: 500; color: var(--body);
  text-decoration: none; padding-block: 6px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--emerald); border-bottom-color: var(--mint); }
@media (max-width: 760px) { .nav .opt { display: none; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 700;
  letter-spacing: 0.02em;
  padding: 13px 24px; border-radius: 2px;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-solid { background: var(--emerald); color: #fff; }
.btn-solid:hover { background: var(--emerald-lit); }
.btn-line { border-color: var(--emerald); color: var(--emerald); }
.btn-line:hover { background: var(--emerald); color: #fff; }
.on-dark .btn-solid { background: var(--mint); color: var(--emerald-deep); }
.on-dark .btn-solid:hover { background: #fff; }
.on-dark .btn-line { border-color: rgba(255,255,255,.55); color: #fff; }
.on-dark .btn-line:hover { background: #fff; color: var(--emerald-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- image slots ----------
   The photograph sits on a deep-emerald ground, so a slot whose file is
   missing shows a brand-coloured block rather than a broken-image icon.
   Nothing is layered over the photograph itself — see images/README.md. */

.shot {
  background-color: var(--emerald-deep);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
}

/* ---------- hero ---------- */

.hero {
  min-height: min(78vh, 700px);
  display: flex; align-items: flex-end;
  color: #fff;
  background-image: url("../images/hero-waterfront.jpg");
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6,60,44,0) 0%, rgba(6,60,44,.10) 38%, rgba(6,60,44,.62) 78%, rgba(6,60,44,.86) 100%);
}
.hero .shell { position: relative; z-index: 2; padding-block: clamp(56px, 9vw, 104px); width: 100%; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: rgba(255,255,255,.9); max-width: 46ch; margin-top: 20px; }

/* ---------- sections ---------- */

section { padding-block: clamp(64px, 9vw, 118px); }
section.tight { padding-block: clamp(48px, 6vw, 78px); }
/* background-COLOR, not the background shorthand: the shorthand resets
   background-image to none, and .on-dark sits later in this file than
   .hero at equal specificity — which silently wiped the hero photograph. */
.on-mist { background-color: var(--mist); }
.on-dark { background-color: var(--emerald-deep); color: rgba(255,255,255,.82); }
.on-dark h2, .on-dark h3 { color: #fff; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
}
.split .shot { aspect-ratio: 4 / 3; border-radius: 3px; }
.split.flip > .words { order: 2; }
@media (max-width: 700px) { .split.flip > .words { order: 0; } }

.stat-row {
  display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px);
  margin-top: 34px; padding-top: 30px;
  border-top: 1px solid var(--rule);
}
.on-dark .stat-row { border-top-color: rgba(255,255,255,.18); }
.stat-n {
  font-family: var(--display); font-size: 38px; font-weight: 600;
  color: var(--emerald); line-height: 1; display: block;
}
.on-dark .stat-n { color: var(--mint); }
.stat-l { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.on-dark .stat-l { color: rgba(255,255,255,.6); }

/* ---------- cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 26px;
  margin-top: 44px;
}
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; display: flex; flex-direction: column; }
.on-mist .card { border-color: var(--mist-deep); }
.card .shot { aspect-ratio: 3 / 2; }
.card-b { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-b p { font-size: 15.5px; margin: 0; }
.card-meta { font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--emerald-lit); font-weight: 700; }

/* ---------- roles (careers) ---------- */

.roles { display: flex; flex-direction: column; gap: 0; margin-top: 40px; border-top: 1px solid var(--rule); }
.role {
  display: grid; grid-template-columns: 1fr auto; gap: 12px 32px;
  align-items: center; padding: 26px 0; border-bottom: 1px solid var(--rule);
}
.role h3 { margin-bottom: 5px; }
.role-meta { font-size: 14px; color: var(--muted); }
.role-meta span + span::before { content: "·"; margin: 0 9px; color: var(--rule); }
@media (max-width: 640px) { .role { grid-template-columns: 1fr; } }

/* The demo annotation the careers script adds above the roles when they came from JobFairIQ.
   Not the casino's voice: a plain card in the body face, sized to be read off a projector. */
.live-note {
  margin-top: 30px; padding: 16px 20px;
  background: var(--paper); border-left: 4px solid var(--emerald-lit); border-radius: 0 6px 6px 0;
  font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; color: var(--ink);
}

/* ---------- footer ---------- */

.site-foot { background: var(--ink); color: rgba(255,255,255,.62); padding-block: 56px 40px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 36px; }
.site-foot h4 {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--mint);
  margin: 0 0 14px;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.site-foot a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-note {
  margin-top: 44px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.13);
  font-size: 13px; color: rgba(255,255,255,.5);
  display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between;
}
.foot-note strong { color: rgba(255,255,255,.75); font-weight: 600; }
