@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  /* Color Tokens */
  --color-primary-yellow: #e5ac11;
  --color-primary-yellow-hover: #c4920e;
  --color-primary-yellow-light: #fcf6e6;
  --color-secondary-blue: #2b4a9a;
  --color-secondary-blue-hover: #1f3775;
  --color-secondary-blue-light: #eef2fa;
  --color-accent-orange: #da6314;
  --color-cream-bg: #fdfcf7;
  --color-bg-white: #ffffff;
  --color-bg-sand: #fdfcf7;
  --color-bg-footer: #1e335e;
  --color-text-dark: #1a1a1a;
  --color-text-medium: #4a4a4a;
  --color-text-muted: #777777;
  --color-text-white: #ffffff;
  --color-focus-ring: #e5ac11;
  --color-border: #e0e0e0;
  --color-border-light: #f0f0f0;

  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section-top: 80px;
  --space-section-bottom: 80px;
  --container-max-width: 1140px;
  --grid-gap: 30px;
}

/* CSS Reset & Defaults */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Arial', 'Helvetica', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-medium);
  background-color: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Focus Indicator accessibility */
:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 3px;
}

/* Typography styles based on spec */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Arial', 'Helvetica', sans-serif;
  color: var(--color-text-dark);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
}

h2 {
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

p.large {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  margin:25px 0;
  color: var(--color-text-medium);
}

p.base {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
    margin:25px 0;
  color: var(--color-text-medium);
}

p.small {
  font-size: 14px;
  font-weight: 400;
    margin:25px 0;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.text-center {
	display: flex;
    border-radius: 20px;
    flex-direction: column;
    align-items: center;
}
.section-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary-yellow);
  display: inline-block;
  margin-bottom: var(--space-sm);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-md);
  padding-left: var(--space-md);
}

.section {
  padding-top: var(--space-section-top);
  padding-bottom: var(--space-section-bottom);
}

.section-sand {
  background-color: var(--color-bg-sand);
}

.section-yellow-light {
  background-color: var(--color-primary-yellow-light);
}

.section-blue-light {
  background-color: var(--color-secondary-blue-light);
}

/* Grid & Flex Utilities */
.grid {
  display: grid;
  gap: var(--grid-gap);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-light);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--color-secondary-blue);
}

.logo-link span {
  color: var(--color-primary-yellow);
}

.logo-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--space-xl);
}

.nav-link {
  color: var(--color-secondary-blue);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary-yellow);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-primary-yellow);
  border-radius: 2px;
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--color-secondary-blue);
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
  min-height: 48px; /* accessibility target */
  gap: var(--space-sm);
}

.btn-primary {
  background-color: var(--color-primary-yellow);
  color: var(--color-secondary-blue);
  padding: 14px 32px;
  font-weight: 700;
}

.btn-primary:hover {
  background-color: var(--color-primary-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(229, 172, 17, 0.4);
}

.btn-primary:active {
  transform: scale(0.96);
}

.btn-blue {
  background-color: var(--color-secondary-blue);
  color: var(--color-text-white);
  padding: 16px 32px;
  font-weight: 600;
}

.btn-blue:hover {
  background-color: var(--color-secondary-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 74, 154, 0.3);
}

.btn-blue:active {
  transform: scale(0.96);
}

/* Interactive SVG Icon inside buttons */
.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Cards System */
.card {
  background: var(--color-bg-white);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.service-card {
  background: var(--color-bg-white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
}

.service-card .icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--color-primary-yellow-light);
  color: var(--color-accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 24px;
}

.service-card h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-text-dark);
}

.service-card p {
  color: var(--color-text-medium);
  flex-grow: 1;
}

/* Stat Cards */
.stat-card {
  background: var(--color-primary-yellow-light);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.3s, background-color 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.stat-card:hover {
  transform: translateY(-4px);
  background-color: #fcf0d6;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 800;
  color: var(--color-secondary-blue);
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

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

/* Page Specific Hero Layouts */
.hero-wrapper {
  background-color: var(--color-cream-bg);
  position: relative;
  padding-top: 140px;
  padding-bottom: 120px;
  overflow: hidden;
}

.hero-grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: var(--space-xxl);
}

.hero-grid-2 > div:first-child,
.split-layout > div:first-child {
  position: relative;
  z-index: 2;
}

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.hero-image-wrap img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.hero-leaf-graphic {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 120%;
  height: 120%;
  background-color: var(--color-primary-yellow-light);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  z-index: -1;
  opacity: 0.6;
}

.hero-badge-quote {
  position: absolute;
  bottom: 30px;
  left: -20px;
  background-color: var(--color-bg-white);
  padding: var(--space-md) var(--space-lg);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  z-index: 3;
  font-weight: 600;
  color: var(--color-secondary-blue);
  font-size: 14px;
  max-width: 220px;
}

.hero-badge-count {
  position: absolute;
  top: 30px;
  right: -20px;
  background-color: var(--color-secondary-blue);
  color: var(--color-text-white);
  padding: var(--space-sm) var(--space-md);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(43, 74, 154, 0.2);
  z-index: 3;
  font-weight: 700;
  font-size: 13px;
}

/* Curved organic wave transition */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 40px;
  fill: var(--color-bg-white);
}

