/* ============================================================
   TRANSION L.L.C-FZ — Custom Stylesheet
   Mobile-first, no build step. Tailwind CDN handles utilities.
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  --clr-bg:           #FBF7F2;
  --clr-bg-2:         #F0E6D4;
  --clr-ink:          #1E1A15;
  --clr-slate:        #6B5F4E;
  --clr-primary:      #D4610E;
  --clr-primary-hover:#B8520C;
  --clr-amber:        #E8A030;
  --clr-brown:        #7C4E28;
  --glass-bg:         rgba(255,248,240,.65);
  --glass-bg-strong:  rgba(255,248,240,.82);
  --glass-bg-warm:    rgba(252,240,220,.72);
  --glass-border:     rgba(210,180,140,.4);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--clr-bg);
  color: var(--clr-slate);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  color: var(--clr-ink);
  line-height: 1.15;
  margin: 0;
}

/* ── Floating Orb Background ───────────────────────────────── */
.orb-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(70px);
  opacity: .38;
  will-change: transform;
}
.orb-1 {
  width: 460px; height: 460px;
  top: -140px; left: -120px;
  background: var(--clr-primary);
  animation: warm-a 22s ease-in-out infinite;
}
.orb-2 {
  width: 400px; height: 400px;
  top: 32vh; right: -150px;
  background: var(--clr-amber);
  animation: warm-b 26s ease-in-out infinite;
}
.orb-3 {
  width: 340px; height: 340px;
  bottom: -100px; left: 22vw;
  background: var(--clr-brown);
  opacity: .18;
  animation: warm-c 30s ease-in-out infinite;
}

@keyframes warm-a {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(40px,60px) scale(1.12); }
}
@keyframes warm-b {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-50px,40px) scale(1.08); }
}
@keyframes warm-c {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(30px,-50px) scale(1.1); }
}

/* ── WhatsApp pulse ─────────────────────────────────────────── */
@keyframes waPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,.45); }
  60%      { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
}

/* ── Blob morph (hero decorations) ─────────────────────────── */
@keyframes blobMorph {
  0%,100% { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
  33%     { border-radius: 40% 60% 45% 55% / 60% 40% 60% 40%; }
  66%     { border-radius: 55% 45% 60% 40% / 40% 55% 45% 60%; }
}

/* ── Glass surfaces ─────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  box-shadow: 0 8px 32px rgba(30,26,21,.08), inset 1px 1px 0 rgba(255,255,255,.5);
}
.glass-strong {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(30,26,21,.12), inset 1px 1px 0 rgba(255,255,255,.6);
}
.glass-warm {
  background: var(--glass-bg-warm);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(212,97,14,.18);
  border-radius: 1.25rem;
  box-shadow: 0 8px 32px rgba(30,26,21,.08);
}
@supports not (backdrop-filter: blur(1px)) {
  .glass, .glass-strong, .glass-warm { background: rgba(251,247,242,.96); }
}

/* ── Card hover lift ────────────────────────────────────────── */
.card-hover { transition: transform .3s ease, box-shadow .3s ease; }
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(30,26,21,.14), inset 1px 1px 0 rgba(255,255,255,.6);
}

/* ── Eyebrow label ──────────────────────────────────────────── */
.eyebrow {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-primary);
}

