/* Global theme overrides — warm, premium, light
   Library-first: built on top of Bootstrap 5.3 + AOS + FontAwesome */

html[data-bs-theme="light"] {
  --bs-body-bg: #faf8f4;
  --bs-body-color: #2d2420;

  --bs-primary: #a87b4f;
  --bs-primary-rgb: 168, 123, 79;
  --bs-primary-bg-subtle: #f3ebe3;
  --bs-primary-border-subtle: #d4b896;
  --bs-primary-text-emphasis: #6b4d2f;

  --bs-secondary: #7d7068;
  --bs-secondary-rgb: 125, 112, 104;

  --bs-success: #5b8c5a;
  --bs-info: #4e8a9c;
  --bs-warning: #c99a4e;
  --bs-danger: #a94442;

  --bs-light: #f5f2ec;
  --bs-dark: #3e2e25;

  --bs-link-color: #a87b4f;
  --bs-link-hover-color: #7d5a37;

  --or-accent-gold: #c9a227;
  --or-deep: #3e2e25;
  --or-ivory: #f9f7f2;
  --or-cream: #f5f2ec;
  --or-taupe: #7d7068;
  --or-overlay: rgba(0, 0, 0, 0.6);

  --bs-font-sans-serif: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;max-width: 100%;
}

body {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-family: var(--bs-font-sans-serif);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--or-deep);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--bs-link-color);
  transition: color 0.2s ease;
}

a:hover, a:focus {
  color: var(--bs-link-hover-color);
}

/* Buttons */
.btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: #8b633b;
  --bs-btn-hover-border-color: #8b633b;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #7d5a37;
  --bs-btn-active-border-color: #7d5a37;
}

.btn-outline-primary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
}

.btn-light {
  --bs-btn-bg: var(--or-ivory);
  --bs-btn-border-color: var(--or-ivory);
  --bs-btn-color: var(--or-deep);
  --bs-btn-hover-bg: #ebe6db;
  --bs-btn-hover-border-color: #ebe6db;
}

/* Header */
.site-header {
  box-shadow: 0 1px 0 rgba(46, 38, 32, 0.05);
}

.topbar {
  background-color: var(--bs-light);
}

.navbar-brand img {
  object-fit: contain;
}

.nav-link {
  color: var(--or-deep);
  font-weight: 500;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--bs-primary);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Footer */
.footer-cta {
  background-size: cover;
  background-position: center;
}

.footer-main {
  background-color: var(--or-deep) !important;
}

.footer-main a.text-white-50:hover {
  color: var(--or-ivory) !important;
}

.footer-main .alert-warning {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--or-ivory);
}

/* Section base */
section {
  position: relative;
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 992px) {
  .section-padding {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 0.25rem;
  background: var(--bs-primary);
  margin-top: 0.75rem;
  border-radius: 1rem;
}

/* Background image sections */
.bg-image-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-image-section .section-title::after,
.bg-image-section .section-title-light::after {
  background: var(--or-accent-gold);
}

.text-ivory {
  color: var(--or-ivory) !important;
}

/* Decorative elements (CSS only, no SVG) */
.deco-blob,
.deco-ring,
.deco-dot {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.deco-blob {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(168, 123, 79, 0.12), transparent 70%);
  filter: blur(2px);
}

.deco-ring {
  border: 2px solid rgba(168, 123, 79, 0.18);
  border-radius: 50%;
}

.deco-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--bs-primary);
  opacity: 0.35;
}

/* Marquee */
.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 2.5rem;
  animation: marquee 40s linear infinite;
}

.marquee-track-reverse {
  animation-direction: reverse;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-separator {
  color: var(--bs-primary);
  opacity: 0.5;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 767.98px) {
  .marquee-track {
    animation-duration: 60s;
  }
}

/* Bento grid */
.bento-cell {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--bs-white);
  box-shadow: 0 8px 30px rgba(46, 38, 32, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bento-cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(46, 38, 32, 0.1);
}

.bento-cell.bg-image-section {
  background-size: cover;
  background-position: center;
}

/* Game switcher */
.game-tab {
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.game-tab:hover,
.game-tab.active {
  background: var(--bs-primary-bg-subtle);
  border-left-color: var(--bs-primary);
}

.game-tab .game-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bs-white);
  color: var(--bs-primary);
  box-shadow: 0 4px 12px rgba(46, 38, 32, 0.06);
}

