/* ═══════════════════════════════════════════════════════════════════
   Westside Professional Landscape — Website Design System
   Dark-premium theme inspired by SYNLawn. Adapted for Westside brand.
   ═══════════════════════════════════════════════════════════════════ */

/* ═══ CUSTOM PROPERTIES ═══ */
:root {
  /* Brand Colors */
  --green-primary: #00863F;
  --green-bright: #6CC551;
  --green-dark: #005C2B;
  --green-gradient: linear-gradient(135deg, #6CC551 0%, #00863F 100%);
  --green-gradient-hover: linear-gradient(135deg, #7DD662 0%, #009A4A 100%);

  /* Backgrounds */
  --bg-dark: #111111;
  --bg-dark-alt: #1a1a1a;
  --bg-dark-card: #1a1a1a;
  --bg-dark-elevated: #222222;
  --bg-overlay: rgba(0, 0, 0, 0.65);
  --bg-overlay-heavy: rgba(0, 0, 0, 0.78);
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-accent: #0f1f14;
  --bg-accent-card: #152a1b;
  --border-accent: #1f3d26;

  /* Text */
  --text-white: #ffffff;
  --text-light: #e0e0e0;
  --text-muted: #999999;
  --text-dark: #111111;
  --text-body-dark: #444444;
  --text-green: #6CC551;

  /* Borders */
  --border-dark: #2a2a2a;
  --border-light: #e0e0e0;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-green: 0 4px 20px rgba(108, 197, 81, 0.3);

  /* Typography */
  --font-heading: 'Anton', 'Impact', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --font-logo: 'Merriweather', Georgia, serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --header-height: 80px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 100px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-normal: 0.3s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);
}

/* ═══ RESET & BASE ═══ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--bg-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-bright);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-white);
}

ul, ol {
  list-style: none;
}

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400; /* Anton only has 400 */
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--text-white);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: 1px; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--green-bright);
  margin-bottom: var(--space-md);
}

.section-title {
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.text-green { color: var(--green-bright); }
.text-gradient {
  background: var(--green-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══ LAYOUT ═══ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

section {
  padding: var(--space-5xl) 0;
}

.section-dark {
  background-color: var(--bg-dark);
}

.section-dark-alt {
  background-color: var(--bg-dark-alt);
}

/* Accent section — dark forest green tint for visual relief without breaking dark theme.
   Named .section-white for legacy compatibility; visually it's a green-tinted dark section. */
.section-white {
  background-color: var(--bg-accent);
  color: var(--text-light);
}

.section-white h2,
.section-white h3,
.section-white h4 {
  color: var(--text-white);
}

.section-white .section-subtitle {
  color: var(--text-muted);
}

.section-white .stat-number { color: var(--green-bright); }
.section-white .stat-label { color: var(--text-muted); }
.section-white .card { background: var(--bg-accent-card); border-color: var(--border-accent); }
.section-white .card-body h3 { color: var(--text-white); }
.section-white .card-body p { color: var(--text-muted); }
.section-white .text-green { color: var(--green-bright); }
.section-white .divider { background: var(--green-gradient); }
.section-white .badge-green { background: rgba(108, 197, 81, 0.12); color: var(--green-bright); }

/* Section dividers between same-tone sections */
.section-dark + .section-dark-alt,
.section-dark-alt + .section-dark {
  border-top: 1px solid var(--border-dark);
}

/* Accent sections get a green-tinted top border for definition */
.section-white {
  border-top: 1px solid var(--border-accent);
  border-bottom: 1px solid var(--border-accent);
}

/* ═══ HEADER ═══ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
  transition: background var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* Logo group — Westside + SYNLawn partner logos side by side */
.logo-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.logo-group .partner-logo {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 1.25rem;
}

/* Westside logo — original leaf+Westside image with CSS tagline */
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  height: 48px;
  width: auto;
  display: block;
}

.logo-tagline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green-bright);
  font-weight: 600;
  margin-top: -2px;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.main-nav a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  text-decoration: none;
  padding: var(--space-sm) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-gradient);
  transition: width var(--transition-normal);
}

.main-nav a:hover {
  color: var(--text-white);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav > a.active,
.nav-dropdown > a.active {
  color: var(--text-white);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: var(--space-sm) 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-lg);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-light);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(108, 197, 81, 0.1);
  color: var(--green-bright);
}

