/* =========================================================================
   Rise Urban Art Hotel — layout global
   Header (mega menu), footer e banner de consentimento.
   Medidas tiradas do site original (Elementor) em 1440, 1024 e 390 px.
   ========================================================================= */

/* ============================== HEADER ============================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-white);
  box-shadow: var(--shadow-header);
}
.site-header__inner {
  display: grid;
  grid-template-columns: 15% 1fr 10.05% 15%;
  grid-template-areas: "logo nav whats book";
  align-items: stretch;
  max-width: 1440px; height: var(--header-h);
  margin-inline: auto;
}
.site-header__logo { grid-area: logo; display: flex; align-items: center; justify-content: center; padding: 10px; }
.site-header__logo img { width: 146px; height: 35px; object-fit: contain; }
.site-header__whatsapp {
  grid-area: whats; display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  padding: 10px; color: var(--c-whatsapp); font-size: 14px; font-weight: 400; line-height: 1.6;
}
.site-header__whatsapp:hover { color: var(--c-accent); }
.site-header__whatsapp .icon { width: 14px; height: 14px; }
.site-header__book { grid-area: book; display: flex; align-items: center; padding: 10px; }
.site-header__book .btn { width: 100%; }

/* ---------- Navegação ---------- */
.nav { grid-area: nav; display: flex; justify-content: flex-end; }
.nav__toggle { display: none; }
.nav__menu, .nav__sub { list-style: none; margin: 0; padding: 0; }
.nav__menu { display: flex; gap: 30px; height: 100%; }
.nav__item { position: relative; display: flex; }
.nav__link {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 30px 4px; border: 0; background: none; cursor: pointer;
  font-family: var(--font-cond); font-size: var(--fs-nav); font-weight: 500; line-height: 1; text-transform: uppercase;
  color: var(--c-text); white-space: nowrap;
}
.nav__link::before { /* "overline" do Elementor, animação "drop-in" */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--c-accent); opacity: 0; transform: translateY(-10px); transition: opacity .3s, transform .3s;
}
.nav__arrow { width: 11px; height: 11px; }
.nav__sub {
  position: absolute; top: 100%; left: 0; z-index: 10;
  display: none; min-width: 156px; width: max-content; margin-top: -15px;
  background: var(--c-white); border: 1px solid var(--c-bg-light-2); box-shadow: var(--shadow-dropdown);
}
.nav__sub a, .nav__sub .nav__sublink {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 15px 20px 15px 28px; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--font); font-size: 16px; font-weight: 300; line-height: 20px; letter-spacing: .1px; text-transform: uppercase;
  color: var(--c-text); white-space: nowrap; transition: background-color .2s, color .2s;
}
.nav__sub a[aria-current="page"] { background: var(--c-secondary); color: var(--c-white); }
.nav__sub .nav__sub { top: -1px; left: 100%; margin-top: 0; }
.nav__sub .nav__arrow { width: 9px; height: 9px; }

@media (min-width: 1025px) {
  .nav__item:hover > .nav__link::before, .nav__item:focus-within > .nav__link::before, .nav__link[aria-expanded="true"]::before,
  .nav__item.is-current > .nav__link::before { opacity: 1; transform: none; }
  .nav__menu li:hover > .nav__sub, .nav__menu li:focus-within > .nav__sub, [aria-expanded="true"] + .nav__sub { display: block; }
  .nav__sub li { position: relative; }
  .nav__sub li:hover > a, .nav__sub li:hover > .nav__sublink, .nav__sub a:focus-visible, .nav__sub .nav__sublink:focus-visible,
  .nav__sublink[aria-expanded="true"] { background: var(--c-primary); color: var(--c-white); }
}

