/* =========================================================
   TraveLens — styles
   Theme: purple→blue gradients on a white canvas
   ========================================================= */

:root {
  --purple: #7c3aed;
  --purple-2: #9333ea;
  --blue: #2563eb;
  --blue-2: #3b82f6;
  --indigo: #4f46e5;
  --grad: linear-gradient(135deg, #7c3aed 0%, #6366f1 45%, #2563eb 100%);
  --grad-soft: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 50%, #eff6ff 100%);
  --ink: #0f1222;
  --ink-2: #4b4f63;
  --muted: #7c819a;
  --line: #ececf5;
  --white: #ffffff;
  --bg: #ffffff;
  --shadow-sm: 0 4px 18px rgba(79, 70, 229, .08);
  --shadow: 0 18px 50px rgba(79, 70, 229, .14);
  --shadow-lg: 0 30px 80px rgba(79, 70, 229, .22);
  --r: 18px;
  --r-lg: 26px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Sora', sans-serif; line-height: 1.1; letter-spacing: -.02em; }

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

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Animated background blobs ---------- */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; animation: drift 18s ease-in-out infinite; }
.blob-1 { width: 480px; height: 480px; background: #c4b5fd; top: -120px; left: -100px; }
.blob-2 { width: 420px; height: 420px; background: #93c5fd; top: 30%; right: -120px; animation-delay: -6s; }
.blob-3 { width: 380px; height: 380px; background: #ddd6fe; bottom: -120px; left: 30%; animation-delay: -11s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 25px) scale(.95); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: inherit; font-weight: 700; font-size: .95rem;
  padding: .8em 1.4em; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .25s;
  white-space: nowrap;
}
.btn-sm { padding: .6em 1.1em; font-size: .85rem; }
.btn-lg { padding: .95em 1.7em; font-size: 1rem; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(124, 58, 237, .35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(124, 58, 237, .5); }
.btn-ghost { background: rgba(124, 58, 237, .07); color: var(--purple); }
.btn-ghost:hover { background: rgba(124, 58, 237, .14); transform: translateY(-3px); }
.btn-light { background: #fff; color: var(--purple); box-shadow: var(--shadow); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(15, 18, 34, .05); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: .55em; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.25rem; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(124, 58, 237, .4);
}
.brand-accent { color: var(--blue); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 600; color: var(--ink-2); position: relative; padding: 4px 0; transition: color .2s; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--grad); border-radius: 2px; transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 90px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .55em; font-size: .82rem; font-weight: 700;
  color: var(--purple); background: rgba(124, 58, 237, .09);
  padding: .5em 1em; border-radius: 999px; margin-bottom: 22px;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 0 rgba(124, 58, 237, .5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, .5); } 70% { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0); } 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); } }
.hero-title { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; }
.hero-sub { color: var(--ink-2); font-size: 1.12rem; margin: 22px 0 30px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 38px; margin-top: 44px; }
.stat strong { display: block; font-family: 'Sora', sans-serif; font-size: 2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* hero visual */
.hero-visual { position: relative; height: 460px; }
.hero-glow { position: absolute; inset: 12% 8%; background: var(--grad); border-radius: 50%; filter: blur(80px); opacity: .25; z-index: 0; }
.float-card {
  position: absolute; width: 230px; background: #fff; border-radius: 20px; padding: 12px;
  box-shadow: var(--shadow-lg); z-index: 1; animation: floaty 6s ease-in-out infinite;
}
.float-card .fc-img { height: 130px; border-radius: 13px; background-image: var(--img); background-size: cover; background-position: center; }
.fc-body { padding: 10px 6px 4px; }
.fc-body strong { display: block; font-family: 'Sora', sans-serif; font-size: .98rem; }
.fc-body span { font-size: .8rem; color: var(--muted); }
.card-a { top: 10px; left: 0; animation-delay: 0s; }
.card-b { top: 150px; right: 0; animation-delay: -2s; z-index: 2; }
.card-c { bottom: 0; left: 40px; animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-18px) rotate(1deg); } }

