@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --ach-gold: #c9a227;
  --ach-gold-light: #e6c86a;
  --ach-gold-dark: #9a7b1a;
  --ach-forest: #1e4d2b;
  --ach-emerald: #2d7a4a;
  --ach-void: #0b0d10;
  --ach-ink: #0f1115;
  --ach-graphite: #161920;
  --ach-steel: #2a2f36;
  --ach-mist: #e8e6e1;
  --ach-cream: #f7f5f0;
  --ach-muted: #9ca3af;
  --ach-overlay: rgba(0, 0, 0, 0.55);

  --bs-body-bg: var(--ach-void);
  --bs-body-color: var(--ach-cream);
  --bs-primary: var(--ach-gold);
  --bs-primary-rgb: 201, 162, 39;
  --bs-secondary: var(--ach-forest);
  --bs-secondary-rgb: 30, 77, 43;
  --bs-light: var(--ach-cream);
  --bs-dark: var(--ach-ink);
  --bs-border-color: rgba(255, 255, 255, 0.08);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --section-py: 7rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--ach-void);
  color: var(--ach-cream);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .display-font {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

a {
  color: var(--ach-gold-light);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--ach-gold);
  text-decoration: underline;
}

.text-gold { color: var(--ach-gold) !important; }
.text-gold-light { color: var(--ach-gold-light) !important; }
.text-cream { color: var(--ach-cream) !important; }
.text-muted-custom { color: var(--ach-muted) !important; }
.text-ink { color: var(--ach-ink) !important; }

.bg-ink { background-color: var(--ach-ink) !important; }
.bg-graphite { background-color: var(--ach-graphite) !important; }
.bg-void { background-color: var(--ach-void) !important; }
.bg-forest { background-color: var(--ach-forest) !important; }
.bg-gold { background-color: var(--ach-gold) !important; }

.border-gold { border-color: var(--ach-gold) !important; }
.border-white-10 { border-color: rgba(255, 255, 255, 0.1) !important; }

.letter-spacing-1 { letter-spacing: 0.05em; }

.gold-rule {
  width: 5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--ach-gold), transparent);
}

.gold-rule.centered {
  margin-left: auto;
  margin-right: auto;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--ach-gold-light), var(--ach-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-gold {
  --bs-btn-bg: var(--ach-gold);
  --bs-btn-color: var(--ach-ink);
  --bs-btn-border-color: var(--ach-gold);
  --bs-btn-hover-bg: var(--ach-gold-light);
  --bs-btn-hover-color: var(--ach-ink);
  --bs-btn-hover-border-color: var(--ach-gold-light);
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.85rem 2rem;
  border-radius: 0.25rem;
  transition: all 0.25s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.25);
}

.btn-outline-gold {
  --bs-btn-color: var(--ach-gold);
  --bs-btn-border-color: var(--ach-gold);
  --bs-btn-bg: transparent;
  --bs-btn-hover-bg: var(--ach-gold);
  --bs-btn-hover-color: var(--ach-ink);
  font-weight: 500;
  padding: 0.85rem 2rem;
  border-radius: 0.25rem;
  transition: all 0.25s ease;
}

.btn-outline-gold:hover {
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.2);
}

/* Glass card */
.glass-card {
  background: rgba(22, 25, 32, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 2rem;
}

.panel-dark {
  background: var(--ach-graphite);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
}

.panel-gold {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.12), rgba(30, 77, 43, 0.15));
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 0.75rem;
}

/* Header / Nav */
#inject-header {
  position: relative;
}

.topbar {
  background: var(--ach-ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.topbar i {
  color: var(--ach-gold);
  margin-right: 0.4rem;
}

.navbar-brand img {
  height: 42px;
  width: auto;
}

.navbar {
  background: rgba(11, 13, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
}

.navbar .nav-link {
  color: var(--ach-cream);
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.75rem 1rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--ach-gold);
}

.navbar .nav-link.active {
  color: var(--ach-gold);
}

.navbar-toggler {
  border: none;
  color: var(--ach-gold);
  font-size: 1.4rem;
}

.offcanvas {
  z-index: 1060 !important;
}

.offcanvas-backdrop {
  z-index: 1050 !important;
}

.offcanvas.offcanvas-end {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.offcanvas .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.offcanvas .nav-link {
  font-size: 1.1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.offcanvas .btn-gold {
  margin-top: 1rem;
}

@media (max-width: 991.98px) {
  .offcanvas.offcanvas-end {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section .hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ach-gold);
  margin-bottom: 1.25rem;
}

.hero-section .lead {
  color: var(--ach-muted);
  font-size: 1.15rem;
  max-width: 640px;
}

.hero-section .hero-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 1.25rem;
}

.hero-stat .value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ach-gold);
}

.hero-stat .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ach-muted);
}

.hero-ornament {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.hero-ornament-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--ach-gold), transparent 70%);
  top: -120px;
  right: -80px;
}

.hero-ornament-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--ach-forest), transparent 70%);
  bottom: -100px;
  left: -100px;
}

/* Section base */
.section-padding {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  position: relative;
}

.section-ornament {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.section-ornament::before,
.section-ornament::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}

.section-ornament.gold::before {
  width: 320px;
  height: 320px;
  background: var(--ach-gold);
  top: -80px;
  right: -40px;
}

