/*
Theme Name: Radha Core
Theme URI: https://host.webux.space
Author: Avoar / WebUX
Author URI: https://webux.space
Description: Tema oficial minimalista (Vanilla CSS) para hotéis boutique, focado em performance, soberania digital e desintermediação (Slow Web).
Version: 1.0.0
Text Domain: radha-core
*/

/* =================================================_
   1. VARIÁVEIS GLOBAIS (:ROOT) & IDENTIDADE VISUAL
   ================================================= */
  :root {
      --bg-color: #faf8f5;
      --text-primary: #1a1a1a;
      --text-secondary: #666666;
      --accent-color: #8c7a6b;
      --border-subtle: #eae6df;
      --border-medium: #dce1e7;
      --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      --container-max: 1200px;
      --transition-smooth: all 0.3s ease;
      --radius-sm: 4px;
      --radius-md: 8px;
      --radius-lg: 12px;
      --radius-pill: 999px;
      --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
      --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
      --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

      /* Propriedades dinâmicas (geradas por inc/dynamic-css.php) */
      --hero-overlay-start: rgba(10, 10, 10, 0.08);
      --hero-overlay-mid:   rgba(10, 10, 10, 0.20);
      --hero-overlay-end:   rgba(10, 10, 10, 0.55);
      --booking-blur: 12px;
      --text-scale: 100%;

      /*
       * Multiplicador da Escala de Texto, usado dentro de calc() por quem
       * não consegue herdar a escala da raiz. O plugin WP Hotel Booking
       * dimensiona os seus textos em píxeis, e a raiz não os alcança, por
       * isso é repetido explicitamente em cada tamanho.
       */
      --text-scale-factor: 1;
    }

/* =================================================_
   2. RESET & ESTILOS BASE (VANILLA)
   ================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

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

/* =================================================_
   3. TIPOGRAFIA GLOBAL
   ================================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.25;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* =================================================_
   4. LAYOUT & CONTAINERS COMPARTILHADOS
   ================================================= */

.text-center {
    text-align: center;
}

/* Acessibilidade — conteúdo visível apenas para leitores de tela */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* ==================================================
   12. RODAPÉ — MENU DE NAVEGAÇÃO (.footer-nav)
   ==================================================
   Substitui o bloco anterior, que usava `margin: 5%` /
   `padding: 2.5%` + `display: inline-block`. As percentagens
   em margin/padding resolvem contra a largura do content box
   e não contra a altura, o que gerava folgas verticais
   enormes e desalinhava a lista. `inline-block` também
   impedia que a lista ocupasse a largura do rodapé e
   deixava os dois menus antigos colados sem separação.

   Agora a lista é um flex que envolve, centrado e com
   `gap` — sem espaços mortos — e o marcador `square` fica
   dentro da caixa (`list-style-position: inside`) para não
   ser cortado quando a lista é estreita. */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.75rem;
    width: 100%;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

/* Num contentor flex os <li> são flex items, que não geram marcadores —
   a lista fica sem bullets, à mesma guilda dos botões sociais acima.
   Numa versão futura com bullets, é preciso `display: list-item` +
   `list-style: square` e `list-style-position: inside`. */
.footer-nav li {
    margin: 0;
    padding: 0;
}

