/* =============================================================
   ILLUMINARE — shared UI widgets
   Reusable components used across pages: buttons, cards, decorative
   lines, FAQ accordion, floating/sticky CTAs, modal, forms, the chat
   widget and the booking/cancellation widget box. Page layout, type,
   navbar and footer stay in style.css. Load after style.css.
   ============================================================= */

/* =============================================
   GOLD DECORATIVE ELEMENTS
   ============================================= */
.gold-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
}

.gold-line-left {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0;
}

.gold-line-full {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #C9A14A44, #C9A14A, #C9A14A44, transparent);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #C9A14A, #a07830);
  color: #0a1628;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 161, 74, 0.4);
  background: linear-gradient(135deg, #f0d080, #C9A14A);
}

.btn-gold:active {
  transform: scale(0.97) translateY(0);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid #C9A14A66;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn-outline-gold:hover {
  background: rgba(201, 161, 74, 0.1);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201, 161, 74, 0.2);
  transform: translateY(-2px);
}

.btn-outline-gold:active {
  transform: scale(0.97);
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.68rem;
}

.google-review-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.4rem;
  border: 1px solid rgba(201, 161, 74, 0.35);
  border-radius: 4px;
  background: rgba(18, 30, 50, 0.6);
  color: rgba(232, 220, 200, 0.8);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  backdrop-filter: blur(8px);
}

.google-review-btn:hover {
  border-color: rgba(201, 161, 74, 0.7);
  background: rgba(18, 30, 50, 0.9);
  color: var(--beige);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 161, 74, 0.15);
}

.google-review-btn--footer {
  padding: 0.45rem 0.9rem;
  font-size: 0.65rem;
  border-color: rgba(201, 161, 74, 0.2);
  background: transparent;
  color: rgba(232, 220, 200, 0.5);
  white-space: nowrap;
}

.google-review-btn--footer:hover {
  border-color: rgba(201, 161, 74, 0.5);
  color: rgba(232, 220, 200, 0.85);
}

/* =============================================
   CARDS
   ============================================= */
.card-dark {
  background: linear-gradient(135deg, rgba(14, 42, 71, 0.85) 0%, rgba(10, 30, 60, 0.9) 50%, rgba(6, 52, 90, 0.8) 100%);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 4px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(14, 165, 233, 0.06);
  padding: 2rem;
}

.card-dark::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #C9A14A, #D4772A);
  transition: width 0.4s var(--ease);
  z-index: 1;
}

.card-dark:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(14, 165, 233, 0.15);
}

.card-dark:hover::before {
  width: 100%;
}

/* =============================================
   COUNTER / STEP / PRICE
   ============================================= */
.counter-value {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.step-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(201, 161, 74, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold);
  transition: all 0.3s ease;
  background: rgba(201, 161, 74, 0.05);
  margin: 0 auto 1.25rem;
}

.step-circle:hover {
  border-color: var(--gold);
  background: rgba(201, 161, 74, 0.15);
  box-shadow: 0 0 25px rgba(201, 161, 74, 0.3);
}

.price-card {
  background: rgba(18, 30, 50, 0.9);
  border: 1px solid rgba(201, 161, 74, 0.15);
  border-radius: 4px;
  padding: 2rem;
  position: relative;
  transition: all 0.4s var(--ease);
}

