/* =========================================
   ROOT VARIABLES
========================================= */
:root {
  --red: #c00000;
  --black: #0a0a0a;
  --white: #ffffff;
  --gray: #f4f4f4;
}

/* =========================================
   RESET
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}
.reveal{
opacity:0;
transform:translateY(60px);
}
/* =========================================
   ACCESSIBILITY / SEO
========================================= */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
/* =========================================
   LAYOUT
========================================= */
.layout {
  display: flex;
}

.side-nav {
  width: 220px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: #000;
  padding: 50px 25px;
  display: flex;
  flex-direction: column;
}

.side-nav nav {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-link {
  color: white;
  text-decoration: none;
  opacity: .6;
  transition: .3s ease;
}

.nav-link.active,
.nav-link:hover {
  opacity: 1;
  color: var(--red);
}

/* Submenu styles for sidebar navigation */
.side-nav nav .nav-item {
  display: block;
  position: relative;
}

.side-nav nav .has-submenu > .nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.side-nav nav .has-submenu > .nav-link::after {
  content: "\25B6"; /* right-pointing triangle */
  display: inline-block;
  margin-left: 8px;
  transform-origin: 50% 50%;
  transition: transform .25s ease, opacity .25s ease;
  font-size: 0.7rem;
  opacity: 0.7;
}

.side-nav nav .nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 12px;
  margin-top: 8px;
  overflow: hidden;
  max-height: 0;
  transition: max-height .28s ease, opacity .2s ease;
  opacity: 0;

}

/* visible on hover or when parent has .open */
.side-nav nav .nav-item.open > .nav-submenu,
.side-nav nav .nav-item:hover > .nav-submenu {
  max-height: 480px; /* large enough for submenu items */
  opacity: 1;
  background-color: black;
  padding-right: 10px;
}

.side-nav nav .nav-item.open > .nav-link::after,
.side-nav nav .nav-item:hover > .nav-link::after {
  transform: rotate(90deg);
}

.side-nav nav .nav-submenu .sub-link {
  padding-left: 6px;
  opacity: .85;
  font-size: 0.95rem;
  color: darkgray;
}

.side-nav nav .nav-submenu .sub-link:hover {
  color: var(--red);
  opacity: 1;
}

.main {
  margin-left: 220px;
  width: calc(100% - 220px);
}

/* =========================================
   HERO
========================================= */
.hero {
  height: 20vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #000 40%, #300000 100%);
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  /*background: url('../images/AYD_Banner_group.webp') center/cover no-repeat;*/
  opacity: .65;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(192,0,0,.4), transparent 60%);
  animation: pulse 6s infinite ease-in-out;
}

@keyframes pulse {
  0%,100% { opacity:.4; }
  50% { opacity:.7; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  transition: transform .2s ease;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
}

.hero p {
  margin-top: 20px;
  font-size: 20px;
  opacity: .8;
}

.accent {
  color: var(--red);
}

/* =========================================
   SECTIONS
========================================= */
.panel {
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dark-panel {
  background: #111;
}

/* =========================================
   STACK SECTION
========================================= */
.stack-section {
  min-height: 100vh; /* allow JS to compute exact height */
  position: relative;
  background: #fff;
  color: #000;
  padding-bottom: 60px; /* ensure breathing room at bottom */
}

.stack-card {
  position: sticky;
 /* position: relative;*/
  top: 20vh;
  width: 90%;
  margin: 0 auto 60px auto;
  padding: 80px;
  background: white;
  border-radius: 20px;
  border-color: #ff0000;
  border-width: 1px;
  box-shadow: 0 40px 80px rgba(0,0,0,.15);
  transition: transform .25s ease, opacity .25s ease, filter .25s ease;
}

.stack-card-title{
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.card-1 { z-index: 30; }
.card-2 { z-index: 20; }
.card-3 { z-index: 10; }

/* CARD IMAGE BLOCK */

.card-image {
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 40px;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .6s ease;
  filter: saturate(.9) contrast(1.05);
}

.stack-card:hover .card-image img {
  transform: scale(1.04);
}

/* Soft internal depth */
.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 50%,
    rgba(0,0,0,.25) 100%
  );
  pointer-events: none;
  border-radius: 16px;
}

/* CARD CONTAINER */


.stack-card{
  position: relative;
  pointer-events: auto; /* allow full-card clicks so overlay links always work */
}

.stack-card.is-active{
  pointer-events: auto;
  z-index: 100; /* ensure active card appears above others */
}
/* FULL CARD LINK */

.card-overlay-link{
position:absolute;
inset:0;
z-index:5;
display:block;
}

.card-overlay-link {
  pointer-events: auto; /* make full card clickable always */
}

/* ARROW ABOVE OVERLAY */

.card-link{
position:absolute;
z-index:10;
color: #c00000;
}

.stack-card:hover{
transform:translateY(-6px);
box-shadow:0 25px 50px rgba(0,0,0,.25);
}
/* CONTENT */

.card-content h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
}

