/* Custom CSS Variables based on Rīts (Morning) theme */
:root {
  --rits-abyss: #0b0f19;
  --rits-surface: #162235;
  --rits-surface-light: #20304a;
  --rits-gold: #f59e0b;
  --rits-gold-hover: #d97706;
  --rits-dawn: #f8fafc;
  --rits-mist: #94a3b8;
  --rits-glow: rgba(245, 158, 11, 0.35);
  --rits-dark-overlay: rgba(11, 15, 25, 0.75);
  
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --rits-radius: 16px;
  --rits-scale: 10dvh;
  --rits-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--rits-abyss);
  color: var(--rits-dawn);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* Scroll Progress Bar */
.rits-scroll-tracker {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--rits-gold);
  width: 0%;
  z-index: 10001;
  animation: rits-progress-bar linear;
  animation-timeline: scroll();
}

@keyframes rits-progress-bar {
  to { width: 100%; }
}

/* Scroll-driven Reveal Animation */
.rits-view-reveal {
  animation: rits-slide-reveal 0.8s ease-out both;
  animation-timeline: view();
  animation-range: entry 10% cover 30%;
}

@keyframes rits-slide-reveal {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sticky Header */
.rits-masthead {
  position: sticky;
  top: 0;
  z-index: 10000;
  background-color: var(--rits-surface);
  border-bottom: 2px solid var(--rits-surface-light);
  padding: 1.2rem 2rem;
}

.rits-masthead-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rits-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--rits-dawn);
}

.rits-brand-link svg {
  fill: var(--rits-gold);
  width: 32px;
  height: 32px;
}

/* Navigation Links */
.rits-nav-menu-deck {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.rits-nav-anchor {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--rits-mist);
  position: relative;
  padding: 0.5rem 0;
}

.rits-nav-anchor:hover, .rits-nav-anchor.rits-active-link {
  color: var(--rits-gold);
}

.rits-nav-anchor::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--rits-gold);
  transition: width 0.3s;
}

.rits-nav-anchor:hover::after, .rits-nav-anchor.rits-active-link::after {
  width: 100%;
}

/* Mobile Hamburger Style (CSS-only) */
.rits-hamburger-input {
  display: none;
}

.rits-hamburger-button {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 10002;
}

.rits-hamburger-bar {
  width: 25px;
  height: 3px;
  background-color: var(--rits-dawn);
  transition: all 0.3s ease;
}

/* Hero Section (Index) */
.rits-hero-viewport {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4rem 2rem 8rem;
}

.rits-hero-viewport::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--rits-dark-overlay);
  z-index: 1;
}

.rits-hero-payload {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
}

.rits-main-heading {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  color: var(--rits-dawn);
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.rits-lead-text {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--rits-mist);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Pill Button */
.rits-cta-capsule {
  display: inline-block;
  background-color: var(--rits-gold);
  color: var(--rits-abyss);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  padding: 1.1rem 2.5em;
  border-radius: 999px;
  box-shadow: 0 4px 15px var(--rits-glow);
  transition: all 0.3s ease;
  cursor: pointer;
}

.rits-cta-capsule:hover {
  background-color: var(--rits-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--rits-glow);
}

/* Floating Stat Bar (Index Hero) */
.rits-stat-raft {
  position: relative;
  margin-top: -60px;
  z-index: 10;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.rits-stat-raft-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.rits-stat-capsule {
  background-color: var(--rits-surface);
  border: 1px solid var(--rits-surface-light);
  border-radius: var(--rits-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--rits-shadow);
}

.rits-stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--rits-gold);
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}