.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 24px; height: 40px; border: 2px solid rgba(124, 58, 237, .35); border-radius: 14px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 5px; height: 8px; background: var(--purple); border-radius: 3px; animation: scrolly 1.6s infinite; }
@keyframes scrolly { 0% { opacity: 0; top: 8px; } 30% { opacity: 1; } 100% { opacity: 0; top: 22px; } }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tint { background: var(--grad-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.section-sub { color: var(--ink-2); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 38px; }
.tab {
  font-family: inherit; font-weight: 700; font-size: .92rem; color: var(--ink-2);
  background: #fff; border: 1.5px solid var(--line); padding: .7em 1.3em; border-radius: 999px;
  cursor: pointer; transition: all .25s var(--ease);
}
.tab:hover { border-color: #c4b5fd; transform: translateY(-2px); }
.tab.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 26px rgba(124, 58, 237, .32); }

/* ---------- Card grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 26px; }
.place-card {
  background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); cursor: pointer; position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.place-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.pc-media { position: relative; height: 200px; overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.place-card:hover .pc-media img { transform: scale(1.1); }
.pc-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 18, 34, .55), transparent 55%); }
.pc-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2; font-size: .72rem; font-weight: 700;
  color: #fff; background: rgba(124, 58, 237, .85); backdrop-filter: blur(4px);
  padding: .4em .8em; border-radius: 999px;
}
.pc-rating {
  position: absolute; bottom: 12px; right: 12px; z-index: 2; font-size: .78rem; font-weight: 700;
  color: #fff; background: rgba(0, 0, 0, .35); backdrop-filter: blur(4px); padding: .35em .7em; border-radius: 999px;
}
.pc-body { padding: 18px 18px 20px; }
.pc-body h3 { font-size: 1.18rem; }
.pc-loc { font-size: .85rem; color: var(--muted); margin: 4px 0 10px; display: flex; align-items: center; gap: 4px; }
.pc-desc { font-size: .9rem; color: var(--ink-2); margin-bottom: 14px; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; }
.pc-price { font-weight: 800; font-family: 'Sora', sans-serif; }
.pc-price small { font-weight: 600; color: var(--muted); font-size: .72rem; }
.pc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-mini { font-size: .68rem; font-weight: 700; color: var(--purple); background: rgba(99, 102, 241, .1); padding: .3em .6em; border-radius: 999px; }
.pc-plan { font-size: .8rem; font-weight: 700; color: var(--blue); }

/* ---------- Interest chips ---------- */
.interests { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 40px; }
.chip {
  font-family: inherit; font-weight: 700; font-size: .9rem; color: var(--ink-2);
  background: #fff; border: 1.5px solid var(--line); padding: .65em 1.2em; border-radius: 999px;
  cursor: pointer; transition: all .25s var(--ease); display: inline-flex; align-items: center; gap: .5em;
}
.chip:hover { border-color: #c4b5fd; transform: translateY(-2px); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 22px rgba(124, 58, 237, .3); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .95fr 1.05fr; gap: 44px; align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.about-media::before { content: ''; position: absolute; inset: -14px -14px auto auto; width: 120px; height: 120px; background: var(--grad); border-radius: 24px; opacity: .18; z-index: -1; }
.about-copy p { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 16px; }
.about-copy strong { color: var(--ink); }
.about-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.feat { display: flex; gap: 12px; align-items: flex-start; }
.feat-ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; background: rgba(124, 58, 237, .09); font-size: 1.3rem; }
.feat strong { display: block; font-family: 'Sora', sans-serif; font-size: .98rem; }
.feat small { color: var(--muted); font-size: .82rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.contact-info {
  background: var(--grad); color: #fff; border-radius: var(--r-lg); padding: 32px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 22px;
}
.ci-item { display: flex; gap: 14px; align-items: center; }
.ci-ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(255, 255, 255, .18); font-size: 1.2rem; }
.ci-item strong { display: block; font-family: 'Sora', sans-serif; font-size: .95rem; }
.ci-item a, .ci-item span { color: rgba(255, 255, 255, .9); font-size: .9rem; }
.ci-item a:hover { text-decoration: underline; }
.ci-socials { display: flex; gap: 12px; margin-top: auto; }
.ci-socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .16); font-size: 1.2rem; transition: transform .25s var(--ease), background .25s; }
.ci-socials a:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .28); }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .95rem; color: var(--ink); background: #fbfbfe;
  border: 1.5px solid var(--line); border-radius: 12px; padding: .8em 1em; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(124, 58, 237, .12); }
.contact-note { font-size: .9rem; font-weight: 700; color: var(--purple); min-height: 1.2em; margin: 0; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- CTA band ---------- */
.cta-band { padding: 30px 0 90px; }
.cta-inner { background: var(--grad); border-radius: 32px; text-align: center; color: #fff; padding: 60px 30px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-inner::before { content: ''; position: absolute; width: 300px; height: 300px; background: rgba(255, 255, 255, .12); border-radius: 50%; top: -120px; right: -60px; }
.cta-inner::after { content: ''; position: absolute; width: 220px; height: 220px; background: rgba(255, 255, 255, .1); border-radius: 50%; bottom: -100px; left: -40px; }
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); position: relative; }
.cta-inner p { margin: 14px 0 26px; opacity: .92; position: relative; }
.cta-inner .btn { position: relative; }

/* ---------- Footer ---------- */
.footer { background: #0f1222; color: #c8cce0; padding: 56px 0 24px; }
.footer .brand { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; }
.footer-brand p { margin-top: 12px; font-size: .9rem; color: #8b90ad; max-width: 280px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer-cols a { display: block; font-size: .88rem; color: #9a9fbd; padding: 4px 0; transition: color .2s; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; color: #7c819a; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.card-grid .place-card { opacity: 0; transform: translateY(28px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.card-grid .place-card.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 420px; max-width: 460px; margin: 10px auto 0; }
  .hero-stats { gap: 28px; }
  .about { grid-template-columns: 1fr; gap: 30px; }
  .about-media img { height: 320px; }
  .contact { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(255, 255, 255, .98); backdrop-filter: blur(14px);
    padding: 14px 22px; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .35s var(--ease); box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .nav-actions .btn-primary { display: none; }
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 70px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .stat strong { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .float-card { width: 200px; }
  .hero-visual { height: 380px; }
  .about-feats { grid-template-columns: 1fr; }
  .cta-inner { padding: 44px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .card-grid .place-card { opacity: 1; transform: none; }
}