.footer-nav a {
    display: inline-block;
    padding: 0.25rem 0;
    color: var(--text-secondary, #666666);
    text-decoration: none;
    transition: color 0.25s ease;
}

@media (hover: hover) {
    .footer-nav a:hover {
        color: var(--accent-color, #8c7a6b);
    }
}

/* Anel de foco visível apenas via teclado. */
.footer-nav a:focus-visible {
    outline: 2px solid var(--accent-color, #8c7a6b);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .footer-nav a {
        transition: none;
    }
}
/* =================================================_
   5. BOTÕES E ELEMENTOS DE INTERAÇÃO
   ================================================= */
.radha-btn {
    display: inline-block;
    background-color: var(--text-primary);
    color: #ffffff;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.radha-btn:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}

.radha-link-btn {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 2px;
    transition: var(--transition-smooth);
}

.radha-link-btn:hover {
    color: var(--accent-color);
}

/* =================================================
   MENU OFF-CANVAS — Slide from Right (Push Content)
   Loads on all pages
   ================================================= */

/* Menu Toggle — Standalone, Fixed Top Right (above all elements) */
.menu-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--bg-color, #faf8f5);
    border: 1px solid var(--border-subtle, #eae6df);
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.menu-toggle:hover {
    background: #ffffff;
    border-color: var(--accent-color, #8c7a6b);
    transform: scale(1.05);
}

.menu-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(140, 122, 107, 0.4), 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-color, #8c7a6b);
}

.menu-toggle[aria-expanded="true"] {
    background: #ffffff;
    border-color: var(--accent-color, #8c7a6b);
}

.menu-toggle-icon {
    position: relative;
    width: 22px;
    height: 2px;
    background: var(--text-primary, #1a1a1a);
    border-radius: 2px;
    transition: background 0.2s ease, transform 0.3s ease;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-primary, #1a1a1a);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), top 0.3s ease, bottom 0.3s ease;
}

.menu-toggle-icon::before {
    top: -7px;
}

.menu-toggle-icon::after {
    bottom: -7px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
}

.menu-toggle:active .menu-toggle-icon {
    transform: scale(0.95);
}

/* Menu Wrapper — Off-Canvas Full Height, Slide from Right */
.menu-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    padding: 5rem 2rem 2rem 2rem;
    background: #ffffff;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 400;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

.menu-wrapper.is-open {
    transform: translateX(0);
}

/* Overlay — cobre o conteúdo quando menu aberto */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 390;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.menu-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Botão fechar dentro do menu — canto esquerdo para não sobrepor o menu-toggle */
.menu-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-subtle, #eae6df);
    border-radius: 2px;
    cursor: pointer;
    color: var(--text-primary, #1a1a1a);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-close:hover {
    background: var(--bg-color, #faf8f5);
    border-color: var(--accent-color, #8c7a6b);
}

.menu-close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(140, 122, 107, 0.4);
}

/* Lista de navegação dentro do menu */
.menu-wrapper .primary-menu-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-wrapper .primary-menu-list > li {
    width: 100%;
    border-bottom: 1px solid var(--border-subtle, #eae6df);
}

.menu-wrapper .primary-menu-list > li:last-child {
    border-bottom: none;
}

.menu-wrapper .primary-menu-list a {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-primary, #1a1a1a);
    text-decoration: none;
    border-radius: 0;
    transition: color 0.2s ease;
}

.menu-wrapper .primary-menu-list a:hover {
    color: var(--accent-color, #8c7a6b);
}

.menu-wrapper .primary-menu-list .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0.25rem 0 0.5rem 1rem;
    border-top: 1px solid var(--border-subtle, #eae6df);
    list-style: none;
    margin: 0;
}

.menu-wrapper .primary-menu-list .sub-menu a {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary, #666666);
}

/* ==================================================
   13. RODAPÉ — BOTÕES SOCIAIS (.footer-social)
   ==================================================
   Botões circulares, centrados e com espaçamento regular.
   O `gap` do flex substitui o `padding` dos <li>: sem espaço
   morto e sem o desalinhamento que o inline-block + os espaços
   em branco entre <li> provocavam.
   O tamanho do ícone é controlado aqui, não no SVG inline,
   para que a "Escala de Texto" o acompanhe. */
/*
 * Separação entre o conteúdo e o rodapé. A borda usa --border-subtle, que é
 * exatamente a opção "Bordas" do Customizer — por isso acompanha qualquer
 * paleta que o utilizador escolha, em vez de fixar um cinzão destoado.
 */
.footer-inner {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle, #eae6df);
}

.footer-social {
    width: 100%;
    margin: 0 0 1.25rem;
    text-align: left;
}

.footer-social ul.social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.625rem;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-social .social-links li {
    display: block;
    margin: 0 2px 0 0;
    padding: 0;
    line-height: 0; /* neutraliza o gap da baseline do SVG inline */
}

.footer-social .social-links li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 2px;
    line-height: 1;
    color: var(--text-primary, #666666);
    text-decoration: none;
    background: transparent;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.footer-social .social-links li a svg {
    display: block;
    flex: none;
    width: calc(1.1rem * var(--text-scale-factor, 1));
    height: calc(1.1rem * var(--text-scale-factor, 1));
}

/* Alvos de toque confortáveis quando não há hover (telemóvel/tablet). */
@media (hover: none), (max-width: 767px) {
    .footer-social .social-links li a {
        width: 2.7rem;
        height: 2.7rem;
    }
}

@media (hover: hover) {
    .footer-social .social-links li a:hover {
        color: #ffffff;
        background-color: var(--accent-color, #8c7a6b);
        border-color: var(--accent-color, #8c7a6b);
        transform: translateY(-2px);
    }
}

/* Anel de foco visível apenas via teclado. */
.footer-social .social-links li a:focus-visible {
    outline: 2px solid var(--accent-color, #8c7a6b);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .footer-social .social-links li a {
        transition: none;
    }

    .footer-social .social-links li a:hover {
        transform: none;
    }
}

/* Desktop — off-canvas universal (mesmo comportamento mobile) */
@media (min-width: 1024px) {
    .menu-toggle { display: flex !important; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .menu-toggle,
    .menu-toggle-icon,
    .menu-toggle-icon::before,
    .menu-toggle-icon::after,
    .menu-wrapper,
    .menu-overlay,
    body.menu-open #content,
    body.menu-open .site-header,
    body.menu-open .radha-hero-fullscreen,
    body.menu-open .radha-diferenciais,
    body.menu-open .radha-promocoes,
    body.menu-open .radha-journal,
    body.menu-open .wphb-room-tmpl-dates-available,
    body.menu-open .radha-search-results,
    body.menu-open footer {
        transition: none !important;
        animation: none !important;
    }
}

/* ==================================================
   14. RODAPÉ — ALINHAMENTO E TAMANHO DOS ELEMENTOS
   ==================================================
   Logo, menu, redes sociais e copyright alinhados
   com botões e texto proporcionais em todas as telas. */

/* Container do rodapé com flexbox para alinhar elementos */
.site-footer .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
    padding-top: 2.5rem;
    padding-bottom: 2rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Logo / título do site no rodapé — tamanho reduzido */
.site-footer .site-title,
.site-footer .custom-logo {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.site-footer .site-title a {
    color: var(--text-primary, #1a1a1a);
    text-decoration: none;
}

.site-footer .custom-logo {
    max-height: 40px;
    width: auto;
}

/* Menu do rodapé — lista vertical alinhada à esquerda */
.site-footer .footer-nav {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.site-footer .footer-nav li {
    margin: 0.375rem 0;
    padding: 0;
}

.site-footer .footer-nav a {
    color: var(--text-primary, #1a1a1a);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.2s ease;
    display: block;
}

.site-footer .footer-nav a:hover {
    color: var(--accent-color, #8c7a6b);
}

/* Botões sociais — tamanho consistente */
.site-footer .footer-social .social-links li a {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border-subtle, #eae6df);
    border-radius: 50%;
    background: var(--bg-color, #faf8f5);
}

.site-footer .footer-social .social-links li a svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Botões sociais em mobile — alvos de toque maiores */
@media (hover: none), (max-width: 767px) {
    .site-footer .footer-social .social-links li a {
        width: 3rem;
        height: 3rem;
    }
    
    .site-footer .footer-social .social-links li a svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* Texto de copyright */
.site-footer .footer-copy {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary, #666666);
    text-align: left;
}

/* Desktop — menu em lista vertical, logo menor, alinhamento à esquerda */
@media (min-width: 768px) {
    .site-footer .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        text-align: left;
        padding-top: 3rem;
        padding-bottom: 2.5rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .site-footer .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        text-align: left;
        flex: 1;
    }
    
    .site-footer .site-title,
    .site-footer .custom-logo {
        font-size: 1.5rem;
    }
    
    .site-footer .custom-logo {
        max-height: 50px;
    }
    
    .site-footer .footer-nav {
        display: block;
        gap: 0;
    }
    
    .site-footer .footer-nav li {
        margin: 0.375rem 0;
    }
    
    .site-footer .footer-nav a {
        font-size: 0.95rem;
        display: block;
    }
    
    .site-footer .footer-copy {
        font-size: 0.875rem;
        text-align: left;
    }
}