/*
Theme Name: Life of the Land Modern
Theme URI: https://lifeoftheland.org
Author: Life of the Land
Author URI: https://lifeoftheland.org
Description: A modern, 3D-enhanced theme for Life of the Land - Hawaii's environmental nonprofit. Features Three.js ocean animations, GSAP scroll effects, glassmorphism, and 3D card interactions.
Version: 1.0.0
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lotl-modern
Tags: full-site-editing, block-patterns, custom-colors, custom-fonts, wide-blocks
*/

/* ─── Base Reset & Custom Properties ─── */

:root {
  /* Glass effects */
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-bg-strong: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-blur: 20px;

  /* 3D */
  --perspective: 1000px;
  --card-lift: 30px;
  --card-rotation: 3deg;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-glow-green: 0 0 30px rgba(45, 139, 78, 0.3);
  --shadow-glow-gold: 0 0 30px rgba(232, 168, 56, 0.4);

  /* Gradients */
  --gradient-tropical: linear-gradient(135deg, #2D8B4E 0%, #1B6B93 100%);
  --gradient-ocean: linear-gradient(180deg, #0D3B2E 0%, #1A2E1A 100%);
  --gradient-golden: linear-gradient(135deg, #E8A838 0%, #D4544A 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 100%);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Global Smoothness ─── */

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

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

/* ─── Reduced Motion ─── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ─── WordPress Block Overrides ─── */

.wp-site-blocks {
  padding-top: 0 !important;
}

.wp-block-navigation {
  font-weight: 500;
}

.wp-block-navigation a {
  text-decoration: none !important;
}

.wp-block-button__link {
  border-radius: 50px !important;
  padding: 14px 32px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  transition: all var(--transition-medium) !important;
  position: relative;
  overflow: hidden;
}

.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.wp-block-button__link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.wp-block-button__link:hover::after {
  transform: translateX(0);
}

/* ─── Selection Color ─── */

::selection {
  background: rgba(45, 139, 78, 0.2);
  color: #1A2E1A;
}

/* ─── Scrollbar Styling ─── */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #F0F5EC;
}

::-webkit-scrollbar-thumb {
  background: #2D8B4E;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1A2E1A;
}
