/* ============================================
   TR Laser — Design Tokens & Shared Components
   ============================================ */

:root {
  --plum-900: #3A1854;
  --plum-700: #5B2A7D;
  --plum-600: #6E3A93;
  --orchid-500: #A874C9;
  --orchid-300: #CBA3E0;
  --blush-400: #EFA9C4;
  --blush-300: #F2C4D6;
  --blush-100: #FBE4EC;
  --ivory-50: #FBF2EE;
  --paper: #FFFFFF;
  --ink: #2A2233;
  --ink-soft: #6B5E75;
  --line: rgba(91, 42, 125, 0.12);

  --shadow-sm: 0 2px 8px -2px rgba(58, 24, 84, 0.12), 0 1px 2px rgba(58, 24, 84, 0.08);
  --shadow-md: 0 12px 28px -8px rgba(58, 24, 84, 0.22), 0 4px 10px -4px rgba(58, 24, 84, 0.14);
  --shadow-lg: 0 24px 60px -12px rgba(58, 24, 84, 0.28), 0 8px 20px -6px rgba(91, 42, 125, 0.16);

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory-50);
  color: var(--ink);
  font-family: 'Assistant', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

h1, h2, h3, h4 {
  font-family: 'Frank Ruhl Libre', serif;
  color: var(--plum-900);
  margin: 0;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.font-display { font-family: 'Frank Ruhl Libre', serif; }
.font-latin-accent { font-family: 'Cormorant Garamond', serif; font-style: italic; }

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

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

::selection {
  background: var(--blush-400);
  color: var(--plum-900);
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: 'Assistant', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--orchid-500);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--orchid-500);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 100px;
  font-family: 'Assistant', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out), background 0.25s;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible {
  outline: 2px solid var(--plum-700);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--plum-700), var(--plum-600) 60%, var(--orchid-500));
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -10px rgba(58, 24, 84, 0.35);
}

.btn-outline {
  background: var(--paper);
  color: var(--plum-700);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  transform: translateY(-3px);
  border-color: var(--orchid-500);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--plum-900);
  padding: 12px 6px;
}
.btn-ghost span {
  border-bottom: 1.5px solid var(--orchid-500);
  padding-bottom: 2px;
  transition: border-color 0.25s;
}
.btn-ghost:hover span { border-color: var(--plum-900); }

.btn-sm { padding: 10px 20px; font-size: 0.86rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 242, 238, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 42px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-weight: 600;
  font-size: 0.98rem;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink);
  transition: color 0.25s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: auto;
  width: 0;
  height: 2px;
  background: var(--orchid-500);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--plum-700); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--plum-700); }
.nav-links a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  transition: transform 0.3s var(--ease-spring), border-color 0.25s;
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--orchid-500); }
.icon-btn:focus-visible { outline: 2px solid var(--plum-700); outline-offset: 2px; }
.icon-btn svg { width: 19px; height: 19px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 24px 22px;
  border-top: 1px solid var(--line);
  background: var(--ivory-50);
}
.mobile-panel a {
  padding: 13px 6px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-panel.open { display: flex; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .icon-btn.desktop-only { display: none; }
}

/* ---------- Petal frame (signature motif) ---------- */
.petal-frame {
  position: relative;
  border-radius: 58% 42% 61% 39% / 44% 55% 45% 56%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.petal-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.18), rgba(58,24,84,0.14) 70%);
  mix-blend-mode: multiply;
}
.petal-frame.alt {
  border-radius: 42% 58% 38% 62% / 58% 42% 58% 42%;
}
.petal-frame img, .petal-frame svg { width: 100%; height: 100%; object-fit: cover; }
.petal-frame svg { display: block; }

.shimmer-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.55) 48%, transparent 66%);
  transform: translateX(-120%);
  animation: sweep 2.6s var(--ease-out) 0.4s 1;
  pointer-events: none;
  z-index: 2;
}
@keyframes sweep {
  to { transform: translateX(120%); }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out), border-color 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--orchid-300);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--blush-100);
  color: var(--plum-700);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

