/*
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: 24px; align-items: center; margin: 0; padding: 0; flex-wrap: nowrap; }
.main-navigation ul a { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; transition: color 0.2s; font-family: "Montserrat", sans-serif; white-space: nowrap; }
.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: 9px 20px;
  border-radius: 3px; font-weight: 700 !important; font-size: 12px !important;
  white-space: nowrap; flex-shrink: 0;
  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; flex-shrink: 0; }
.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%; }
}

/* ════════════════════════════════════
   PAGE HERO (contact, webinars, etc)
   ════════════════════════════════════ */
.page-hero {
  background: var(--dark);
  padding: 100px 60px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ════════════════════════════════════
   CONTACT PAGE
   ════════════════════════════════════ */
.contact-form-section {
  background: var(--dark-2);
  padding: 80px 60px 100px;
  position: relative;
  overflow: hidden;
}

.contact-form-section::before {
  content: "";
  position: absolute;
  width: 600px; height: 400px;
  background: rgba(22,216,109,0.05);
  filter: blur(120px);
  top: 0; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  border-radius: 50%;
}

.contact-form-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  max-width: 1060px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  align-items: start;
}

/* Left info column */
.contact-info-col { position: sticky; top: 100px; }

.contact-side-h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 14px 0 20px;
  color: var(--white);
}

.contact-side-p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 32px;
}

.contact-divider {
  width: 48px; height: 2px;
  background: linear-gradient(to right, var(--green), transparent);
  margin-bottom: 28px;
}

.contact-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.contact-feature-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Right form column */
.contact-form-col {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.ghl-form-container {
  padding: 0;
  min-height: 840px;
  position: relative;
}

.ghl-form-container iframe {
  width: 100% !important;
  min-height: 840px;
  border: none !important;
  display: block;
}

/* ── GHL Form Style Overrides ──
   These force GHL's form to match
   the Transcend Dynamix dark theme */
.ghl-form-container iframe {
  background: transparent !important;
  color-scheme: dark;
}

/* Inject dark theme into GHL form via CSS custom properties */
.contact-form-col {
  --ghl-bg: #222222;
  --ghl-text: #ffffff;
  --ghl-border: rgba(255,255,255,0.12);
  --ghl-accent: #16d86d;
}

/* ════════════════════════════════════
   BOOKING / WEBINARS PAGE
   ════════════════════════════════════ */
.booking-section {
  background: var(--dark-2);
  padding: 60px 60px 100px;
  position: relative;
  overflow: hidden;
}

.booking-section::before {
  content: "";
  position: absolute;
  width: 700px; height: 400px;
  background: rgba(73,177,242,0.05);
  filter: blur(130px);
  top: 0; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  border-radius: 50%;
}

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

.booking-intro {
  text-align: center;
  margin-bottom: 40px;
}

.booking-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.booking-calendar-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  min-height: 700px;
  position: relative;
}

.booking-calendar-wrap iframe {
  width: 100% !important;
  min-height: 700px;
  border: none !important;
  display: block;
}

/* ════════════════════════════════════
   NAV ACTIVE STATES FOR NEW PAGES
   ════════════════════════════════════ */
.main-navigation ul li.current-menu-item a,
.main-navigation ul li.current_page_item a {
  color: var(--white);
}

/* ════════════════════════════════════
   RESPONSIVE — NEW PAGES
   ════════════════════════════════════ */
@media (max-width: 768px) {
  .page-hero { padding: 80px 24px 60px; min-height: auto; }
  .contact-form-section,
  .booking-section { padding: 60px 24px 80px; }
  .contact-form-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-info-col { position: static; }
  .ghl-form-container,
  .ghl-form-container iframe { min-height: 900px; }
  .booking-calendar-wrap,
  .booking-calendar-wrap iframe { min-height: 800px; }
}

/* ════════════════════════════════════
   BLOG INDEX
   ════════════════════════════════════ */
.blog-section {
  background: var(--dark-2);
  padding: 80px 60px 100px;
  position: relative;
}

.blog-section::before {
  content: "";
  position: absolute;
  width: 600px; height: 400px;
  background: rgba(22,216,109,0.05);
  filter: blur(120px);
  top: 0; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  border-radius: 50%;
}

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

/* ── Blog Grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

/* Featured first post spans full width */
.blog-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
}

.blog-card--featured .blog-card__thumb {
  aspect-ratio: 16/9;
  border-radius: 8px 0 0 8px;
}

.blog-card--featured .blog-card__body {
  border-radius: 0 8px 8px 0;
  border-left: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.blog-card--featured .blog-card__title {
  font-size: clamp(20px, 2.5vw, 28px);
}

.blog-card--featured .blog-card__excerpt {
  display: block;
}

/* Regular cards */
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(22,216,109,0.08);
  border-color: rgba(22,216,109,0.25);
}

/* Thumbnail */
.blog-card__thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  flex-shrink: 0;
}

.blog-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__thumb img { transform: scale(1.04); }

.blog-card__thumb--empty { background: var(--dark); }

.blog-card__thumb-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  min-height: 180px;
  opacity: 0.3;
}

/* Card body */
.blog-card__body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.blog-card__cat {
  background: rgba(22,216,109,0.1);
  border: 1px solid rgba(22,216,109,0.25);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  text-decoration: none;
}

.blog-card__date,
.blog-card__read {
  font-size: 11px;
  color: var(--muted-2);
  font-weight: 600;
}

