/* ========================================
   AVITUR — Viagens & Turismo
   Atum Fresku Design System
   ======================================== */

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

:root {
  /* Brand — from logo */
  --navy: #1a2d52;
  --navy-deep: #0f1d3a;
  --gold: #c9952b;
  --gold-light: #e0ad3e;
  --teal: #0097a7;
  --green: #2e8b57;
  --ocean: #1976b8;
  --sunset: #e06830;

  /* Neutrals — Atum Fresku style */
  --bg: #F8F7F5;
  --white: #ffffff;
  --border: rgba(0,0,0,0.06);
  --text-1: #0f172a;
  --text-2: #64748b;
  --text-3: #94a3b8;

  /* Fonts — Atum Fresku standard */
  --font: 'Outfit', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --max-w: 1200px;
  --px: clamp(1.25rem, 5vw, 2rem);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-2);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Noise overlay — AF pattern */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---- Shared ---- */
.mono-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex; align-items: center; gap: 0.4rem;
}
.mono-label i { font-size: 0.75rem; }
.mono-label-light { color: var(--gold-light); }

.accent { color: var(--gold); }
.accent-light { color: var(--gold-light); }

.section { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.section-dark { background: var(--navy-deep); }

.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700; color: var(--text-1);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 0.4rem;
}
.section-head-light h2 { color: var(--white); }
.section-sub { color: var(--text-3); font-size: 0.95rem; margin-top: 0.5rem; }
.section-sub-dark { color: var(--text-3); font-size: 0.95rem; margin-top: 0.5rem; }
.section-head-light .section-sub { color: rgba(255,255,255,0.45); }

/* ---- Reveal ---- */
.reveal, .card, .svc {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in, .card.in, .svc.in {
  opacity: 1; transform: none;
}
.svc:nth-child(2), .card:nth-child(2) { transition-delay: 0.04s; }
.svc:nth-child(3), .card:nth-child(3) { transition-delay: 0.08s; }
.svc:nth-child(4), .card:nth-child(4) { transition-delay: 0.12s; }
.svc:nth-child(5), .card:nth-child(5) { transition-delay: 0.16s; }
.svc:nth-child(6), .card:nth-child(6) { transition-delay: 0.2s; }

.animate-in {
  animation: fadeSlide 0.6s ease both;
  animation-delay: 0.2s;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---- Buttons ---- */
.btn-solid {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  background: var(--gold); color: var(--white);
  border-radius: 10px;
  font-family: var(--font); font-size: 0.88rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: all 0.25s ease;
}
.btn-solid:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,149,43,0.25); }
.btn-full { width: 100%; justify-content: center; }

.btn-glass {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  background: rgba(255,255,255,0.12); color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  font-family: var(--font); font-size: 0.88rem; font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-glass:hover { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.35); }

.btn-outline-light {
  display: inline-flex; align-items: center;
  padding: 0.7rem 1.4rem;
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  font-family: var(--font); font-size: 0.86rem; font-weight: 600;
  cursor: pointer; transition: all 0.25s;
}
.btn-outline-light:hover { background: var(--white); color: var(--navy-deep); border-color: var(--white); }

.btn-book {
  padding: 0.4rem 1rem;
  background: var(--gold); color: var(--white);
  border-radius: 8px; font-size: 0.8rem; font-weight: 600;
  font-family: var(--font);
  border: none; cursor: pointer; transition: all 0.2s;
}
.btn-book:hover { background: var(--gold-light); }

/* ========================================
   NAV — Glassmorphic AF-style
   ======================================== */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; height: 64px;
  display: flex; align-items: center;
  transition: all 0.35s ease;
}
#nav.scrolled {
  background: rgba(248,247,245,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); width: 100%;
  margin: 0 auto; padding: 0 var(--px);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo-img {
  height: 38px;
  filter: brightness(0) invert(1);
  transition: all 0.35s ease;
}
#nav.scrolled .nav-logo-img { filter: none; height: 34px; }