.dropdown-menu a::after {
  display: none;
}

/* Partner Logo */
.partner-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.partner-logo:hover {
  opacity: 1;
}

.partner-logo img {
  height: 30px;
  width: auto;
}

/* Header CTA */
.header-cta {
  flex-shrink: 0;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-white);
  margin: 6px 0;
  transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-gradient);
  color: var(--text-white);
  box-shadow: var(--shadow-green);
}

.btn-primary:hover {
  background: var(--green-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(108, 197, 81, 0.4);
  color: var(--text-white);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--text-white);
}

.btn-outline:hover {
  background: var(--text-white);
  color: var(--bg-dark);
}

.btn-outline-green {
  background: transparent;
  color: var(--green-bright);
  border: 2px solid var(--green-bright);
}

.btn-outline-green:hover {
  background: var(--green-gradient);
  color: var(--text-white);
  border-color: transparent;
}

.btn-dark {
  background: var(--bg-dark);
  color: var(--text-white);
}

.btn-dark:hover {
  background: var(--bg-dark-elevated);
  color: var(--green-bright);
}

.btn-lg {
  padding: 18px 48px;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.75rem;
}

.btn svg,
.btn i {
  width: 18px;
  height: 18px;
}

/* ═══ HERO SECTIONS ═══ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.65) 50%, rgba(0, 0, 0, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: var(--space-3xl) var(--space-xl);
}

.hero-content h1 {
  margin-bottom: var(--space-lg);
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Geometric accent lines (SYNLawn-inspired) */
.hero::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 5%;
  width: 1px;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--green-bright), transparent);
  opacity: 0.3;
  z-index: 1;
}

.hero .accent-line-h {
  position: absolute;
  bottom: 20%;
  right: 3%;
  width: 150px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--green-bright), transparent);
  opacity: 0.3;
  z-index: 1;
}

.hero .accent-line-corner {
  position: absolute;
  top: 10%;
  right: 8%;
  width: 80px;
  height: 80px;
  border-top: 1px solid rgba(108, 197, 81, 0.2);
  border-right: 1px solid rgba(108, 197, 81, 0.2);
  z-index: 1;
}

/* Page hero (shorter) */
.page-hero {
  min-height: 50vh;
  padding-top: var(--header-height);
}

.page-hero .hero-content {
  padding: var(--space-4xl) var(--space-xl);
}

/* Utility/legal page hero (shorter) */
.hero-utility {
  min-height: 30vh;
  padding-top: var(--header-height);
}
.hero-utility::before,
.hero-utility .accent-line-h,
.hero-utility .accent-line-corner {
  display: none;
}
.hero-utility .hero-bg::after {
  background: linear-gradient(135deg, rgba(0, 134, 63, 0.3) 0%, rgba(17, 17, 17, 0.95) 100%);
}
.hero-utility .hero-content p {
  color: var(--text-light);
}

/* ═══ CARDS ═══ */
.card {
  background: var(--bg-dark-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  border: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(108, 197, 81, 0.3);
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--bg-dark-elevated);
}

.card-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-body .card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green-bright);
  margin-top: auto;
}

.card-body .card-link:hover {
  gap: var(--space-sm);
}

/* ═══ GRID LAYOUTS ═══ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

/* Chess/Alternating layout */
.chess-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 500px;
}

.chess-block.reverse > *:first-child {
  order: 2;
}
.chess-block.reverse > *:last-child {
  order: 1;
}

.chess-image {
  background-size: cover;
  background-position: center;
  min-height: 400px;
  overflow: hidden;
  position: relative;
}

.chess-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-4xl);
}

.chess-content h2 {
  margin-bottom: var(--space-lg);
}

.chess-content p {
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

/* ═══ STATS BAR ═══ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  padding: var(--space-3xl) 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--green-bright);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* ═══ CTA BANNER ═══ */
.cta-banner {
  position: relative;
  background: var(--green-gradient);
  padding: var(--space-4xl) 0;
  text-align: center;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: var(--text-white);
  margin-bottom: var(--space-md);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══ FOOTER ═══ */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-about .logo {
  margin-bottom: var(--space-lg);
}

.footer-about .logo-mark {
  height: 56px;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--green-gradient);
  border-color: transparent;
  color: var(--text-white);
}

.footer-col .footer-heading,
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-lg);
  color: var(--text-white);
}

