/**
 * OffScreen / Tribee app color system
 * Mirrors TribeeColors (iOS) and Color.kt (Android).
 */
:root {
  --os-background: #fdf8f5;
  --os-primary: #012d1d;
  --os-primary-dark: #1b4332;
  --os-text: #1c1b1a;
  --os-text-secondary: #414844;
  --os-text-muted: #717973;
  --os-text-light: #c1c8c2;
  --os-surface: #f2edea;
  --os-surface-input: #f8f3f0;
  --os-border: #e6e2df;
  --os-peach: #fc9174;
  --os-peach-dark: #742814;
  --os-sage: #86af99;
  --os-light-green: #c1ecd4;
  --os-white: #ffffff;

  /* Typography — Cormorant Garamond (app display) + Story Script (wordmark) */
  --default-font: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --heading-font: "Cormorant Garamond", Georgia, serif;
  --nav-font: "Cormorant Garamond", Georgia, serif;

  /* Template variable mapping — default = app light shell */
  --background-color: var(--os-background);
  --default-color: var(--os-text-secondary);
  --heading-color: var(--os-primary);
  --accent-color: var(--os-peach);
  --surface-color: var(--os-surface);
  --contrast-color: var(--os-white);

  --nav-color: var(--os-text-secondary);
  --nav-hover-color: var(--os-primary);
  --nav-mobile-background-color: var(--os-background);
  --nav-dropdown-background-color: var(--os-surface-input);
  --nav-dropdown-color: var(--os-text);
  --nav-dropdown-hover-color: var(--os-primary);
}

.light-background {
  --background-color: var(--os-surface-input);
  --default-color: var(--os-text-secondary);
  --heading-color: var(--os-primary);
  --surface-color: var(--os-surface);
  --contrast-color: var(--os-primary);
}

.dark-background {
  --background-color: var(--os-primary);
  --default-color: rgba(255, 255, 255, 0.88);
  --heading-color: var(--os-white);
  --surface-color: var(--os-primary-dark);
  --contrast-color: var(--os-primary);
  --nav-color: rgba(255, 255, 255, 0.92);
  --nav-hover-color: var(--os-peach);
}

body {
  color: var(--os-text-secondary);
  background-color: var(--os-background);
  font-family: var(--default-font);
  font-size: 1.125rem;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  font-style: italic;
  font-weight: 500;
}

.story-script-regular {
  font-family: "Story Script", cursive;
  font-weight: 400;
  font-style: italic;
}

.logo-wordmark {
  color: var(--os-white);
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: -4px;
  font-style: italic;
}

a {
  color: var(--os-primary);
}

a:hover {
  color: var(--os-primary-dark);
}