/* ---------- Section backgrounds ---------- */
.bg-plum {
  background: linear-gradient(155deg, var(--plum-900), var(--plum-700) 60%, var(--plum-600));
  color: #F3E9FA;
}
.bg-plum h2, .bg-plum h3 { color: #fff; }
.bg-plum .eyebrow { color: var(--blush-300); }
.bg-plum .eyebrow::before { background: var(--blush-300); }

.noise-layer {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ---------- Floating actions ---------- */
.floating-actions {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fab {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s var(--ease-spring);
}
.fab:hover { transform: translateY(-4px) scale(1.05); }
.fab:focus-visible { outline: 2px solid var(--plum-900); outline-offset: 3px; }
.fab-whatsapp { background: #3EC15C; }
.fab-whatsapp svg { width: 28px; height: 28px; fill: #fff; }
.fab-call { background: var(--paper); border: 1.5px solid var(--line); }
.fab-call svg { width: 22px; height: 22px; stroke: var(--plum-700); }

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(62,193,92,0.45), var(--shadow-lg); }
  100% { box-shadow: 0 0 0 14px rgba(62,193,92,0), var(--shadow-lg); }
}
.fab-whatsapp { animation: pulse-ring 2.6s ease-out infinite; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--plum-900);
  color: #E9DCF2;
  padding: 72px 0 28px;
  position: relative;
  overflow: hidden;
}
.site-footer a { transition: color 0.25s; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; font-family: 'Assistant', sans-serif; font-weight: 700; }
.footer-grid p, .footer-grid a { color: #CBB6DA; font-size: 0.95rem; display: block; margin-bottom: 10px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.85rem;
  color: #B49AC5;
  flex-wrap: wrap;
  gap: 12px;
}
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease-spring), background 0.25s;
}
.social-row a:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }
.social-row svg { width: 18px; height: 18px; fill: #fff; }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 34px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Responsive layout system ---------- */
.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 64px 0 20px; }
.section-pad-top-sm { padding: 20px 0 96px; }

.tr-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.tr-split.reverse { grid-template-columns: 0.9fr 1.1fr; }

.tr-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.tr-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tr-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tr-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

@media (max-width: 980px) {
  .section-pad { padding: 64px 0; }
  .tr-split, .tr-split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .tr-grid-5, .tr-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section-pad { padding: 52px 0; }
  .section-pad-sm { padding: 44px 0 8px; }
  .section-pad-top-sm { padding: 8px 0 60px; }
  .tr-grid-5, .tr-grid-4, .tr-grid-3, .tr-grid-2 { grid-template-columns: 1fr; }
  .wrap { padding: 0 18px; }
  h1 { font-size: 2rem !important; }
}

/* ---------- Filter tabs ---------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-tab {
  padding: 11px 22px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.filter-tab:hover { border-color: var(--orchid-500); color: var(--plum-700); }
.filter-tab.active {
  background: var(--plum-700);
  border-color: var(--plum-700);
  color: #fff;
}
.filter-tab:focus-visible { outline: 2px solid var(--plum-700); outline-offset: 2px; }

/* ---------- Accordion ---------- */
.accordion-item {
  border-bottom: 1px solid var(--line);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  background: none;
  border: none;
  text-align: right;
  cursor: pointer;
  font-family: 'Assistant', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--plum-900);
}
.accordion-trigger .plus {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--blush-100);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform 0.35s var(--ease-spring), background 0.3s;
}
.accordion-trigger .plus::before, .accordion-trigger .plus::after {
  content: '';
  position: absolute;
  background: var(--plum-700);
  border-radius: 2px;
}
.accordion-trigger .plus::before { width: 12px; height: 2px; }
.accordion-trigger .plus::after { width: 2px; height: 12px; transition: transform 0.3s; }
.accordion-item.open .accordion-trigger .plus::after { transform: rotate(90deg) scaleY(0); }
.accordion-item.open .accordion-trigger .plus { background: var(--plum-700); transform: rotate(180deg); }
.accordion-item.open .accordion-trigger .plus::before { background: #fff; }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.accordion-item.open .accordion-panel { max-height: 300px; }
.accordion-panel-inner { padding: 0 4px 24px; color: var(--ink-soft); }

/* ---------- Forms ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--plum-900);
}
.field input, .field textarea, .field select {
  font-family: 'Assistant', sans-serif;
  font-size: 1rem;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--orchid-500);
  box-shadow: 0 0 0 4px rgba(168, 116, 201, 0.15);
}
.field textarea { resize: vertical; min-height: 110px; }

/* ---------- Booking wizard ---------- */
.wizard-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}
.wizard-dots .dot-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.88rem;
}
.wizard-dots .num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--blush-100);
  color: var(--plum-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: background 0.3s, color 0.3s;
}
.wizard-dots .dot-item.active .num, .wizard-dots .dot-item.done .num {
  background: var(--plum-700);
  color: #fff;
}
.wizard-dots .dot-item.active { color: var(--plum-900); }
.wizard-dots .connector {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.wizard-step { display: none; }
.wizard-step.active { display: block; }

.choice-chip {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  text-align: center;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--ink);
}
.choice-chip:hover { border-color: var(--orchid-500); }
.choice-chip.chosen {
  border-color: var(--plum-700);
  background: var(--blush-100);
  color: var(--plum-900);
}

/* ---------- Utility ---------- */
.divider-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--orchid-500);
  display: inline-block;
}