.rits-stat-tag {
  font-size: 0.95rem;
  color: var(--rits-mist);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Zigzag Content Panels */
.rits-zigzag-outer {
  padding: var(--rits-scale) 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.rits-zigzag-panel {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
}

.rits-zigzag-panel:last-child {
  margin-bottom: 0;
}

.rits-zigzag-panel:nth-child(even) {
  flex-direction: row-reverse;
}

.rits-panel-media {
  flex: 1;
  overflow: hidden;
  border-radius: var(--rits-radius);
}

.rits-panel-media img {
  width: 100%;
  object-fit: cover;
  height: 400px;
  transition: transform 0.5s ease;
}

.rits-skew-right img {
  clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
}

.rits-skew-left img {
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}

.rits-zigzag-panel:hover .rits-panel-media img {
  transform: scale(1.05);
}

.rits-panel-info {
  flex: 1;
}

.rits-panel-label {
  color: var(--rits-gold);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
  letter-spacing: 0.1em;
}

.rits-panel-title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.rits-panel-desc {
  color: var(--rits-mist);
  margin-bottom: 1.5rem;
}

/* Features Block */
.rits-features-zone {
  background-color: var(--rits-surface);
  padding: var(--rits-scale) 2rem;
  border-top: 2px solid var(--rits-surface-light);
  border-bottom: 2px solid var(--rits-surface-light);
}

.rits-zone-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.rits-zone-title {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.rits-zone-lead {
  color: var(--rits-mist);
}

.rits-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.rits-feature-card {
  background-color: var(--rits-abyss);
  border-left: 4px solid var(--rits-gold);
  border-radius: var(--rits-radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--rits-shadow);
  transition: all 0.3s ease;
}

.rits-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.rits-feature-icon-box {
  margin-bottom: 1.5rem;
}

.rits-feature-icon-box svg {
  width: 44px;
  height: 44px;
  fill: var(--rits-gold);
}

.rits-feature-card-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.rits-feature-card-desc {
  color: var(--rits-mist);
  font-size: 0.95rem;
}

/* How It Works - Vertical Timeline */
.rits-timeline-zone {
  padding: var(--rits-scale) 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.rits-timeline-axis {
  position: relative;
  margin: 4rem 0;
}

.rits-timeline-axis::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--rits-surface-light);
  transform: translateX(-50%);
}

.rits-timeline-node {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  justify-content: flex-end;
  width: 50%;
  padding-right: 3rem;
}

.rits-timeline-node:nth-child(even) {
  align-self: flex-end;
  justify-content: flex-start;
  left: 50%;
  padding-right: 0;
  padding-left: 3rem;
}

.rits-timeline-marker {
  position: absolute;
  top: 15px;
  right: -15px;
  width: 30px;
  height: 30px;
  background-color: var(--rits-gold);
  border: 4px solid var(--rits-surface);
  border-radius: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--rits-abyss);
  font-size: 0.85rem;
}

.rits-timeline-node:nth-child(even) .rits-timeline-marker {
  left: -15px;
  right: auto;
}

.rits-timeline-bubble {
  background-color: var(--rits-surface);
  border: 1px solid var(--rits-surface-light);
  border-radius: var(--rits-radius);
  padding: 2rem;
  box-shadow: var(--rits-shadow);
}

.rits-timeline-step-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--rits-gold);
}

.rits-timeline-step-content {
  color: var(--rits-mist);
  font-size: 0.95rem;
}

/* Call To Action Strip */
.rits-cta-strip {
  position: relative;
  padding: var(--rits-scale) 2rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  text-align: center;
}

.rits-cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(11, 15, 25, 0.85);
  z-index: 1;
}

.rits-cta-strip-payload {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.rits-cta-strip-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 2rem;
}

/* Expert / Biography Details */
.rits-bio-panel {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: var(--rits-scale) 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.rits-bio-media {
  flex: 1;
  border-radius: var(--rits-radius);
  overflow: hidden;
  box-shadow: var(--rits-shadow);
}

.rits-bio-media img {
  width: 100%;
  object-fit: cover;
  height: 500px;
}

.rits-bio-credentials {
  flex: 1;
}

.rits-bio-title {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.rits-bio-subtitle {
  color: var(--rits-gold);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.rits-bio-narrative p {
  color: var(--rits-mist);
  margin-bottom: 1.5rem;
}

/* Minimalist Hero for subpages */
.rits-sub-hero {
  position: relative;
  padding: 6rem 2rem 4rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}

.rits-sub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--rits-dark-overlay);
  z-index: 1;
}

.rits-sub-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

/* Booking Page Layout */
.rits-booking-shell {
  max-width: 650px;
  margin: 0 auto;
  padding: var(--rits-scale) 2rem;
}

.rits-booking-container {
  background-color: var(--rits-surface);
  border: 1px solid var(--rits-surface-light);
  border-radius: var(--rits-radius);
  padding: 3rem 2.5rem;
  box-shadow: var(--rits-shadow);
}

.rits-form-intro {
  margin-bottom: 2rem;
  text-align: center;
}

.rits-form-headline {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.rits-form-description {
  color: var(--rits-mist);
  font-size: 0.95rem;
}

.rits-group-control {
  margin-bottom: 1.5rem;
}

.rits-input-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--rits-mist);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.rits-input-field {
  width: 100%;
  background-color: var(--rits-abyss);
  border: 1px solid var(--rits-surface-light);
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  color: var(--rits-dawn);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.rits-input-field:focus {
  outline: none;
  border-color: var(--rits-gold);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.rits-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
  cursor: pointer;
}

.rits-checkbox-input {
  appearance: none;
  background-color: var(--rits-abyss);
  border: 1px solid var(--rits-surface-light);
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: grid;
  place-content: center;
  cursor: pointer;
  margin-top: 3px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.rits-checkbox-input::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 10px 10px var(--rits-gold);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.rits-checkbox-input:checked::before {
  transform: scale(1);
}

.rits-checkbox-input:checked {
  border-color: var(--rits-gold);
}

.rits-checkbox-label {
  font-size: 0.85rem;
  color: var(--rits-mist);
  line-height: 1.4;
}

.rits-checkbox-label a {
  color: var(--rits-gold);
  text-decoration: underline;
}

.rits-form-submit {
  width: 100%;
  border: none;
  margin-top: 1.5rem;
  text-align: center;
}

/* FAQ Accordion (CSS only, all open layout variant) */
.rits-faq-block {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem var(--rits-scale);
}

.rits-faq-items-shell {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rits-faq-item {
  background-color: var(--rits-surface);
  border: 1px solid var(--rits-surface-light);
  border-radius: var(--rits-radius);
  padding: 1.8rem 2rem;
}

.rits-faq-question {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--rits-dawn);
  margin-bottom: 0.75rem;
}

.rits-faq-answer {
  color: var(--rits-mist);
  font-size: 0.95rem;
}

/* Contact Info Area */
.rits-contact-dock {
  text-align: center;
  padding: 2rem;
  background-color: var(--rits-surface-light);
  border-radius: var(--rits-radius);
  margin-bottom: 3rem;
}

.rits-contact-prompt {
  font-size: 1rem;
  color: var(--rits-mist);
  margin-bottom: 0.5rem;
}

.rits-contact-address {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--rits-gold);
  font-style: normal;
}

/* Legal Documents Structure */
.rits-legal-skeleton {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--rits-scale) 2rem;
}

.rits-legal-skeleton h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--rits-surface-light);
  padding-bottom: 1rem;
  color: var(--rits-gold);
}