/* Header — hero: white nav on green overlay; scrolled: cream bar like app chrome */
.topbar {
  background: var(--os-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.branding {
  background: rgba(1, 45, 29, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header .logo img {
  max-height: 44px;
  width: auto;
}

.header .navmenu a,
.header .navmenu a:focus {
  color: var(--os-white);
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.header .navmenu li:hover > a,
.header .navmenu .active,
.header .navmenu .active:focus {
  color: var(--os-peach);
  font-weight: 600;
}

.header .mobile-nav-toggle {
  color: var(--os-white);
}

.header .btn-book-a-table,
.header .btn-book-a-table:focus {
  color: var(--os-white);
  background: var(--os-primary);
  border: 2px solid var(--os-primary);
}

.header .btn-book-a-table:hover,
.header .btn-book-a-table:focus:hover {
  color: var(--os-white);
  background: var(--os-primary-dark);
  border-color: var(--os-primary-dark);
}

.scrolled .header .logo-wordmark {
  color: var(--os-primary);
}

.scrolled .header {
  --background-color: var(--os-background);
  box-shadow: 0 1px 0 var(--os-border);
}

.scrolled .header .topbar {
  display: none;
}

.scrolled .header .branding {
  background: var(--os-background);
}

.scrolled .header .navmenu a,
.scrolled .header .navmenu a:focus {
  color: var(--os-text-secondary);
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 1.375rem;
  font-weight: 500;
}

.scrolled .header .navmenu li:hover > a,
.scrolled .header .navmenu .active,
.scrolled .header .navmenu .active:focus {
  color: var(--os-primary);
  font-weight: 600;
}

.scrolled .header .mobile-nav-toggle {
  color: var(--os-primary);
}

@media (min-width: 1200px) {
  .header .navmenu a,
  .header .navmenu a:focus {
    padding: 18px 16px;
  }
}

@media (max-width: 1199px) {
  .header .navmenu a,
  .header .navmenu a:focus {
    font-family: var(--heading-font);
    font-style: italic;
    font-size: 1.5rem;
    font-weight: 500;
  }

  .header .navmenu li:hover > a,
  .header .navmenu .active,
  .header .navmenu .active:focus {
    font-weight: 600;
  }
}

.scrolled .header .btn-book-a-table,
.scrolled .header .btn-book-a-table:focus {
  color: var(--os-white);
  background: var(--os-primary);
  border-color: var(--os-primary);
}

.scrolled .header .btn-book-a-table:hover,
.scrolled .header .btn-book-a-table:focus:hover {
  color: var(--os-white);
  background: var(--os-primary-dark);
  border-color: var(--os-primary-dark);
}

/* Primary actions — TribeePrimaryButton (forest green, white label) */
.btn-book-a-table,
.php-email-form button[type="submit"],
.cta-btn-primary {
  background: var(--os-primary);
  border: 2px solid var(--os-primary);
  color: var(--os-white);
  font-family: var(--heading-font);
  font-style: italic;
  font-weight: 600;
  border-radius: 16px;
}

.btn-book-a-table:hover,
.php-email-form button[type="submit"]:hover,
.cta-btn-primary:hover {
  background: var(--os-primary-dark);
  border-color: var(--os-primary-dark);
  color: var(--os-white);
}

/* Secondary / outline — TribeeExpressiveOutlinedButton */
.cta-btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: var(--os-white);
  font-family: var(--heading-font);
  font-style: italic;
  font-weight: 600;
  border-radius: 16px;
}

.cta-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--os-white);
  color: var(--os-white);
}

/* Hero — welcome-screen green gradient overlay */
.hero img,
.hero .hero-bg-image {
  object-fit: cover;
  object-position: center center;
}

.hero:before {
  background: linear-gradient(
    180deg,
    rgba(1, 45, 29, 0.45) 0%,
    rgba(1, 45, 29, 0.12) 42%,
    rgba(1, 45, 29, 0.82) 100%
  );
}

.hero h2 span {
  color: #ffd54f;
}

.hero .cta-btn-primary {
  border-radius: 16px;
  border-color: var(--os-primary) !important;
}

.hero .cta-btn-outline {
  letter-spacing: 0.04em;
  border-color: rgba(255, 255, 255, 0.85) !important;
  background: transparent !important;
}

.hero .cta-btn {
  border: 2px solid transparent;
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 1.125rem;
  font-weight: 600;
  padding: 12px 28px;
}

.hero .cta-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: var(--os-white) !important;
  color: var(--os-white);
}

.hero .cta-btn-primary:hover {
  background: var(--os-primary-dark) !important;
  border-color: var(--os-primary-dark) !important;
  color: var(--os-white);
}

/* Section titles — primary headings, peach eyebrow line */
.section-title h2 {
  color: var(--os-sage);
}

.section-title h2::after {
  background: var(--os-peach);
}

.section-title p {
  color: var(--os-primary);
  font-style: italic;
  font-weight: 500;
}

.section-title h2 {
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.hero h2 {
  font-style: italic;
  font-weight: 500;
}

.section-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(1, 45, 29, 0.88);
  color: var(--os-white);
  font-family: var(--heading-font);
  font-size: 1.05rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: none;
  margin-bottom: 12px;
  border: none;
}

/* About — plain app background, no dark photo wash */
.about {
  background: var(--os-background) !important;
}

.about:before {
  display: none;
}

.about .content .fst-italic {
  color: var(--os-text-muted);
}

.about .content ul i {
  color: var(--os-primary);
}

.about .about-img {
  border-color: var(--os-border);
  border-radius: 16px;
}

/* Why us cards */
.why-us .card-item {
  background: var(--os-surface-input);
  border: 1px solid var(--os-border);
  border-radius: 16px;
}

.why-us .card-item span {
  color: var(--os-peach);
}

.why-us .card-item:hover {
  background: var(--os-primary);
  border-color: var(--os-primary);
}

.why-us .card-item:hover span {
  color: var(--os-peach);
}

.why-us .card-item:hover h4 a,
.why-us .card-item:hover p {
  color: var(--os-white);
}

/* Experience list */
.menu {
  background-color: var(--os-background);
}

.menu .menu-filters li:hover,
.menu .menu-filters li.filter-active {
  color: var(--os-primary);
}

.menu .menu-content span {
  color: var(--os-sage);
}

.menu .menu-content a:hover {
  color: var(--os-peach);
}

.experience-card .menu-content a {
  font-weight: 600;
}

.experiences-week-label {
  font-size: 0.95rem;
  color: var(--os-text-secondary);
  margin-top: 0.35rem;
}

.experiences-status {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--os-text-secondary);
  font-style: italic;
}

