/*
Theme Name: Transcend Dynamix
Theme URI: https://transcenddynamix.org
Author: Transcend Dynamix
Description: Energetic, intelligent, transformational. Executive Coaching & Culture Transformation theme.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: transcend-dynamix
Tags: dark, business, coaching, one-page
*/

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

:root {
  --green:      #16d86d;
  --green-dim:  rgba(22,216,109,0.12);
  --green-glow: rgba(22,216,109,0.35);
  --blue:       #49b1f2;
  --blue-dim:   rgba(73,177,242,0.12);
  --dark:       #181818;
  --dark-2:     #1f1f1f;
  --card:       #222222;
  --border:     rgba(255,255,255,0.08);
  --white:      #ffffff;
  --muted:      rgba(255,255,255,0.5);
  --muted-2:    rgba(255,255,255,0.35);
}

html, body { overflow-x: hidden; max-width: 100vw; scroll-behavior: smooth; }

body {
  font-family: "Montserrat", sans-serif;
  background: var(--dark);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* ════ SITE HEADER / NAV ════ */
.site-header {
  background: rgba(24,24,24,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0 60px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Written logo */
.site-logo { display: flex; flex-direction: column; line-height: 1; text-decoration: none; gap: 1px; }
.logo-top { font-family: "Montserrat", sans-serif; font-size: 13px; font-weight: 900; letter-spacing: 0.22em; color: var(--white); text-transform: uppercase; }
.logo-bottom { font-family: "DM Serif Display", serif; font-size: 17px; font-weight: 400; font-style: italic; color: var(--green); letter-spacing: 0.04em; }
.logo-dot { display: inline-block; width: 5px; height: 5px; background: var(--green); border-radius: 50%; margin-left: 3px; margin-bottom: 2px; vertical-align: middle; box-shadow: 0 0 8px var(--green); }

/* Custom logo image support */
.custom-logo { height: 44px; width: auto; }

/* Nav menu */
.main-navigation ul { list-style: none; display: flex; gap: 36px; align-items: center; margin: 0; padding: 0; }
.main-navigation ul a { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; transition: color 0.2s; font-family: "Montserrat", sans-serif; }
.main-navigation ul a:hover { color: var(--white); }
.main-navigation ul li:last-child a, .main-navigation ul li.menu-cta a {
  background: var(--green); color: #111 !important; padding: 10px 24px;
  border-radius: 3px; font-weight: 700 !important;
  transition: box-shadow 0.25s, transform 0.2s;
}
.main-navigation ul li:last-child a:hover, .main-navigation ul li.menu-cta a:hover {
  box-shadow: 0 0 24px rgba(22,216,109,0.5); transform: translateY(-1px);
}

/* Hamburger */
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }

/* Mobile nav */
.mobile-nav-overlay {
  display: none; flex-direction: column; gap: 0;
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(24,24,24,0.98);
  border-bottom: 1px solid var(--border);
  z-index: 99; padding: 8px 0 16px;
}
.mobile-nav-overlay.open { display: flex; }
.mobile-nav-overlay a { color: var(--muted); font-size: 14px; font-weight: 600; padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.04); transition: color 0.2s; font-family: "Montserrat", sans-serif; }
.mobile-nav-overlay a:hover { color: var(--white); }
.mobile-nav-overlay a.mobile-cta { margin: 12px 24px 0; background: var(--green); color: #111; text-align: center; border-radius: 3px; border-bottom: none; padding: 13px 24px; }

/* ════ HERO ════ */
.hero {
  background: var(--dark);
  min-height: calc(100vh - 72px);
  display: flex; align-items: center; justify-content: center;
  padding: 100px 60px; text-align: center;
  position: relative; overflow: hidden;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none; z-index: 0;
}
.hero-grid::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 30%, var(--dark) 100%); }

.hero-orb { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; z-index: 0; }
.orb-1 { width: 600px; height: 600px; background: rgba(22,216,109,0.14); top: -200px; left: 50%; transform: translateX(-50%); }
.orb-2 { width: 350px; height: 350px; background: rgba(73,177,242,0.12); bottom: -100px; right: 8%; }
.orb-3 { width: 250px; height: 250px; background: rgba(22,216,109,0.08); bottom: 10%; left: 5%; }

