/* AIN'T GAMES - Site Styles */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Avenir+Next:wght@400;500&display=swap');

:root {
  --color-body: #faf9f6;
  --color-body-text: #4a4a4a;
  --color-accent: #eb4f47;
  --color-heading: #2c2c2c;
  --color-sage: #c8d5b9;
  --color-sage-bg: #d4ddc8;
  --color-tan: #e8e0d4;
  --color-footer-bg: #1a1a1a;
  --color-footer-text: #f5f5f5;
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Avenir Next', 'Avenir', Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--color-body);
  color: var(--color-body-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

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

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

/* ─── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  background: transparent;
  transition: background 0.3s;
}

.site-header.scrolled {
  background: var(--color-body);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.site-header__logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-heading);
}

.site-header__logo img {
  height: 32px;
  width: auto;
}

.site-header__nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.site-header__nav-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-heading);
  transition: all 0.3s;
}

/* ─── DRAWER NAV ─────────────────────────────────────────── */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background: var(--color-body);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  padding: 80px 2rem 2rem;
  box-shadow: 2px 0 20px rgba(0,0,0,0.1);
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-heading);
}

.nav-drawer__links {
  list-style: none;
  margin-bottom: 2rem;
}

.nav-drawer__links li {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.nav-drawer__links a {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-heading);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav-drawer__links a:hover {
  color: var(--color-accent);
}

.nav-drawer__secondary {
  list-style: none;
  margin-bottom: 2rem;
}

.nav-drawer__secondary a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--color-body-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-drawer__social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.nav-drawer__social a {
  color: var(--color-body-text);
  font-size: 1.2rem;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 150;
}

.nav-overlay.open {
  display: block;
}

/* ─── HERO / SLIDESHOW ───────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0d1b3e 0%, #1a2f6e 40%, #6b7fa3 70%, #9aa3b0 85%, #b0b5bc 100%);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 12%;
  text-align: center;
}

.hero__globe {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: auto;
}

.hero__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ─── PAGE WRAPPER ───────────────────────────────────────── */
.page-content {
  padding-top: 60px; /* header offset for non-hero pages */
}

/* ─── SPLIT PANEL ────────────────────────────────────────── */
.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}

.split-panel__image {
  overflow: hidden;
}

.split-panel__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2rem;
}

.split-panel__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4rem;
}

.split-panel__text.sage {
  background: var(--color-sage-bg);
}

.split-panel__text.tan {
  background: var(--color-tan);
}

.split-panel__image.sage {
  background: var(--color-sage-bg);
}

.split-panel__image.tan {
  background: var(--color-tan);
}

.split-panel__accent {
  width: 36px;
  height: 3px;
  background: var(--color-accent);
  margin-bottom: 1rem;
}

.split-panel__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  color: var(--color-heading);
  font-weight: 400;
  margin-bottom: 1rem;
}

.split-panel__body {
  font-size: 0.9rem;
  color: var(--color-body-text);
  line-height: 1.7;
}

/* ─── MERCHANDISE SECTION ────────────────────────────────── */
.merch-section {
  position: relative;
  background: linear-gradient(180deg, #cce4f5 0%, #a8d0e8 30%, #7ab3cc 60%, #8a8f8a 100%);
  padding: 3rem 0;
  text-align: center;
}

.merch-section__header {
  margin-bottom: 2rem;
}

.merch-section__globe {
  width: 100px;
  margin: 0 auto 1rem;
}

.merch-section__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--color-heading);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.merch-section__sub {
  font-size: 0.85rem;
  color: var(--color-body-text);
}

.merch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
}

.merch-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.merch-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.merch-card__label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ─── MISSION SECTION (on home) ──────────────────────────── */
.mission-section {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.mission-section__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--color-heading);
  text-align: center;
  margin-bottom: 2.5rem;
}

.mission-section__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.mission-section__text p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--color-body-text);
  line-height: 1.8;
}

.mission-section__image img {
  width: 100%;
  border-radius: 2px;
}

/* ─── QUOTE SECTION ──────────────────────────────────────── */
.quote-section {
  background: #1a1a1a;
  padding: 5rem 2rem;
  text-align: center;
}

.quote-section blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: #fff;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--color-tan);
  padding: 3rem 2rem 2rem;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.site-footer__nav {
  list-style: none;
}

.site-footer__nav a {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0;
  color: var(--color-heading);
}

.site-footer__nav a:hover {
  color: var(--color-accent);
}

.site-footer__newsletter h4 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--color-heading);
}

.site-footer__newsletter p {
  font-size: 0.8rem;
  color: var(--color-body-text);
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-body-text);
  padding-bottom: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 0.85rem;
  color: var(--color-heading);
}

.newsletter-form input::placeholder {
  color: #999;
}

.newsletter-form button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-heading);
  padding-left: 1rem;
}

.site-footer__bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer__social {
  display: flex;
  gap: 1rem;
}

.site-footer__social a {
  color: var(--color-body-text);
  font-size: 1.1rem;
}

.site-footer__copyright {
  font-size: 0.75rem;
  color: var(--color-body-text);
  text-align: center;
}

/* ─── INNER PAGE STYLES ──────────────────────────────────── */
.inner-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.inner-page__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--color-heading);
  text-align: center;
  margin-bottom: 2.5rem;
}

.inner-page__image {
  margin: 0 auto 2.5rem;
  max-width: 480px;
}

.inner-page__image img {
  width: 100%;
  border-radius: 2px;
}

.inner-page__text p {
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-body-text);
}

.inner-page__text strong {
  color: var(--color-heading);
}

.inner-page__text a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Contact */
.contact-email {
  color: var(--color-accent);
  font-size: 1rem;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .split-panel {
    grid-template-columns: 1fr;
  }

  .split-panel__image {
    min-height: 250px;
  }

  .split-panel__text {
    padding: 2rem 1.5rem;
  }

  .mission-section__content {
    grid-template-columns: 1fr;
  }

  .merch-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