.nav-links { display: flex; gap: 0.25rem; }
.nav-links a {
  padding: 0.4rem 0.8rem;
  font-size: 0.84rem; font-weight: 500;
  color: rgba(255,255,255,0.7);
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
#nav.scrolled .nav-links a { color: var(--text-2); }
#nav.scrolled .nav-links a:hover { color: var(--text-1); background: rgba(0,0,0,0.04); }

.nav-right { display: flex; align-items: center; gap: 0.5rem; }
.nav-wa {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  background: #25d366; color: var(--white);
  border-radius: 8px; font-size: 0.8rem; font-weight: 600;
  transition: all 0.2s;
}
.nav-wa:hover { background: #1fb855; }
.nav-wa span { display: none; }
.lang-switch {
  display: flex; gap: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px; padding: 2px;
}
.lang-btn {
  padding: 0.25rem 0.5rem;
  background: none; border: none;
  color: rgba(255,255,255,0.45);
  font-family: var(--mono); font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 4px; cursor: pointer;
  transition: all 0.2s;
}
.lang-btn:hover { color: rgba(255,255,255,0.8); }
.lang-btn.active { background: rgba(255,255,255,0.15); color: var(--white); }
#nav.scrolled .lang-switch { background: rgba(0,0,0,0.04); }
#nav.scrolled .lang-btn { color: var(--text-3); }
#nav.scrolled .lang-btn:hover { color: var(--text-1); }
#nav.scrolled .lang-btn.active { background: rgba(0,0,0,0.06); color: var(--text-1); }

.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.4rem; cursor: pointer; }
#nav.scrolled .nav-toggle { color: var(--text-1); }

/* ========================================
   HERO
   ======================================== */
#hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(15,29,58,0.8) 0%, rgba(15,29,58,0.45) 50%, rgba(15,29,58,0.1) 100%),
    linear-gradient(to top, rgba(15,29,58,0.35) 0%, transparent 30%);
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%; padding: 0 var(--px);
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 3rem;
}
.hero-content { max-width: 540px; padding-top: 2rem; }
.hero-logo {
  flex-shrink: 0;
  animation-delay: 0.4s;
}
.hero-logo img {
  width: clamp(220px, 28vw, 400px);
  filter: brightness(0) invert(1);
  opacity: 0.75;
}
.hero-content .mono-label { color: var(--gold-light); margin-bottom: 1rem; }

#hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.hero-p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 440px;
}
.hero-ctas { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ========================================
   SERVIÇOS
   ======================================== */
#servicos { background: var(--bg); }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.svc {
  display: flex; flex-direction: column;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: all 0.3s ease;
  position: relative;
  color: inherit;
}
.svc:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  border-color: transparent;
}
.svc:hover .svc-link { opacity: 1; }

/* Featured card — spans full width */
.svc-featured {
  grid-column: 1 / -1;
  flex-direction: row; align-items: center; gap: 1.5rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, #eef6fa, #f0f7ff);
  border-color: rgba(0,151,167,0.12);
}
.svc-featured .svc-ico { flex-shrink: 0; width: 56px; height: 56px; font-size: 1.4rem; }
.svc-featured h3 { font-size: 1.1rem; }
.svc-featured .svc-link { margin-top: 0; }

.svc-badge {
  position: absolute; top: -0.5rem; right: 1rem;
  padding: 0.2rem 0.6rem;
  background: var(--teal); color: var(--white);
  font-family: var(--mono); font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 4px;
}

.svc-link {
  font-size: 0.82rem; font-weight: 600;
  color: var(--teal);
  margin-top: auto; padding-top: 0.5rem;
  opacity: 0;
  transition: opacity 0.25s;
}
.svc-featured .svc-link { opacity: 1; }