/* ---------- Tablet e mobile: menu "hambúrguer" ---------- */
@media (max-width: 1024px) {
  .site-header__inner {
    grid-template-columns: 20% 1fr 22% 8%;
    grid-template-areas: "logo whats book nav";
    padding: 4px;
  }
  .site-header__whatsapp span { display: none; }
  .site-header__whatsapp .icon { width: 24px; height: 24px; }
  .nav { justify-content: flex-end; align-items: center; }
  .nav__toggle {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; padding: 6.25px; border: 0; background: none; cursor: pointer;
    color: var(--c-text); font-size: 25px; transition: color .2s;
  }
  .nav__toggle:hover, .nav__toggle[aria-expanded="true"] { color: var(--c-accent); }
  .nav__toggle .icon { width: 25px; height: 25px; }
  .nav__toggle .icon--close, .nav--open .nav__toggle .icon--open { display: none; }
  .nav--open .nav__toggle .icon--close { display: block; }

  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; gap: 0; height: auto;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    background: var(--c-white); border: 1px solid var(--c-bg-light-2); box-shadow: var(--shadow-dropdown);
  }
  .nav--open .nav__menu { display: flex; }
  .nav__item { flex-direction: column; }
  .nav__link, .nav__sub a, .nav__sub .nav__sublink {
    justify-content: flex-start; width: 100%; padding: 15px 25px;
    font-family: var(--font); font-size: var(--fs-text); font-weight: 300; line-height: 20px; text-transform: uppercase;
  }
  .nav__link { line-height: 1; }
  .nav__link::before { display: none; }
  .nav__link[aria-expanded="true"], .nav__sublink[aria-expanded="true"] { background: var(--c-primary); color: var(--c-white); }
  .nav__sub, .nav__sub .nav__sub {
    position: static; width: auto; min-width: 0; margin: 0;
    border: 0; box-shadow: none;
  }
  [aria-expanded="true"] + .nav__sub { display: block; }
  .nav__sub a, .nav__sub .nav__sublink { padding-left: 33px; }   /* 25px + recuo de 8px do Elementor */
  .nav__sub .nav__sub a { padding-left: 41px; }
  .nav__sub .nav__arrow { transform: rotate(90deg); }
}

@media (max-width: 767px) {
  .site-header__inner { grid-template-columns: 33% 20% 35% 12%; padding: 7px 3px; }
  .site-header__logo { padding: 5px; }
  .site-header__logo img { width: 100%; max-width: 146px; }
  .site-header__whatsapp { padding: 6px; }
  .site-header__book { padding: 3px; }
  .site-header__book .btn { padding: 8px 15px; font-size: 10px; }
}

/* ============================== FOOTER ============================== */
.footer-cta {
  position: relative; isolation: isolate;
  padding: 96px var(--gutter);
  background: url("/wp-content/uploads/2024/07/MemoriesRooftopBar-Drone01-1.webp") -17px -386px / 100% auto no-repeat var(--c-text);
  color: var(--c-white); text-align: center;
}
.footer-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c-text); opacity: .84; }
.footer-cta__inner { max-width: var(--container); margin-inline: auto; padding: 10px; }
.footer-cta__title { margin-bottom: 20px; }
.footer-cta__text { max-width: 600px; margin: 0 auto 62px; }
.footer-cta__kicker { margin-bottom: 20px; }
@media (max-width: 767px) {
  .footer-cta { padding: 56px var(--gutter); background-image: url("/wp-content/uploads/2024/07/BATHt.webp"); background-position: center; background-size: cover; }
}

.site-footer { background: var(--c-text); color: var(--c-bg-light-2); }
.site-footer a { color: var(--c-bg-light-2); }
.site-footer a:hover { color: var(--c-accent); }
.site-footer__main {
  display: grid; grid-template-columns: repeat(5, 1fr);
  max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto;
  padding: 64px var(--gutter);
}
.site-footer__col { padding: 16px 32px; }
.site-footer__col:first-child { padding: 16px 64px 16px 16px; }
.site-footer__col:last-child { padding: 16px; }
.site-footer__logo { display: block; width: 140px; height: 35px; margin: 0 0 16px 1px; object-fit: contain; object-position: left center; }
.site-footer__about { margin-bottom: 34px; }
.site-footer__social { display: flex; gap: 25px; list-style: none; margin: 0; padding: 0; }
.site-footer__social a { display: inline-flex; width: 16px; height: 16px; align-items: center; justify-content: center; color: var(--c-white); }
.site-footer__social .icon { width: 16px; height: 16px; }
.site-footer__title {
  margin-bottom: 20px; padding-left: 7px;
  border-left: 7px solid var(--c-primary);
  color: var(--c-white);
}
.site-footer__list { list-style: none; margin: 0; padding: 0; }
.site-footer__list li { display: flex; align-items: flex-start; gap: 8px; padding-bottom: 7px; }
.site-footer__list .icon { width: 14px; height: 14px; margin-top: 5px; color: var(--c-bg-light-2); }
.site-footer__bottom {
  padding: 32px; border-top: 1px solid rgba(255, 255, 255, .13);
  text-align: center; font-size: var(--fs-small); line-height: 1.6;
}
.site-footer__bottom p { max-width: var(--container); margin-inline: auto; padding: 10px; }