.blog-card__date::after { content: "·"; margin-left: 10px; }

.blog-card__title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  flex: 1;
}

.blog-card__title a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card__title a:hover { color: var(--green); }

.blog-card__excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 18px;
  display: none; /* only shown on featured card */
}

.blog-card__link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
  margin-top: auto;
}

.blog-card__link:hover { gap: 12px; }

/* ── Pagination ── */
.blog-pagination { text-align: center; }

.blog-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px; height: 42px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0 14px;
  transition: all 0.2s;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: var(--green);
  border-color: var(--green);
  color: #111;
}

/* ── Empty state ── */
.blog-empty {
  text-align: center;
  padding: 80px 20px;
  max-width: 500px;
  margin: 0 auto;
}

/* ════════════════════════════════════
   SINGLE POST
   ════════════════════════════════════ */
.post-hero { min-height: 500px; padding-bottom: 60px; }

.post-hero-inner { max-width: 800px; }

.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.post-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  color: var(--white);
}

.post-hero__author {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.post-author-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.post-avatar-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

.post-author-info { display: flex; flex-direction: column; text-align: left; }
.post-author-name { font-size: 14px; font-weight: 700; color: var(--white); }
.post-author-role { font-size: 12px; color: var(--muted-2); }

/* Featured image */
.post-featured-image {
  max-height: 520px;
  overflow: hidden;
  background: var(--dark);
}

.post-featured-image img {
  width: 100%; height: 520px;
  object-fit: cover; display: block;
}

/* Post content area */
.post-content-section {
  background: var(--dark-2);
  padding: 72px 60px 80px;
}

.post-content-inner {
  max-width: 760px;
  margin: 0 auto;
}

/* WordPress content styles */
.entry-content { color: rgba(255,255,255,0.72); font-size: 17px; line-height: 1.9; }
.entry-content h2 { color: var(--white); font-size: 1.55em; font-weight: 800; margin: 2.2em 0 0.8em; letter-spacing: -0.02em; }
.entry-content h3 { color: var(--white); font-size: 1.25em; font-weight: 700; margin: 2em 0 0.6em; }
.entry-content h4 { color: var(--white); font-size: 1.05em; font-weight: 700; margin: 1.8em 0 0.5em; }
.entry-content p  { margin-bottom: 1.5em; }
.entry-content a  { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--white); }
.entry-content strong { color: var(--white); font-weight: 700; }
.entry-content ul, .entry-content ol { margin: 0 0 1.5em 1.5em; }
.entry-content li { margin-bottom: 0.6em; }
.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;
  font-size: 1.05em; color: rgba(255,255,255,0.8);
}
.entry-content code {
  background: #1a1a1a; border: 1px solid rgba(255,255,255,0.1);
  padding: 2px 8px; border-radius: 4px;
  font-size: 0.88em; color: var(--blue);
}
.entry-content pre {
  background: #1a1a1a; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 24px; overflow-x: auto; margin: 1.5em 0;
}
.entry-content pre code { background: none; border: none; padding: 0; color: #e8e8e8; font-size: 14px; }
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5em 0; }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption { text-align: center; font-size: 13px; color: var(--muted-2); margin-top: 8px; }
.entry-content hr { border: none; border-top: 1px solid var(--border); margin: 2.5em 0; }

/* Post tags */
.post-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 48px 0 0; padding-top: 40px;
  border-top: 1px solid var(--border);
}

/* Share row */
.post-share {
  display: flex; align-items: center; gap: 16px;
  margin-top: 40px; padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.post-share__label {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-2);
}

.post-share__links { display: flex; gap: 10px; flex-wrap: wrap; }

.post-share__btn {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px; padding: 8px 16px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.post-share__btn:hover { border-color: var(--green); color: var(--green); }

/* Post nav */
.post-nav-row {
  display: flex; gap: 16px;
  margin-top: 48px; padding-top: 40px;
  border-top: 1px solid var(--border);
}

.post-nav-item {
  flex: 1; background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 20px 22px;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.2s, transform 0.2s;
}

.post-nav-item:hover { border-color: rgba(22,216,109,0.35); transform: translateY(-2px); }
.post-nav-item--next { text-align: right; }

.post-nav-item__label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green);
}

.post-nav-item__title {
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.7); line-height: 1.4;
}

/* Related posts */
.related-posts-section {
  background: var(--dark);
  padding: 80px 60px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.related-posts-section::before {
  content: "";
  position: absolute;
  width: 500px; height: 300px;
  background: rgba(73,177,242,0.05);
  filter: blur(100px);
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  border-radius: 50%;
}

.related-posts-inner {
  max-width: 1060px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

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

/* ════════════════════════════════════
   BLOG RESPONSIVE
   ════════════════════════════════════ */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-card--featured { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .blog-card--featured .blog-card__thumb { border-radius: 8px 8px 0 0; }
  .blog-card--featured .blog-card__body { border-radius: 0 0 8px 8px; border-left: 1px solid var(--border); padding: 28px; }
  .blog-grid--related { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .blog-section,
  .related-posts-section,
  .post-content-section { padding: 60px 24px 80px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card--featured { grid-template-columns: 1fr; }
  .post-featured-image img { height: 260px; }
  .post-title { font-size: 32px; }
  .post-nav-row { flex-direction: column; }
  .post-nav-item--next { text-align: left; }
}
