/* ============================================================
     STAYLUX — DESIGN TOKENS
     Paleta: preto/branco/cinza + dourado (#D4AF37) como assinatura.
     Assinatura visual: motivo de "cartão de embarque / cartão-chave
     de hotel" — bordas finas douradas, divisores perfurados,
     rótulos-código em caixa alta com tracking largo — reforçando a
     ideia de viagem e hospedagem premium sem recorrer a clichês
     genéricos de SaaS (gradientes, cards flutuantes aleatórios).
     ============================================================ */
  :root{
    --black:#0b0b0b;
    --ink:#141312;
    --charcoal:#1c1b19;
    --white:#faf9f6;
    --cream:#f3efe8;
    --line-light:#e7e2d8;
    --line-dark:#332f28;
    --gray:#726c62;
    --gray-soft:#a39c8f;
    --gold:#d4af37;
    --gold-soft:#e8d9a8;
    --gold-deep:#a9832a;

    --bg:var(--white);
    --bg-alt:var(--cream);
    --surface:#ffffff;
    --text:var(--black);
    --text-muted:var(--gray);
    --border:var(--line-light);
    --shadow-color:220,20%,10%;

    --radius-s:10px;
    --radius-m:16px;
    --radius-l:26px;
    --ease:cubic-bezier(.22,1,.36,1);
  }

  [data-theme="dark"]{
    --bg:var(--black);
    --bg-alt:var(--ink);
    --surface:var(--charcoal);
    --text:var(--white);
    --text-muted:var(--gray-soft);
    --border:var(--line-dark);
  }

  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    font-family:'Inter', system-ui, sans-serif;
    background:var(--bg);
    color:var(--text);
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
    transition:background .4s var(--ease), color .4s var(--ease);
  }
  img{max-width:100%; display:block;}
  a{color:inherit; text-decoration:none;}
  button{font-family:inherit; cursor:pointer;}
  ul{list-style:none;}

  .wrap{max-width:1280px; margin:0 auto; padding:0 32px;}

  ::selection{background:var(--gold); color:var(--black);}

  /* focus visibility for accessibility */
  a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible{
    outline:2px solid var(--gold);
    outline-offset:3px;
    border-radius:4px;
  }

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

  /* ---------- eyebrow / ticket-code label (signature element) ---------- */
  .eyebrow{
    display:inline-flex; align-items:center; gap:10px;
    font-size:12px; font-weight:600; letter-spacing:.22em; text-transform:uppercase;
    color:var(--gold-deep);
  }
  [data-theme="dark"] .eyebrow{color:var(--gold-soft);}
  .eyebrow::before{
    content:""; width:22px; height:1px; background:var(--gold);
  }

  .perforation{
    position:relative;
    height:1px;
    background-image:repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 14px);
    opacity:.55;
  }

  /* ---------- top nav ---------- */
  header{
    position:fixed; top:0; left:0; right:0; z-index:100;
    padding:22px 0;
    transition:background .4s var(--ease), padding .3s var(--ease), border-color .4s var(--ease);
    border-bottom:1px solid transparent;
  }
  header.scrolled{
    background:color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter:blur(14px);
    padding:14px 0;
    border-bottom:1px solid var(--border);
  }
  .nav-row{display:flex; align-items:center; justify-content:space-between; gap:24px;}
  .logo{
    font-size:20px; font-weight:700; letter-spacing:.02em;
    display:flex; align-items:center; gap:8px;
  }
  .logo span{color:var(--gold);}
  .nav-links{display:flex; gap:34px; font-size:14px; font-weight:500;}
  .nav-links a{
    position:relative; padding:4px 0; color:var(--text);
    opacity:.82; transition:opacity .25s var(--ease);
  }
  .nav-links a::after{
    content:""; position:absolute; left:0; bottom:-2px; height:1px; width:0;
    background:var(--gold); transition:width .3s var(--ease);
  }
  .nav-links a:hover{opacity:1;}
  .nav-links a:hover::after{width:100%;}
  .nav-actions{display:flex; align-items:center; gap:14px;}

  .theme-toggle{
    width:40px; height:40px; border-radius:50%;
    border:1px solid var(--border); background:var(--surface);
    display:flex; align-items:center; justify-content:center;
    color:var(--text); transition:transform .3s var(--ease), border-color .3s;
  }
  .theme-toggle:hover{transform:rotate(20deg); border-color:var(--gold);}
  .theme-toggle svg{width:18px; height:18px;}
  .theme-toggle .sun{display:none;}
  [data-theme="dark"] .theme-toggle .moon{display:none;}
  [data-theme="dark"] .theme-toggle .sun{display:block;}

  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    padding:14px 26px; border-radius:999px; font-size:14px; font-weight:600;
    letter-spacing:.01em; border:1px solid transparent; white-space:nowrap;
    transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
  }
  .btn-gold{
    background:var(--gold); color:#181500;
  }
  .btn-gold:hover{ transform:translateY(-2px); box-shadow:0 14px 30px -10px rgba(212,175,55,.55);}
  .btn-outline{
    background:transparent; color:var(--text); border-color:var(--border);
  }
  .btn-outline:hover{ border-color:var(--gold); transform:translateY(-2px);}
  .btn-sm{padding:10px 18px; font-size:13px;}
  .nav-actions .btn{padding:11px 20px; font-size:13px;}

  .menu-btn{display:none; width:40px; height:40px; align-items:center; justify-content:center; border:1px solid var(--border); border-radius:50%; background:var(--surface); color:var(--text);}

  /* ---------- HERO ---------- */
  .hero{
    position:relative; height:100vh; min-height:640px;
    display:flex; align-items:center; justify-content:center;
    overflow:hidden;
  }
  .hero-bg{
    position:absolute; inset:0; z-index:0;
    background-image:linear-gradient(180deg, rgba(6,6,6,.35) 0%, rgba(6,6,6,.55) 55%, rgba(6,6,6,.88) 100%),
      url('https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=2000&q=80');
    background-size:cover; background-position:center;
    will-change:transform;
  }
  .hero-frame{
    position:absolute; inset:20px; z-index:1; border:1px solid rgba(212,175,55,.35);
    border-radius:28px; pointer-events:none;
  }
  .hero-frame::before, .hero-frame::after{
    content:""; position:absolute; width:26px; height:26px; border-color:var(--gold);
  }
  .hero-frame::before{top:-1px; left:-1px; border-top:2px solid var(--gold); border-left:2px solid var(--gold); border-top-left-radius:28px;}
  .hero-frame::after{bottom:-1px; right:-1px; border-bottom:2px solid var(--gold); border-right:2px solid var(--gold); border-bottom-right-radius:28px;}

  .hero-content{
    position:relative; z-index:2; text-align:center; color:#fff;
    padding:0 24px; max-width:900px;
  }
  .hero-content .eyebrow{color:var(--gold-soft); justify-content:center;}
  .hero-content .eyebrow::before{display:none;}
  .hero-title{
    font-size:clamp(38px, 6.4vw, 76px);
    font-weight:200; line-height:1.04; letter-spacing:-.02em;
    margin:22px 0 20px;
  }
  .hero-title em{font-style:normal; color:var(--gold); font-weight:400;}
  .hero-sub{
    font-size:clamp(15px, 1.6vw, 19px); color:rgba(255,255,255,.82);
    max-width:560px; margin:0 auto 36px; font-weight:300; line-height:1.6;
  }
  .hero-ctas{display:flex; gap:16px; justify-content:center; flex-wrap:wrap;}
  .btn-ghost-light{
    background:rgba(255,255,255,.08); color:#fff; border:1px solid rgba(255,255,255,.4);
    backdrop-filter:blur(6px);
  }
  .btn-ghost-light:hover{background:rgba(255,255,255,.18); transform:translateY(-2px);}

  .scroll-cue{
    position:absolute; bottom:150px; left:50%; transform:translateX(-50%);
    z-index:2; color:rgba(255,255,255,.7); display:flex; flex-direction:column; align-items:center; gap:8px;
    font-size:11px; letter-spacing:.2em; text-transform:uppercase;
    animation:bob 2.4s ease-in-out infinite;
  }
  @keyframes bob{0%,100%{transform:translate(-50%,0);}50%{transform:translate(-50%,8px);}}

  /* ---------- search "boarding pass" bar ---------- */
  .search-dock{
    position:relative; z-index:3;
    margin-top:-92px;
  }
  .search-card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius-l);
    box-shadow:0 30px 60px -20px hsl(var(--shadow-color) / .35);
    display:grid;
    grid-template-columns:1.3fr 1fr 1fr .9fr auto;
    align-items:stretch;
  }
  .search-field{
    padding:18px 24px; border-right:1px solid var(--border);
    display:flex; flex-direction:column; gap:6px; min-width:0;
  }
  .search-field:last-of-type{border-right:none;}
  .search-field label{
    font-size:10.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--text-muted);
  }
  .search-field input, .search-field select{
    border:none; background:transparent; font-size:14.5px; font-weight:500; color:var(--text);
    font-family:inherit; padding:0; width:100%;
  }
  .search-field input::placeholder{color:var(--gray-soft);}
  .search-submit{
    display:flex; align-items:center; justify-content:center; padding:0 8px;
  }
  .search-submit .btn{height:100%; width:100%; border-radius:0 var(--radius-l) var(--radius-l) 0; padding:0 30px;}

  @media (max-width:980px){
    .search-card{grid-template-columns:1fr 1fr;}
    .search-field{border-right:1px solid var(--border); border-bottom:1px solid var(--border);}
    .search-submit{grid-column:1/-1;}
    .search-submit .btn{border-radius:var(--radius-m); margin:14px; height:auto; padding:16px;}
  }

  /* ---------- section shell ---------- */
  section{padding:120px 0;}
  .section-head{
    display:flex; align-items:flex-end; justify-content:space-between; gap:24px;
    margin-bottom:56px; flex-wrap:wrap;
  }
  .section-title{
    font-size:clamp(28px, 3.4vw, 42px); font-weight:300; letter-spacing:-.01em; margin-top:14px; max-width:560px;
  }
  .section-title b{font-weight:600; color:var(--gold-deep);}
  [data-theme="dark"] .section-title b{color:var(--gold);}
  .section-desc{color:var(--text-muted); max-width:420px; font-size:15px; line-height:1.7;}

  .reveal{opacity:0; transform:translateY(28px); transition:opacity .8s var(--ease), transform .8s var(--ease);}
  .reveal.in-view{opacity:1; transform:none;}

  /* ---------- hotel cards ---------- */
  .hotel-grid{
    display:grid; grid-template-columns:repeat(4, 1fr); gap:28px;
  }
  @media (max-width:1100px){.hotel-grid{grid-template-columns:repeat(2,1fr);}}
  @media (max-width:620px){.hotel-grid{grid-template-columns:1fr;}}

  .hotel-card{
    border-radius:var(--radius-m); overflow:hidden; background:var(--surface);
    border:1px solid var(--border);
    transition:transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  }
  .hotel-card:hover{
    transform:translateY(-8px);
    box-shadow:0 28px 50px -18px hsl(var(--shadow-color) / .4);
    border-color:var(--gold-soft);
  }
  .hotel-media{position:relative; aspect-ratio:4/3.1; overflow:hidden;}
  .hotel-media img{width:100%; height:100%; object-fit:cover; transition:transform .7s var(--ease);}
  .hotel-card:hover .hotel-media img{transform:scale(1.09);}
  .fav-btn{
    position:absolute; top:14px; right:14px; width:36px; height:36px; border-radius:50%;
    background:rgba(10,10,10,.45); backdrop-filter:blur(6px); border:1px solid rgba(255,255,255,.3);
    display:flex; align-items:center; justify-content:center; color:#fff; z-index:2;
    transition:transform .25s var(--ease), background .25s;
  }
  .fav-btn:hover{transform:scale(1.1);}
  .fav-btn svg{width:17px; height:17px; transition:fill .25s, stroke .25s;}
  .fav-btn.active svg{fill:var(--gold); stroke:var(--gold);}
  .hotel-price-tag{
    position:absolute; left:14px; bottom:14px; z-index:2;
    background:rgba(255,255,255,.92); color:#141312;
    padding:7px 13px; border-radius:999px; font-size:12.5px; font-weight:700;
  }
  .hotel-price-tag span{font-weight:400; color:var(--gray); font-size:11px;}

  .hotel-body{padding:20px 22px 22px;}
  .hotel-city{
    font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--gold-deep);
    display:flex; align-items:center; gap:6px; margin-bottom:8px;
  }
  [data-theme="dark"] .hotel-city{color:var(--gold);}
  .hotel-city svg{width:13px; height:13px;}
  .hotel-name{font-size:18.5px; font-weight:600; margin-bottom:10px; letter-spacing:-.01em;}
  .hotel-meta{display:flex; align-items:center; gap:8px; margin-bottom:16px;}
  .stars{display:flex; gap:2px; color:var(--gold);}
  .stars svg{width:14px; height:14px; fill:var(--gold);}
  .review-count{font-size:12.5px; color:var(--text-muted);}
  .hotel-foot{display:flex; align-items:center; justify-content:space-between; padding-top:14px; border-top:1px solid var(--border);}
  .hotel-cta{
    font-size:13px; font-weight:600; display:flex; align-items:center; gap:6px; color:var(--text);
  }
  .hotel-cta svg{width:14px; height:14px; transition:transform .3s var(--ease);}
  .hotel-card:hover .hotel-cta svg{transform:translateX(4px);}

  .grid-foot-cta{display:flex; justify-content:center; margin-top:52px;}

  /* ---------- destinations ---------- */
  .dest-grid{
    display:grid; grid-template-columns:repeat(4,1fr); gap:20px;
  }
  @media (max-width:1100px){.dest-grid{grid-template-columns:repeat(3,1fr);}}
  @media (max-width:760px){.dest-grid{grid-template-columns:repeat(2,1fr);}}
  .dest-card{
    position:relative; border-radius:var(--radius-m); overflow:hidden; aspect-ratio:3/3.6;
    isolation:isolate;
  }
  .dest-card img{width:100%; height:100%; object-fit:cover; transition:transform .8s var(--ease);}
  .dest-card::after{
    content:""; position:absolute; inset:0; z-index:1;
    background:linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.82) 100%);
  }
  .dest-card:hover img{transform:scale(1.12);}
  .dest-info{position:absolute; left:0; right:0; bottom:0; z-index:2; padding:20px; color:#fff;}
  .dest-info h3{font-size:19px; font-weight:600; margin-bottom:4px;}
  .dest-info p{font-size:12.5px; color:rgba(255,255,255,.78);}

  /* ---------- why choose us ---------- */
  .bg-alt{background:var(--bg-alt);}
  .why-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--border); border:1px solid var(--border); border-radius:var(--radius-m); overflow:hidden;}
  @media (max-width:900px){.why-grid{grid-template-columns:repeat(2,1fr);}}
  .why-card{background:var(--surface); padding:38px 30px; transition:background .3s var(--ease);}
  .why-card:hover{background:var(--bg-alt);}
  .why-icon{
    width:48px; height:48px; border-radius:50%; border:1px solid var(--gold-soft);
    display:flex; align-items:center; justify-content:center; margin-bottom:22px; color:var(--gold-deep);
  }
  [data-theme="dark"] .why-icon{color:var(--gold);}
  .why-icon svg{width:22px; height:22px;}
  .why-card h3{font-size:17px; font-weight:600; margin-bottom:8px;}
  .why-card p{font-size:13.5px; color:var(--text-muted); line-height:1.6;}

  /* ---------- testimonials ---------- */
  .testi-wrap{position:relative; max-width:760px; margin:0 auto; text-align:center;}
  .testi-track{position:relative; min-height:250px;}
  .testi-slide{
    position:absolute; inset:0; opacity:0; transform:translateY(14px); pointer-events:none;
    transition:opacity .6s var(--ease), transform .6s var(--ease);
    display:flex; flex-direction:column; align-items:center;
  }
  .testi-slide.active{opacity:1; transform:none; pointer-events:auto; position:relative;}
  .testi-avatar{width:64px; height:64px; border-radius:50%; object-fit:cover; margin-bottom:18px; border:2px solid var(--gold-soft);}
  .testi-stars{display:flex; gap:3px; color:var(--gold); margin-bottom:20px;}
  .testi-stars svg{width:15px; height:15px; fill:var(--gold);}
  .testi-quote{font-size:clamp(17px,2vw,22px); font-weight:300; line-height:1.6; margin-bottom:22px;}
  .testi-name{font-weight:600; font-size:14.5px;}
  .testi-country{font-size:12.5px; color:var(--text-muted);}
  .testi-dots{display:flex; gap:8px; justify-content:center; margin-top:30px;}
  .testi-dots button{width:8px; height:8px; border-radius:50%; background:var(--border); border:none; padding:0; transition:background .3s, width .3s;}
  .testi-dots button.active{background:var(--gold); width:22px; border-radius:6px;}

  /* ---------- gallery masonry ---------- */
  .masonry{
    columns:4 260px; column-gap:18px;
  }
  @media (max-width:760px){.masonry{columns:2 200px;}}
  .masonry-item{
    break-inside:avoid; margin-bottom:18px; border-radius:var(--radius-m); overflow:hidden;
    cursor:zoom-in; position:relative;
  }
  .masonry-item img{width:100%; display:block; transition:transform .6s var(--ease);}
  .masonry-item:hover img{transform:scale(1.06);}
  .masonry-item::after{
    content:"";position:absolute; inset:0; background:linear-gradient(180deg, transparent 60%, rgba(0,0,0,.5)); opacity:0; transition:opacity .3s;
  }
  .masonry-item:hover::after{opacity:1;}

  .lightbox{
    position:fixed; inset:0; z-index:1000; background:rgba(6,6,6,.92);
    display:none; align-items:center; justify-content:center; padding:40px;
    backdrop-filter:blur(6px);
  }
  .lightbox.open{display:flex;}
  .lightbox img{max-width:min(1100px,90vw); max-height:85vh; border-radius:14px; box-shadow:0 40px 80px rgba(0,0,0,.5);}
  .lightbox-close{
    position:absolute; top:28px; right:32px; width:44px; height:44px; border-radius:50%;
    background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.3); color:#fff;
    display:flex; align-items:center; justify-content:center;
  }

  /* ---------- map ---------- */
  .map-shell{
    position:relative; border-radius:var(--radius-l); overflow:hidden; border:1px solid var(--border);
    aspect-ratio:16/7; background:var(--bg-alt);
  }
  .map-shell svg{width:100%; height:100%; display:block;}
  .map-pin{cursor:pointer;}
  .map-pin circle.pulse{animation:pulse 2.4s ease-out infinite;}
  @keyframes pulse{
    0%{opacity:.5; r:6;}
    100%{opacity:0; r:20;}
  }
  .map-tooltip{
    position:absolute; transform:translate(-50%,-115%); background:var(--surface); color:var(--text);
    border:1px solid var(--border); border-radius:10px; padding:8px 12px; font-size:12.5px; font-weight:600;
    white-space:nowrap; pointer-events:none; opacity:0; transition:opacity .2s; box-shadow:0 10px 25px hsl(var(--shadow-color)/.25);
  }
  .map-tooltip.show{opacity:1;}

  /* ---------- newsletter ---------- */
  .newsletter{
    background:var(--black); color:#fff; border-radius:var(--radius-l);
    padding:70px 60px; text-align:center; position:relative; overflow:hidden;
  }
  .newsletter::before{
    content:""; position:absolute; inset:0; opacity:.5;
    background:radial-gradient(circle at 20% 20%, rgba(212,175,55,.16), transparent 55%),
               radial-gradient(circle at 80% 80%, rgba(212,175,55,.12), transparent 55%);
  }
  .newsletter > *{position:relative; z-index:1;}
  .newsletter h2{font-size:clamp(26px,3.4vw,38px); font-weight:300; margin:16px 0 12px;}
  .newsletter p{color:rgba(255,255,255,.65); max-width:440px; margin:0 auto 32px; font-size:14.5px;}
  .newsletter-form{display:flex; gap:12px; max-width:440px; margin:0 auto; flex-wrap:wrap; justify-content:center;}
  .newsletter-form input{
    flex:1; min-width:220px; padding:15px 20px; border-radius:999px; border:1px solid rgba(255,255,255,.25);
    background:rgba(255,255,255,.06); color:#fff; font-size:14px; font-family:inherit;
  }
  .newsletter-form input::placeholder{color:rgba(255,255,255,.5);}
  .newsletter .eyebrow{color:var(--gold-soft); justify-content:center;}
  .newsletter .eyebrow::before{display:none;}

  /* ---------- footer ---------- */
  footer{padding:80px 0 30px; border-top:1px solid var(--border); margin-top:20px;}
  .footer-grid{
    display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:60px;
  }
  @media (max-width:800px){.footer-grid{grid-template-columns:1fr 1fr;}}
  .footer-brand p{color:var(--text-muted); font-size:13.5px; line-height:1.7; margin-top:14px; max-width:280px;}
  .footer-col h4{font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--text-muted); margin-bottom:18px;}
  .footer-col ul li{margin-bottom:11px;}
  .footer-col ul li a{font-size:14px; opacity:.85; transition:opacity .2s, color .2s;}
  .footer-col ul li a:hover{opacity:1; color:var(--gold-deep);}
  [data-theme="dark"] .footer-col ul li a:hover{color:var(--gold);}
  .social-row{display:flex; gap:12px; margin-top:16px;}
  .social-row a{
    width:38px; height:38px; border-radius:50%; border:1px solid var(--border);
    display:flex; align-items:center; justify-content:center; transition:border-color .25s, transform .25s;
  }
  .social-row a:hover{border-color:var(--gold); transform:translateY(-3px);}
  .social-row svg{width:16px; height:16px;}
  .footer-bottom{
    display:flex; justify-content:space-between; align-items:center; padding-top:26px; border-top:1px solid var(--border);
    font-size:12.5px; color:var(--text-muted); flex-wrap:wrap; gap:12px;
  }

  /* ---------- utility / responsive nav ---------- */
  @media (max-width:940px){
    .nav-links{display:none;}
    .menu-btn{display:flex;}
    section{padding:80px 0;}
    .search-dock{margin-top:-60px;}
    .newsletter{padding:50px 26px;}
  }

  /* skip link for a11y */
  .skip-link{
    position:absolute; left:-999px; top:0; background:var(--gold); color:#111; padding:12px 18px; z-index:2000; border-radius:0 0 8px 0;
  }
  .skip-link:focus{left:0;}
