@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* HSL Color Palette - Orange & Black Theme */
  --bg-primary-hsl: 240, 10%, 4%;
  --bg-secondary-hsl: 240, 6%, 10%;
  --bg-tertiary-hsl: 240, 5%, 15%;
  
  --primary-hsl: 25, 95%, 55%; /* Safety Orange */
  --primary-glow-hsl: 25, 95%, 45%;
  
  --text-white: #ffffff;
  --text-grey-hsl: 240, 5%, 70%;
  --text-muted-hsl: 240, 4%, 50%;
  
  /* Conversions */
  --bg-primary: hsl(var(--bg-primary-hsl));
  --bg-secondary: hsl(var(--bg-secondary-hsl));
  --bg-tertiary: hsl(var(--bg-tertiary-hsl));
  --primary: hsl(var(--primary-hsl));
  --text-grey: hsl(var(--text-grey-hsl));
  --text-muted: hsl(var(--text-muted-hsl));
  
  --font-header: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius: 12px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

p {
  color: var(--text-grey);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 120px 0;
  }
}

/* Floating Island Navbar */
header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.nav-island {
  pointer-events: auto;
  background: rgba(var(--bg-secondary-hsl), 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 12px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

header.scrolled .nav-island {
  background: rgba(0, 0, 0, 0.85);
  border-color: rgba(var(--primary-hsl), 0.35);
  box-shadow: 0 8px 32px rgba(var(--primary-hsl), 0.1);
  padding: 8px 24px;
}

.nav-links {
  display: none;
  gap: 28px;
  align-items: center;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  opacity: 0.7;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--primary);
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

/* Menu Toggle Button */
.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}

@media (min-width: 1024px) {
  .menu-btn {
    display: none;
  }
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-white);
  transition: var(--transition-smooth);
}

.menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background-color: var(--primary);
}
.menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background-color: var(--primary);
}

/* Mobile Nav Drawer Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background: rgba(var(--bg-secondary-hsl), 0.95);
  backdrop-filter: blur(20px);
  z-index: 99;
  padding: 120px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav a {
  font-family: var(--font-header);
  font-size: 1.35rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-header);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  border-radius: 30px; /* Fully rounded buttons */
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
  box-shadow: 0 4px 20px rgba(var(--primary-hsl), 0.2);
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(var(--primary-hsl), 0.45);
  background: var(--text-white);
  color: #000;
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.03);
}

/* Split Hero Layout */
.hero-split {
  position: relative;
  min-height: 100vh;
  padding-top: 140px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-text-side {
  z-index: 3;
}

.hero-split-title {
  font-size: 2.75rem;
  margin-bottom: 24px;
  line-height: 1.1;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

@media (min-width: 768px) {
  .hero-split-title {
    font-size: 4rem;
  }
}

.hero-split-title span {
  color: var(--primary);
}

.hero-img-side {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 5;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(var(--primary-hsl), 0.3);
  box-shadow: 0 20px 50px rgba(var(--primary-hsl), 0.15);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

/* Bento Box Grid */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-wide {
    grid-column: span 2;
  }
}

.bento-box {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.bento-box:hover {
  border-color: rgba(var(--primary-hsl), 0.4);
  box-shadow: 0 12px 36px rgba(var(--primary-hsl), 0.1);
  transform: translateY(-4px);
}

.bento-header h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.bento-header h3 span {
  color: var(--primary);
}

.bento-badge {
  display: inline-block;
  font-family: var(--font-header);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(var(--primary-hsl), 0.1);
  border: 1px solid rgba(var(--primary-hsl), 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

/* Grayscale to Color Coaches Grid */
.roster-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
}

@media (min-width: 640px) {
  .roster-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .roster-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.roster-card {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition-smooth);
}

.roster-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(var(--primary-hsl), 0.15);
  transform: translateY(-4px);
}

.roster-img-frame {
  height: 320px;
  overflow: hidden;
  background-color: #111;
  position: relative;
}

.roster-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: var(--transition-smooth);
}

.roster-card:hover .roster-img-frame img {
  transform: scale(1.03);
}

.roster-info {
  padding: 24px;
  text-align: center;
}

.roster-name {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.roster-role {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.roster-belt {
  font-size: 0.85rem;
  color: var(--text-grey);
}

/* Membership Columns Layout */
.pricing-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 768px) {
  .pricing-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pricing-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px;
  position: relative;
  transition: var(--transition-smooth);
}

.price-card:hover {
  transform: scale(1.02);
  border-color: rgba(var(--primary-hsl), 0.35);
}

.price-card.featured {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(var(--bg-tertiary-hsl), 0.4) 100%);
  border: 2px solid var(--primary);
  box-shadow: 0 10px 40px rgba(var(--primary-hsl), 0.15);
}

.price-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-header);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--primary);
  color: var(--text-white);
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-value {
  font-size: 3rem;
  font-family: var(--font-header);
  font-weight: 800;
  color: var(--primary);
  margin: 16px 0;
  line-height: 1;
}

