/* ==========================================================================
   GREEN GINI THEME — GLOBAL CSS
   Base styles, CSS custom properties, typography, and utilities
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* ── CSS Custom Properties ───────────────────────────────────────────────── */
:root {
  --gg-dark:          #0F0F0F;
  --gg-dark-2:        #0D0D0D;
  --gg-surface:       #101318;
  --gg-surface-2:     #111111;
  --gg-hero-bg:       #030D0B;
  --gg-emerald:       #11C19D;
  --gg-teal:          #046C63;
  --gg-white:         #FFFFFF;
  --gg-gray-100:      #F3F4F6;
  --gg-gray-200:      #E5E7EB;
  --gg-gray-300:      #D1D5DB;
  --gg-gray-400:      #9CA3AF;
  --gg-gray-500:      #6B7280;
  --gg-gray-600:      #4B5563;
  --gg-gray-900:      #111827;

  --gg-font:          'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --gg-radius-full:   9999px;
  --gg-radius-none:   0px;

  --gg-max-w:         1440px;
  --gg-px:            clamp(1.5rem, 6vw, 6rem);
  --gg-section-py:    clamp(5rem, 8vw, 7rem);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--gg-dark);
  color: var(--gg-white);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--gg-font);
  font-weight: 300;
  line-height: 1.6;
  background-color: var(--gg-dark);
  color: var(--gg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body, button, input, select, textarea, span, p, h1, h2, h3, h4, h5, h6, a, div, li {
  font-family: var(--gg-font) !important;
}

/* Force headings & heading highlights to light weight (DM Sans 300) */
h1, h2, h3, h4, h5, h6,
.gg-display-1, .gg-display-2, .gg-heading-1, .gg-heading-2, .gg-heading-3 {
  font-weight: 300 !important;
}

h1 span, h2 span, h3 span, h4 span, h5 span, h6 span,
.gg-display-1 span, .gg-display-2 span, .gg-heading-1 span, .gg-heading-2 span, .gg-heading-3 span {
  font-weight: 300 !important;
}

button {
  font-weight: 500;
}

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

a {
  color: var(--gg-emerald);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gg-white);
}

::selection {
  background-color: var(--gg-emerald);
  color: var(--gg-dark);
}

/* ── Custom Scrollbar ────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--gg-dark);
}
::-webkit-scrollbar-thumb {
  background: #222222;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gg-emerald);
}

/* ── Layout Utilities ────────────────────────────────────────────────────── */
.gg-container {
  max-width: var(--gg-max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gg-px);
  padding-right: var(--gg-px);
  width: 100%;
}

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

/* ── Typography Scale ────────────────────────────────────────────────────── */
.gg-display-1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.gg-display-2 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.gg-heading-1 {
  font-size: clamp(1.875rem, 3vw, 3rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.gg-heading-2 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 300;
  line-height: 1.2;
}

.gg-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.gg-label-emerald {
  color: var(--gg-emerald);
  font-family: var(--gg-font);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.gg-text-emerald {
  color: var(--gg-emerald);
}

/* ── Hide Scrollbar but keep scroll ─────────────────────────────────────── */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ── Glassmorphism ───────────────────────────────────────────────────────── */
.glass-panel {
  background: rgba(15, 15, 15, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.glass-panel-light {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Glow Spots ─────────────────────────────────────────────────────────── */
.glow-spot {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(17, 193, 157, 0.15) 0%, rgba(15, 15, 15, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
}

/* ── WordPress Block Overrides ───────────────────────────────────────────── */
.wp-site-blocks {
  padding: 0 !important;
}

.wp-block-post-content {
  max-width: none;
}

.editor-styles-wrapper {
  background-color: var(--gg-dark) !important;
  color: var(--gg-white) !important;
}

/* ── Page Transitions ────────────────────────────────────────────────────── */
.page-transition-enter {
  opacity: 0;
  transform: translateY(15px);
}
.page-transition-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* ── Scroll Reveal States ────────────────────────────────────────────────── */
.gg-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.gg-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gg-reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.gg-reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.gg-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.gg-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.gg-stagger > *:nth-child(3) { transition-delay: 0.15s; }
.gg-stagger > *:nth-child(4) { transition-delay: 0.2s; }
.gg-stagger > *:nth-child(5) { transition-delay: 0.25s; }
.gg-stagger > *:nth-child(6) { transition-delay: 0.3s; }

/* ── Responsive Helpers ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --gg-px: 1.5rem;
    --gg-section-py: 4rem;
  }
}

@media (max-width: 480px) {
  :root {
    --gg-px: 1rem;
    --gg-section-py: 3rem;
  }
}