@media (max-width: 1024px) {
  /* tablet, como o Elementor: faixa com 60px; marca em largura cheia e centralizada; depois Hotel/Guests/Help Center em 3 colunas e Reach Us abaixo */
  .footer-cta { padding: 60px 15px; background-position: 0 0; }
  .footer-cta__text { margin-bottom: 44px; }
  .site-footer__main { grid-template-columns: repeat(3, 1fr); padding: 45px 15px; }
  .site-footer__col, .site-footer__col:first-child, .site-footer__col:last-child { padding: 15px; }
  .site-footer__col:first-child { grid-column: 1 / -1; text-align: center; }
  .site-footer__col:first-child .site-footer__logo { margin: 0 auto 15px; object-position: center; }
  .site-footer__social { justify-content: center; }
  .site-footer__bottom { padding: 30px; }
}
@media (max-width: 767px) {
  .site-footer__main { grid-template-columns: 1fr; padding: 28px var(--gutter) 14px; }
  .site-footer__col, .site-footer__col:first-child, .site-footer__col:last-child { padding: 14px; }
  .site-footer__col:first-child { text-align: left; }
  .site-footer__col:first-child .site-footer__logo { margin: 0 0 16px 1px; object-position: left center; }
  .site-footer__social { justify-content: flex-start; }
  .site-footer__bottom { padding: 28px; }
}

/* ======================= CONSENTIMENTO DE COOKIES ======================= */
.cookie-wall { position: fixed; inset: 0; z-index: 9998; background: rgba(0, 0, 0, .7); }
.cookie-banner {
  position: fixed; z-index: 9999; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(526px, 100%); max-height: calc(100vh - 20px); overflow-y: auto;
  padding: 15px 20px; border-radius: 12px; background: var(--c-white); color: #222;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .19), 0 6px 6px rgba(0, 0, 0, .23);
}
.cookie-banner:focus { outline: none; }
.cookie-banner__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid #F2F2F2; }
.cookie-banner__logo { width: 100px; height: 24px; object-fit: contain; }
.cookie-banner__title { font-size: 15px; font-weight: 500; line-height: 1.6; }
.cookie-banner__close { justify-self: end; display: flex; width: 24px; height: 24px; padding: 2px; border: 0; background: none; color: var(--c-text); cursor: pointer; }
.cookie-banner__close .icon { width: 20px; height: 20px; }
.cookie-banner__body { padding: 20px 0 15px; border-bottom: 1px solid #F2F2F2; font-size: 12px; line-height: 18px; }
.cookie-banner__body a { text-decoration: underline; font-size: 12px; }
.cookie-banner__services { display: inline-block; margin: 15px 10px 0; }
.cookie-prefs { margin-top: 15px; display: grid; gap: 8px; }
.cookie-prefs details { border-radius: 6px; background: #F9F9F9; }
.cookie-prefs summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 15px; cursor: pointer; font-size: 14px; font-weight: 500; list-style: none; }
.cookie-prefs summary::-webkit-details-marker { display: none; }
.cookie-prefs p { padding: 0 15px 12px; margin: 0; }
.cookie-prefs__always { color: var(--c-primary); font-size: 12px; font-weight: 500; }
.cookie-switch { position: relative; width: 40px; height: 22px; flex: none; }
.cookie-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cookie-switch span { position: absolute; inset: 0; border-radius: 11px; background: #ccc; transition: background-color .2s; pointer-events: none; }
.cookie-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.cookie-switch input:checked + span { background: var(--c-accent); }
.cookie-switch input:checked + span::after { transform: translateX(18px); }
.cookie-switch input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 15px; }
.cookie-banner__actions .btn { min-height: 45px; padding: 10px; border: 1px solid var(--c-accent); border-radius: 6px; font-size: 15px; font-weight: 500; line-height: 20px; letter-spacing: 2.5px; }
.cookie-banner__actions .btn--light { border-color: #F2F2F2; background: #F9F9F9; color: #333; }
.cookie-banner__actions .btn--light:hover { background: #F2F2F2; color: #333; }
.cookie-banner__docs { display: flex; justify-content: center; gap: 10px; padding-top: 10px; }
.cookie-banner__docs a { font-size: 12px; text-decoration: underline; }
.cookie-manage {
  position: fixed; right: 40px; bottom: 0; z-index: 9990;
  padding: 10px 15px; border: 0; border-radius: 12px 12px 0 0; background: var(--c-white); color: #222;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .19), 0 6px 6px rgba(0, 0, 0, .23);
  font-size: 12px; cursor: pointer;
}
@media (max-width: 767px) {
  .cookie-banner { width: 100%; }
  .cookie-banner__actions { grid-template-columns: 1fr; }
  .cookie-manage { font-size: 11px; right: 20px; }
}
