/* --- CUSTOM THEMATIC CSS VARIABLES --- */
:root {
  --ritmo-bg-primary: #fcfdfe;
  --ritmo-bg-soft: #f3f7f9;
  --ritmo-surface-light: #ffffff;
  --ritmo-text-dark: #121e31;
  --ritmo-text-muted: #5e6d82;
  --ritmo-accent-teal: #0d9488;
  --ritmo-accent-teal-hover: #0f766e;
  --ritmo-accent-coral: #e11d48;
  --ritmo-gradient-primary: linear-gradient(135deg, #0d9488 0%, #0c4a6e 100%);
  --ritmo-gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --ritmo-soft-radius: 16px;
  --ritmo-raised-shadow: 0 10px 30px -5px rgba(18, 30, 49, 0.08), 0 4px 12px -2px rgba(18, 30, 49, 0.03);
  --ritmo-deep-shadow: 0 20px 40px -10px rgba(18, 30, 49, 0.15);
}

/* --- BASE GLOBAL STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--ritmo-bg-primary);
  color: var(--ritmo-text-dark);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- SCROLL PROGRESS BAR --- */
.ritmo-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background-color: var(--ritmo-accent-teal);
  z-index: 10000;
  animation: ritmo-progress-grow linear;
  animation-timeline: scroll();
}

@keyframes ritmo-progress-grow {
  to { width: 100%; }
}

/* --- HEADER / NAVIGATION SYSTEM --- */
.ritmo-navigation-shell {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--ritmo-surface-light);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  z-index: 999;
}

.ritmo-navigation-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
}

.ritmo-brand-identity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--ritmo-text-dark);
}

.ritmo-logo-icon {
  width: 28px;
  height: 28px;
  color: var(--ritmo-accent-coral);
}

.ritmo-navigation-bar {
  display: flex;
  gap: 2rem;
}

.ritmo-navigation-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ritmo-text-muted);
  transition: color 0.3s;
  position: relative;
}

.ritmo-navigation-link:hover,
.ritmo-navigation-link.ritmo-active {
  color: var(--ritmo-accent-teal);
}

.ritmo-navigation-link.ritmo-active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--ritmo-accent-teal);
}

/* MOBILE HAMBURGER (CSS ONLY) */
.ritmo-toggle-input {
  display: none;
}

