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

/* ==========================================
   DESIGN TOKENS & SYSTEM VARIABLES
   ========================================== */
:root {
  /* Font Families */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-secondary: 'Lora', Georgia, serif;
  
  /* Color Palette */
  --color-primary: #4e6b42;
  --color-primary-hover: #3d5534;
  --color-primary-light: #f4f7f2;
  --color-secondary: #2b2a29;
  --color-secondary-hover: #1a1918;
  
  --color-sand: #e9e4d6;
  --color-gold: #c49a45;
  --color-wood-dark: #3e2f20;
  
  --color-bg-white: #ffffff;
  --color-bg-beige: #f5f2eb;
  --color-bg-dark-section: #2b2a29;
  --color-bg-dark-overlay: rgba(43, 42, 41, 0.85);
  
  --color-text-dark: #1a1a1a;
  --color-text-medium: #444444;
  --color-text-light: #808080;
  --color-text-white: #ffffff;
  
  /* Spacing System */
  --space-base: 16px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --section-padding-top: 90px;
  --section-padding-bottom: 90px;
  
  /* Sizing and Gaps */
  --container-max-width: 1140px;
  --grid-gap: 30px;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-white);
  color: var(--color-text-medium);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  color: var(--color-text-dark);
  font-weight: 700;
  line-height: 1.2;
}

.h1-hero {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-text-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.h2-section {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-dark);
}

.h3-card {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-dark);
}

.section-title-badge {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-light);
  display: inline-block;
  margin-bottom: var(--space-md);
}

/* Body Text Sizes */
.body-large {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-medium);
}

.body-base {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-medium);
}

.body-small {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-light);
}

/* Tags and Badges */
.badge-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  display: inline-block;
}

/* ==========================================
   LAYOUTS & CONTAINER
   ========================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

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

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

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

.section-dark {
  background-color: var(--color-bg-dark-section);
  color: var(--color-text-white);
}
.section-dark h2, .section-dark h3 {
  color: var(--color-text-white);
}

.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);
}

/* ==========================================
   INTERACTIONS & BUTTONS
   ========================================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  font-family: var(--font-primary);
  transition: all 0.3s ease;
  line-height: 1.2;
}

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

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-white);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(78, 107, 66, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-text-white);
  color: var(--color-text-white);
}

.btn-secondary:hover {
  background: var(--color-text-white);
  color: var(--color-secondary);
  transform: translateY(-2px);
}

.btn-text {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
}

.btn-text:hover {
  color: var(--color-primary-hover);
}

.inline-link {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.inline-link:hover {
  border-bottom: 1px solid var(--color-primary);
}

/* ==========================================
   NAVIGATION & HEADER
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(43, 42, 41, 0.95); /* matching charcoal background for header */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.logo-text {
  font-family: var(--font-secondary);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--color-text-white);
}

.logo-accent {
  color: var(--color-gold);
}

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

