/* =========================================================
   STARHORSE GAMES — site styles
   ---------------------------------------------------------
   Change colors and fonts here. Every page uses these values.
   ========================================================= */
:root {
  --brand: #1583E0;          /* Starhorse brand blue: header, footer, buttons, game card */
  --brand-text: #FFFFFF;     /* text that sits on the brand color */
  --ink: #0E1330;            /* main dark text */
  --navy: #0E1330;           /* Delicious Ducks features background */
  --panel: #0B0B0F;          /* About logo square */
  --soft-bg: #F4F6FA;        /* Contact section background */
  --muted-on-dark: #D5D9E8;  /* paragraph text on navy */

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --page-pad: 80px;          /* space at the left/right edges of the page */
  --max: 1280px;             /* max content width */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.container { width: 100%; max-width: calc(var(--max) + var(--page-pad) * 2); margin: 0 auto; padding: 0 var(--page-pad); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #FFB020; outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--brand); color: var(--brand-text); box-shadow: 0 2px 12px rgba(14,19,48,.15); }
/* keeps section headings from hiding under the sticky header when you jump to them */
section[id] { scroll-margin-top: 88px; }
.site-header .container { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo img { height: 69px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.nav-link { color: var(--brand-text); text-decoration: none; font-size: 17px; font-weight: 600; transition: opacity .15s; }
.nav-link:hover { opacity: .75; }
.nav-divider { width: 1px; height: 28px; background: rgba(255,255,255,.4); }
.social-icons { display: flex; align-items: center; gap: 4px; }
.social-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--brand-text); transition: transform .15s, opacity .15s; }
.social-icon:hover { transform: translateY(-2px); opacity: .85; }
.social-icon svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 28px; border-radius: 14px; font-weight: 700; font-size: 18px; text-decoration: none; transition: transform .15s, filter .15s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-white { background: #FFFFFF; color: var(--brand); }
.btn-outline { color: #FFFFFF; border: 2px solid #FFFFFF; }
.btn-brand { background: var(--brand); color: var(--brand-text); }
.btn-lg { min-height: 72px; padding: 0 44px; font-size: 24px; font-weight: 800; border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.btn svg { width: 26px; height: 26px; flex-shrink: 0; }

/* =========================================================
   HOME PAGE
   ========================================================= */

/* ---------- Delicious Ducks window ---------- */
.games { background: var(--brand); padding: 96px 0; }
.game-card { background: var(--brand); color: #FFFFFF; border-radius: 28px; padding: 56px; display: flex; align-items: center; gap: 56px; box-shadow: 0 20px 50px rgba(14,19,48,.18); transition: transform .3s ease, box-shadow .3s ease; }
.game-card:hover { transform: scale(1.015); box-shadow: 0 30px 70px rgba(14,19,48,.28); }
.game-card-text { flex: 1 1 0; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { font-size: 18px; font-weight: 600; opacity: .95; }
.game-title { font-weight: 900; font-size: 88px; line-height: .95; letter-spacing: -0.045em; }
.game-title a { color: #FFFFFF; text-decoration: none; text-underline-offset: 10px; text-decoration-thickness: 5px; }
.game-title a:hover { text-decoration: underline; }
.game-blurb { font-size: 21px; font-weight: 500; line-height: 1.5; max-width: 440px; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.game-card-art { flex-shrink: 0; width: 640px; max-width: 50%; }
.game-card-art img { width: 100%; height: auto; aspect-ratio: 1232 / 706; object-fit: cover; border-radius: 18px; }

/* ---------- About ---------- */
.about { padding: 64px 0 112px; }
.about .container { display: flex; align-items: center; gap: 96px; }
.about-logo { width: 277px; height: 260px; flex-shrink: 0; border-radius: 28px; background: var(--panel); display: flex; align-items: center; justify-content: center; }
.about-logo img { width: 188px; height: 200px; }
.section-title { font-weight: 900; font-size: 72px; letter-spacing: -0.04em; line-height: 1; }
.about-text { display: flex; flex-direction: column; gap: 24px; }
.about-text p { font-size: 26px; line-height: 1.5; max-width: 640px; }

/* ---------- Contact ---------- */
.contact { background: var(--soft-bg); padding: 96px 0; }
.contact .container { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.contact-email { font-size: 32px; font-weight: 700; color: var(--brand); text-decoration: none; letter-spacing: -0.01em; word-break: break-word; transition: opacity .15s; }
.contact-email:hover { opacity: .75; }
.sub-title { font-weight: 900; font-size: 32px; letter-spacing: -0.04em; line-height: 1; padding-top: 50px; }
.social-list { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding-top: 12px; }
.social-item { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 18px; font-weight: 600; text-decoration: none; transition: transform .15s, opacity .15s; }
.social-item:hover { transform: translateY(-2px); opacity: .85; }
.social-item span { width: 52px; height: 52px; border-radius: 14px; background: var(--brand); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.social-item svg { width: 24px; height: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand); color: var(--brand-text); }
.site-footer .container { min-height: 88px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 500; text-align: center; }

/* =========================================================
   DELICIOUS DUCKS PAGE
   ========================================================= */
.dd-hero { position: relative; min-height: 760px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; padding: 64px var(--page-pad); overflow: hidden;
  background: url('../images/delicious-ducks/banner.webp') center / cover no-repeat; }
.dd-hero::before { content: ''; position: absolute; inset: 0; background: rgba(14,19,48,.25); }
.dd-hero > * { position: relative; }
.dd-hero-art { width: 840px; max-width: 100%; height: auto; aspect-ratio: 1232 / 706; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }

.dd-intro { padding: 88px 0; }
.dd-intro .container { display: flex; flex-direction: column; gap: 40px; }
.trailer { width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 20px 50px rgba(14,19,48,.18); }
.trailer iframe { width: 100%; height: 100%; border: 0; display: block; }
.dd-intro p { font-size: 26px; line-height: 1.55; text-align: left; max-width: none; }

.dd-features { background: var(--navy); padding: 112px 0; }
.dd-features .container { display: flex; flex-direction: column; gap: 96px; }
.feature { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.feature-title img { width: 500px; max-width: 100%; height: auto; }
.feature p { font-size: 19px; line-height: 1.6; color: var(--muted-on-dark); max-width: 820px; }
.feature video { width: 100%; height: auto; aspect-ratio: 1280 / 474; object-fit: cover; border-radius: 18px; margin-top: 8px; background: #000; }

/* =========================================================
   SMALLER SCREENS
   ========================================================= */
@media (max-width: 1100px) {
  :root { --page-pad: 48px; }
  .game-card { flex-direction: column-reverse; align-items: stretch; }
  .game-card-art { width: 100%; max-width: 100%; }
  .game-blurb { max-width: none; }
  .about .container { gap: 56px; }
}
@media (max-width: 760px) {
  :root { --page-pad: 20px; }
  .site-header .container { height: 72px; }
  .site-logo img { height: 48px; }
  .site-nav { gap: 20px; }
  .nav-divider, .site-header .social-icons { display: none; }
  .games { padding: 40px 0; }
  .game-card { padding: 28px; gap: 28px; border-radius: 22px; }
  .game-card:hover { transform: none; }
  .game-title { font-size: 56px; }
  .game-blurb { font-size: 18px; }
  .button-row .btn { flex: 1 1 100%; justify-content: center; }
  .about { padding: 56px 0 72px; }
  .about .container { flex-direction: column; align-items: flex-start; gap: 32px; }
  .about-logo { width: 200px; height: 188px; }
  .about-logo img { width: 136px; height: 145px; }
  .section-title { font-size: 48px; }
  .about-text p { font-size: 19px; }
  .contact { padding: 64px 0; }
  .contact-email { font-size: 20px; }
  .sub-title { font-size: 26px; padding-top: 24px; }
  .social-list { gap: 20px; }
  .dd-hero { min-height: 0; padding: 48px var(--page-pad); gap: 28px; }
  .btn-lg { font-size: 20px; min-height: 60px; padding: 0 28px; }
  .dd-intro { padding: 40px 0 56px; }
  .dd-intro .container { gap: 28px; }
  .trailer { border-radius: 12px; }
  section[id] { scroll-margin-top: 72px; }
  .dd-intro p { font-size: 19px; }
  .dd-features { padding: 64px 0; }
  .dd-features .container { gap: 64px; }
  .feature p { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
