
:root {
  --black: #0b0b0b;
  --black-soft: #171717;
  --gold: #d4af37;
  --gold-light: #f3d778;
  --cream: #fffaf0;
  --white: #ffffff;
  --grey: #d8d8d8;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--cream);
  background: var(--black);
  line-height: 1.6;
}

a { color: var(--gold-light); }

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

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.topbar {
  background: var(--gold);
  color: var(--black);
  text-align: center;
  padding: .45rem 1rem;
  font-weight: 700;
  font-size: .92rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11,11,11,.97);
  border-bottom: 1px solid rgba(212,175,55,.45);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .03em;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.6rem;
}

.brand small {
  display: block;
  color: var(--gold-light);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-light);
  padding: .55rem .75rem;
  border-radius: 6px;
  font-size: 1.2rem;
  cursor: pointer;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu > li { position: relative; }

.nav-menu a,
.drop-button {
  display: block;
  color: var(--white);
  text-decoration: none;
  padding: .75rem .82rem;
  border-radius: 5px;
  font: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-menu a:hover,
.nav-menu a:focus,
.drop-button:hover,
.drop-button:focus {
  color: var(--black);
  background: var(--gold);
  outline: none;
}

.dropdown {
  position: absolute;
  top: calc(100% + .25rem);
  left: 0;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: .45rem;
  background: var(--black-soft);
  border: 1px solid rgba(212,175,55,.55);
  border-radius: 7px;
  box-shadow: 0 12px 28px rgba(0,0,0,.4);
  display: none;
}

.dropdown a { padding: .65rem .75rem; }

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown { display: block; }

.hero {
  min-height: 640px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.52)),
    url("../images/hero.svg") center/cover no-repeat;
  border-bottom: 4px solid var(--gold);
}

.hero-content {
  max-width: 760px;
  padding: 5rem 0;
}

.eyebrow {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 800;
  font-size: .82rem;
}

h1, h2, h3 {
  line-height: 1.15;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.gold { color: var(--gold-light); }

.lead {
  font-size: 1.2rem;
  max-width: 680px;
  color: #f1f1f1;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.7rem;
}

.btn {
  display: inline-block;
  padding: .82rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 800;
  border: 2px solid var(--gold);
  transition: transform .18s ease, background .18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--black);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-light);
}

section { padding: 4.5rem 0; }

.section-light {
  background: var(--cream);
  color: #181818;
}

.section-dark {
  background: var(--black-soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: #202020;
  border: 1px solid rgba(212,175,55,.38);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.2);
}

.section-light .card {
  background: var(--white);
  color: #171717;
}

.card-body { padding: 1.35rem; }

.card h3 { color: var(--gold); }

.card-icon {
  height: 180px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #151515, #343434);
  color: var(--gold);
  font-size: 4rem;
}

.notice {
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--gold);
  background: rgba(212,175,55,.11);
}

.schedule {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  color: #151515;
  border-radius: 8px;
  overflow: hidden;
}