.svc-ico {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 1.15rem;
  margin-bottom: 0.85rem;
}
.svc-fire  { background: #fff3e0; color: var(--sunset); }
.svc-plane { background: #e0f7fa; color: var(--teal); }
.svc-bed   { background: #fef3e2; color: var(--gold); }
.svc-map   { background: #e8f5e9; color: var(--green); }
.svc-car   { background: #e3f2fd; color: var(--ocean); }
.svc-globe { background: #fce4ec; color: #c2185b; }

.svc h3 {
  font-size: 1rem; font-weight: 600;
  color: var(--text-1); margin-bottom: 0.35rem;
}
.svc p { font-size: 0.87rem; line-height: 1.6; }

/* ========================================
   RESERVAR
   ======================================== */
.tabs {
  display: flex; justify-content: center;
  gap: 0.3rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.tab {
  padding: 0.45rem 1.1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  border-radius: 8px;
  font-family: var(--font); font-size: 0.82rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.tab:hover { color: var(--white); background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }
.tab.active { background: var(--gold); border-color: var(--gold); color: var(--white); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
}
.card-img { position: relative; overflow: hidden; }
.card-img img {
  width: 100%; height: 185px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-img img { transform: scale(1.04); }
.card-tag {
  position: absolute; top: 0.6rem; right: 0.6rem;
  padding: 0.2rem 0.6rem;
  background: var(--sunset); color: var(--white);
  font-family: var(--mono); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 6px;
}
.card-body { padding: 1.1rem 1.25rem 1.25rem; }
.card-cat {
  font-family: var(--mono);
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-light);
}
.card-body h3 {
  font-size: 1.05rem; font-weight: 600;
  color: var(--white);
  margin: 0.25rem 0 0.35rem;
}
.card-body > p {
  font-size: 0.84rem; color: rgba(255,255,255,0.45);
  line-height: 1.55; margin-bottom: 0.65rem;
}
.card-meta {
  display: flex; gap: 0.75rem; margin-bottom: 0.8rem; flex-wrap: wrap;
}
.card-meta span {
  display: flex; align-items: center; gap: 0.2rem;
  font-size: 0.72rem; color: rgba(255,255,255,0.3);
}
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.card-price small { display: block; font-size: 0.65rem; color: rgba(255,255,255,0.35); line-height: 1; }
.card-price strong { font-size: 1.05rem; color: var(--gold-light); font-weight: 700; }

/* Flight cards — no image, route display */
.card-flight { border-left: 3px solid var(--teal); }
.card-flight .card-body { padding-top: 1.25rem; }
.card-route {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 0.85rem 0;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.card-airport { text-align: center; }
.card-airport strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.15rem; font-weight: 500;
  color: var(--white);
  letter-spacing: 0.05em;
}
.card-airport small {
  font-size: 0.68rem; color: rgba(255,255,255,0.35);
}
.card-route-line {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  color: var(--teal);
  font-size: 0.9rem;
}
.card-route-line::before,
.card-route-line::after {
  content: '';
  position: absolute;
  top: 50%;
  height: 1px;
  background: rgba(255,255,255,0.12);
}
.card-route-line::before { left: 0; right: 55%; }
.card-route-line::after { left: 55%; right: 0; }

.booking-cta { text-align: center; margin-top: 2.5rem; }
.booking-cta p { color: rgba(255,255,255,0.35); font-size: 0.88rem; margin-bottom: 0.6rem; }

/* ========================================
   CONTACTO
   ======================================== */
#contacto { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: start;
}
.contact-left .mono-label { margin-bottom: 0.5rem; }
.contact-left h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; color: var(--text-1);
  margin-bottom: 0.5rem;
}
.contact-desc { font-size: 0.92rem; margin-bottom: 1.5rem; }

.contact-items {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.6rem; margin-bottom: 1.25rem;
}
.ci {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.8rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s;
}
.ci:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.04); transform: translateY(-1px); }
.ci-wa { border-color: rgba(37,211,102,0.12); }
.ci-wa:hover { border-color: rgba(37,211,102,0.25); box-shadow: 0 4px 12px rgba(37,211,102,0.08); }
.ci i { font-size: 1.1rem; color: var(--teal); flex-shrink: 0; }
.ci-wa i { color: #25d366; }
.ci strong { display: block; font-size: 0.76rem; color: var(--text-1); }
.ci span { font-size: 0.76rem; color: var(--text-3); }

.social-row { display: flex; gap: 0.4rem; }
.social-row a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-1); font-size: 0.95rem;
  transition: all 0.2s;
}
.social-row a:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* Form */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.75rem;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.form-card h3 {
  font-size: 1.05rem; font-weight: 600;
  color: var(--text-1); margin-bottom: 1.1rem;
}
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.form-card input,
.form-card select,
.form-card textarea {
  width: 100%; padding: 0.75rem 0.85rem;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 8px; background: var(--bg);
  font-family: var(--font); font-size: 0.87rem;
  color: var(--text-1); outline: none;
  transition: all 0.2s; margin-bottom: 0.5rem;
}
.form-card input::placeholder,
.form-card textarea::placeholder { color: var(--text-3); }
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,151,167,0.08);
  background: var(--white);
}
.form-card textarea { resize: vertical; min-height: 90px; }
.form-card select {
  appearance: none; color: var(--text-3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 7L1 3h8z' fill='%2394a3b8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2rem;
}

/* ========================================
   FOOTER
   ======================================== */
#footer {
  background: var(--navy-deep);
  padding: 2.5rem 0 1.25rem;
}
.footer-row {
  display: flex; justify-content: space-between;
  align-items: center; gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}
.footer-logo {
  height: 30px;
  filter: brightness(0) invert(1);
  margin-bottom: 0.3rem;
}
.footer-brand p { font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.78rem; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex; justify-content: space-between;
  padding-top: 1.25rem; flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom span { font-size: 0.7rem; color: rgba(255,255,255,0.15); }
.footer-bottom a { color: var(--gold); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (min-width: 640px) {
  .nav-wa span { display: inline; }
}

@media (max-width: 900px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(248,247,245,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column; padding: 0.6rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text-2) !important; padding: 0.6rem 0.8rem; border-radius: 8px; }
  .nav-links a:hover { color: var(--text-1) !important; background: rgba(0,0,0,0.03); }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-items { grid-template-columns: 1fr; }
  .form-2col { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 550px) {
  .services { grid-template-columns: 1fr; }
  .svc-featured { flex-direction: column; align-items: flex-start; }
  .svc-link { opacity: 1; }
  .cards { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas a { width: 100%; justify-content: center; }
  .hero-logo { display: none; }
}