/* After Hours Fun – Main Stylesheet */
:root {
  --gold: #D4AF37;
  --gold-light: #F5E6A3;
  --gold-dark: #B8960C;
  --navy: #0A1628;
  --navy-light: #142240;
  --navy-mid: #1A3050;
  --text: #E8EEF5;
  --text-muted: #8B9DC3;
  --white: #FFFFFF;
  --overlay: rgba(10, 22, 40, 0.92);
  --radius: 8px;
  --transition: 0.3s ease;
  --header-h: 72px;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p { margin-bottom: 1rem; color: var(--text-muted); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  margin: 1rem auto 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }

.nav-list {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav-list a {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-list a:hover,
.nav-list a.active { color: var(--gold); }

.nav-list a:hover::after,
.nav-list a.active::after { width: 100%; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 22, 40, 0.85) 0%, rgba(10, 22, 40, 0.6) 50%, rgba(10, 22, 40, 0.9) 100%),
    url('../images/hero.webp') center/cover no-repeat;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 { margin-bottom: 1.25rem; }

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--navy-light);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}

.card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--gold);
}

.card h3 { margin-bottom: 0.75rem; color: var(--gold-light); }

/* Games Section */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--navy-mid);
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.95) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.game-card-overlay h3 { color: var(--gold); margin-bottom: 0.25rem; }
.game-card-overlay p { font-size: 0.875rem; margin: 0; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* Hotel & Restaurant */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0;
}

.feature-list li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  color: var(--text-muted);
}

.feature-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.6rem;
  top: 0.75rem;
}

/* FAQ Accordion */
.accordion { max-width: 800px; margin: 0 auto; }

.accordion-item {
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
}

.accordion-header:hover { color: var(--gold); }

.accordion-icon {
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}

.accordion-item.active .accordion-icon { transform: rotate(45deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-item.active .accordion-body {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.accordion-body p { font-size: 0.9375rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: var(--navy-light);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
}

.contact-card h3 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.contact-card p { margin: 0; }

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
  aspect-ratio: 16/7;
}

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

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner p { max-width: 600px; margin: 0 auto 1.5rem; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--navy);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Job Listings */
.job-card {
  background: var(--navy-light);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.job-card h3 {
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.job-meta span {
  padding: 0.25rem 0.75rem;
  background: var(--navy);
  border-radius: 20px;
}

.job-requirements {
  list-style: none;
  margin: 1rem 0;
}

.job-requirements li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.job-requirements li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* Partnership */
.partner-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.tier-card {
  background: var(--navy-light);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tier-card.featured {
  border-color: var(--gold);
  transform: scale(1.02);
}

.tier-card.featured::before {
  content: 'Polecany';
  position: absolute;
  top: 16px;
  right: -28px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 32px;
  transform: rotate(45deg);
}

.tier-card h3 {
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.tier-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--white);
  margin: 1rem 0;
}

.tier-features {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0;
}

.tier-features li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}

/* About */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid rgba(212, 175, 55, 0.3);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid var(--navy);
}

.timeline-item h3 { color: var(--gold); margin-bottom: 0.5rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--navy-light);
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.value-card .value-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--gold);
  opacity: 0.4;
  margin-bottom: 0.5rem;
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 3rem) 1.25rem 5rem;
}

.legal-content h1 {
  margin-bottom: 0.5rem;
}

.legal-content .updated {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--gold-light);
}

.legal-content h3 {
  font-size: 1.125rem;
  margin: 1.5rem 0 0.75rem;
}

.legal-content ul, .legal-content ol {
  margin: 0.75rem 0 1rem 1.5rem;
  color: var(--text-muted);
}

.legal-content li { margin-bottom: 0.5rem; }

/* Page Hero (inner pages) */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 3rem;
  background: linear-gradient(180deg, var(--navy-light) 0%, var(--navy) 100%);
  text-align: center;
}

.page-hero p {
  max-width: 600px;
  margin: 1rem auto 0;
}

/* Footer */
.footer {
  background: var(--navy-light);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding: 4rem 0 2rem;
}

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

.footer-brand p {
  font-size: 0.875rem;
  margin-top: 1rem;
  max-width: 300px;
}

.footer h4 {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
}

.footer-locations span { color: var(--text-muted); }

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--navy-light);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  transform: scale(0.9);
  transition: transform var(--transition);
}

.modal-overlay.active .modal { transform: scale(1); }

.modal h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.modal p { margin-bottom: 1.5rem; }

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-buttons .btn { width: 100%; }

.modal-link {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
}

.modal-link a { text-decoration: underline; }

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover { color: var(--gold); }

.modal.has-close { position: relative; }

/* Age Gate */
#age-gate .modal { max-width: 420px; }

#age-gate .modal-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--navy-light);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 1.25rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.active { transform: translateY(0); }

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-inner p {
  flex: 1;
  min-width: 250px;
  margin: 0;
  font-size: 0.875rem;
}

.cookie-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Cookie Settings Modal */
.cookie-options { text-align: left; margin: 1.5rem 0; }

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.cookie-option label { color: var(--text); font-size: 0.9375rem; }

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--navy);
  border-radius: 24px;
  cursor: pointer;
  transition: background var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}

.toggle input:checked + .toggle-slider { background: var(--gold-dark); }
.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: var(--white);
}

.toggle input:disabled + .toggle-slider { opacity: 0.6; cursor: not-allowed; }

/* Form Success */
.form-success {
  display: none;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1rem;
}

.form-success.active { display: block; }

/* Responsive */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split-section { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav-list.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-list li { padding: 0.75rem 0; }

  .burger { display: flex; }

  .nav .btn { display: none; }

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

  .tier-card.featured { transform: none; }

  .hero { min-height: 85vh; }

  .section { padding: 3.5rem 0; }
}

@media (max-width: 360px) {
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .cookie-inner { flex-direction: column; }
}