.card-divider {
  width: 60px;
  height: 2px;
  background: var(--red);
  margin-bottom: 20px;
}

.card-content p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: .85;
}
.card-inner {
/*  position: relative;*/
  height: 100%;
}

/* =========================================
   HORIZONTAL SECTION CLEAN
========================================= */

.horizontal-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  perspective: 1200px;
}
.horizontal-section {
  position:relative;
  z-index:5;
  transform:translateZ(0);
  will-change:transform;
}
.horizontal-wrapper{
  backface-visibility:hidden;
}

.horizontal-track {
  /*display: flex;
  height: 100%;*/
  display:flex;
  width:max-content;
  will-change:transform;
}

/* Native horizontal scroll fallback for small screens */
.horizontal-track.native-horizontal {
  width: 100%;
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.horizontal-track.native-horizontal .h-panel {
  flex: 0 0 100vw;
  min-width: 100vw;
  scroll-snap-align: start;
}

.h-panel {
  min-width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 8vw;
  /* responsive base font for panel content: scales between mobile and desktop */
  font-size: clamp(18px, 2.8vw, 28px);
  box-sizing: border-box;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Arrow cue shown at bottom of each horizontal panel on mobile to indicate more panels */
.h-panel .panel-arrow {
  position: absolute;
  left: 40%;
  transform: translateX(-50%);
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-color: #c30000;
  background: transparent;
  color: white;
  padding: 8px 20px;
  /*border-radius: 999px;*/
  clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  z-index: 30;
  display: none;
}

/* Panel arrow visible on small screens */
@media (max-width: 900px) {
  .h-panel .panel-arrow { display: inline-flex; }
}
/* DARK OVERLAY */
.program-panel {
  flex:0 0 100vw;
  height:100vh;
}

.program-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,.85),
    rgba(0,0,0,.6)
  );
  z-index: 1;
}

/* CONTENT WRAPPER */
.program-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

/* LEFT SIDE */
.program-left h2 {
  font-size: clamp(30px,3vw,40px);
  margin-bottom: 20px;
}

.program-sub {
  margin-bottom: 30px;
  opacity: .85;
  line-height: 1.6;
}

.program-price {
  display: flex;
  align-items: baseline;
  margin-bottom: 30px;
}

.price {
  font-size: 52px;
  font-weight: 700;
  color: var(--red);
  margin-right: 10px;
}

.period {
  opacity: .7;
}

/* RIGHT SIDE */
.program-benefits {
  list-style: none;
}

.program-benefits li {
  margin-bottom: 14px;
  padding-left: 20px;
  position: relative;
}

.program-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
}

/* BACKGROUND IMAGES */
.bg-aikido {
  background-image: url('../images/martial_arts_program.webp');
}

.bg-trial {
  background-image: url('../images/individual_class_bg.webp');
}

.bg-meditation {
  background-image: url('../images/meditation_class_bg.webp');
}

