/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #F47521;
  --orange-dark: #B05417;
  --dark: #1C1E26;
  --text: #1A1A1A;
  --text-muted: #555;
  --white: #ffffff;
  --light-bg: #F7F7F7;
  --max-w: 1224px;
  --radius-card: 20px;
  --nav-h: 66px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
.font-rowdies { font-family: 'Rowdies', cursive; font-weight: 400; }
.font-rubik   { font-family: 'Rubik Doodle Shadow', cursive; font-weight: 400; }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVIGATION ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--orange);
  height: var(--nav-h);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}

.nav__logo img {
  height: 48px;
  width: auto;
}

.nav__logo-text {
  font-family: 'Rowdies', cursive;
  font-size: 24px;
  color: var(--white);
  letter-spacing: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: var(--white);
  opacity: 0.9;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.nav__links a:hover,
.nav__links a.active { opacity: 1; text-decoration: underline; }

.nav__social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__social a {
  color: var(--white);
  display: flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.nav__social a:hover { opacity: 1; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--orange);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: 'Rowdies', cursive;
  font-size: 28px;
  color: var(--white);
}
.nav__mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none; border: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rowdies', cursive;
  font-size: 16px;
  font-weight: 400;
  padding: 14px 40px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-dark); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-dark-outline {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--dark);
}
.btn-dark-outline:hover { background: rgba(0,0,0,0.05); }

/* ===== SECTIONS ===== */
section { position: relative; }

/* ===== HERO (HOME) ===== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #111;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  width: 100%;
  padding: 80px 0;
}

.hero__title {
  font-family: 'Rubik Doodle Shadow', cursive;
  font-size: clamp(64px, 9vw, 120px);
  color: var(--white);
  line-height: 1.1;
}

.hero__right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero__tagline {
  font-family: 'Rowdies', cursive;
  font-size: 20px;
  color: var(--white);
}

.hero__desc {
  font-family: 'Rowdies', cursive;
  font-size: 15px;
  color: var(--white);
  line-height: 1.6;
}

/* ===== GAMES SECTION ===== */
.games-section {
  background: var(--light-bg);
  padding: 80px 0;
}

.section-title {
  font-family: 'Rowdies', cursive;
  font-size: clamp(28px, 3.5vw, 48px);
  color: var(--text);
  text-align: center;
  margin-bottom: 60px;
}

.game-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  margin-bottom: 72px;
}

.game-row:last-child { margin-bottom: 0; }

.game-row--reverse .game-icon { order: 2; }
.game-row--reverse .game-info {
  order: 1;
  text-align: right;
  align-items: flex-end;
}
.game-row--reverse .game-desc { margin-left: auto; }
.game-row--reverse .game-actions { align-items: flex-end; }
.game-row--reverse .store-badges { justify-content: flex-end; }

.game-icon {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin: 0 auto;
}

.game-icon img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
}

.game-info { display: flex; flex-direction: column; gap: 16px; }

.game-title {
  font-family: 'Rowdies', cursive;
  font-size: clamp(22px, 3vw, 40px);
  color: var(--text);
}

.game-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
}

.game-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badges img { height: 44px; width: auto; }

/* ===== SERVICES SECTION (orange) ===== */
.services-section {
  background: var(--orange);
  padding: 80px 0;
}