.schedule th,
.schedule td {
  padding: .85rem;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.schedule th {
  background: var(--gold);
  color: var(--black);
}

.schedule tr:nth-child(even) td { background: #f7f2e6; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}

.gallery-grid figure {
  margin: 0;
  border: 1px solid rgba(212,175,55,.45);
  background: #1c1c1c;
}

.gallery-grid figcaption {
  padding: .65rem .8rem;
  color: var(--gold-light);
}

.page-hero {
  padding: 5.5rem 0 3.5rem;
  background: linear-gradient(135deg, #050505, #262626);
  border-bottom: 3px solid var(--gold);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
}

.two-column {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2rem;
  align-items: start;
}

.info-panel {
  background: #202020;
  border: 1px solid rgba(212,175,55,.4);
  border-radius: 10px;
  padding: 1.4rem;
}

.section-light .info-panel {
  background: var(--white);
}

.price {
  font-size: 2rem;
  color: var(--gold);
  font-weight: 800;
}

.calendar-list {
  display: grid;
  gap: 1rem;
}

.event {
  display: grid;
  grid-template-columns: 95px 1fr;
  background: #202020;
  border: 1px solid rgba(212,175,55,.4);
  border-radius: 8px;
  overflow: hidden;
}

.event-date {
  background: var(--gold);
  color: var(--black);
  display: grid;
  place-items: center;
  padding: .8rem;
  font-weight: 900;
  text-align: center;
}

.event-body { padding: 1rem 1.15rem; }

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product-image {
  height: 230px;
  display: grid;
  place-items: center;
  font-size: 4.5rem;
  background: linear-gradient(145deg, #111, #333);
}

form {
  display: grid;
  gap: .9rem;
}

label { font-weight: 700; }

input, select, textarea {
  width: 100%;
  padding: .8rem;
  border-radius: 5px;
  border: 1px solid #777;
  font: inherit;
}

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

.site-footer {
  border-top: 1px solid rgba(212,175,55,.4);
  background: #050505;
  padding: 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
}

.footer-grid a { text-decoration: none; }

.small {
  font-size: .88rem;
  color: #cfcfcf;
}

@media (max-width: 850px) {
  .menu-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #0b0b0b;
    padding: .8rem 4%;
    border-bottom: 1px solid var(--gold);
  }
  .nav-menu.active { display: flex; }
  .dropdown {
    position: static;
    box-shadow: none;
    margin-left: .8rem;
  }
  .card-grid,
  .gallery-grid,
  .store-grid,
  .footer-grid,
  .two-column {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 560px; }
}

@media (max-width: 520px) {
  .brand-text { max-width: 190px; }
  .event { grid-template-columns: 76px 1fr; }
  .schedule { font-size: .86rem; }
  .schedule th, .schedule td { padding: .55rem; }
}

/* Xtreme Studios logo */
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0;
  text-decoration: none;
}

.header-logo {
  display: block;
  width: auto;
  height: 118px;
  max-width: 310px;
  object-fit: contain;
}

.footer-logo {
  display: block;
  width: auto;
  height: 125px;
  max-width: 285px;
  object-fit: contain;
  margin: 0 0 0.75rem;
}

@media (max-width: 900px) {
  .header-logo {
    height: 92px;
    max-width: 245px;
  }
}

@media (max-width: 700px) {
  .header-logo {
    height: 76px;
    max-width: 205px;
  }

  .footer-logo {
    height: 105px;
    max-width: 240px;
  }
}

/* =========================================================
   Mobile-first portrait layout refinements
   ========================================================= */

html {
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

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

button,
.btn,
.nav-menu a,
.drop-button {
  min-height: 44px;
}

/* Better phone proportions */
@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, 1100px);
  }

  .topbar {
    padding: 0.55rem 0.85rem;
    font-size: 0.74rem;
    line-height: 1.35;
    text-align: center;
  }

  .site-header {
    position: relative;
  }

  .nav-wrap {
    min-height: auto;
    padding: 0.7rem 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.65rem;
  }

  .brand-logo-link {
    justify-self: center;
    width: 100%;
  }

  .header-logo {
    width: auto;
    height: 88px;
    max-width: 210px;
    margin: 0 auto;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 0;
    font-size: 1.45rem;
    border-radius: 6px;
  }

  .nav-menu {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    padding: 0.45rem 0;
  }

  .nav-menu > li {
    width: 100%;
  }

  .nav-menu a,
  .drop-button {
    width: 100%;
    padding: 0.8rem 0.9rem;
    text-align: left;
    font-size: 1rem;
  }

  .dropdown {
    position: static;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    border-left: 2px solid var(--gold, #c99a35);
  }

  .hero,
  .page-hero {
    min-height: auto;
    padding: 3.2rem 0;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.15rem, 11vw, 3.35rem);
    line-height: 0.98;
    margin-bottom: 1rem;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.6;
  }

  .button-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: 100%;
  }

  .button-row .btn,
  .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  section,
  .section-light,
  .section-dark {
    padding-top: 2.8rem;
    padding-bottom: 2.8rem;
  }

  .section-heading {
    margin-bottom: 1.6rem;
  }

  .section-heading h2,
  .two-column h2 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
    line-height: 1.08;
  }

  .card-grid,
  .store-grid,
  .gallery-grid,
  .footer-grid,
  .two-column {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card {
    min-height: 0;
  }

  .card-icon,
  .product-image {
    min-height: 96px;
  }

  .card-body {
    padding: 1.15rem;
  }

  .info-panel {
    padding: 1.2rem;
  }

  .notice {
    padding: 1rem;
  }

  .event {
    grid-template-columns: 64px 1fr;
    gap: 0.85rem;
    padding: 1rem;
  }

  .event-date {
    font-size: 0.9rem;
  }

  .gallery-grid figure {
    margin: 0;
  }

  .site-footer {
    text-align: center;
  }

  .footer-logo {
    height: 115px;
    max-width: 245px;
    margin: 0 auto 0.75rem;
  }

  .site-footer ul {
    padding-left: 0;
    list-style: none;
  }

  /* Allow the timetable to scroll rather than compress unreadably */
  .schedule {
    min-width: 680px;
  }

  .section-light .container:has(.schedule) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }

  form input,
  form select,
  form textarea {
    width: 100%;
    font-size: 16px;
  }
}

/* Very narrow phones */
@media (max-width: 390px) {
  .container {
    width: min(100% - 20px, 1100px);
  }

  .header-logo {
    height: 80px;
    max-width: 190px;
  }

  .hero,
  .page-hero {
    padding: 2.6rem 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(1.95rem, 10.5vw, 2.75rem);
  }

  .card-body,
  .info-panel {
    padding: 1rem;
  }
}