/* ── Gradient text (warm) ───────────────────────────────────── */
.grad-text-warm {
  background: linear-gradient(100deg, var(--clr-primary), var(--clr-amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Scroll reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.7rem;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  border: none;
  border-radius: 9999px;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn:hover  { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(100deg, var(--clr-primary), var(--clr-amber));
  color: #fff;
  box-shadow: 0 10px 28px rgba(212,97,14,.35);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(212,97,14,.45); }

.btn-outline {
  background: rgba(255,248,240,.55);
  color: var(--clr-ink);
  border: 1.5px solid rgba(212,97,14,.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

.btn-outline-warm {
  background: rgba(255,248,240,.55);
  color: var(--clr-ink);
  border: 1.5px solid rgba(232,160,48,.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-outline-warm:hover {
  border-color: var(--clr-amber);
  color: var(--clr-brown);
}

.btn-wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(37,211,102,.3);
}
.btn-wa:hover { background: #20b858; }

/* ── Trust / badge chip ─────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: .02em;
  color: var(--clr-ink);
  padding: .5rem 1.1rem;
  border-radius: 9999px;
}

/* ── Nav ────────────────────────────────────────────────────── */
#site-nav {
  transition: box-shadow .25s ease, background .25s ease;
}
#site-nav.scrolled {
  box-shadow: 0 12px 32px rgba(30,26,21,.12);
}

.nav-link {
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-amber));
  transition: width 0.2s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ── Mobile overlay ─────────────────────────────────────────── */
#mobile-overlay { transition: opacity 0.3s ease; }
#mobile-overlay.hidden-overlay { opacity: 0; pointer-events: none; }

/* ── Floating WhatsApp FAB ──────────────────────────────────── */
#float-wa {
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-radius: 9999px;
  animation: waPulse 2.4s ease-out infinite;
}
#float-wa.hidden-fab {
  opacity: 0;
  transform: translateY(12px) scale(.9);
  pointer-events: none;
}

/* ── FAQ accordion (mobile) ─────────────────────────────────── */
.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.faq-body.open { max-height: 600px; }

/* ── FAQ desktop panel ──────────────────────────────────────── */
@keyframes faqPanelIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.faq-panel-in { animation: faqPanelIn 0.3s ease forwards; }

.faq-q-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem 0.9rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  font-family: 'Sora', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-slate);
}
.faq-q-btn:hover {
  background: rgba(212,97,14,.06);
  color: var(--clr-ink);
}
.faq-q-btn[aria-selected="true"] {
  background: rgba(212,97,14,.10);
  border-color: rgba(212,97,14,.3);
  color: var(--clr-ink);
}
/* 3px pill indicator at left edge */
.faq-q-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 2px;
  background: var(--clr-primary);
  opacity: 0;
  transition: opacity .2s;
}
.faq-q-btn[aria-selected="true"]::before { opacity: 1; }

/* ── Process timeline ───────────────────────────────────────── */
.timeline-rail { position: relative; }
.timeline-rail::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--clr-primary), var(--clr-amber), transparent);
}

/* ── Wave dividers ──────────────────────────────────────────── */
.wave-wrap {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: 0;
  padding: 0;
}
.wave-wrap svg {
  display: block;
  width: 100%;
  height: 64px;
}

/* ── Form fields ────────────────────────────────────────────── */
.field {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(255,248,240,.92);
  border: 1.5px solid rgba(107,95,78,.18);
  border-radius: 0.85rem;
  color: var(--clr-ink);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 4px rgba(212,97,14,.15);
}
.field.error { border-color: #c0392b; }
.err-msg {
  display: none;
  font-size: 0.78rem;
  color: #c0392b;
  margin-top: 0.3rem;
  font-family: 'Inter', sans-serif;
}
.field.error + .err-msg { display: block; }

/* ── Contact action buttons ─────────────────────────────────── */
.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  border-radius: 1.25rem;
  color: var(--clr-ink);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.contact-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(30,26,21,.12);
}
.contact-btn svg { opacity: 0.85; }

/* ── Section heading helper ─────────────────────────────────── */
.section-heading { font-weight: 600; }

/* ── prefers-reduced-motion overrides ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .orb           { animation: none !important; }
  #float-wa      { animation: none !important; }
  .reveal        { opacity: 1; transform: none; transition: none; }
  .faq-body      { transition: none; }
  .faq-panel-in  { animation: none; }
  .card-hover    { transition: none; }
  .btn           { transition: none; }
  .nav-link::after { transition: none; }
}
