/* ===================================================
   HATDON GAME STUDIO — Global Stylesheet
   Earthy/polished theme with warm underground tones
   =================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: #2d1a0e;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Russo One', sans-serif;
  line-height: 1.15;
  letter-spacing: 1px;
}

/* --- Color Variables --- */
:root {
  --brown-dark: #1a0e05;
  --brown-mid: #2d1a0e;
  --brown-warm: #3b2212;
  --brown-light: #5c3a1e;
  --gold: #c28b41;
  --gold-light: #f0d9a0;
  --cream: #faf6f0;
  --green-dark: #4a6e3d;
  --green-mid: #6b8f5e;
  --rust: #c27141;
  --white: #ffffff;
  --text-muted: #7a6250;
}

/* ===== NAVIGATION ===== */
.site-nav {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(45,26,14,0.08);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Russo One', sans-serif;
  font-size: 20px;
  color: var(--brown-mid);
  letter-spacing: 1px;
}
.nav-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: 0.3px;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--brown-mid);
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown-mid);
  margin: 5px 0;
  transition: 0.3s;
}
/* Mobile nav */
@media (max-width: 768px) {
  .nav-hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(45,26,14,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 6px 24px rgba(194,139,65,0.35);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(194,139,65,0.5); }
.btn-dark {
  background: var(--brown-mid);
  color: var(--white);
  box-shadow: 0 6px 24px rgba(45,26,14,0.25);
}
.btn-dark:hover { box-shadow: 0 8px 32px rgba(45,26,14,0.35); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.35);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.6); }
.btn-outline-dark {
  background: transparent;
  color: var(--brown-mid);
  border: 2px solid rgba(45,26,14,0.2);
}
.btn-outline-dark:hover { border-color: var(--brown-mid); }

/* ===== HERO SECTIONS ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-dark {
  background: linear-gradient(170deg, var(--brown-dark) 0%, var(--brown-warm) 35%, var(--brown-light) 60%, #8b5e3c 100%);
}
.hero-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(194,139,65,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(101,67,33,0.25) 0%, transparent 50%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 60px 24px;
}
.hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  color: var(--white);
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.hero p {
  font-size: 19px;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin: 0 auto 36px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 40px;
  padding: 8px 22px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-cta {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--gold), #8b5e3c);
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  border: 3px solid rgba(255,255,255,0.12);
}

/* ===== SECTION UTILITIES ===== */
.section {
  padding: 90px 24px;
}
.section-cream { background: var(--cream); }
.section-dark { background: var(--brown-mid); }
.section-brown { background: linear-gradient(180deg, var(--brown-warm), var(--brown-mid)); }
.section-white { background: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: 34px;
  color: var(--brown-mid);
  margin-bottom: 12px;
}
.section-header p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}
.section-header.light h2 { color: var(--white); }
.section-header.light p { color: rgba(255,255,255,0.6); }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== FEATURE CARDS GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.feature-card {
  background: var(--white);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(45,26,14,0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(45,26,14,0.1);
}
.feature-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}
.icon-gold { background: linear-gradient(135deg, #d4a259, #b8862d); }
.icon-green { background: linear-gradient(135deg, var(--green-mid), var(--green-dark)); }
.icon-rust { background: linear-gradient(135deg, var(--rust), #a0552e); }
.icon-brown { background: linear-gradient(135deg, #8b5e3c, var(--brown-light)); }
.icon-blue { background: linear-gradient(135deg, #5a8fa8, #3d6e84); }
.icon-red { background: linear-gradient(135deg, #c25a5a, #9e3c3c); }

.feature-card h3 {
  font-family: 'Russo One', sans-serif;
  font-size: 18px;
  color: var(--brown-mid);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== GAME SHOWCASE (home) ===== */
.game-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.game-showcase-img {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}
.game-showcase-img .placeholder-circle {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cream), #e8ddd0);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  box-shadow: 0 8px 32px rgba(45,26,14,0.1);
}
.game-showcase-text h3 {
  font-size: 36px;
  margin-bottom: 16px;
}
.game-showcase-text p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}
@media (max-width: 768px) {
  .game-showcase {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ===== TAGLINE STRIP ===== */
.tagline-strip {
  background: var(--brown-mid);
  padding: 44px 24px;
  text-align: center;
}
.tagline-strip h2 {
  font-family: 'Russo One', sans-serif;
  font-size: 26px;
  color: var(--gold-light);
  letter-spacing: 2px;
}

/* ===== SCREENSHOT PLACEHOLDERS ===== */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.screenshot-placeholder {
  aspect-ratio: 9 / 16;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 14px;
  gap: 8px;
}
.screenshot-placeholder span { font-size: 36px; }
@media (max-width: 768px) {
  .screenshot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .screenshot-grid { grid-template-columns: 1fr; max-width: 260px; }
}

/* ===== STORE BUTTONS ===== */
.store-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--brown-mid);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 14px;
  transition: background 0.2s;
}
.store-btn:hover { background: var(--brown-warm); }
.store-label { text-align: left; }
.store-label small {
  display: block;
  font-size: 11px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.store-label strong { font-size: 17px; font-weight: 700; }
.store-btn svg { width: 26px; height: 26px; fill: var(--white); }

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brown-mid);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(45,26,14,0.12);
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { min-height: 140px; resize: vertical; }
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ===== CAREERS ===== */
.careers-cta {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}
.careers-cta p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}
.careers-email {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  padding: 12px 28px;
  border: 2px solid var(--gold);
  border-radius: 50px;
  transition: all 0.2s;
}
.careers-email:hover {
  background: var(--gold);
  color: var(--white);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--brown-dark);
  padding: 60px 24px 32px;
  color: rgba(255,255,255,0.6);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-brand h3 {
  font-family: 'Russo One', sans-serif;
  font-size: 22px;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.social-links {
  display: flex;
  gap: 12px;
}
.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.social-links a:hover { background: rgba(255,255,255,0.15); }
.social-links a svg {
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,0.7);
}
.social-links a:hover svg { fill: #fff; }

.footer-links h4 {
  font-family: 'Russo One', sans-serif;
  font-size: 14px;
  color: var(--gold-light);
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer-links a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .social-links { justify-content: center; }
}

/* ===== PAGE-SPECIFIC: ABOUT ===== */
.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.about-content p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ===== NEWS (empty state) ===== */
.empty-state {
  text-align: center;
  padding: 40px 24px;
}
.empty-state p {
  font-size: 17px;
  color: var(--text-muted);
}

/* ===== LEGAL PAGES ===== */
.legal-content {
  max-width: 740px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 22px;
  margin: 32px 0 12px;
}
.legal-content p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}