/* MOBILE */
@media (max-width: 900px) {
  .program-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* When viewport is small, convert horizontal panels into vertical stack-cards */
@media (max-width: 900px) {
  .horizontal-section {
    height: auto;
    overflow: visible;
    padding: 40px 6vw;
    /* transforms interfere with sticky behavior in some browsers; disable on mobile */
    transform: none !important;
  }
  /* When viewport is small, convert horizontal panels into vertical stack-cards */
  .horizontal-track {
    display: block;
    width: 100%;
    transform: none !important;
  }

  .h-panel {
    min-width: auto;
    min-height: auto;
    display: block;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  /* Panels that are converted to stack-cards inherit the stack-card look */
  .h-panel.stack-card {
    width: 90%;
    margin: 0 auto 60px;
    padding: 60px 40px;
    background: #fff;
    color: #000;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,.12);
    position: sticky;
    top: 20vh;
    z-index: 30;
  }

  /* Layer panels so later panels sit above earlier panels when sticky */
  .horizontal-track .h-panel.stack-card:nth-of-type(1) { z-index: 10; }
  .horizontal-track .h-panel.stack-card:nth-of-type(2) { z-index: 20; }
  .horizontal-track .h-panel.stack-card:nth-of-type(3) { z-index: 30; }

  /* Debugging outlines (uncomment to visualize panels during testing) */
  /* .horizontal-track .h-panel.stack-card { outline: 2px dashed rgba(0,0,0,0.12); } */

  .h-panel.stack-card .program-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    color: inherit;
  }

  /* Hide the horizontal panel arrows when panels are stacked vertically */
  .h-panel .panel-arrow { display: none !important; }

}

/* =========================================
   DOJO SECTION
========================================= */

.dojo-section {
  min-height: 100vh;
  background: #000;
  padding: 120px 6vw;
}
.dojo-section{
position:relative;
z-index:1;
}

.dojo-pinned {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Individual content panels */

.dojo-frame {
  background: #1e1e1e;
  border-radius: 18px;
  padding: 50px;
  color: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.dojo-frame h2 {
  font-size: 2.2rem;
  margin-bottom: 25px;
}

.dojo-frame p {
  opacity: .85;
  line-height: 1.6;
}
/* =========================================
   DOJO CONTENT STRUCTURE
========================================= */

.dojo-content {
  width: 90%;
  max-width: 900px;
  text-align: center;
  color: white;
}

.dojo-content h2 {
  font-size: clamp(28px,4vw,40px);
  margin-bottom: 40px;
}

.dojo-container{
max-width:1200px;
margin:auto;
padding:120px 8vw;
display:flex;
flex-direction:column;
gap:120px;
}

.dojo-panel h2{
font-size:36px;
margin-bottom:20px;
}

.section-intro{
opacity:.8;
margin-bottom:40px;
}
/* =========================================
   CALENDAR
========================================= */
.schedule-grid{
display:grid;
grid-template-columns:150px 1fr;
gap:10px;
background:#111;
padding:20px;
border-radius:12px;
}

.day{
font-weight:600;
padding:14px;
background:#000;
}

.class{
padding:14px;
border-left:4px solid var(--red);
background:#1a1a1a;
}

.class.aikido{
border-color:#c00000;
}

.class.meditation{
border-color:#888;
}

.empty{
padding:14px;
opacity:.4;
}

/* =========================================
   FAQ ACCORDION
========================================= */
/* =========================================
   FAQ ACCORDION (Premium)
========================================= */

.faq-item{
border-bottom:1px solid rgba(255,255,255,.15);
padding:22px 0;
transition:background .3s ease;
}

.faq-item.open{
background:rgba(255,255,255,.03);
border-radius:12px;
padding-left:10px;
padding-right:10px;
}

/* Question */

.faq-question{
width:100%;
background:none;
border:none;
color:white;
font-size:18px;
font-weight:600;
text-align:left;
cursor:pointer;
padding:12px 0;
position:relative;
}

/* Icon */

.faq-question::after{
content:"+";
position:absolute;
right:0;
font-size:22px;
color:var(--red);
transition:transform .3s ease;
}

.faq-item.open .faq-question::after{
content:"–";
}

/* Answer */

.faq-answer{
overflow:hidden;
height:0;
opacity:0;
line-height:1.7;
font-size:16px;
padding-right:40px;
}
.faq-container{
max-width:800px;
margin:auto;
}
/* =========================================
   TESTIMONIALS
========================================= */

.testimonial-carousel{
display:flex;
gap:30px;
overflow-x:auto;
scroll-snap-type:x mandatory;
padding-top:20px;
}

.testimonial{
min-width:300px;
background:#2a2a2a;
padding:25px;
border-radius:12px;
scroll-snap-align:start;
}

.testimonial img{
width:60px;
height:60px;
border-radius:50%;
margin-bottom:15px;
object-fit:cover;
}

.testimonial p{
font-style:italic;
margin-bottom:10px;
}

.testimonial span{
font-size:.8rem;
opacity:.6;
}

/* =========================================
   SCROLL PROGRESS BAR
========================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--red);
  width: 0%;
  z-index: 4000;
}

/* =========================================
   CINEMATIC INTRO
========================================= */
.intro-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  overflow: hidden;
}

#introCanvas {
  position: absolute;
  inset: 0;
}

.intro-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.intro-title {
  font-size: clamp(40px,6vw,90px);
  letter-spacing: 6px;
  color: white;
  opacity: 0;
}

.enter-btn {
  margin-top: 40px;
  padding: 14px 40px;
  background: var(--red);
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  transition: .3s ease;
}

.enter-btn:hover {
  background: #ff0000;
}
/* =========================================
   FOUR COLUMN SECTION
========================================= */

.four-col-section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at top, #111 0%, #000 60%);
  padding: 100px 40px;
}