.experiences-status--error {
  color: var(--os-peach);
}

.experience-meta {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--os-sage);
  font-style: italic;
}

.experience-card-item {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.experience-card-item:hover,
.experience-card-item:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(1, 45, 29, 0.08);
  outline: none;
}

.experience-card-item .experience-title {
  color: var(--heading-color);
  font-family: var(--default-font);
  font-weight: 700;
  background: var(--background-color);
  padding-right: 10px;
  position: relative;
  z-index: 3;
  transition: color 0.3s;
}

.experience-card-item .experience-price {
  background: var(--background-color);
  color: var(--os-sage);
  position: relative;
  z-index: 3;
  padding: 0 10px;
  font-weight: 600;
}

.experience-card-item:hover .experience-title,
.experience-card-item:focus-visible .experience-title {
  color: var(--os-peach);
}

.experience-join-modal {
  border: 1px solid var(--os-border);
  border-radius: 16px;
  overflow: hidden;
}

.experience-join-modal .modal-header {
  border-bottom-color: var(--os-border);
  background: var(--os-background);
}

.experience-join-modal .modal-body {
  background: var(--os-background);
  padding: 1.75rem 1.5rem 2rem;
}

.experience-join-modal .modal-title {
  color: var(--os-primary);
  font-weight: 600;
}

.experience-modal-meta {
  color: var(--os-sage);
  font-style: italic;
}

.experience-modal-message {
  color: var(--os-text-secondary);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.gallery-empty {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.gallery-empty p {
  margin: 0;
  font-family: var(--heading-font);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--os-primary);
}

/* Trust tabs */
.specials .nav-link {
  border-right-color: var(--os-border);
  color: var(--os-text-secondary);
}

.specials .nav-link:hover {
  color: var(--os-primary);
}

.specials .nav-link.active {
  color: var(--os-primary);
  border-right-color: var(--os-primary);
  background: var(--os-surface-input);
}

/* Community band */
.events:before {
  background: linear-gradient(
    180deg,
    rgba(1, 45, 29, 0.72) 0%,
    rgba(1, 45, 29, 0.88) 100%
  );
}

.events .section-title p {
  color: var(--os-white);
}

.events .cta-btn-primary {
  border-radius: 16px;
}

/* Testimonials */
.testimonials .testimonial-item {
  background: var(--os-surface-input);
  border: 1px solid var(--os-border);
  border-radius: 16px;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: var(--os-peach);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--os-primary);
}

/* Panels & icons */
.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 45, 29, 0.08);
  color: var(--os-primary);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.waitlist-panel {
  background: var(--os-surface-input);
  border: 1px solid var(--os-border);
  border-radius: 16px;
  padding: 32px;
}

.waitlist-panel a.btn-book-a-table {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 32px;
  font-size: 16px;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: normal;
}

.app-store-buttons {
  justify-content: flex-start;
  align-items: center;
}

.app-store-buttons .store-badge {
  display: block;
  line-height: 0;
  flex: 0 0 auto;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-store-buttons .store-badge:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Both badges share a 3:1 canvas (600×200) — scale by width */
.app-store-buttons .store-badge img {
  display: block;
  width: 100px;
  height: auto;
  max-width: 100%;
}

.experience-join-modal .app-store-buttons {
  justify-content: center;
  align-items: center;
}

.contact .info-item i {
  color: var(--os-primary);
}

/* Footer */
.footer {
  background-color: var(--os-primary);
  color: rgba(255, 255, 255, 0.78);
}

.footer .footer-top {
  border-top: none;
}

.footer h4,
.footer .footer-about .logo span {
  color: var(--os-white);
}

.footer .footer-links ul a {
  color: rgba(255, 255, 255, 0.72);
}

.footer .footer-links ul a:hover {
  color: var(--os-peach);
}

.footer .footer-links ul i {
  color: var(--os-peach);
}

.footer .copyright {
  color: rgba(255, 255, 255, 0.65);
}

.footer .copyright strong {
  color: var(--os-white);
}

.footer a {
  color: var(--os-peach);
}

.footer a:hover {
  color: var(--os-white);
}

/* Scroll top */
.scroll-top {
  background: var(--os-primary);
}

.scroll-top:hover {
  background: var(--os-primary-dark);
}

/* Preloader */
#preloader:before {
  border-color: var(--os-primary) transparent var(--os-peach) transparent;
}