.price-card.featured {
  border-color: rgba(201, 161, 74, 0.5);
  box-shadow: 0 0 40px rgba(201, 161, 74, 0.12);
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.price-amount {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

/* =============================================
   FAQ ACCORDION
   ============================================= */
/* FAQ accordion — native <details>/<summary>, no JS. Items on a page share
   name="faq", so opening one closes the others (Chrome 120+, Safari 17.2+,
   Firefox 130+; older browsers simply allow several open). The open/close
   height animates via ::details-content where supported; elsewhere it
   just toggles. */
.faq-item {
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  transition: border-color 0.3s ease;
  interpolate-size: allow-keywords;
}

.faq-item:hover {
  border-bottom-color: rgba(56, 189, 248, 0.4);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  list-style: none;
  padding: 1.25rem 0;
  color: var(--beige);
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

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

.faq-question:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.faq-question .chevron {
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.25s;
  color: var(--gold);
}

.faq-item[open] .faq-question .chevron {
  transform: rotate(180deg);
}

.faq-item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete;
}

.faq-item[open]::details-content {
  block-size: auto;
}

.faq-answer-inner {
  padding: 0 0 1.5rem;
  color: rgba(232, 220, 200, 0.65);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* =============================================
   TEAM CARDS
   ============================================= */
.team-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(18, 30, 50, 0.8);
  border: 1px solid rgba(201, 161, 74, 0.12);
  transition: all 0.4s var(--ease);
}

.team-card:hover {
  border-color: rgba(201, 161, 74, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.team-card img {
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
}

.team-card-body {
  padding: 1.5rem;
}

/* =============================================
   MARQUEE / SOCIAL PROOF / CAROUSEL TRACKS
   ============================================= */
.scroll-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 1rem;
}

.scroll-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 380px;
  scroll-snap-align: start;
}

.blog-card-horizontal {
  flex: 0 0 320px;
  scroll-snap-align: start;
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 300px;
  }

  .blog-card-horizontal {
    flex: 0 0 280px;
  }
}

/* =============================================
   FLOATING WHATSAPP
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9000;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s var(--ease);
  animation: pulse-whatsapp 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7), 0 0 0 8px rgba(37, 211, 102, 0.1);
  }
}

/* =============================================
   STICKY CTA BAR (mobile only)
   ============================================= */
.sticky-cta-bar {
  display: none;
}

@media (max-width: 768px) {
  .sticky-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: rgba(10, 22, 40, 0.97);
    border-top: 1px solid rgba(201, 161, 74, 0.25);
    padding: 0.65rem 1rem;
    gap: 0.6rem;
    align-items: center;
    backdrop-filter: blur(8px);
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
  }

  .sticky-cta-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 0.75rem;
    background: linear-gradient(135deg, #C9A14A 0%, #E8C96A 50%, #C9A14A 100%);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0A1628;
  }

  .sticky-cta-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 4px;
    flex-shrink: 0;
  }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }
}

/* =============================================
   EXIT INTENT MODAL
   ============================================= */
.exit-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(6, 14, 28, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}

.exit-modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.exit-modal-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 10003;
  width: min(520px, 92vw);
  /* Short screens (small phones, landscape): scroll inside instead of
     overflowing the top and bottom edges. */
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(160deg, rgba(10, 22, 40, 0.99) 0%, rgba(18, 30, 50, 0.99) 100%);
  border: 1px solid rgba(201, 161, 74, 0.35);
  border-radius: 6px;
  padding: clamp(1.75rem, 6vw, 2.5rem) clamp(1.25rem, 5vw, 2rem) clamp(1.25rem, 5vw, 2rem);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.exit-modal-backdrop.show+.exit-modal-panel,
.exit-modal-panel.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.exit-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(232, 220, 200, 0.35);
  padding: 0.25rem;
}

.exit-modal-close:hover {
  color: var(--gold);
}

.exit-modal-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

.exit-modal-stats div {
  text-align: center;
}

.exit-modal-stats .n {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold);
}

.exit-modal-stats .l {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 220, 200, 0.4);
}

/* =============================================
   FORMS
   ============================================= */
.form-field {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-field label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 220, 200, 0.6);
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(18, 30, 50, 0.6);
  border: 1px solid rgba(201, 161, 74, 0.2);
  border-radius: 4px;
  color: var(--beige);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color 0.25s;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--gold);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

/* =============================================
   WHATSAPP / TRIAGE CHAT WIDGET
   ============================================= */
.triage-launcher {
  position: fixed;
  bottom: 6.5rem;
  right: 2rem;
  z-index: 8900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(201, 161, 74, 0.4);
  border: none;
  cursor: pointer;
  color: var(--navy);
  transition: all 0.3s var(--ease);
}

.triage-launcher:hover {
  transform: scale(1.08);
}

/* [popover]: toggled by the launcher's popovertarget, closed by the
   header button or a tap outside. */
.triage-panel {
  position: fixed;
  inset: auto 2rem 11.5rem auto;
  margin: 0;
  padding: 0;
  z-index: 8901;
  width: min(340px, 90vw);
  /* Never taller than the room above its bottom offset (landscape phones). */
  max-height: min(60vh, calc(100vh - 12.5rem));
  max-height: min(60dvh, calc(100dvh - 12.5rem));
  color: inherit;
  background: rgba(10, 22, 40, 0.98);
  border: 1px solid rgba(201, 161, 74, 0.3);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    display 0.25s allow-discrete, overlay 0.25s allow-discrete;
}

.triage-panel:popover-open {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}