/* ⭐ Modern grid replaces flex */
.four-col {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  align-items: stretch;
}

.col-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  padding: 40px 28px;
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255, 255, 255, 0.12);

  box-shadow: 0 10px 30px rgba(0,0,0,0.35);

  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;

  height: 100%; /* 🔑 equal-height enforcement */
}

/* Hover elevation */
.col-item:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
}

/* remove last border */
.col-item:last-child {
  border-right: none;
}

/* CONTENT */
.col-item h3 {
  font-size: 20px;
  line-height: 1.3;
  margin-top: 10px;
  color: #fff;
}

.col-item p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.8;
  color: #ddd;
}

/* HOVER EFFECT */
.col-item:hover {
  background: rgba(255,255,255,0.03);
  transform: translateY(-6px);
}

/* ICON */
.icon-diamond {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.icon-diamond img {
  width: 22vh;
  /*height: 26px;*/
  object-fit: contain;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {
  .four-col {
    flex-direction: column;
  }

  .col-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .col-item:last-child {
    border-bottom: none;
  }
}
@media (max-width: 1200px) {
  .four-col {
    flex-wrap: wrap;
  }

  .col-item {
    flex: 1 1 50%;
  }
}

@media (max-width: 700px) {
  .col-item {
    flex: 1 1 100%;
  }
}
@media (max-width: 1100px) {
  .four-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .four-col {
    grid-template-columns: 1fr;
  }

  .four-col-section {
    padding: 60px 20px;
  }
}
/* =========================================
   MOBILE RESPONSIVE
========================================= */
@media (max-width: 768px) {

  .layout {
    flex-direction: column;
  }

  .side-nav {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-around;
    padding: 20px;
  }

  .main {
    margin-left: 0;
    width: 100%;
  }

  .stack-card {
    width: 90%;
    padding: 40px;
    transform-style: preserve-3d;
  }

  /* Mobile: disable sticky stacking so long cards can be scrolled fully
     without being overlapped by the next card. Sticky stacking is kept
     for larger viewports where the effect is desirable. */
  .stack-section {
    padding-bottom: 36px;
    min-height: auto; /* let content flow naturally on small screens */
  }
  .stack-card {
    position: relative; /* no sticky on mobile */
    top: auto;
    margin: 0 auto 28px auto;
    padding: 28px;
    box-shadow: 0 18px 36px rgba(0,0,0,.12);
  }
  .stack-card.is-active {
    z-index: auto;
  }

  .h-panel {
    /* smaller panel font on narrow screens */
    font-size: clamp(14px, 4.5vw, 18px);
  }

  .dojo-frame {
    width: 90%;
  }

.horizontal-wrapper{
display:block;
height:auto;
}

  .horizontal-track.native-horizontal {
    display: block !important;
    overflow-x: visible !important;
    -webkit-overflow-scrolling: unset !important;
    scroll-snap-type: none !important;
    width: 100% !important;
  }

  /* Ensure native-horizontal panels don't force min-width on mobile */
  .horizontal-track.native-horizontal .h-panel {
    flex: none !important;
    min-width: auto !important;
    width: auto !important;
    scroll-snap-align: none !important;
  }
}
/* =========================================
   BUTTON FRAMEWORK
========================================= */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  transition: color .3s ease, border .3s ease;
  z-index: 1;
}

/* PRIMARY STYLE */
.btn-primary {
  border: 2px solid var(--red);
  color: white;
  background: transparent;
}

.btn-light {
  border: 2px solid white;
  color: white;
  background: transparent;
}

/* Overlay Animation */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
  z-index: -1;
  border-radius: 999px;
}

.btn:hover::before {
  transform: scaleX(1);
}

.btn:hover {
  color: white;
}

/* Light Variant (for white sections) */
.btn-light {
  border: 2px solid #c00000;
  color: #bab3b386;
}

.btn-light::before {
  background: #000;
}

.btn-light:hover {
  color: #fff;
}

/* =========================================
   CARD CORNER LINK
========================================= */
/* STACK CARD ARROW (white cards) */
.stack-card {
  position: sticky;
  top: 20vh;
}

.stack-section .stack-card .card-link {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
   opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease, background .3s ease;
  /*pointer-events: none;*/
}