/* Split layout segments */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-xxl);
}

.split-layout.reverse {
  direction: rtl;
}

.split-layout.reverse > * {
  direction: ltr;
}

.split-layout img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.04);
}

/* Features Bullet lists */
.features-bullets {
  list-style: none;
  display: grid;
  gap: var(--space-md);
}

.features-bullets li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: 16px;
  color: var(--color-text-medium);
}

.checkmark-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-primary-yellow-light);
  color: var(--color-accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: bold;
}

/* Steps System */
.steps-list {
  display: grid;
  gap: var(--space-lg);
}

.step-item {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-primary-yellow);
  color: var(--color-secondary-blue);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  margin-bottom: var(--space-xs);
  font-size: 18px;
}

/* Partners Flex bar */
.partners-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.partner-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 1px;
  filter: grayscale(100%);
  opacity: 0.6;
}

/* Testimonial Quote Cards (no avatars) */
.quotes-container {
  display: grid;
  gap: var(--space-lg);
}

.quote-card {
  background-color: #fdfcf7;
  padding: var(--space-lg);
  border-radius: 16px;
  border: 1px solid rgba(229, 172, 17, 0.15);
  box-shadow: 0 4px 15px rgba(0,0,0,0.01);
  position: relative;
}

.quote-text {
  font-style: italic;
  margin-bottom: var(--space-md);
  color: var(--color-text-medium);
  font-size: 15px;
}

.quote-author {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-secondary-blue);
}

/* Footer Section */
footer {
  background-color: var(--color-bg-footer);
  color: var(--color-text-white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-xxl);
  margin-bottom: var(--space-xxl);
}

.footer-col h4 {
  color: var(--color-text-white);
  font-size: 16px;
  margin-bottom: var(--space-lg);
  font-weight: 700;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: var(--space-md);
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: var(--space-sm);
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: var(--color-primary-yellow);
}

.footer-logo-wrap {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--color-text-white);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-logo-wrap span {
  color: var(--color-primary-yellow);
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* Form Styles */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: var(--space-sm);
}

.input-field {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px 20px;
  width: 100%;
  font-size: 15px;
  color: var(--color-text-dark);
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: inherit;
}

.input-field::placeholder {
  color: var(--color-text-muted);
}

.input-field:focus {
  border-color: var(--color-primary-yellow);
  outline: none;
  box-shadow: 0 0 0 3px rgba(229, 172, 17, 0.1);
}

textarea.input-field {
  min-height: 120px;
  resize: vertical;
}

.input-field:disabled {
  background: #f5f5f5;
  opacity: 0.6;
  cursor: not-allowed;
}

/* Modals System (used on game review details) */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(5px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: var(--space-md);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background-color: var(--color-bg-white);
  border-radius: 20px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  animation: modalScaleUp 0.3s ease;
  position: relative;
}

@keyframes modalScaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-body {
  padding: var(--space-xxl);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-secondary-blue-light);
  border: none;
  color: var(--color-secondary-blue);
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  z-index: 10;
}

.modal-close:hover {
  background-color: var(--color-primary-yellow-light);
  color: var(--color-primary-yellow-hover);
}

.modal-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.modal-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent-orange);
  background-color: var(--color-primary-yellow-light);
  padding: var(--space-xs) var(--space-md);
  border-radius: 50px;
  text-transform: uppercase;
}

.modal-platform {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.modal-title {
  margin-bottom: var(--space-md);
  font-size: 28px;
}

.modal-rating-score {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-secondary-blue);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.modal-rating-score span {
  font-size: 16px;
  color: var(--color-text-muted);
  font-weight: 400;
}

.modal-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-medium);
}

.modal-text p {
  margin-bottom: var(--space-md);
}

/* Reviews Page layout */
.game-reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-xxl);
}

.contact-info-list {
  display: grid;
  gap: var(--space-xl);
}

.contact-info-item {
  display: flex;
  gap: var(--space-md);
}

.contact-info-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: var(--color-secondary-blue-light);
  color: var(--color-secondary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-info-text h3 {
  font-size: 18px;
  margin-bottom: var(--space-xs);
}

.contact-info-text p {
  font-size: 15px;
  color: var(--color-text-medium);
}

/* Responsive Overrides (Breakpoints) */
@media (max-width: 1199px) {
  :root {
    --space-section-top: 60px;
    --space-section-bottom: 60px;
  }
  
  .container {
    padding-right: var(--space-lg);
    padding-left: var(--space-lg);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 991px) {
  .hero-grid-2 {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }

  .hero-image-wrap {
    order: -1;
  }
  
  .hero-leaf-graphic {
    max-width: 350px;
    margin: 0 auto;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .split-layout img {
    order: -1;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 767px) {
  /* Navigation mobile menu */
  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--color-bg-white);
    flex-direction: column;
    padding: var(--space-xl) var(--space-lg);
    gap: var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
    transform: translateY(-120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-link {
    font-size: 18px;
    width: 100%;
    text-align: center;
    display: block;
  }
  
  .nav-link.active::after {
    display: none;
  }

  /* Grid reductions to 1 column */
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }

  .game-reviews-grid {
    grid-template-columns: 1fr;
  }

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

  .partners-bar {
    flex-direction: column;
    gap: var(--space-md);
  }
}