.game-preview {
  background-size: cover;
  background-position: center;
  border-radius: 1.25rem;
  min-height: 360px;
}

@media (max-width: 767.98px) {
  .game-tab .game-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Pricing */
.pricing-card {
  border-radius: 1.5rem;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(46, 38, 32, 0.08);
}

.pricing-card.popular {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 1px var(--bs-primary), 0 18px 50px rgba(168, 123, 79, 0.12);
}

.pricing-toggle .btn-check:checked + .btn {
  background-color: var(--bs-primary);
  color: #fff;
  border-color: var(--bs-primary);
}

/* FAQ */
.faq-accordion .accordion-button::after {
  background-image: none;
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1rem;
  color: var(--bs-primary);
  width: auto;
  height: auto;
  transition: transform 0.2s ease;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
  color: var(--bs-primary-text-emphasis);
}

.faq-search .form-control {
  border-radius: 2rem;
  padding-left: 3rem;
}

.faq-search .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bs-secondary);
  pointer-events: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-primary-text-emphasis);
  box-shadow: none;
}

.faq-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: var(--bs-primary-border-subtle);
}

/* Testimonials */
.testimonial-avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bs-white);
  box-shadow: 0 4px 15px rgba(46, 38, 32, 0.1);
}

/* Stats / counters */
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--bs-primary);
  line-height: 1;
}

.stat-label {
  color: var(--or-taupe);
  font-weight: 500;
}

.progress {
  height: 0.5rem;
  background-color: var(--bs-light);
}

.progress-bar {
  background-color: var(--bs-primary);
}

/* Timeline */
.timeline-step {
  position: relative;
  padding-left: 2.5rem;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 2.2rem;
  bottom: -1.5rem;
  width: 2px;
  background: var(--bs-primary-border-subtle);
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-step .step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--bs-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background-color: var(--or-deep);
  color: var(--or-ivory);
  transform: translateY(0);
  transition: transform 0.35s ease;
}

.cookie-banner.hidden {
  transform: translateY(110%);
}

.cookie-banner a {
  color: var(--or-accent-gold);
  text-decoration: underline;
}

/* Toast notification */
.toast-container {
  z-index: 1055;
}

/* Forms */
.form-control,
.form-select {
  border-radius: 0.75rem;
  border-color: var(--bs-border-color);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.25rem rgba(168, 123, 79, 0.15);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  color: var(--bs-primary-text-emphasis);
}

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

/* Cards and utility polish */
.card {
  border-radius: 1.25rem;
  border-color: var(--bs-border-color);
}

.shadow-soft {
  box-shadow: 0 10px 35px rgba(46, 38, 32, 0.06) !important;
}

.rounded-xl {
  border-radius: 1.5rem !important;
}

/* Ratio blocks */
.ratio-4x3 {
  --bs-aspect-ratio: 75%;
}

.ratio-3x2 {
  --bs-aspect-ratio: 66.66%;
}

/* Testimonials carousel controls */
#homeTestimonials .carousel-control-prev-icon,
#homeTestimonials .carousel-control-next-icon {
  background-image: none !important;
}

#homeTestimonials .carousel-control-prev,
#homeTestimonials .carousel-control-next {
  opacity: 1;
}

#homeTestimonials .carousel-indicators button {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: var(--or-ivory);
  opacity: 0.4;
}

#homeTestimonials .carousel-indicators button.active {
  opacity: 1;
}

/* Form validation — remove Bootstrap SVG icons */
.was-validated .form-control:valid,
.was-validated .form-control:invalid,
.was-validated .form-select:valid,
.was-validated .form-select:invalid {
  background-image: none;
}

.was-validated .form-control:valid {
  border-color: var(--bs-success);
}

.was-validated .form-control:invalid {
  border-color: var(--bs-danger);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Current year span */
.current-year {
  font-variant-numeric: tabular-nums;
}