/* When card becomes active */
.stack-section .stack-card.is-active .card-link {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.08);
  backdrop-filter: none;
}


.card-link{
transform:translateY(var(--arrow-offset,0));
transition:opacity .35s ease, transform .25s ease;
}

.arrow-visible{
opacity:1;
}


.stack-card .card-link svg {
  width: 18px;
  height: 18px;
  stroke: #aa0303;
  stroke-width: 2;
  fill: none;
}

.stack-card:hover .card-link {
  background: var(--red);
}

.stack-card:hover .card-link svg {
  stroke: #aa0303;
  transform: translate(2px,-2px);
}
.stack-card:hover .card-link{
opacity:1;
transform:translateY(0);
}
.arrow-visible{
animation:arrowPulse 2.5s infinite;
}

@keyframes arrowPulse{

0%{transform:translateY(0)}
50%{transform:translateY(-4px)}
100%{transform:translateY(0)}

}

/* =========================================
   CONTACT PAGE
========================================= */

.contact-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 8vw;
  background: linear-gradient(135deg, #000, #1a0000);
}

.contact-wrapper {
  width: 100%;
  max-width: 700px;
}

.contact-wrapper h1 {
  font-size: clamp(32px, 4vw, 42px);
  margin-bottom: 20px;
}

.contact-sub {
  margin-bottom: 40px;
  opacity: .8;
}

.form-group {
  margin-bottom: 30px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  opacity: .8;
}

input,
textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  color: white;
  font-size: 15px;
  outline: none;
  transition: border .3s ease, background .3s ease;
}

input:focus,
textarea:focus {
  border-color: var(--red);
  background: rgba(255,255,255,.08);
}

.error-message {
  color: #ff4d4d;
  font-size: 13px;
  margin-top: 6px;
}

.form-status {
  margin-top: 20px;
  font-size: 14px;
}

/* NAV CTA */
.nav-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 40px;
}

.nav-btn {
  width: 100%;
  justify-content: center;
  gap: 10px;
}