.section-ornament.forest::after {
  width: 280px;
  height: 280px;
  background: var(--ach-forest);
  bottom: -60px;
  left: -60px;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ach-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.eyebrow::after {
  content: '';
  display: inline-block;
  width: 3rem;
  height: 1px;
  background: var(--ach-gold);
}

.section-title + p {
  color: var(--ach-muted);
  max-width: 640px;
}

/* Background gradient variants */
.bg-gradient-void {
  background: linear-gradient(180deg, var(--ach-void), var(--ach-ink));
}

.bg-gradient-graphite {
  background: linear-gradient(180deg, var(--ach-graphite), var(--ach-void));
}

/* Image treatment */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-rounded {
  border-radius: 0.75rem;
}

.img-overlay {
  position: relative;
}

.img-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 16, 0.25), rgba(11, 13, 16, 0.85));
  border-radius: inherit;
}

/* Metric grid */
.metric-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 2rem;
  background: rgba(22, 25, 32, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--ach-gold);
}

.metric-card .value {
  font-family: var(--font-display);
  font-size: 2.75rem;
  color: var(--ach-gold);
  margin-bottom: 0.25rem;
}

.metric-card .label {
  color: var(--ach-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Bento / package cards */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-item {
  min-height: 280px;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: var(--ach-graphite);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bento-item.large {
  grid-column: span 8;
}

.bento-item.small {
  grid-column: span 4;
}

.bento-item.wide {
  grid-column: span 12;
}

.package-card {
  background: rgba(22, 25, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.package-card.featured {
  border-color: var(--ach-gold);
  box-shadow: 0 0 40px rgba(201, 162, 39, 0.12);
  transform: scale(1.02);
}

.package-card:hover {
  border-color: var(--ach-gold);
}

.package-card .price {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--ach-gold);
}

.package-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}

.package-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--ach-cream);
}

.package-list li i {
  color: var(--ach-gold);
  margin-right: 0.75rem;
}

/* Game selector */
.game-selector {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(22, 25, 32, 0.5);
}

.game-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.game-nav .game-tab {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ach-cream);
  padding: 0.7rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.game-nav .game-tab:hover,
.game-nav .game-tab.active {
  background: var(--ach-gold);
  border-color: var(--ach-gold);
  color: var(--ach-ink);
}

.game-panel {
  display: none;
  padding: 2.5rem;
}

.game-panel.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Portfolio masonry */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 1.5rem;
}

.masonry-item {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
}

.masonry-item.tall {
  grid-column: span 5;
  grid-row: span 2;
}

.masonry-item.wide {
  grid-column: span 7;
}

.masonry-item.small {
  grid-column: span 4;
}

.masonry-item .overlay-content {
  position: relative;
  z-index: 2;
}

.masonry-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.masonry-item:hover img {
  transform: scale(1.05);
}

.masonry-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 16, 0.2), rgba(11, 13, 16, 0.85));
  z-index: 1;
}

/* Timeline / process */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--ach-gold), var(--ach-forest));
}

.timeline-step {
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 2rem;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 0.25rem;
  width: 0.9rem;
  height: 0.9rem;
  background: var(--ach-gold);
  border-radius: 50%;
  border: 3px solid var(--ach-void);
}

/* Testimonials */
.testimonial-card {
  border-left: 3px solid var(--ach-gold);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.testimonial-card .quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-card .author {
  color: var(--ach-gold-light);
  font-weight: 600;
}

/* Team */
.team-card {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.team-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.team-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 16, 0.2), rgba(11, 13, 16, 0.9));
  z-index: 1;
}

.team-card .team-content {
  position: relative;
  z-index: 2;
}

/* Cookie banner */
#cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 1090;
  background: rgba(22, 25, 32, 0.96);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Forms */
.form-control, .form-select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ach-cream);
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
}

.form-control:focus, .form-select:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--ach-gold);
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.2);
  color: var(--ach-cream);
}

.form-control::placeholder {
  color: var(--ach-muted);
}

.form-label {
  color: var(--ach-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Footer */
#inject-footer {
  position: relative;
  z-index: 1;
}

.footer-main {
  background: var(--ach-ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom {
  background: var(--ach-void);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
}

.footer-link {
  color: var(--ach-muted);
  display: inline-block;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--ach-gold);
}

.offline-warning {
  border: 1px solid rgba(201, 162, 39, 0.25);
  background: rgba(201, 162, 39, 0.06);
  border-radius: 0.5rem;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--ach-muted);
}

/* Utilities */
.deco-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.deco-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ach-gold);
}

.section-number {
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  position: absolute;
  top: -1rem;
  right: 1rem;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 991.98px) {
  :root { --section-py: 5rem; }
  .bento-item.large,
  .bento-item.small,
  .bento-item.wide {
    grid-column: span 12;
  }
  .masonry-item.tall,
  .masonry-item.wide,
  .masonry-item.small {
    grid-column: span 12;
    grid-row: span 1;
  }
  .package-card.featured {
    transform: none;
  }
  .section-number {
    font-size: 4.5rem;
  }
  .hero-section {
    min-height: auto;
    padding: 0rem 0 5rem;
  }
  .topbar .small {
    display: block;
    text-align: center;
    padding: 0.2rem 0;
  }
}

@media (max-width: 767.98px) {
  h1 { font-size: clamp(2rem, 10vw, 3rem); }
  h2 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .game-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .game-nav .game-tab {
    white-space: nowrap;
  }
}
