/* ========================================
   Gnome Ventures - Enchanted Forest Theme
   ======================================== */

/* --- Tokens --- */
:root {
  /* Background */
  --bg-primary: #0a1a0f;
  --bg-secondary: #0f2618;
  --bg-tertiary: #163020;
  --bg-card: #132a1a;
  --bg-card-hover: #1a3823;

  /* Accent */
  --red: #c0392b;
  --red-bright: #e74c3c;
  --gold: #d4a017;
  --gold-light: #f0c040;
  --green: #27ae60;

  /* Text */
  --text: #e8f0e8;
  --text-secondary: #b0d0b0;
  --text-dim: #7fa07f;
  --text-bright: #f4faf4;

  /* Borders */
  --border: #1e4a28;
  --border-strong: #2d6b3a;

  /* Glow */
  --glow-green: 0 0 20px rgba(39, 174, 96, 0.3);
  --glow-gold: 0 0 15px rgba(212, 160, 23, 0.25);

  /* Venture accent colors */
  --v-tech: #3498db;
  --v-crm: #27ae60;
  --v-ace: #e74c3c;
  --v-poker: #d4a017;
  --v-nightlife: #9b59b6;

  /* Spacing (8px grid) */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;

  /* Layout */
  --max-width: 1100px;
  --nav-height: 60px;
  --radius: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 150ms var(--ease);
  --t-base: 250ms var(--ease);
  --t-slow: 400ms var(--ease);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--gold-light); }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.3;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; margin-bottom: var(--sp-lg); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: var(--sp-md); }
p:last-child { margin-bottom: 0; }

/* --- Utilities --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--bg-primary);
  padding: 0.5rem 1.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  z-index: 200;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  color: var(--bg-primary);
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-bottom: 2px solid var(--border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  color: var(--gold);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.site-logo:hover { color: var(--gold-light); }

.site-logo svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: var(--sp-lg);
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--sp-xs);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: var(--sp-4xl) 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* Hero image variant */
.hero--image {
  padding: 0;
  background: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__picture {
  display: block;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero__picture img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero h1 {
  color: var(--gold);
  margin-bottom: var(--sp-sm);
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--sp-xl);
}

.hero .cta-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--red);
  color: var(--text-bright);
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--t-fast), transform var(--t-fast);
}

.hero .cta-btn:hover {
  background: var(--red-bright);
  color: var(--text-bright);
  transform: translateY(-2px);
}

/* Mushroom decorations */
.mushroom {
  position: absolute;
  bottom: 0;
  opacity: 0.12;
  pointer-events: none;
}

.mushroom--left { left: 5%; }
.mushroom--right { right: 5%; transform: scaleX(-1); }

.mushroom-cap {
  width: 64px;
  height: 32px;
  background:
    radial-gradient(circle at 20% 40%, #fff 3px, transparent 3px),
    radial-gradient(circle at 55% 25%, #fff 2px, transparent 2px),
    radial-gradient(circle at 78% 55%, #fff 3px, transparent 3px),
    var(--red);
  border-radius: 64px 64px 0 0;
}

.mushroom-stem {
  width: 20px;
  height: 24px;
  background: var(--text-secondary);
  margin: 0 auto;
  border-radius: 0 0 4px 4px;
}

/* Firefly glow dots */
.firefly {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.2;
  pointer-events: none;
  animation: float-glow 4s infinite;
}

.firefly:nth-child(2) { animation-delay: 1s; }
.firefly:nth-child(3) { animation-delay: 2.2s; }
.firefly:nth-child(4) { animation-delay: 3.1s; }

@keyframes float-glow {
  0%, 100% { opacity: 0.15; transform: translateY(0); }
  50% { opacity: 0.6; transform: translateY(-12px); }
}

/* --- Stat Bar --- */
.stat-bar {
  display: flex;
  justify-content: center;
  gap: var(--sp-2xl);
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

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

.stat-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Sections --- */
.section {
  padding: var(--sp-4xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--sp-2xl);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: var(--sp-md) auto 0;
  border-radius: 2px;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-xl);
}

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

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

/* --- Venture Card --- */
.venture-card {
  display: block;
  padding: var(--sp-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  text-decoration: none;
  color: var(--text);
}

.venture-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-green);
  background: var(--bg-card-hover);
  color: var(--text);
}

.venture-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--sp-md);
  color: #fff;
}

.venture-card__title {
  font-size: 1.25rem;
  margin-bottom: var(--sp-sm);
  color: var(--text-bright);
}

.venture-card__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--sp-md);
}

.venture-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
}

.venture-card__tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

/* Per-venture theming */
.venture--tech:hover { border-top-color: var(--v-tech); }
.venture--tech .venture-card__icon { background: var(--v-tech); }

.venture--crm:hover { border-top-color: var(--v-crm); }
.venture--crm .venture-card__icon { background: var(--v-crm); }