/* ICON STYLE */
.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}
.btn:hover{
  box-shadow:0 10px 30px rgba(202,165,75,.35);
  transform:translateY(-2px);
}
/* Subtle hover motion */
.nav-btn:hover .btn-icon svg {
  transform: translateY(-2px);
  transition: transform .3s ease;
}
.side-nav .btn {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
@media (max-width: 768px) {

  .layout {
    flex-direction: column;
  }

  /* TOP NAV MODE */
  .side-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 60px 24px;
    z-index: 5000;
    transition: height .3s ease, padding .3s ease, background .3s ease;
  }

  /* Make nav a horizontally-scrollable bar but keep CTA icons out of the scroll
     by absolutely positioning the CTA block below the top bar */
  .side-nav {
    overflow: visible;
  }

  .side-nav nav {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding-bottom: 6px;
  }

  /* Ensure CTA icons float below the top nav bar and are not part of the horizontal scroll */
  .nav-cta {
    position: absolute;
    top: 120px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 10px 12px;
    z-index: 5500;
    background: transparent;
  }

  /* Keep submenu overlays visible and functional on mobile */
  .side-nav nav .nav-submenu {
    display: none; /* default hidden */
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #000;
    padding: 10px 12px;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,.5);
    min-width: 180px;
    z-index: 6000;
  }

  .side-nav nav .nav-item.open > .nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* Portal submenu styling (body-level element) */
  .mobile-portal-submenu {
    box-shadow: 0 18px 40px rgba(0,0,0,.6) !important;
    border-radius: 10px !important;
    background: #000 !important;
    color: #fff !important;
    z-index: 100000 !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Mobile top-nav adjustments: make nav horizontally scrollable and
     ensure submenus overlay instead of pushing nav out of view */
  .side-nav {
    overflow: visible; /* allow submenu overlays */
  }

  .side-nav nav {
    flex-direction: row;
    margin-top: 0;
    gap: 16px;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  /* Make each nav item inline so horizontal scroll behaves predictably */
  .side-nav nav .nav-item {
    display: inline-flex;
    position: relative; /* anchor for absolute submenu */
  }

  .side-nav nav .nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    white-space: nowrap;
  }

  /* Submenu overlays (don't affect document flow) */
  .side-nav nav .nav-submenu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #000;
    padding: 10px 12px;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,.5);
    max-height: none;
    opacity: 1;
    display: none; /* revealed by .open */
    min-width: 180px;
    z-index: 6000;
  }

  .side-nav nav .nav-item.open > .nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* Tidy submenu links for mobile overlay */
  .side-nav nav .nav-submenu .sub-link {
    padding-left: 6px;
    white-space: nowrap;
  }

  /* Hide native scrollbars for top nav on mobile for a cleaner look */
  .side-nav nav::-webkit-scrollbar { height: 6px; }
  .side-nav nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.07); border-radius: 6px; }

  /* Shrink state */
  .side-nav.shrink {
    height: 65px;
    padding: 10px 20px;
    background: rgba(0,0,0,.95);
    backdrop-filter: blur(8px);
  }

  .side-nav nav {
    flex-direction: row;
    margin-top: 0;
    gap: 16px;
  }

  .nav-cta {
    flex-direction: row;
    gap: 10px;
    padding-top: 0;
  }

  .nav-btn {
    padding: 10px 16px;
  }

  .main {
    margin-left: 0;
    width: 100%;
    padding-top: 90px; /* prevents content from hiding under fixed nav */
  }
  .main section:not(:first-child){
    border-top:1px solid rgba(255,255,255,.05);
    padding-top:100px;
  }

  .side-nav.shrink + .main {
    padding-top: 65px;
  }

  .stack-card {
    width: 90%;
    padding: 20px;
  }

  /* ensure last card has space at bottom on mobile so it does not overflow into next section */
  .stack-card:last-child {
    margin-bottom: 220px;
  }

  .btn-text {
    display: none;
  }

  .btn-icon svg {
    width: 20px;
    height: 20px;
  }
  /* When nav has .expanded, allow the top bar to grow and show submenu content in-flow */
  .side-nav.expanded {
    height: auto;
    align-items: flex-start;
    padding-bottom: 12px;
    background: rgba(0,0,0,.98);
  }

  /* Render submenu blocks in-flow (not absolute) when expanded so the top bar grows to reveal them */
  .side-nav.expanded nav .nav-item {
    display: block;
  }

  .side-nav.expanded nav .nav-submenu {
    position: static;
    top: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: transparent;
    padding-left: 8px;
    margin-top: 6px;
    border-radius: 0;
    box-shadow: none;
    max-height: 45vh; /* prevent nav from growing too tall */
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Make sure submenu links are visible on dark background */
  .side-nav.expanded nav .nav-submenu .nav-link,
  .side-nav.expanded nav .nav-submenu .sub-link {
    color: #ffffff;
    opacity: 0.95;
  }

  /* give the expanded nav a small min-height so it's obvious when opened */
  .side-nav.expanded {
    min-height: 120px;
  }

  /* When expanded, move CTA into the normal flow below nav items */
  /* Keep CTA icons absolutely positioned below the top bar so they don't get pushed into the nav row */
  .side-nav .nav-cta {
    position: absolute;
    top: 120px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 10px 12px;
    z-index: 5500;
    background: transparent;
  }

  /* If expanded class appears elsewhere, ensure CTA does not become relative */
  .side-nav.expanded .nav-cta {
    position: absolute !important;
    top: 90px !important;
  }
}


/* =========================================
   FINAL CTA SECTION
========================================= */

.final-cta{
position:relative;
padding:160px 20px;
background:#000;
text-align:center;
overflow:hidden;
}

/* background texture */

.cta-bg{
position:absolute;
inset:0;
background:
radial-gradient(circle at center, rgba(192,0,0,.35), transparent 60%),
url('../images/ad_group_getstarted.webp') center/cover no-repeat;
opacity:.25;
filter:blur(4px);
transform:scale(1.1);
}

/* content */

.cta-inner{
position:relative;
z-index:2;
max-width:800px;
margin:auto;
}

.cta-title{
font-size:clamp(40px,5vw,64px);
margin-bottom:20px;
font-weight:700;
}

.cta-sub{
font-size:18px;
opacity:.8;
line-height:1.6;
margin-bottom:40px;
}

/* buttons */

.cta-buttons{
display:flex;
gap:20px;
justify-content:center;
flex-wrap:wrap;
}

/* subtle glow */

.final-cta::after{
content:"";
position:absolute;
left:50%;
bottom:-200px;
width:600px;
height:600px;
background:radial-gradient(circle, rgba(192,0,0,.25), transparent 70%);
transform:translateX(-50%);
pointer-events:none;
}

/* Fix oversized GSAP pin spacer on mobile */
@media (max-width: 768px){

.pin-spacer{
height:auto !important;
min-height:0 !important;
}

.horizontal-section{
height:auto !important;
}

}
@media (max-width:768px){

.horizontal-wrapper{
height:auto;
}

}