.price-value span {
  font-size: 1rem;
  color: var(--text-grey);
  font-family: var(--font-body);
}

.price-features {
  list-style: none;
  margin: 24px 0 32px;
}

.price-features li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-grey);
}

/* Tabs System */
.tabs-container {
  width: 100%;
}

.tabs-list {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.tab-trigger {
  background: none;
  border: none;
  color: var(--text-grey);
  font-family: var(--font-header);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1rem;
  padding: 8px 16px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.tab-trigger::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.tab-trigger.active {
  color: var(--text-white);
}

.tab-trigger.active::after {
  transform: scaleX(1);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer Section */
footer {
  background: #060607;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col h4 {
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  opacity: 0.7;
}

.footer-col ul li a:hover {
  opacity: 1;
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  margin-top: 48px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  z-index: 98;
  transition: var(--transition-smooth);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  fill: #fff;
  width: 32px;
  height: 32px;
}

/* Split Hero Image Side custom adjustment */
.premium-card {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 32px;
  transition: var(--transition-smooth);
}

.premium-card:hover {
  border-color: rgba(var(--primary-hsl), 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Same 1 -> 2 -> 3 step every other grid in this file uses (.bento-grid,
   .pricing-columns) — this one used to jump straight to 3 columns at 768px,
   squeezing tablet-portrait cards down to ~248px. */
@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 120px 24px 60px;
}

.hero-image-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(var(--bg-primary-hsl), 0.95) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.hero-title {
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

/* Calendar Weekly Timetable Grid */
.calendar-weekly-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  overflow-x: auto;
  min-width: 950px;
  padding-bottom: 12px;
}

/* Stack the week as a vertical day list instead of forcing a 950px-wide
   sideways scroll — 900px (not 768px) matches the breakpoint the rest of the
   app's calendar views use, so tablet portrait (e.g. 800-834px) gets the
   readable stacked list instead of a horizontally-scrolling grid with no
   visual indication there's more to swipe to. */
@media (max-width: 900px) {
  .calendar-weekly-grid {
    grid-template-columns: 1fr;
    min-width: 0;
    overflow-x: visible;
  }
  .calendar-day-col {
    min-height: 0;
  }
}

.calendar-day-col {
  background: hsla(240, 6%, 10%, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 500px;
  transition: var(--transition-smooth);
}

.calendar-day-col.today {
  border-color: var(--primary);
  background: rgba(var(--primary-hsl), 0.02);
}

.calendar-day-header {
  text-align: center;
  font-family: var(--font-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
  margin-bottom: 6px;
}

.calendar-day-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.calendar-day-date {
  font-size: 0.8rem;
  color: var(--text-grey);
  margin-top: 2px;
}

.calendar-class-card {
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 12px;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition-smooth);
}

.calendar-class-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--primary-hsl), 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.calendar-class-title {
  font-family: var(--font-header);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 0;
  line-height: 1.3;
}

.calendar-class-meta {
  color: var(--text-grey);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 767px) {
  body {
    overflow-x: hidden !important;
    width: 100% !important;
  }
}

/* Keyboard users get a visible focus ring everywhere; :focus-visible keeps
   it off mouse/touch interactions so the pointer experience is unchanged. */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