.nav-link {
  color: var(--color-text-white);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 0;
  transition: color 0.2s ease;
  position: relative;
}

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

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-gold);
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-white);
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.menu-toggle span:last-child {
  margin-bottom: 0;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================
   CARDS
   ========================================== */
.card {
  background: var(--color-bg-white);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.card-dark {
  background: var(--color-wood-dark);
  color: var(--color-text-white);
  border: none;
}
.card-dark h3 {
  color: var(--color-text-white);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
}

.card-img-wrapper img {
  transition: transform 0.6s ease-in-out;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

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

.card-content {
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* ==========================================
   COMPONENTS SPECIFIC
   ========================================== */

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 180px;
  padding-bottom: 120px;
  display: flex;
  align-items: center;
  background-color: var(--color-secondary);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(43, 42, 41, 0.7) 0%, rgba(43, 42, 41, 0.95) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-text-white);
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-block;
  margin-bottom: var(--space-lg);
  background: rgba(255, 255, 255, 0.05);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xxl);
  margin-top: var(--space-xxl);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-val {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-gold);
  font-family: var(--font-secondary);
}

.stat-lbl {
  font-size: 13px;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Services Grid Masonry */
.services-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.service-masonry-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  height: 380px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.service-masonry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  z-index: 2;
}

.service-card-number {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(43, 42, 41, 0.85);
  color: var(--color-text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card-title-box {
  background: var(--color-bg-white);
  padding: var(--space-md) var(--space-lg);
  border-radius: 4px;
  width: 100%;
  margin-bottom: var(--space-xs);
  transition: transform 0.3s ease;
}

.service-card-title-box h3 {
  font-size: 18px;
  color: var(--color-text-dark);
  font-family: var(--font-primary);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.service-card-title-box .service-cta-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-card-title-box .service-cta-link:hover {
  color: var(--color-primary-hover);
}

/* Process Section */
.process-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.process-image-wrapper {
  position: relative;
}

.process-image-wrapper img {
  border-radius: 4px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.process-step {
  display: flex;
  gap: var(--space-lg);
}

.process-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.process-step-content h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: var(--space-xs);
  font-family: var(--font-primary);
}

.process-step-content p {
  color: var(--color-text-medium);
  font-size: 15px;
}

/* Accordion FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg) var(--space-xl);
}

.faq-accordion {
  background: var(--color-bg-white);
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: var(--space-md);
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.faq-accordion:hover {
  background: #f9f9f9;
}

.faq-accordion-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-accordion-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-dark);
  font-family: var(--font-primary);
  margin: 0;
  padding-right: var(--space-md);
}

.faq-indicator {
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-accordion-body {
  max-height: 0;
  opacity: 0;
  padding: 0 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.faq-accordion-body p {
  padding-bottom: 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-medium);
}

/* Expanded state managed via JS class */
.faq-accordion.expanded {
  border-left: 4px solid var(--color-primary);
  background: var(--color-primary-light);
}

.faq-accordion.expanded .faq-accordion-body {
  max-height: 200px;
  opacity: 1;
}

.faq-accordion.expanded .faq-indicator {
  transform: rotate(45deg);
}

/* ==========================================
   FORMS
   ========================================== */
.form-group {
  margin-bottom: var(--space-lg);
}

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

.form-input {
  background: #f9f9f9;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  padding: 16px 20px;
  width: 100%;
  font-size: 14px;
  font-family: var(--font-primary);
  color: var(--color-text-dark);
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: var(--color-text-light);
}

.form-input:focus {
  border-color: var(--color-primary);
  outline: none;
  background: var(--color-bg-white);
  box-shadow: 0 0 0 3px rgba(78, 107, 66, 0.15);
}

.form-input.error {
  border-color: #d32f2f;
  background: #fff6f6;
}

.form-input:disabled {
  background: #e0e0e0;
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background-color: var(--color-bg-dark-section);
  color: var(--color-text-white);
  padding-top: 80px;
  padding-bottom: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: var(--color-text-white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color 0.3s;
}

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

.footer-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-info-item svg {
  color: var(--color-gold);
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-socials {
  display: flex;
  gap: var(--space-md);
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.social-icon-link svg {
  fill: var(--color-text-white);
  width: 18px;
  height: 18px;
  transition: fill 0.3s, transform 0.3s;
}

.social-icon-link:hover {
  background: var(--color-primary);
}

.social-icon-link:hover svg {
  fill: var(--color-gold);
  transform: scale(1.1);
}

.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-lg);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  transition: color 0.3s;
}

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

.footer-identity-lines {
  margin-top: var(--space-md);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.5;
}

/* ==========================================
   PAGE SPECIFIC COMPONENT DETAILS
   ========================================== */

/* Game Review Page Modal & Cards */
.review-score-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: rgba(43, 42, 41, 0.9);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 14px;
  font-family: var(--font-secondary);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-container {
  position: relative;
  z-index: 10;
  background: var(--color-bg-white);
  border-radius: 4px;
  max-width: 750px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal-header-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

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

.modal-close-btn {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.modal-close-btn:hover {
  background: rgba(0,0,0,0.8);
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.modal-meta {
  display: flex;
  gap: 20px;
  margin-bottom: var(--space-md);
  font-size: 14px;
  color: var(--color-text-light);
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: var(--space-md);
}

.prose p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.prose h4 {
  font-size: 18px;
  color: var(--color-text-dark);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-family: var(--font-primary);
}

/* ==========================================
   BREAKPOINTS / RESPONSIVE DESIGN
   ========================================== */

/* Tablet viewports: 768px - 1199px */
@media (max-width: 1199px) {
  :root {
    --section-padding-top: 70px;
    --section-padding-bottom: 70px;
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
  
  .process-split {
    gap: 40px;
  }
}

/* Mobile viewports: < 768px */
@media (max-width: 767px) {
  :root {
    --section-padding-top: 50px;
    --section-padding-bottom: 50px;
  }
  
  .h1-hero {
    font-size: 32px;
  }
  
  .h2-section {
    font-size: 26px;
  }
  
  .h3-card {
    font-size: 20px;
  }
  
  .grid-2, .grid-3, .grid-4, .services-masonry {
    grid-template-columns: 1fr;
  }
  
  .process-split {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* Navigation mobile menu overlay */
  .menu-toggle {
    display: block;
  }
  
  .nav-list {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--color-bg-dark-section);
    flex-direction: column;
    padding: var(--space-xl) 0;
    gap: var(--space-lg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .nav-list.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-link {
    font-size: 18px;
    width: 100%;
    text-align: center;
  }
  
  .nav-link.active::after {
    display: none;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .btn {
    width: 100%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
}