@starting-style {
  .triage-panel:popover-open {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
}

.triage-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(201, 161, 74, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.triage-header h4 {
  font-size: 1rem;
  color: var(--gold);
}

.triage-body {
  padding: 1.25rem;
  overflow-y: auto;
  font-size: 0.85rem;
}

.triage-body p {
  margin-bottom: 1rem;
}

.triage-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.triage-options a,
.triage-options button {
  display: block;
  padding: 0.75rem 1rem;
  background: rgba(201, 161, 74, 0.08);
  border: 1px solid rgba(201, 161, 74, 0.2);
  border-radius: 4px;
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
  color: var(--beige);
  transition: all 0.2s;
}

.triage-options a:hover,
.triage-options button:hover {
  border-color: var(--gold);
  background: rgba(201, 161, 74, 0.15);
}

@media (max-width: 480px) {
  .triage-launcher {
    bottom: 6rem;
    right: 1.25rem;
  }

  .triage-panel {
    right: 1.25rem;
    bottom: 10.5rem;
    max-height: min(60vh, calc(100vh - 11.5rem));
    max-height: min(60dvh, calc(100dvh - 11.5rem));
  }
}

/* =============================================
   BOOKING / CANCELLATION WIDGET (agendar, cancelar)
   ============================================= */
.sbw {
  background: rgba(15, 32, 64, 0.35);
  border: 1px solid rgba(201, 161, 74, 0.13);
  overflow: hidden;
}

.sbw-body {
  padding: 1.5rem;
  min-height: 280px;
}

.sbw-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--beige);
  margin-bottom: .3rem;
}

.sbw-sub {
  font-size: .78rem;
  color: rgba(232, 220, 200, .6);
  margin-bottom: 1.3rem;
  line-height: 1.6;
}

.sbw-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .62rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  background: none;
  border: 1px solid rgba(201, 161, 74, .3);
  padding: .5rem .9rem;
  font-family: inherit;
  transition: all .25s;
}

.sbw-back:hover {
  gap: .65rem;
  border-color: var(--gold);
  background: rgba(201, 161, 74, .06);
}

.sbw-loading {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .78rem;
  color: rgba(232, 220, 200, .6);
  padding: 2.5rem 0;
  justify-content: center;
}

.sbw-spin {
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(201, 161, 74, .25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: sbspin .7s linear infinite;
  flex-shrink: 0;
}

@keyframes sbspin {
  to {
    transform: rotate(360deg);
  }
}

.sbw-err {
  font-size: .8rem;
  color: rgba(232, 220, 200, .6);
  line-height: 1.75;
  padding: 1.5rem;
  border: 1px solid rgba(212, 119, 42, .3);
  background: rgba(212, 119, 42, .05);
}

.sbw-req {
  color: #e0524f;
  margin-left: .15rem;
}

.sbw-opt {
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .55;
  margin-left: .4rem;
}

.sbw-hint {
  font-size: .66rem;
  opacity: .55;
  margin-top: .3rem;
  line-height: 1.5;
}

.sbw-err b {
  color: var(--orange);
  display: block;
  font-weight: 400;
  margin-bottom: .4rem;
  letter-spacing: .05em;
}

.sbw-summary {
  border: 1px solid rgba(201, 161, 74, .16);
  background: rgba(201, 161, 74, .04);
  padding: 1rem 1.15rem;
  margin-bottom: 1.3rem;
  font-size: .8rem;
  color: var(--beige);
  line-height: 1.85;
}

.sbw-summary b {
  color: var(--gold);
  font-weight: 400;
}

.sbw-ok {
  text-align: center;
  padding: 1.5rem 0;
}

.sbw-ok-i {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 1.15rem;
}

.sbw-ok-t {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--beige);
  margin-bottom: .6rem;
}

.sbw-ok-x {
  font-size: .82rem;
  color: rgba(232, 220, 200, .6);
  line-height: 1.8;
  max-width: 380px;
  margin: 0 auto;
}

.sbw .fg2 {
  margin-bottom: 1rem;
  text-align: left;
}

.sbw .fg2 label {
  font-size: .64rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: .4rem;
}

.sbw .fg2 input {
  width: 100%;
  background: rgba(15, 32, 64, .7);
  border: 1px solid rgba(201, 161, 74, .2);
  color: var(--beige);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 300;
  padding: .78rem 1rem;
  outline: none;
  transition: border-color .25s;
}

.sbw .fg2 input:focus {
  border-color: rgba(201, 161, 74, .5);
}

.sbw .fsub {
  width: 100%;
  padding: .9rem;
  background: linear-gradient(135deg, var(--gold), #a8793a);
  color: var(--navy);
  font-family: inherit;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .25s;
  margin-top: .4rem;
}

.sbw .fsub:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(201, 161, 74, .3);
}

.sbw .fsub:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
}

.sbw-body {
  padding: 1.15rem .9rem;
}

.sbw-title {
  font-size: 1.15rem;
}