.rits-legal-skeleton h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.rits-legal-skeleton p {
  color: var(--rits-mist);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

/* Thank You Section */
.rits-thank-container {
  max-width: 700px;
  margin: var(--rits-scale) auto;
  text-align: center;
  background-color: var(--rits-surface);
  border: 1px solid var(--rits-surface-light);
  border-radius: var(--rits-radius);
  padding: 4rem 3rem;
  box-shadow: var(--rits-shadow);
}

.rits-thank-title {
  font-size: 3rem;
  color: var(--rits-gold);
  margin-bottom: 1.5rem;
}

.rits-thank-message {
  color: var(--rits-mist);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

.rits-thank-image-wrapper {
  margin: 2rem auto;
  max-width: 100%;
  border-radius: var(--rits-radius);
  overflow: hidden;
}

/* Cookie Consent Banner */
.rits-cookie-deck {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--rits-surface);
  border-top: 3px solid var(--rits-gold);
  padding: 1.5rem 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
  transform: translateY(100%);
  transition: transform 0.4s ease-out;
}

.rits-cookie-deck.rits-cookie-visible {
  transform: translateY(0);
}

.rits-cookie-body {
  font-size: 0.95rem;
  color: var(--rits-mist);
}

.rits-cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.rits-cookie-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rits-btn-agree {
  background-color: var(--rits-gold);
  color: var(--rits-abyss);
  border: none;
}

.rits-btn-agree:hover {
  background-color: var(--rits-gold-hover);
}

.rits-btn-refuse {
  background-color: transparent;
  color: var(--rits-mist);
  border: 1px solid var(--rits-surface-light);
}

.rits-btn-refuse:hover {
  background-color: var(--rits-surface-light);
  color: var(--rits-dawn);
}

/* Footer Section */
.rits-footer-plate {
  background-color: var(--rits-abyss);
  border-top: 2px solid var(--rits-surface-light);
  padding: 4rem 2rem 2rem;
}

.rits-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.rits-footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
}

.rits-footer-brand-segment {
  max-width: 350px;
}

.rits-footer-links-segment {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rits-footer-disclaimer {
  font-size: 0.8rem;
  color: var(--rits-mist);
  border-top: 1px solid var(--rits-surface-light);
  padding-top: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.6;
}

.rits-copyright-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--rits-mist);
}

/* Responsiveness & Layout Adjustments */
@media (max-width: 968px) {
  .rits-masthead {
    padding: 1rem 1.5rem;
  }
  
  .rits-hamburger-button {
    display: flex;
  }
  
  .rits-nav-menu-deck {
    position: fixed;
    top: 67px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--rits-surface);
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
  }
  
  .rits-hamburger-input:checked ~ .rits-nav-menu-deck {
    transform: translateX(0);
  }
  
  .rits-hamburger-input:checked ~ .rits-hamburger-button .rits-hamburger-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .rits-hamburger-input:checked ~ .rits-hamburger-button .rits-hamburger-bar:nth-child(2) {
    opacity: 0;
  }
  
  .rits-hamburger-input:checked ~ .rits-hamburger-button .rits-hamburger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .rits-zigzag-panel, .rits-zigzag-panel:nth-child(even) {
    flex-direction: column;
    gap: 2rem;
  }
  
  .rits-skew-right img, .rits-skew-left img {
    clip-path: none;
  }
  
  .rits-timeline-axis::before {
    left: 40px;
  }
  
  .rits-timeline-node, .rits-timeline-node:nth-child(even) {
    width: 100%;
    align-self: flex-start;
    left: 0;
    padding-left: 5rem;
    padding-right: 0;
  }
  
  .rits-timeline-marker, .rits-timeline-node:nth-child(even) .rits-timeline-marker {
    left: 25px;
    right: auto;
  }
  
  .rits-bio-panel {
    flex-direction: column;
    gap: 2.5rem;
  }
  
  .rits-cookie-deck {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}