/*// Split Section (used in programs page)//*/

.split-section{
display:grid;
grid-template-columns:1fr 1fr;
gap:80px;
align-items:center;
margin:120px 0;
}

.split-image img{
width:100%;
border-radius:10px;
box-shadow:0 20px 50px rgba(0,0,0,.5);
}

.split-content h2{
font-size:2.2rem;
margin-bottom:20px;
}

.split-content p{
font-size:1.05rem;
line-height:1.7;
opacity:.9;
padding-right: 20%;
padding-left: 10px;
}

@media(max-width:900px){

.split-section{
grid-template-columns:1fr;
gap:40px;
padding: 10px;;
}

}

.benefit-grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:30px;
margin-top:40px;
}

.benefit-card{
background:rgba(255,255,255,.03);
padding:30px;
border-radius:10px;
border:1px solid rgba(255,255,255,.05);
transition:.3s;
}

.benefit-card:hover{
transform:translateY(-6px);
border-color:rgba(202,165,75,.4);
}

.benefit-card h3{
margin-bottom:10px;
color:#caa54b;
}

/* =========================================
   image graphics SECTION
========================================= */

.image-reveal{
overflow:hidden;
border-radius:10px;
}

.image-reveal img{
width:100%;
transform:scale(1.15);
opacity:0;
}

/* =========================================
   quotes  SECTION
========================================= */

.philosophy-section{
height:70vh;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
padding:80px 40px;
}

.philosophy-inner{
max-width:800px;
}

.philosophy-section blockquote{
font-size:2rem;
line-height:1.5;
font-style:italic;
opacity:.9;
}

.philosophy-section cite{
display:block;
margin-top:20px;
opacity:.6;
letter-spacing:.1em;
}

/* =========================================
   training path  SECTION
========================================= */
.training-path{
max-width:900px;
margin:160px auto;
text-align:center;
}

.section-title{
font-size:2.4rem;
margin-bottom:20px;
}

.section-intro{
max-width:600px;
margin:0 auto 80px;
opacity:.85;
line-height:1.7;
}

.path-container{
position:relative;
}

.path-line{
position:absolute;
left:50%;
top:0;
width:2px;
height:100%;
background:rgba(255,255,255,.15);
transform:translateX(-50%);
}

.path-step{
display:flex;
align-items:center;
position:relative;
margin:100px 0;
opacity:0;
transform:translateY(40px);
}
/* alternating layout */

.path-step:nth-child(even){
justify-content:flex-start;
}

.path-step:nth-child(odd){
justify-content:flex-end;
}


/* card */

.step-content{
background:rgba(255,255,255,.03);
padding:30px;
border-radius:10px;
width:320px;
border:1px solid rgba(255,255,255,.05);
position:relative;
z-index:1;
}


.step-content h3{
margin-bottom:10px;
color:#caa54b;
}

.step-dot{
width:16px;
height:16px;
background:#caa54b;
border-radius:50%;
position:absolute;
left:50%;
transform:translateX(-50%);
z-index:3;
box-shadow:0 0 0 0 rgba(202,165,75,.6);
animation:dotPulse 3s infinite;
}

@keyframes dotPulse{

0%{
box-shadow:0 0 0 0 rgba(202,165,75,.6);
}

70%{
box-shadow:0 0 0 14px rgba(202,165,75,0);
}

100%{
box-shadow:0 0 0 0 rgba(202,165,75,0);
}

}

/* =========================================
   dojo cinematic  SECTION
========================================= */

.dojo-cinematic{
position:relative;
height:120vh;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
overflow:hidden;
margin:160px 0;

}

/* parallax container */

.dojo-parallax{
position:absolute;
top:-10%;
left:0;
width:100%;
height:120%;
overflow:hidden;
z-index:0;
}

/* background image */

.dojo-bg{
position:absolute;
width:100%;
height:100%;
background-image:url("../images/background_weapons_tatami.webp");
background-size:cover;
background-position:center;
transform:scale(1.2);
}
.meditation-bg{
position:absolute;
width:100%;
height:100%;
background-image:url("../images/card_3_meditation.webp");
background-size:cover;
background-position:center;
transform:scale(1.2);
}
/* dark overlay */

.dojo-cinematic::after{
content:"";
position:absolute;
inset:0;
background:linear-gradient(
to bottom,
rgba(0,0,0,.35),
rgba(0,0,0,.85)
);
z-index:1;
}

/* text */

