/* ==========================================================================
   Bussing Transit — Custom CSS
   WordPress Block Theme
   ========================================================================== */

/* ===== CSS Custom Properties / Theme Colors ===== */
:root {
  --pumpkin: #FD802E;
  --pumpkin-dark: #E06A1A;
  --pumpkin-light: #FFAD6B;
  --charcoal: #233D4C;
  --charcoal-light: #2E4F62;
  --charcoal-dark: #1A2E3A;
  --off-white: #F8F7F4;
}

/* ===== Base ===== */
* {
  font-family: "Noto Sans Thai", "Inter", sans-serif;
  box-sizing: border-box;
}

.font-en {
  font-family: "Inter", sans-serif;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  position: relative;
  color: var(--charcoal);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Remove WordPress block editor default margins */
.wp-site-blocks {
  padding: 0 !important;
}

.wp-site-blocks > * + * {
  margin-top: 0 !important;
}

/* ===== Scroll Progress Bar ===== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  z-index: 100;
  background: linear-gradient(90deg, #fd802e, #ffad6b, #fd802e);
  transform-origin: left;
  transform: scaleX(0);
  transition: none;
  width: 100%;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #fd802e;
  border-radius: 3px;
}

/* ===== Grain Overlay ===== */
.grain::before {
  content: "";
  position: fixed;
  inset: -200%;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ===== Core Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-blur {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(30px);
  transition:
    opacity 1s ease,
    filter 1s ease,
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-blur.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Stagger delays */
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }
.d6 { transition-delay: 0.6s; }
.d7 { transition-delay: 0.7s; }
.d8 { transition-delay: 0.8s; }

/* ===== MaaS Title ===== */
.maas-title {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.92;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.15rem, 1.2vw, 0.6rem);
  font-size: clamp(2.6rem, 7.6vw, 6.8rem);
  text-wrap: balance;
  user-select: none;
}

.maas-line {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(0.25rem, 1.3vw, 0.9rem);
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .maas-title {
    flex-direction: row;
    gap: clamp(0.25rem, 1.4vw, 1rem);
  }
  .maas-line-1 {
    margin-right: clamp(0.2rem, 0.8vw, 0.6rem);
  }
}

.maas-word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 70px, 0) rotateX(28deg) scale(0.98);
  filter: blur(10px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s ease,
    color 0.25s ease,
    text-shadow 0.25s ease;
  will-change: transform, opacity, filter;
}

.maas-word.show {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(0) scale(1);
  filter: blur(0);
}

.maas-word:hover {
  color: #fd802e;
  text-shadow: 0 14px 42px rgba(253, 128, 46, 0.35);
}

/* Hero subtitle word animation */
.subtitle-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.subtitle-word.show {
  opacity: 1;
  transform: translateY(0);
}

/* Hero glow orbs */
@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}
@keyframes float-medium {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, -30px) scale(1.1); }
}
.glow-orb-1 { animation: float-slow 12s ease-in-out infinite; }
.glow-orb-2 { animation: float-medium 10s ease-in-out infinite; }
.glow-orb-3 { animation: float-slow 15s ease-in-out infinite reverse; }

/* Light beam */
@keyframes beam-sweep {
  0% { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(200vw) rotate(25deg); }
}
.light-beam {
  position: absolute;
  width: 200px;
  height: 800px;
  background: linear-gradient(90deg, transparent, rgba(253, 128, 46, 0.04), transparent);
  animation: beam-sweep 8s ease-in-out infinite;
}

.parallax-bg {
  will-change: transform;
}