.services-section .section-title { color: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.services-image {
  border-radius: var(--radius-card);
  overflow: hidden;
}
.services-image img { width: 100%; height: 420px; object-fit: cover; }

.services-list { display: flex; flex-direction: column; gap: 28px; }

.service-item h3 {
  font-family: 'Rowdies', cursive;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 8px;
}

.service-item p {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}

/* ===== CAREERS / TEAM SECTION ===== */
.team-section { padding: 80px 0; background: var(--white); }

.team-section .section-title { color: var(--text); }

.team-intro {
  text-align: center;
  max-width: 700px;
  margin: -40px auto 60px;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.team-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.team-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.team-card:hover img { transform: scale(1.05); }

.team-card__label {
  position: absolute;
  bottom: 20px; left: 20px;
  font-family: 'Rowdies', cursive;
  font-size: 26px;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.team-cta { text-align: center; margin-top: 40px; }

/* ===== PAGE HEROES (inner pages) ===== */
.page-hero {
  background: var(--orange);
  padding: 80px 24px;
  text-align: center;
}

.page-hero h1 {
  font-family: 'Rowdies', cursive;
  font-size: clamp(36px, 5vw, 64px);
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== ABOUT PAGE ===== */
.about-section { padding: 80px 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-family: 'Rowdies', cursive;
  font-size: clamp(28px, 3.5vw, 48px);
  color: var(--text);
  margin-bottom: 16px;
}

.about-text p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-images img {
  border-radius: 16px;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* ===== CAREERS PAGE ===== */
.careers-section { padding: 80px 0; }

/* ===== CONTACT PAGE ===== */
.contact-section { padding: 80px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-family: 'Rowdies', cursive;
  font-size: clamp(28px, 3.5vw, 48px);
  color: var(--text);
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-detail { margin-bottom: 20px; }
.contact-detail strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.contact-detail span {
  font-size: 15px;
  color: var(--text-muted);
}

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border: 1px solid #CBD5E0;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border 0.2s;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--orange); }

.form-group textarea { min-height: 140px; resize: vertical; }

.btn-submit {
  background: var(--orange);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 36px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}
.btn-submit:hover { background: var(--orange-dark); }

/* Location section */
.location-section { padding: 80px 0; background: var(--light-bg); }

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.location-text h2 {
  font-family: 'Rowdies', cursive;
  font-size: clamp(28px, 3.5vw, 48px);
  color: var(--text);
  margin-bottom: 16px;
}

.location-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.map-embed {
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 360px;
}

.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand h3 {
  font-family: 'Rowdies', cursive;
  font-size: 20px;
  margin-bottom: 10px;
}

.footer__brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.footer__social a:hover { color: var(--white); }

.footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.5);
}

.footer__col p, .footer__col a {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 2;
  display: block;
}

.footer__col a:hover { color: var(--white); }

/* Footer newsletter */
.footer__newsletter input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
}
.footer__newsletter input::placeholder { color: rgba(255,255,255,0.4); }

.footer__newsletter button {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.footer__newsletter button:hover { background: var(--orange-dark); }

.footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  :root { --nav-h: 70px; }

  .nav__links, .nav__social { display: none; }
  .nav__hamburger { display: flex; }

  .hero__content { grid-template-columns: 1fr; text-align: center; }
  .hero__right { align-items: center; }
  .hero { min-height: 70vh; }

  .game-row { grid-template-columns: 1fr; gap: 32px; }

  /* Reset reverse layout on mobile — stack icon on top, text centred below */
  .game-row--reverse .game-icon { order: 0; }
  .game-row--reverse .game-info {
    order: 0;
    text-align: center;
    align-items: center;
  }
  .game-row--reverse .game-desc { margin-left: 0; }
  .game-row--reverse .game-actions { align-items: center; }
  .game-row--reverse .store-badges { justify-content: center; }
  .game-actions { align-items: flex-start; }
  .store-badges { justify-content: flex-start; }

  .services-grid { grid-template-columns: 1fr; }
  .services-image { order: -1; }

  .about-grid, .contact-grid, .location-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }

  .about-images { grid-template-columns: 1fr 1fr; }
  .about-images img { height: 180px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }

  .contact-grid { gap: 48px; }
}

@media (max-width: 600px) {
  .hero__title { font-size: clamp(48px, 14vw, 80px); }
  .page-hero { padding: 60px 16px; }
  .games-section, .services-section, .team-section, 
  .about-section, .careers-section, .contact-section, 
  .location-section { padding: 60px 0; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .about-images { grid-template-columns: 1fr; }
}