.dojo-overlay{
position:relative;
z-index:2;
max-width:700px;
padding:40px;
color:white;
}

@media (max-width:768px){
  .dojo-overlay{
    padding:10px;
    box-sizing: border-box;
    height:auto;
  }
}

.dojo-overlay h2{
font-size:2.8rem;
margin-bottom:20px;
text-shadow:0 4px 20px rgba(0,0,0,.6);
}

.dojo-overlay p{
font-size:1.2rem;
line-height:1.7;
opacity:.9;
}

.testimonial-stars svg{
width:18px;
height:18px;
fill:#f5b301;
opacity:0;
transform:translateY(6px);
}

/* COMPARISON BARS */

.comparison-bars {
  max-width: 800px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.bar {
  width: 100%;
  height: 20px;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  overflow: hidden;
}

.fill {
  height: 100%;
  width: 0;
  border-radius: 10px;
  text-indent: 10px;
}

/* COLORS */
.fill.combative { background: #ff4d4d; }
.fill.competitive { background: #ffaa00; }
.fill.aikido { background: var(--red); }

/* mobile spacing between stack section and horizontal section to avoid overlap */
@media (max-width: 768px) {
  .stack-section + .horizontal-section {
    padding-top: 0px;
  }
  .hide-on-mobile {
    display: none;
  }
}
@media(max-width:768px){

/*.path-line{
left:20px;
}*/

.path-step{
justify-content:flex-start;
padding-left:60px;
}

.step-dot{
/*left:20px;*/
transform:translateY(100px);
}

}
.video-wrapper.cinematic {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

/* Poster image */
.video-poster {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}

/* Cinematic hover effect */
.video-wrapper.cinematic:hover img {
  transform: scale(1.05);
  filter: brightness(0.85);
}

/* Play button */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Play triangle */
.play-button::before {
  content: '';
  position: absolute;
  left: 33px;
  top: 26px;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #000;
}

/* Button hover animation */
.video-wrapper.cinematic:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
  background: #fff;
}

/* Fade-in iframe */
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* Active state */
.video-wrapper.active iframe {
  opacity: 1;
}

.video-wrapper.active .video-poster {
  display: none;
}

/* Initial state for smooth entry */
.split-content li,
.benefit-card li,
.faq-answer li,
.col-item li {
  opacity: 0;
  transform: translateX(-30px);
  filter: blur(6px);
  will-change: transform, opacity, filter;
  font-size: medium;
  margin: 10px;
  padding: 2px;
}

.local-seo {
  padding: 80px 20px;
  text-align: center;
  background: #000;
  border-top: 1px solid rgba(255,255,255,.05);
}

.local-seo h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.local-seo p {
  max-width: 700px;
  margin: 0 auto 20px;
  opacity: .8;
  line-height: 1.6;
}

.local-links a {
  color: var(--red);
  text-decoration: none;
  margin: 0 10px;
}

.local-links a:hover {
  text-decoration: underline;
}
/* =========================================
   MAP SECTION (CONTACT PAGE)
========================================= */

.map-section {
  padding: 120px 8vw;
  background: #000;
  text-align: center;
}

.map-header h2 {
  font-size: clamp(32px,4vw,42px);
  margin-bottom: 10px;
}

.map-header p {
  opacity: .7;
  margin-bottom: 50px;
}

/* MAP WRAPPER */

.map-wrapper {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}

/* iframe */

.map-wrapper iframe {
  width: 100%;
  height: 450px;
  border: 0;
  filter: grayscale(100%) contrast(1.2) brightness(0.8);
}

/* overlay */

.map-overlay {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(10px);
  padding: 20px 25px;
  border-radius: 12px;
  text-align: left;
}

.map-overlay h3 {
  margin-bottom: 5px;
}

.map-overlay p {
  font-size: 14px;
  opacity: .7;
  margin-bottom: 10px;
}

/* wrapper */
.map-wrapper {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: 18px;
  overflow: hidden;
}

/* map */
.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* marker */
.map-marker {
  position: absolute;
  top: 50%;   /* adjust this */
  left: 50%;  /* adjust this */
  width: 14px;
  height: 14px;
  background: var(--red);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

/* pulse ring */
.map-marker::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(192,0,0,0.5);
  animation: mapPulse 2s infinite;
}

@keyframes mapPulse {
  0% {
    transform: scale(1);
    opacity: .8;
  }
  70% {
    transform: scale(3);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
/* subtle glow */

.map-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(192,0,0,.15), transparent 70%);
  pointer-events: none;
}