.footer-col ul li {
  margin-bottom: var(--space-sm);
}

.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-col ul a:hover {
  color: var(--green-bright);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--green-bright);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--green-bright);
}

/* ═══ FORMS ═══ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
  color: var(--text-light);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(108, 197, 81, 0.15);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* Accent section forms */
.section-white .form-control {
  background: var(--bg-accent-card);
  border-color: var(--border-accent);
  color: var(--text-white);
}

.section-white .form-control:focus {
  border-color: var(--green-bright);
}

/* ═══ BADGES & TAGS ═══ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-pill);
}

.badge-green {
  background: rgba(108, 197, 81, 0.15);
  color: var(--green-bright);
}

.badge-gold {
  background: rgba(232, 200, 74, 0.15);
  color: #E8C84A;
}

/* ═══ DIVIDERS ═══ */
.divider {
  width: 60px;
  height: 3px;
  background: var(--green-gradient);
  border-radius: 2px;
}

.divider-center {
  margin-left: auto;
  margin-right: auto;
}

/* ═══ SCROLL ANIMATIONS ═══ */
/* Scoped under .js so content is visible by default without JavaScript */
.js .fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.js .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.js .fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.js .fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.js .fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.js .fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.js .stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.js .stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.js .stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.js .stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.js .stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.js .stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; }
.js .stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; }

.js .stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ ACCESSIBILITY ═══ */
.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;
}

@media (prefers-reduced-motion: reduce) {
  .js .fade-in,
  .js .fade-in-left,
  .js .fade-in-right,
  .js .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ═══ CHECK LIST ═══ */
.check-list li {
  padding: 8px 0;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 12px;
}
.check-list li::before {
  content: '\2713';
  color: var(--green-bright);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.check-list.check-list-top li {
  align-items: flex-start;
}
.section-white .check-list li {
  color: var(--text-light);
}
.section-white .check-list li::before {
  color: var(--green-bright);
}

/* ═══ TESTIMONIAL CARDS ═══ */
.testimonial-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.testimonial-card .testimonial-text {
  font-style: italic;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  flex: 1;
}
.testimonial-card .testimonial-author {
  font-weight: 700;
  color: var(--text-white);
}
.testimonial-card .testimonial-role {
  font-size: 0.85rem;
  color: var(--green-bright);
}
.section-white .testimonial-card {
  background: var(--bg-accent-card);
  border-color: var(--border-accent);
}
.section-white .testimonial-card .testimonial-text {
  color: var(--text-light);
}
.section-white .testimonial-card .testimonial-author {
  color: var(--text-white);
}

/* ═══ TEAM CARDS ═══ */
.team-card {
  text-align: center;
}
.team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto var(--space-lg);
  overflow: hidden;
  border: 3px solid var(--green-bright);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-info h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: none;
  margin-bottom: var(--space-xs);
}
.team-info .team-role {
  font-size: 0.85rem;
  color: var(--green-bright);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ═══ GALLERY TOUCH CAPTIONS ═══ */
@media (hover: none) {
  .gallery-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 65%);
  }
}

/* ═══ IMG INSIDE HERO/CHESS CONTAINERS ═══ */
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chess-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-2xl); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .chess-block { grid-template-columns: 1fr; }
  .chess-image { min-height: 300px; }
  .chess-content { padding: var(--space-3xl); }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  section {
    padding: var(--space-3xl) 0;
  }

  .container, .container-wide {
    padding: 0 var(--space-md);
  }

  /* Mobile nav */
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav a {
    font-size: 1.2rem;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    padding: 0;
    min-width: auto;
    display: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    text-align: center;
    padding: var(--space-xs) 0;
  }

  .menu-toggle {
    display: block;
  }

  .header-cta,
  .partner-logo {
    display: none;
  }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; gap: var(--space-lg); }

  .hero { min-height: 80vh; }
  .page-hero { min-height: 40vh; }

  .hero-content h1 { font-size: 2.5rem; }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .chess-content {
    padding: var(--space-2xl) var(--space-lg);
  }
}

/* ═══ UTILITY CLASSES ═══ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