.ritmo-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.ritmo-toggle-label span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--ritmo-text-dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* --- CONTAINERS --- */
.ritmo-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.ritmo-shell-compact {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.ritmo-segment {
  padding: 10dvh 0;
  overflow: hidden;
}

/* --- HERO SECTION --- */
.ritmo-intro-viewport {
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

.ritmo-intro-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.ritmo-intro-content {
  max-width: 650px;
  color: #ffffff;
}

.ritmo-heading-main {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ritmo-heading-lead {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: #e2e8f0;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* --- ACTIONS PLILLS --- */
.ritmo-action-pill {
  display: inline-block;
  background-color: var(--ritmo-accent-teal);
  color: #ffffff;
  padding: 1rem 2.2rem;
  border-radius: var(--ritmo-soft-radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.ritmo-action-pill:hover {
  background-color: var(--ritmo-accent-teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.4);
}

.ritmo-pill-light {
  background-color: #ffffff;
  color: var(--ritmo-text-dark);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.ritmo-pill-light:hover {
  background-color: var(--ritmo-bg-soft);
  color: var(--ritmo-text-dark);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.ritmo-pill-full {
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
}

/* --- SECTION HEADINGS --- */
.ritmo-section-heading {
  font-size: 2.2rem;
  margin-bottom: 3.5rem;
  text-align: left;
  position: relative;
  color: var(--ritmo-text-dark);
}

.ritmo-section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--ritmo-accent-coral);
  margin-top: 0.8rem;
}

.align-center {
  text-align: center;
}

.align-center::after {
  margin: 0.8rem auto 0 auto;
}

/* --- BENTO GRID SYSTEM (PRESET I) --- */
.ritmo-bento-layout {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.ritmo-bento-tile {
  background-color: var(--ritmo-surface-light);
  border-radius: var(--ritmo-soft-radius);
  padding: 2.5rem;
  box-shadow: var(--ritmo-raised-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ritmo-bento-tile:hover {
  transform: scale(1.02);
  box-shadow: var(--ritmo-deep-shadow);
}

/* Bento Column Spanning */
.ritmo-span-4 { grid-column: span 4; }
.ritmo-span-3 { grid-column: span 3; }
.ritmo-span-2 { grid-column: span 2; }
.ritmo-span-6 { grid-column: span 6; }

/* Thematic Variation Tiles */
.ritmo-tile-accent {
  background: var(--ritmo-gradient-primary);
  color: #ffffff;
}

.ritmo-tile-accent .ritmo-tile-heading {
  color: #ffffff;
}

.ritmo-tile-accent .ritmo-tile-icon {
  color: rgba(255, 255, 255, 0.8);
}

.ritmo-tile-icon {
  width: 48px;
  height: 48px;
  color: var(--ritmo-accent-teal);
  margin-bottom: 1.5rem;
}

.ritmo-tile-heading {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--ritmo-text-dark);
}

/* Stat Tile styling */
.ritmo-tile-stat {
  align-items: center;
  text-align: center;
}

.ritmo-stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--ritmo-accent-coral);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.ritmo-stat-label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--ritmo-text-muted);
  margin-bottom: 1rem;
}

/* Horizontal tile layout */
.ritmo-tile-horizontal {
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

.ritmo-tile-inline-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background-color: var(--ritmo-bg-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ritmo-accent-teal);
}

.ritmo-tile-inline-icon svg {
  width: 32px;
  height: 32px;
}

/* --- SCROLL REVEAL ANIMATION (CSS ONLY) --- */
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: slide-up 0.8s linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 35%;
}

/* --- HOW IT WORKS / STEPS --- */
.ritmo-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.ritmo-step-card {
  background-color: var(--ritmo-surface-light);
  padding: 3rem 2rem;
  border-radius: var(--ritmo-soft-radius);
  box-shadow: var(--ritmo-raised-shadow);
  position: relative;
  overflow: hidden;
}

.ritmo-step-number-bg {
  position: absolute;
  top: -15px;
  right: -5px;
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 900;
  color: var(--ritmo-text-dark);
  opacity: 0.05;
  line-height: 1;
}

.ritmo-step-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--ritmo-text-dark);
  position: relative;
  z-index: 2;
}

/* --- CTA STRIP --- */
.ritmo-cta-strip {
  text-align: center;
  color: #ffffff;
  padding: 3rem;
  border-radius: var(--ritmo-soft-radius);
}

.ritmo-cta-heading {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.ritmo-cta-text {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* --- CONTENT OVERLAY SECTION --- */
.ritmo-content-cover {
  background-size: cover;
  background-position: center;
  padding: 12dvh 0;
  color: #ffffff;
}

.ritmo-cover-text-wrap {
  max-width: 650px;
}

.ritmo-cover-text-wrap p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

/* --- TWO COLUMN DUO --- */
.ritmo-column-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: center;
}

.ritmo-visual-rounded {
  border-radius: var(--ritmo-soft-radius);
  box-shadow: var(--ritmo-raised-shadow);
  width: 100%;
}

.ritmo-column-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ritmo-feature-tick {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
}

.ritmo-tick-icon {
  width: 24px;
  height: 24px;
  color: var(--ritmo-accent-teal);
  flex-shrink: 0;
}

/* --- MINI BENTO FOR STATS --- */
.bg-dark-acc {
  background: var(--ritmo-gradient-dark);
}

.text-white {
  color: #ffffff;
}

.ritmo-stat-big {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--ritmo-accent-teal);
}

.ritmo-tile-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* --- BOOKING FORM & ITEMS --- */
.ritmo-item-card {
  background-color: var(--ritmo-surface-light);
  border-radius: var(--ritmo-soft-radius);
  padding: 1.5rem;
  box-shadow: var(--ritmo-raised-shadow);
}

.ritmo-item-headline {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.ritmo-circle-marker {
  width: 40px;
  height: 40px;
  background-color: var(--ritmo-accent-teal);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  flex-shrink: 0;
}

.ritmo-item-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.ritmo-support-box {
  background-color: var(--ritmo-bg-soft);
  padding: 1.5rem;
  border-left: 4px solid var(--ritmo-accent-teal);
  border-radius: 0 var(--ritmo-soft-radius) var(--ritmo-soft-radius) 0;
}

.ritmo-hyperlink {
  color: var(--ritmo-accent-teal);
  font-weight: 700;
  text-decoration: underline;
}

.ritmo-booking-inner-box {
  background-color: var(--ritmo-surface-light);
  padding: 3rem;
  border-radius: var(--ritmo-soft-radius);
  box-shadow: var(--ritmo-deep-shadow);
}

.ritmo-form-title {
  margin-bottom: 2rem;
  font-size: 1.5rem;
  text-align: center;
}

.ritmo-form-group {
  margin-bottom: 1.5rem;
}

.ritmo-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--ritmo-text-muted);
}

.ritmo-form-input,
.ritmo-form-textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  background-color: var(--ritmo-bg-soft);
  border-radius: var(--ritmo-soft-radius);
  font-family: var(--font-body);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.ritmo-form-input:focus,
.ritmo-form-textarea:focus {
  outline: none;
  border-color: var(--ritmo-accent-teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.ritmo-form-checkbox-group {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.ritmo-form-checkbox {
  margin-top: 0.3rem;
  cursor: pointer;
}

.ritmo-checkbox-label {
  font-size: 0.85rem;
  color: var(--ritmo-text-muted);
}

.ritmo-checkbox-label a {
  color: var(--ritmo-accent-teal);
  text-decoration: underline;
}

/* --- FAQ ACCORDION --- */
.ritmo-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ritmo-faq-item {
  background-color: var(--ritmo-surface-light);
  border-radius: var(--ritmo-soft-radius);
  box-shadow: var(--ritmo-raised-shadow);
  padding: 1.5rem 2rem;
}

.ritmo-faq-question {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

.ritmo-faq-question::-webkit-details-marker {
  display: none;
}

.ritmo-faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--ritmo-accent-teal);
}

details[open] .ritmo-faq-question::after {
  content: '-';
}

.ritmo-faq-answer {
  margin-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 1.5rem;
  color: var(--ritmo-text-muted);
}

/* --- THANK CARD --- */
.ritmo-thank-card {
  padding: 4rem 2rem;
  background-color: rgba(18, 30, 49, 0.85);
  border-radius: var(--ritmo-soft-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.ritmo-thank-icon {
  width: 80px;
  height: 80px;
  color: var(--ritmo-accent-teal);
  margin: 0 auto 2rem auto;
}

/* --- FOOTER BASE --- */
.ritmo-footer-base {
  background-color: #0d1624;
  color: #94a3b8;
  padding: 6rem 0 3rem 0;
  border-top: 1px solid #1e293b;
}

.ritmo-footer-layouts {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.ritmo-footer-brand .ritmo-brand-identity {
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.ritmo-disclaimer-text {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 600px;
}

.ritmo-footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}

.ritmo-footer-links a {
  font-size: 0.9rem;
  transition: color 0.3s;
}

.ritmo-footer-links a:hover {
  color: #ffffff;
}

.ritmo-footer-copyright {
  text-align: center;
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  font-size: 0.85rem;
}

/* --- COOKIE BANNER --- */
.ritmo-cookie-wrap {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background-color: var(--ritmo-surface-light);
  box-shadow: var(--ritmo-deep-shadow);
  border-radius: var(--ritmo-soft-radius);
  padding: 1.5rem 2.5rem;
  z-index: 9999;
  display: none;
  animation: slide-up 0.4s ease-out;
}

.ritmo-cookie-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.ritmo-cookie-body p {
  font-size: 0.9rem;
  color: var(--ritmo-text-dark);
}

.ritmo-cookie-buttons {
  display: flex;
  gap: 1rem;
}

.ritmo-cookie-btn {
  padding: 0.8rem 1.6rem;
  border-radius: var(--ritmo-soft-radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
}

.ritmo-cookie-accept {
  background-color: var(--ritmo-accent-teal);
  color: #ffffff;
}

.ritmo-cookie-decline {
  background-color: var(--ritmo-bg-soft);
  color: var(--ritmo-text-muted);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .ritmo-column-duo {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  /* Dynamic Hamburger menu activation */
  .ritmo-toggle-label {
    display: flex;
  }

  .ritmo-navigation-bar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--ritmo-surface-light);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    display: none;
  }

  .ritmo-toggle-input:checked ~ .ritmo-navigation-bar {
    display: flex;
  }

  .ritmo-toggle-input:checked ~ .ritmo-toggle-label span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .ritmo-toggle-input:checked ~ .ritmo-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .ritmo-toggle-input:checked ~ .ritmo-toggle-label span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Bento grid stacking for mobile view */
  .ritmo-bento-layout {
    grid-template-columns: 1fr;
  }

  .ritmo-span-4, .ritmo-span-3, .ritmo-span-2, .ritmo-span-6 {
    grid-column: span 1;
  }

  .ritmo-tile-horizontal {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Hero adaptation */
  .ritmo-heading-main {
    font-size: 2.2rem;
  }

  .ritmo-heading-lead {
    font-size: 1.1rem;
  }

  /* Steps and footer adaptation */
  .ritmo-steps-grid {
    grid-template-columns: 1fr;
  }

  .ritmo-footer-layouts {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ritmo-footer-links {
    align-items: flex-start;
  }

  .ritmo-cookie-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}