/* =========================================================
   Hotel Carioca — Rio de Janeiro
   Paleta institucional: #3E4095
   Estilo: moderno, minimalista, elegante
   ========================================================= */

:root {
  --brand: #3E4095;
  --brand-600: #34367e;
  --brand-700: #2a2c68;
  --brand-050: #f2f2fb;
  --brand-100: #e6e6f5;
  --ink: #1a1a24;
  --body: #4a4a57;
  --muted: #8a8a97;
  --line: #e7e7ee;
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --gold: #c8a95c;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(26,26,36,.06), 0 1px 2px rgba(26,26,36,.04);
  --shadow: 0 10px 30px -12px rgba(42,44,104,.22);
  --shadow-lg: 0 24px 60px -20px rgba(42,44,104,.35);
  --container: 1200px;
  --ff-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ff-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  color: var(--body);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { color: var(--ink); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }
.section--brand { background: var(--brand); color: #dfe0f3; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--gold); display: inline-block; }
.section--brand .eyebrow { color: #b9bbef; }

.h-display {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: -.01em;
  color: var(--ink);
}
.section--brand .h-display { color: #fff; }
.lead { font-size: 1.12rem; color: var(--body); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--brand); --_fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  background: var(--_bg); color: var(--_fg); border: 1.5px solid var(--_bg);
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: var(--brand-600); border-color: var(--brand-600); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--ghost { --_bg: transparent; --_fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { --_bg:#fff; --_fg: var(--brand); border-color:#fff; }
.btn--light:hover { background: var(--brand-050); border-color: var(--brand-050); }
.btn--lg { padding: 17px 38px; font-size: 1rem; }
.btn--wa { --_bg:#25D366; --_fg:#0a3d20; border-color:#25D366; }
.btn--wa:hover { background:#1eb457; border-color:#1eb457; color:#fff; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
  padding: 18px 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; z-index: 2; }
.brand img { height: 80px; width: auto; transition: height .3s var(--ease); }
.header.stuck { background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px); box-shadow: var(--shadow-sm); padding: 12px 0; }
.header.stuck .brand img { height: 62px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-size: .92rem; font-weight: 500; color: #fff; 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(--gold);
  transition: width .28s var(--ease);
}
.nav__links a:hover::after, .nav__links a:focus-visible::after { width: 100%; }
.header.stuck .nav__links a, .header.stuck .brand-name { color: var(--ink); }
.header.stuck .brand .logo-white { display:none; }
.header.stuck .brand .logo-color { display:block; }
.brand .logo-color { display:none; }

.nav__cta { display: inline-flex; }
.header.stuck .nav__cta.btn { }

.menu-toggle {
  display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer;
  position: relative; z-index: 2;
}
.menu-toggle span { display:block; width: 26px; height: 2px; background: #fff; margin: 5px auto; transition: .3s var(--ease); }
.header.stuck .menu-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content:""; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(105deg, rgba(28,29,72,.92) 0%, rgba(42,44,104,.72) 42%, rgba(26,26,36,.35) 100%);
}
.hero__inner { padding-top: 140px; padding-bottom: 90px; max-width: 760px; }
.hero h1 {
  font-family: var(--ff-display); color:#fff; font-weight: 600;
  font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.04; letter-spacing: -.015em;
  margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: #cfd0f2; }
.hero p { font-size: 1.2rem; color: #e7e7f4; max-width: 54ch; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta {
  display:flex; flex-wrap:wrap; gap: 28px; margin-top: 48px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero__meta div { }
.hero__meta strong { display:block; font-family: var(--ff-display); font-size: 1.9rem; color:#fff; font-weight:600; line-height:1; }
.hero__meta span { font-size: .84rem; color:#c7c8e6; letter-spacing:.04em; }
.scroll-cue {
  position:absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color:#c7c8e6; font-size:.72rem; letter-spacing:.2em; text-transform:uppercase; display:flex;
  flex-direction:column; align-items:center; gap:8px; z-index:1;
}
.scroll-cue::after { content:""; width:1px; height:34px; background: linear-gradient(#c7c8e6, transparent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0%{transform:scaleY(.2);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 100%{transform:scaleY(.2);transform-origin:bottom} }

/* ---------- Trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); }
.trust__grid { display:grid; grid-template-columns: repeat(4,1fr); }
.trust__item { padding: 26px 20px; text-align:center; border-right: 1px solid var(--line); }
.trust__item:last-child { border-right: 0; }
.trust__item svg { width: 26px; height:26px; color: var(--brand); margin: 0 auto 10px; }
.trust__item b { display:block; color: var(--ink); font-size: .98rem; }
.trust__item span { font-size: .82rem; color: var(--muted); }

/* ---------- About ---------- */
.about__grid { display:grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px,6vw,90px); align-items:center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 3/4; object-fit: cover; width:100%; }
.about__badge {
  position:absolute; left: -26px; bottom: 34px; background:#fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 26px; text-align:center; max-width: 190px;
}
.about__badge b { font-family: var(--ff-display); font-size: 2.6rem; color: var(--brand); display:block; line-height:1; }
.about__badge span { font-size:.8rem; color: var(--muted); letter-spacing:.04em; }
.about__text .lead { margin-bottom: 22px; }
.sign { font-family: var(--ff-display); font-style: italic; font-size: 1.5rem; color: var(--brand); margin-top: 8px; }

/* ---------- Rooms ---------- */
.rooms__grid { display:grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.room {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden;
  display:flex; flex-direction:column; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.room:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.room__media { position:relative; aspect-ratio: 16/10; overflow:hidden; }
.room__media img { width:100%; height:100%; object-fit:cover; transition: transform .7s var(--ease); }
.room:hover .room__media img { transform: scale(1.06); }
.room__tag {
  position:absolute; top:14px; left:14px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  color: var(--brand); font-size:.76rem; font-weight:600; letter-spacing:.06em; padding:7px 13px; border-radius:999px;
}
.room__body { padding: 26px 26px 28px; display:flex; flex-direction:column; flex:1; }
.room__body h3 { font-family: var(--ff-display); font-size: 1.7rem; margin-bottom: 6px; }
.room__specs { display:flex; flex-wrap:wrap; gap: 8px 16px; margin: 4px 0 16px; color: var(--muted); font-size:.86rem; }
.room__specs span { display:inline-flex; align-items:center; gap:6px; }
.room__specs svg { width:16px;height:16px;color:var(--brand); }
.room__body p { font-size: .96rem; color: var(--body); margin-bottom: 20px; }
.room__foot { margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:16px; padding-top: 18px; border-top: 1px solid var(--line); }
.room__amen { display:flex; gap:10px; color: var(--brand); }
.room__amen svg { width:19px;height:19px; }
.room .btn { padding: 11px 22px; font-size:.88rem; }

/* ---------- Amenities ---------- */
.amen__grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.amen__card {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius-sm); padding: 28px 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.amen__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.amen__ico { width:48px;height:48px;border-radius:12px;background:var(--brand-050);display:grid;place-items:center;margin-bottom:16px; }
.amen__ico svg { width:24px;height:24px;color:var(--brand); }
.amen__card h4 { font-size:1.05rem; margin-bottom:6px; }
.amen__card p { font-size:.9rem; color:var(--muted); margin:0; }

/* ---------- Gallery ---------- */
.gallery { display:grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery figure { margin:0; overflow:hidden; border-radius: var(--radius-sm); }
.gallery img { width:100%; height:100%; object-fit:cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.07); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

/* ---------- Location ---------- */
.loc__grid { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,64px); align-items:center; }
.loc__list { margin: 26px 0 30px; }
.loc__list li { display:flex; gap:14px; padding:14px 0; border-bottom:1px solid var(--line); }
.loc__list li:last-child{border-bottom:0;}
.loc__list svg { width:22px;height:22px;color:var(--brand);flex:none;margin-top:2px; }
.loc__list b { color: var(--ink); display:block; font-size:.98rem; }
.loc__list span { font-size:.9rem; color: var(--muted); }
.loc__map { border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); border:1px solid var(--line); }
.loc__map iframe { width:100%; height: 460px; border:0; display:block; filter: grayscale(.2); }

/* ---------- Tips ---------- */
.tips__grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.tip { padding: 30px; border-radius: var(--radius); background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); transition: background .3s; }
.tip:hover { background: rgba(255,255,255,.11); }
.tip b { font-family: var(--ff-display); font-size: 1.35rem; color:#fff; display:block; margin-bottom:8px; }
.tip p { color:#c4c5e6; font-size:.92rem; margin:0; }
.tip__n { font-size:.78rem; color:#a7a9e0; letter-spacing:.14em; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width:100%; text-align:left; background:none; border:0; cursor:pointer;
  padding: 24px 44px 24px 0; font-size: 1.1rem; font-weight:600; color: var(--ink);
  position:relative; font-family: var(--ff-sans);
}
.faq__q::after {
  content:"+"; position:absolute; right:6px; top:50%; transform:translateY(-50%);
  font-size:1.6rem; font-weight:300; color: var(--brand); transition: transform .3s var(--ease);
}
.faq__item.open .faq__q::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { max-height:0; overflow:hidden; transition: max-height .4s var(--ease); }
.faq__a p { padding: 0 44px 24px 0; margin:0; color: var(--body); }

/* ---------- Reserve / Contact ---------- */
.reserve__grid { display:grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px,6vw,80px); align-items:center; }
.reserve__info h2 { color:#fff; }
.reserve__info .lead { color:#d7d8f0; }
.contact-lines { margin-top: 30px; display:grid; gap: 16px; }
.contact-lines a, .contact-lines div { display:flex; align-items:center; gap:14px; color:#e7e7f6; font-size:1.02rem; }
.contact-lines svg { width:22px;height:22px;color:#b9bbef;flex:none; }
.card-form {
  background:#fff; border-radius: var(--radius); padding: clamp(26px,4vw,40px); box-shadow: var(--shadow-lg);
}
.card-form h3 { font-family: var(--ff-display); font-size:1.7rem; margin-bottom:6px; }
.card-form > p { color: var(--muted); font-size:.92rem; margin-bottom:22px; }
.field { margin-bottom:16px; }
.field label { display:block; font-size:.82rem; font-weight:600; color: var(--ink); margin-bottom:7px; }
.field input, .field select, .field textarea {
  width:100%; padding: 13px 15px; border:1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .96rem; color: var(--ink); background:#fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-050); }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.card-form .btn { width:100%; margin-top:6px; }
.form-note { font-size:.78rem; color: var(--muted); text-align:center; margin: 14px 0 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color:#b9b9c6; padding: 72px 0 30px; }
.footer__grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer h4 { color:#fff; font-size:.95rem; letter-spacing:.04em; margin-bottom:18px; }
.footer a { color:#b9b9c6; font-size:.92rem; transition: color .2s; }
.footer a:hover { color:#fff; }
.footer__links li { margin-bottom:11px; }
.footer__brand img { height: 50px; margin-bottom: 18px; }
.footer__brand p { font-size:.9rem; color:#8f8f9e; max-width: 34ch; }
.footer__bottom { border-top:1px solid rgba(255,255,255,.1); padding-top:26px; display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; font-size:.82rem; color:#7b7b8a; }
.footer__bottom a { color:#9a9aa9; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display:flex; align-items:center; gap:12px; background:#25D366; color:#fff;
  padding: 13px 20px 13px 15px; border-radius: 999px; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  font-weight:600; font-size:.92rem; transition: transform .3s var(--ease), box-shadow .3s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.02); }
.wa-float svg { width:26px;height:26px; flex:none; }
.wa-float span { display:flex; flex-direction:column; line-height:1.15; }
.wa-float span small { font-weight:400; font-size:.74rem; opacity:.9; }

/* ---------- Reveal animation ---------- */
.reveal { opacity:0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity:1; transform:none; }
.reveal.d1{transition-delay:.08s}.reveal.d2{transition-delay:.16s}.reveal.d3{transition-delay:.24s}.reveal.d4{transition-delay:.32s}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about__grid, .loc__grid, .reserve__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 460px; margin: 0 auto; }
  .about__badge { left: 10px; }
  .trust__grid { grid-template-columns: repeat(2,1fr); }
  .trust__item:nth-child(2){border-right:0;}
  .trust__item:nth-child(1),.trust__item:nth-child(2){border-bottom:1px solid var(--line);}
  .amen__grid { grid-template-columns: repeat(2,1fr); }
  .tips__grid { grid-template-columns: 1fr; }
  .reserve__info { order: -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links, .nav__cta { display: none; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; background: var(--brand); flex-direction: column; justify-content:center;
    gap: 0; transform: translateX(100%); transition: transform .4s var(--ease); z-index: 1;
  }
  .nav.open { transform: none; }
  .nav__links { display: flex; flex-direction: column; gap: 4px; text-align:center; }
  .nav__links a { color:#fff; font-size: 1.35rem; font-family: var(--ff-display); padding: 12px 0; }
  .header.stuck .nav__links a { color:#fff; }
  .nav__cta { display:inline-flex; margin-top: 18px; }
  /* Menu aberto: neutraliza o backdrop-filter do header (que prendia o overlay)
     e garante a barra na cor da marca, com logo/ícone brancos */
  .header.menu-open { background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; }
  .header.menu-open .logo-white { display: block !important; }
  .header.menu-open .logo-color { display: none !important; }
  .header.menu-open .menu-toggle span { background:#fff !important; }
  .menu-toggle.open span { background:#fff!important; }
  .menu-toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .menu-toggle.open span:nth-child(2){opacity:0;}
  .menu-toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
  .rooms__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2,1fr); grid-auto-rows: 150px; }
  .gallery .wide { grid-column: span 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .field-row { grid-template-columns: 1fr; }
  .hero__meta { gap: 20px; }
  .wa-float span { display:none; }
  .wa-float { padding: 14px; }
}
@media (max-width: 420px) {
  .amen__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity:1; transform:none; transition:none; }
}