.venture--ace:hover { border-top-color: var(--v-ace); }
.venture--ace .venture-card__icon { background: var(--v-ace); }

.venture--poker:hover { border-top-color: var(--v-poker); }
.venture--poker .venture-card__icon { background: var(--v-poker); }

.venture--nightlife:hover { border-top-color: var(--v-nightlife); }
.venture--nightlife .venture-card__icon { background: var(--v-nightlife); }

/* --- Value Card --- */
.value-card {
  padding: var(--sp-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.value-card__icon {
  font-size: 2rem;
  margin-bottom: var(--sp-md);
}

.value-card__title {
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: var(--sp-sm);
}

.value-card__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Company Brief --- */
.brief {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.brief p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: var(--sp-3xl) 0 var(--sp-xl);
  text-align: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  color: var(--gold);
  font-size: 2.25rem;
}

.page-hero .subtitle {
  color: var(--text-secondary);
  margin-top: var(--sp-sm);
}

/* --- Venture Detail Card (ventures page) --- */
.venture-detail {
  padding: var(--sp-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--border);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.venture-detail:hover {
  box-shadow: var(--glow-green);
}

.venture-detail__header {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}

.venture-detail__title {
  font-size: 1.5rem;
  color: var(--text-bright);
}

.venture-detail__body {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--sp-lg);
}

.venture-detail__offerings {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-lg);
}

.venture-detail__offerings li {
  font-size: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.venture-detail__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  font-size: 0.9rem;
  font-weight: 600;
}

.venture-detail__link::after {
  content: '\2192';
}

/* Per-venture detail theming */
.venture-detail--tech { border-left-color: var(--v-tech); }
.venture-detail--tech:hover { border-left-color: var(--v-tech); }
.venture-detail--tech .venture-card__icon { background: var(--v-tech); }

.venture-detail--crm { border-left-color: var(--v-crm); }
.venture-detail--crm .venture-card__icon { background: var(--v-crm); }

.venture-detail--ace { border-left-color: var(--v-ace); }
.venture-detail--ace .venture-card__icon { background: var(--v-ace); }

.venture-detail--poker { border-left-color: var(--v-poker); }
.venture-detail--poker .venture-card__icon { background: var(--v-poker); }

.venture-detail--nightlife { border-left-color: var(--v-nightlife); }
.venture-detail--nightlife .venture-card__icon { background: var(--v-nightlife); }

/* --- Contact --- */
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  max-width: 800px;
  margin: 0 auto;
}

.contact-block {
  padding: var(--sp-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.contact-block__icon {
  font-size: 2rem;
  margin-bottom: var(--sp-md);
}

.contact-block__label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-sm);
}

.contact-block a {
  font-size: 1.1rem;
  font-weight: 600;
}

/* CTA Button */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--red);
  color: var(--text-bright);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  text-decoration: none;
}

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

/* --- Footer --- */
.site-footer {
  padding: var(--sp-2xl) 0;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-md);
}

.footer-nav a {
  color: var(--text-dim);
  font-size: 0.85rem;
}

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

.footer-copy {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* --- Content (about page) --- */
.content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-secondary);
  line-height: 1.8;
}

.content h2 {
  color: var(--gold);
  font-size: 1.75rem;
  margin-top: var(--sp-2xl);
  margin-bottom: var(--sp-md);
}

.content h2:first-child {
  margin-top: 0;
}

/* --- SMS Opt-In CTA (10DLC Compliance) --- */
.sms-optin {
  margin-top: var(--sp-3xl);
  padding: var(--sp-xl);
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(212, 160, 23, 0.04);
}

.sms-optin__heading {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-lg);
}

.sms-optin__keyword {
  font-size: 1.125rem;
  color: var(--text-bright);
  font-weight: 600;
  margin-bottom: var(--sp-lg);
}

.sms-optin__keyword span {
  color: var(--gold);
}

.sms-optin__keyword a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.sms-optin__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: var(--sp-lg);
  line-height: 1.6;
}

.sms-optin__disclosure {
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.sms-optin__disclosure a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .firefly { animation: none; opacity: 0.3; }
  .venture-card:hover,
  .hero .cta-btn:hover,
  .btn:hover { transform: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .card-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-bar {
    gap: var(--sp-lg);
  }
}

@media (max-width: 800px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: var(--sp-md) var(--sp-lg);
    gap: var(--sp-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .stat-bar {
    flex-wrap: wrap;
    gap: var(--sp-md);
  }

  .stat-item {
    flex: 0 0 45%;
  }

  .card-grid,
  .card-grid--2,
  .card-grid--3 {
    grid-template-columns: 1fr;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: var(--sp-3xl) 0;
  }

  .mushroom { display: none; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  .hero .subtitle { font-size: 1rem; }
  .stat-bar { flex-direction: column; align-items: center; gap: var(--sp-md); }
  .stat-item { flex: none; }
  .section { padding: var(--sp-2xl) 0; }
}
