/* Lingua Caribe — custom styles, animations, extras */

:root {
  --c-teal: #0e6b6b;
  --c-ocean: #0a3d5c;
  --c-coral: #ff5a3c;
  --c-sunset: #ff8a5b;
  --c-sand: #f7efe2;
  --c-cream: #fbf6ec;
  --c-charcoal: #1f2937;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--c-charcoal);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.font-display {
  font-family: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* --- Hero gradient mesh ----------------------------------------- */
.hero-mesh {
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(14, 107, 107, 0.55), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(10, 61, 92, 0.55), transparent 60%),
    radial-gradient(900px 700px at 50% 100%, rgba(255, 90, 60, 0.35), transparent 65%),
    linear-gradient(135deg, #0a3d5c 0%, #0e6b6b 60%, #0e6b6b 100%);
}

.text-gradient-warm {
  background-image: linear-gradient(135deg, #ff8a5b 0%, #ff5a3c 60%, #f3b25b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-cool {
  background-image: linear-gradient(135deg, #0e6b6b 0%, #0a3d5c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Glassmorphism ---------------------------------------------- */
.glass {
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-dark {
  background-color: rgba(10, 61, 92, 0.4);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.header-blur {
  background-color: rgba(251, 246, 236, 0.78);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
}

/* --- Scroll-reveal --------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal][data-delay="100"] { transition-delay: 100ms; }
[data-reveal][data-delay="200"] { transition-delay: 200ms; }
[data-reveal][data-delay="300"] { transition-delay: 300ms; }
[data-reveal][data-delay="400"] { transition-delay: 400ms; }

/* --- Floating blobs (decorative) -------------------------------- */
.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  opacity: 0.6;
  pointer-events: none;
  animation: floaty 14s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(0, -20px, 0) scale(1.05); }
}

/* --- Marquee (logo strip / phrases) ----------------------------- */
.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  gap: 3rem;
  animation: marquee 35s linear infinite;
  will-change: transform;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Card hover ------------------------------------------------- */
.card-hover {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -20px rgba(10, 61, 92, 0.35);
}

/* --- Button shine ---------------------------------------------- */
.btn-shine {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  transition: transform 0.8s ease;
  z-index: -1;
}
.btn-shine:hover::after {
  transform: translateX(120%) skewX(-20deg);
}

/* --- FAQ accordion --------------------------------------------- */
.faq-item details > summary {
  list-style: none;
  cursor: pointer;
}
.faq-item details > summary::-webkit-details-marker {
  display: none;
}
.faq-item details[open] .faq-chevron {
  transform: rotate(45deg);
}
.faq-chevron {
  transition: transform 0.3s ease;
}
.faq-item details[open] .faq-answer {
  animation: faqIn 0.35s ease forwards;
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Modal ------------------------------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.is-open {
  display: flex;
  animation: modalFade 0.25s ease;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 61, 92, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 32rem;
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.4);
  animation: modalPop 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes modalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalPop {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
body.modal-open,
body.menu-open {
  overflow: hidden;
}

/* --- Mobile menu overlay --------------------------------------- */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-overlay.is-open {
  transform: translateX(0);
}

/* --- Phone frame (app showcase) -------------------------------- */
.phone-frame {
  position: relative;
  width: 280px;
  height: 580px;
  border-radius: 44px;
  background: linear-gradient(160deg, #1f2937 0%, #0a3d5c 100%);
  padding: 14px;
  box-shadow:
    0 30px 60px -20px rgba(10, 61, 92, 0.55),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.phone-frame__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  border-radius: 999px;
  background: #0a0f17;
  z-index: 3;
}
.phone-frame__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, #fbf6ec 0%, #fff 100%);
}

/* --- Floating chips -------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(14, 107, 107, 0.08);
  color: var(--c-teal);
  border: 1px solid rgba(14, 107, 107, 0.15);
}

/* --- Stat counter ---------------------------------------------- */
.stat-num {
  font-variant-numeric: tabular-nums;
}

/* --- Map placeholder ------------------------------------------- */
.map-placeholder {
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 138, 91, 0.35), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(14, 107, 107, 0.35), transparent 45%),
    repeating-linear-gradient(45deg, rgba(10, 61, 92, 0.08) 0 2px, transparent 2px 16px),
    linear-gradient(135deg, #cfe6e6 0%, #b9d6e0 100%);
  position: relative;
}
.map-placeholder::before,
.map-placeholder::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
}
.map-placeholder::before {
  height: 2px;
  width: 70%;
  top: 40%;
  left: 10%;
  transform: rotate(-8deg);
}
.map-placeholder::after {
  height: 2px;
  width: 50%;
  bottom: 30%;
  left: 25%;
  transform: rotate(12deg);
}

/* --- Wave divider ---------------------------------------------- */
.wave-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 80px;
  fill: var(--c-cream);
}

/* --- Focus rings ----------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--c-coral);
  outline-offset: 2px;
  border-radius: 6px;
}

/* --- Forms ----------------------------------------------------- */
.input {
  width: 100%;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input:focus {
  outline: none;
  border-color: var(--c-teal);
  box-shadow: 0 0 0 4px rgba(14, 107, 107, 0.12);
}

/* --- Pricing card highlight ------------------------------------ */
.pricing-pop {
  position: relative;
}
.pricing-pop::before {
  content: "MOST POPULAR";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff8a5b, #ff5a3c);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 10px 25px -8px rgba(255, 90, 60, 0.6);
}

/* --- Print friendly ------------------------------------------- */
@media print {
  header, footer, .modal, .mobile-overlay { display: none !important; }
}

/* --- Prefers reduced motion ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