/* ===== Gradient Text ===== */
.gradient-text {
  background: linear-gradient(135deg, #fd802e 0%, #ffad6b 50%, #fd802e 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== Glassmorphism Nav ===== */
.nav-glass {
  background: rgba(35, 61, 76, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ===== Card Effects ===== */
.premium-card {
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s ease;
  will-change: transform;
}
.premium-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 25px 50px rgba(35, 61, 76, 0.12),
    0 0 0 1px rgba(253, 128, 46, 0.08);
}

.glow-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s ease;
}
.glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(253, 128, 46, 0.06),
    transparent 40%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.glow-card:hover::before {
  opacity: 1;
}
.glow-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ===== Initiative Cards ===== */
.initiative-card {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.initiative-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Partner Carousel ===== */
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.carousel-track {
  animation: scroll-left 30s linear infinite;
}
.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-mask {
  padding: 0 24px;
  border-radius: 24px;
  overflow: hidden;
}

.carousel-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 10;
  pointer-events: none;
  opacity: 0.95;
}
.carousel-edge.left {
  left: 0;
  background: linear-gradient(90deg, rgba(248, 247, 244, 1) 0%, rgba(248, 247, 244, 0) 100%);
}
.carousel-edge.right {
  right: 0;
  background: linear-gradient(270deg, rgba(248, 247, 244, 1) 0%, rgba(248, 247, 244, 0) 100%);
}

.carousel-track.premium {
  will-change: transform;
  animation: scroll-left 26s linear infinite;
}
.carousel-mask:hover .carousel-track.premium {
  animation-play-state: paused;
}

.partner-pill {
  min-width: 170px;
  height: 64px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(35, 61, 76, 0.06);
  box-shadow: 0 12px 24px rgba(35, 61, 76, 0.06);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
  position: relative;
  overflow: hidden;
}

.partner-pill::before {
  content: "";
  position: absolute;
  inset: -120% -60%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: rotate(18deg) translateX(-40%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.partner-pill:hover::before {
  opacity: 1;
  animation: shine 1.2s ease;
}

@keyframes shine {
  0% { transform: rotate(18deg) translateX(-60%); }
  100% { transform: rotate(18deg) translateX(60%); }
}

.partner-pill:hover {
  transform: translateY(-6px);
  border-color: rgba(253, 128, 46, 0.22);
  box-shadow:
    0 22px 48px rgba(35, 61, 76, 0.1),
    0 0 0 1px rgba(253, 128, 46, 0.1);
  background: rgba(255, 255, 255, 1);
}

.partner-text {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(35, 61, 76, 0.55);
  transition: color 0.25s ease, transform 0.25s ease;
}

.partner-pill:hover .partner-text {
  color: rgba(253, 128, 46, 0.95);
  transform: translateY(-1px);
}

/* ===== Section Divider ===== */
.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #fd802e, #ffad6b);
  border-radius: 2px;
}

/* ===== Count Number ===== */
.count-number {
  font-variant-numeric: tabular-nums;
  font-family: "Inter", sans-serif;
}

/* ===== Pulse Dot ===== */
@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #fd802e;
  animation: pulse-ring 1.5s ease-out infinite;
}

/* ===== Image Reveal ===== */
.img-reveal {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-reveal.visible {
  clip-path: inset(0 0 0 0);
}

/* ===== Line Expand ===== */
.line-expand {
  width: 0;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
.line-expand.visible {
  width: 60px;
}

/* ===== CTA Button Glow ===== */
.btn-glow {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-glow::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #fd802e, #ffad6b, #fd802e);
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.3s ease;
}
.btn-glow:hover::after {
  opacity: 0.6;
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(253, 128, 46, 0.35);
}

/* ===== Back to Top Button ===== */
#to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1000;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fd802e, #ff9a4d);
  color: white;
  font-size: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  cursor: pointer;
  border: none;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  filter: blur(6px);
  transition:
    opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.45s ease,
    box-shadow 0.3s ease;
}

#to-top.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

#to-top:hover {
  box-shadow: 0 28px 60px rgba(253, 128, 46, 0.35);
  transform: translateY(-4px) scale(1.05);
}

/* ===== Image Lightbox ===== */
#image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9999;
}

#image-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

#lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 16px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

#image-lightbox.active #lightbox-img {
  transform: scale(1);
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.3s ease;
}

#lightbox-close:hover {
  color: var(--pumpkin);
}

/* ===== Utility Classes (Tailwind equivalents) ===== */

/* Layout */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Display */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* Flexbox */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-shrink-0 { flex-shrink: 0; }
.self-start { align-self: flex-start; }