.hero-inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(22,216,109,0.08); border: 1px solid rgba(22,216,109,0.28);
  color: var(--green); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 7px 18px; border-radius: 2px; margin-bottom: 32px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 8px var(--green); flex-shrink: 0; }

.hero-h1 { font-size: clamp(40px,6vw,76px); font-weight: 900; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 8px; }
.hero-h1-serif { font-family: "DM Serif Display", serif; font-weight: 400; font-style: italic; font-size: clamp(42px,6.2vw,80px); line-height: 1.05; color: var(--green); text-shadow: 0 0 60px rgba(22,216,109,0.35); display: block; margin-bottom: 32px; letter-spacing: -0.01em; }

.hero-p { font-size: 17px; color: var(--muted); line-height: 1.8; max-width: 540px; margin: 0 auto 48px; }

.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 80px; }

.btn-primary { background: var(--green); color: #111; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.03em; padding: 16px 36px; border: none; border-radius: 3px; cursor: pointer; display: inline-block; transition: box-shadow 0.25s, transform 0.2s; }
.btn-primary:hover { box-shadow: 0 8px 32px rgba(22,216,109,0.45); transform: translateY(-2px); color: #111; }

.btn-ghost { background: transparent; color: var(--white); font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 14px; padding: 15px 36px; border: 1px solid rgba(255,255,255,0.18); border-radius: 3px; cursor: pointer; display: inline-block; transition: border-color 0.2s, color 0.2s; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.stat-bar { display: grid; grid-template-columns: repeat(3,1fr); max-width: 640px; margin: 0 auto; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.stat-item { padding: 28px 20px; background: rgba(255,255,255,0.03); text-align: center; position: relative; }
.stat-item + .stat-item::before { content: ""; position: absolute; left: 0; top: 20%; height: 60%; width: 1px; background: var(--border); }
.stat-num { font-size: 38px; font-weight: 900; line-height: 1; margin-bottom: 6px; letter-spacing: -0.02em; }
.stat-num.g { color: var(--green); text-shadow: 0 0 24px rgba(22,216,109,0.5); }
.stat-num.b { color: var(--blue); text-shadow: 0 0 24px rgba(73,177,242,0.5); }
.stat-lbl { font-size: 11px; color: var(--muted-2); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* ════ SERVICES ════ */
.section-services { background: var(--dark-2); padding: 110px 60px; text-align: center; position: relative; overflow: hidden; }
.section-services::after { content: ""; position: absolute; width: 700px; height: 350px; background: rgba(73,177,242,0.06); filter: blur(120px); bottom: -100px; left: 50%; transform: translateX(-50%); pointer-events: none; border-radius: 50%; }

.section-eyebrow { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.section-h2 { font-size: clamp(30px,4vw,50px); font-weight: 900; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 12px; }
.accent-serif { font-family: "DM Serif Display", serif; font-style: italic; font-weight: 400; color: var(--green); }
.section-sub { font-size: 16px; color: var(--muted); max-width: 480px; margin: 0 auto 64px; line-height: 1.8; }

.cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; max-width: 1060px; margin: 0 auto; position: relative; z-index: 1; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 38px 32px 36px; text-align: left; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.card.green-card::before { background: linear-gradient(to right, var(--green), transparent); }
.card.blue-card::before { background: linear-gradient(to right, var(--blue), transparent); }
.card:hover { transform: translateY(-7px); box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 40px var(--card-glow, rgba(22,216,109,0.1)); border-color: var(--card-border, rgba(22,216,109,0.3)); }
.card.blue-card { --card-glow: rgba(73,177,242,0.1); --card-border: rgba(73,177,242,0.3); }
.card-num { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted-2); margin-bottom: 20px; display: block; }
.card h3 { font-size: 18px; font-weight: 800; margin-bottom: 14px; color: var(--white); letter-spacing: -0.01em; line-height: 1.3; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.85; margin-bottom: 28px; }
.card-link { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; transition: gap 0.2s; }
.card-link.g { color: var(--green); }
.card-link.b { color: var(--blue); }
.card-link:hover { gap: 14px; }

/* ════ GALLERY ════ */
.section-gallery { background: var(--dark); padding: 110px 60px; position: relative; overflow: hidden; }
.section-gallery::before { content: ""; position: absolute; width: 500px; height: 500px; background: rgba(22,216,109,0.06); filter: blur(130px); top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none; border-radius: 50%; }
.gallery-head { text-align: center; margin-bottom: 56px; position: relative; z-index: 1; }
.gallery-grid { display: grid; grid-template-columns: repeat(12,1fr); grid-template-rows: auto auto; gap: 12px; max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.g-item:nth-child(1) { grid-column: 1/8; }
.g-item:nth-child(2) { grid-column: 8/13; }
.g-item:nth-child(3) { grid-column: 1/5; }
.g-item:nth-child(4) { grid-column: 5/9; }
.g-item:nth-child(5) { grid-column: 9/13; }
.g-item { position: relative; border-radius: 8px; overflow: hidden; background: var(--card); border: 1px solid var(--border); cursor: pointer; }
.g-item:nth-child(1) .g-wrap { padding-top: 58%; }
.g-item:nth-child(2) .g-wrap { padding-top: 97%; }
.g-item:nth-child(3) .g-wrap, .g-item:nth-child(4) .g-wrap, .g-item:nth-child(5) .g-wrap { padding-top: 85%; }
.g-wrap { position: relative; width: 100%; overflow: hidden; }
.g-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.g-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.g-item:nth-child(1) .g-ph { background: linear-gradient(135deg,#1a2b22,#181818); }
.g-item:nth-child(2) .g-ph { background: linear-gradient(135deg,#182230,#181818); }
.g-item:nth-child(3) .g-ph { background: linear-gradient(135deg,#272218,#181818); }
.g-item:nth-child(4) .g-ph { background: linear-gradient(135deg,#1a2b22,#181818); }
.g-item:nth-child(5) .g-ph { background: linear-gradient(135deg,#182230,#181818); }
.g-ph svg { opacity: 0.15; }
.g-ph span { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.15); letter-spacing: 0.06em; text-transform: uppercase; }
.g-item::after { content: ""; position: absolute; inset: 0; background: rgba(22,216,109,0.07); opacity: 0; transition: opacity 0.3s; z-index: 2; pointer-events: none; }
.g-item:hover::after { opacity: 1; }
.g-item:hover .g-wrap img { transform: scale(1.05); }
.g-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 18px 20px 16px; background: linear-gradient(to top,rgba(0,0,0,0.8),transparent); transform: translateY(6px); opacity: 0; transition: opacity 0.3s, transform 0.3s; z-index: 3; }
.g-item:hover .g-caption { opacity: 1; transform: translateY(0); }
.g-caption-label { font-size: 10px; font-weight: 700; color: var(--green); letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 3px; }
.g-caption-title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9); margin: 0; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.93); z-index: 999; align-items: center; justify-content: center; padding: 40px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lightbox.active { display: flex; }
.lb-inner { position: relative; max-width: 900px; width: 100%; }
.lb-img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; display: block; }
.lb-ph { width: 100%; height: 480px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--card); border: 1px solid rgba(255,255,255,0.1); }
.lb-ph svg { opacity: 0.18; }
.lb-ph span { font-size: 14px; color: rgba(255,255,255,0.22); font-weight: 600; }
.lb-close { position: absolute; top: -48px; right: 0; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 30px; cursor: pointer; transition: color 0.2s; font-family: "Montserrat", sans-serif; line-height: 1; }
.lb-close:hover { color: var(--white); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); color: var(--white); font-size: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s, border-color 0.2s; font-family: "Montserrat", sans-serif; }
.lb-nav:hover { background: rgba(22,216,109,0.15); border-color: var(--green); }
.lb-prev { left: -64px; }
.lb-next { right: -64px; }

/* ════ CTA ════ */
.section-cta { background: var(--dark-2); padding: 120px 60px; text-align: center; position: relative; overflow: hidden; }
.section-cta::before { content: ""; position: absolute; width: 800px; height: 500px; background: radial-gradient(ellipse,rgba(22,216,109,0.1) 0%,transparent 65%); top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.cta-rule { width: 80px; height: 1px; background: linear-gradient(to right,transparent,var(--green),transparent); margin: 0 auto 40px; }
.cta-inner { position: relative; z-index: 1; }
.cta-h2 { font-size: clamp(32px,5vw,62px); font-weight: 900; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 20px; }
.feat-pills { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 48px; margin-top: 40px; }
.pill { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 2px; padding: 9px 20px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.65); display: inline-flex; align-items: center; gap: 8px; }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot-g { background: var(--green); box-shadow: 0 0 7px var(--green); }
.dot-b { background: var(--blue); box-shadow: 0 0 7px var(--blue); }

/* GHL form embed */
.ghl-form-wrap { margin-top: 48px; max-width: 640px; margin-left: auto; margin-right: auto; }
.ghl-form-wrap iframe { width: 100% !important; min-height: 500px; border: none; }

/* ════ FOOTER ════ */
.site-footer { background: #111; border-top: 1px solid rgba(255,255,255,0.05); padding: 32px 60px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.site-footer p, .site-footer span { font-size: 12px; color: rgba(255,255,255,0.25); margin: 0; font-family: "Montserrat", sans-serif; }

/* ════ INNER PAGES ════ */
.site-content { background: var(--dark); min-height: 60vh; padding: 80px 60px; max-width: 900px; margin: 0 auto; }
.entry-title { font-size: clamp(28px,4vw,52px); font-weight: 900; margin-bottom: 24px; color: var(--white); letter-spacing: -0.02em; }
.entry-content { font-size: 16px; color: var(--muted); line-height: 1.9; }
.entry-content h2 { color: var(--white); font-size: 1.5em; font-weight: 800; margin: 2em 0 0.75em; }
.entry-content h3 { color: var(--white); font-size: 1.2em; font-weight: 700; margin: 1.75em 0 0.5em; }
.entry-content p { margin-bottom: 1.4em; }
.entry-content a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { margin: 0 0 1.4em 1.5em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content blockquote { border-left: 3px solid var(--green); margin: 2em 0; padding: 16px 24px; background: rgba(22,216,109,0.05); border-radius: 0 8px 8px 0; }
.entry-content img { border-radius: 8px; margin: 1.5em 0; }

/* ════ SCROLL REVEAL ════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ════ RESPONSIVE ════ */
@media (max-width: 960px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid .card:last-child { grid-column: 1/3; max-width: 420px; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
  .site-header { padding: 0 24px; position: relative; }
  .main-navigation { display: none; }
  .menu-toggle { display: flex; }
  .hero { padding: 80px 24px; min-height: auto; }
  .section-services, .section-gallery, .section-cta { padding: 80px 24px; }
  .hero-h1 { font-size: 38px; }
  .hero-h1-serif { font-size: 40px; }
  .section-h2, .cta-h2 { font-size: 30px; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid .card:last-child { grid-column: auto; max-width: none; }
  .stat-bar { grid-template-columns: 1fr; }
  .stat-item + .stat-item::before { display: none; }
  .stat-item { border-top: 1px solid var(--border); }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .g-item:nth-child(1) { grid-column: 1/3; }
  .g-item:nth-child(2), .g-item:nth-child(3), .g-item:nth-child(4), .g-item:nth-child(5) { grid-column: auto; }
  .g-item:nth-child(1) .g-wrap { padding-top: 55%; }
  .g-item:nth-child(n) .g-wrap { padding-top: 80%; }
  .lb-prev { left: -10px; }
  .lb-next { right: -10px; }
  .site-footer { flex-direction: column; text-align: center; padding: 28px 24px; }
  .site-content { padding: 60px 24px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .g-item:nth-child(n) { grid-column: 1/2; }
  .g-item:nth-child(n) .g-wrap { padding-top: 65%; }
}