/* Grid */
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-7 { gap: 1.75rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.gap-20 { gap: 5rem; }

/* Spacing */
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-28 { padding-top: 7rem; padding-bottom: 7rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.pt-8 { padding-top: 2rem; }
.pb-0 { padding-bottom: 0; }
.pl-2 { padding-left: 0.5rem; }

.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mb-24 { margin-bottom: 6rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }
.mr-0 { margin-right: 0; }
.ml-0 { margin-left: 0; }

/* Sizing */
.w-full { width: 100%; }
.w-2 { width: 0.5rem; }
.w-4 { width: 1rem; }
.w-10 { width: 2.5rem; }
.w-11 { width: 2.75rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-32 { width: 8rem; }
.w-56 { width: 14rem; }
.w-80 { width: 20rem; }
.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-32 { height: 8rem; }
.h-48 { height: 12rem; }
.h-52 { height: 13rem; }
.h-56 { height: 14rem; }
.h-64 { height: 16rem; }
.h-80 { height: 20rem; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-sm { max-width: 24rem; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }

/* Colors */
.text-white { color: #ffffff; }
.text-pumpkin { color: var(--pumpkin); }
.text-charcoal { color: var(--charcoal); }
.text-green-500 { color: #22c55e; }
.bg-white { background-color: #ffffff; }
.bg-off-white { background-color: var(--off-white); }
.bg-pumpkin { background-color: var(--pumpkin); }
.bg-charcoal { background-color: var(--charcoal); }
.bg-charcoal-dark { background-color: var(--charcoal-dark); }
.bg-green-500 { background-color: #22c55e; }

/* Opacity colors */
.text-white\/20 { color: rgba(255, 255, 255, 0.2); }
.text-white\/30 { color: rgba(255, 255, 255, 0.3); }
.text-white\/35 { color: rgba(255, 255, 255, 0.35); }
.text-white\/45 { color: rgba(255, 255, 255, 0.45); }
.text-white\/50 { color: rgba(255, 255, 255, 0.5); }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.text-charcoal\/40 { color: rgba(35, 61, 76, 0.4); }
.text-charcoal\/45 { color: rgba(35, 61, 76, 0.45); }
.text-charcoal\/50 { color: rgba(35, 61, 76, 0.5); }
.text-charcoal\/60 { color: rgba(35, 61, 76, 0.6); }

/* Border */
.border { border-width: 1px; border-style: solid; }
.border-transparent { border-color: transparent; }
.border-l-2 { border-left: 2px solid; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* Effects */
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.opacity-0 { opacity: 0; }
.blur-2xl { filter: blur(40px); }
.pointer-events-none { pointer-events: none; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-top { object-position: top; }
.cursor-zoom-in { cursor: zoom-in; }

/* Transforms */
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.rotate-1 { transform: rotate(1deg); }
.rotate-2 { transform: rotate(2deg); }

/* Transitions */
.transition-all { transition-property: all; transition-duration: 0.15s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 0.15s; }
.transition-transform { transition-property: transform; transition-duration: 0.15s; }
.duration-300 { transition-duration: 0.3s; }
.duration-500 { transition-duration: 0.5s; }
.duration-700 { transition-duration: 0.7s; }

/* Hover */
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-pumpkin:hover { color: var(--pumpkin); }
.hover\:gap-3:hover { gap: 0.75rem; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.hover\:bg-pumpkin:hover { background-color: var(--pumpkin); }
.hover\:translate-x-1:hover { transform: translateX(0.25rem); }

/* Group hover */
.group:hover .group-hover\:text-pumpkin { color: var(--pumpkin); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:scale-110 { transform: scale(1.10); }
.group:hover .group-hover\:bg-transparent { background-color: transparent; }
.group:hover .group-hover\:bg-pumpkin\/10 { background-color: rgba(253, 128, 46, 0.1); }

/* Animate */
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-bounce { animation: bounce 1s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

/* ===== Responsive ===== */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .md\:flex-row { flex-direction: row; }
  .md\:col-span-2 { grid-column: span 2; }
  .md\:p-20 { padding: 5rem; }
  .md\:w-2\/5 { width: 40%; }
  .md\:w-3\/5 { width: 60%; }
  .md\:h-full { height: 100%; }
  .md\:h-80 { height: 20rem; }
}

@media (min-width: 1024px) {
  .lg\:hidden { display: none; }
  .lg\:flex { display: flex; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .lg\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .lg\:text-5xl { font-size: 3rem; line-height: 1; }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .lg\:p-12 { padding: 3rem; }
  .lg\:py-36 { padding-top: 9rem; padding-bottom: 9rem; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* ===== Nav link underline effect ===== */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pumpkin);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.text-pumpkin::after {
  width: 100%;
}

/* ===== Contact form focus ===== */
.bt-form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--off-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  outline: none;
}

.bt-form-input:focus {
  border-color: rgba(253, 128, 46, 0.4);
  box-shadow: 0 0 0 3px rgba(253, 128, 46, 0.1);
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .carousel-track.premium {
    animation: none !important;
  }
  .partner-pill,
  .partner-pill::before {
    transition: none !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-blur {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none !important;
  }
  .maas-word {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ===== Helpers for specific opacity backgrounds used in demo ===== */
.bg-pumpkin-8 { background-color: rgba(253, 128, 46, 0.08); }
.bg-pumpkin-10 { background-color: rgba(253, 128, 46, 0.1); }
.bg-pumpkin-15 { background-color: rgba(253, 128, 46, 0.15); }
.bg-charcoal-5 { background-color: rgba(35, 61, 76, 0.05); }
.border-pumpkin-30 { border-color: rgba(253, 128, 46, 0.3); }
.border-gray-100 { border-color: rgba(0, 0, 0, 0.04); }

/* ===== WordPress Block Editor Overrides ===== */
.wp-block-html {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure full-width sections break out of constrained layouts */
.wp-block-group.has-background {
  max-width: none;
}

/* Fix WordPress separator for section-line */
hr.wp-block-separator.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #fd802e, #ffad6b) !important;
  border: none;
  border-radius: 2px;
  opacity: 1 !important;
  margin-left: 0;
}

/* Image decorations via CSS pseudo-elements */
.bt-image-decorated {
  position: relative;
  overflow: visible;
}
.bt-image-decorated::before {
  content: "";
  position: absolute;
  inset: -1.5rem;
  background: linear-gradient(to bottom right, rgba(253,128,46,0.1), transparent);
  border-radius: 2rem;
  transform: rotate(2deg);
  z-index: -1;
  pointer-events: none;
}
.bt-image-decorated::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 8rem;
  height: 8rem;
  background: rgba(253,128,46,0.1);
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

/* WordPress columns inside initiative cards */
.initiative-card .wp-block-columns {
  margin-bottom: 0 !important;
}
.initiative-card .wp-block-cover {
  min-height: 20rem;
}

/* Initiative card hover effects (match demo) */
.initiative-card {
  border: 1px solid transparent;
}
.initiative-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.06);
}
.initiative-card:hover h3 {
  color: var(--pumpkin) !important;
  transition: color 0.3s ease;
}
.initiative-card .wp-block-cover__image-background {
  cursor: zoom-in;
  transition: transform 0.7s ease;
}
.initiative-card:hover .wp-block-cover__image-background {
  transform: scale(1.1);
}

/* Social icon hover effects (contact section) */
.bt-social-icon:hover {
  background: var(--pumpkin) !important;
  color: white !important;
  border-color: var(--pumpkin) !important;
}

/* Link arrow hover effect */
.bt-link-arrow:hover {
  gap: 0.75rem !important;
}
.bt-link-arrow i {
  transition: transform 0.3s ease;
}
.bt-link-arrow:hover i {
  transform: translateX(4px);
}

/* Hero contact button hover */
a[href="#contact"]:hover {
  border-color: rgba(253, 128, 46, 0.6) !important;
  color: white !important;
}

/* Footer link hover effects */
.bt-footer a:hover {
  color: var(--pumpkin) !important;
}

/* WordPress cover block integration */
.wp-block-cover .wp-block-cover__background {
  pointer-events: none;
}

/* Fix wp-block-group empty spacing */
.wp-block-group:empty {
  padding: 0;
  margin: 0;
}

/* Responsive: Stack columns on mobile */
@media (max-width: 781px) {
  .initiative-card .wp-block-columns.is-not-stacked-on-mobile {
    flex-wrap: wrap;
  }
  .initiative-card .wp-block-columns.is-not-stacked-on-mobile > .wp-block-column {
    flex-basis: 100% !important;
  }
}
