/*
MAPA INTERNO
Arquivo: assets/css/public.css
Função: visual público estilo cards/botões, responsivo para celular e PC, com título discreto, modal com mídia e botão flutuante de WhatsApp.
*/

* { box-sizing: border-box; }

:root {
    --primary: #9b7547;
    --secondary: #f7efe5;
    --text: #352817;
    --muted: #746454;
    --white: #fffaf4;
    --shadow: 0 20px 60px rgba(46, 31, 14, .18);
    --radius: 26px;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 10%, rgba(255,255,255,.9), transparent 32%),
        linear-gradient(145deg, var(--secondary), #fffaf4 55%, #efe1d1);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0 20%, rgba(255,255,255,.34) 20% 23%, transparent 23% 100%),
        linear-gradient(65deg, transparent 0 55%, rgba(255,255,255,.26) 55% 58%, transparent 58% 100%);
}

button, a { -webkit-tap-highlight-color: transparent; }

.qr-page {
    width: min(100%, 980px);
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    padding-bottom: max(88px, env(safe-area-inset-bottom));
}

.hero {
    min-height: 235px;
    display: flex;
    align-items: flex-end;
    background-position: center;
    background-size: cover;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    box-shadow: var(--shadow);
}

.hero.without-photo {
    background:
        linear-gradient(135deg, rgba(61,45,28,.68), rgba(155,117,71,.94)),
        radial-gradient(circle at 70% 20%, rgba(255,255,255,.24), transparent 36%);
}

.hero-content {
    width: 100%;
    padding: 70px 24px 24px;
    color: white;
    text-shadow: 0 2px 16px rgba(0,0,0,.28);
}

.eyebrow {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(10px);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 720px;
    margin: 12px 0 6px;
    font-size: clamp(1.45rem, 4vw, 2.55rem);
    line-height: 1.08;
    letter-spacing: -.035em;
    font-weight: 750;
}

.hero p {
    margin: 0;
    font-size: clamp(.95rem, 2.1vw, 1.15rem);
    opacity: .94;
    font-weight: 500;
}

.intro-card {
    margin: -18px 18px 18px;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255,250,244,.92);
    border: 1px solid rgba(155,117,71,.14);
    box-shadow: 0 12px 36px rgba(53,40,23,.10);
    backdrop-filter: blur(12px);
    position: relative;
    z-index: 2;
}

.intro-card p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 0 18px 22px;
}

.service-card {
    border: 0;
    min-height: 142px;
    border-radius: 20px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 92%, white 8%), var(--primary));
    color: #fffaf4;
    box-shadow: 0 12px 28px rgba(85, 61, 34, .18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 8%, rgba(255,255,255,.22), transparent 38%);
    opacity: .8;
    pointer-events: none;
}

.service-card:hover,
.service-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(85, 61, 34, .28);
    outline: none;
}

.service-card:active { transform: scale(.98); }

.service-icon {
    min-height: 58px;
    display: grid;
    place-items: center;
    font-size: 3.1rem;
    line-height: 1;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.service-icon img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,.12));
}

.service-title {
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 700;
    font-size: .92rem;
    line-height: 1.25;
    text-align: center;
    position: relative;
    z-index: 1;
}

.site-footer {
    margin: 4px 18px 0;
    padding: 18px;
    text-align: center;
    color: var(--muted);
    font-weight: 600;
}

.floating-whatsapp {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 24;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--text);
}

.floating-whatsapp-label {
    font-size: .75rem;
    line-height: 1;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255,250,244,.88);
    color: var(--muted);
    box-shadow: 0 8px 18px rgba(53,40,23,.10);
}

.floating-whatsapp-button {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary) 88%, #ffffff 12%);
    color: #fffaf4;
    box-shadow: 0 12px 30px rgba(46,31,14,.28);
    border: 1px solid rgba(255,255,255,.35);
}

.floating-whatsapp-button svg {
    width: 29px;
    height: 29px;
    fill: currentColor;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: end center;
    padding: 14px;
    background: rgba(35, 24, 12, .54);
    backdrop-filter: blur(7px);
}

.modal-backdrop[hidden] { display: none; }

.modal {
    width: min(100%, 720px);
    max-height: min(88vh, 760px);
    overflow: auto;
    border-radius: 28px;
    background: #fffaf4;
    box-shadow: 0 28px 90px rgba(0,0,0,.35);
    padding: 18px;
    position: relative;
    animation: modalIn .18s ease-out;
}

@keyframes modalIn {
    from { opacity: .3; transform: translateY(20px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: sticky;
    top: 0;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(53,40,23,.1);
    color: var(--text);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 3;
}

.modal-media {
    width: 100%;
    margin: 2px 0 16px;
    border-radius: 22px;
    overflow: hidden;
    background: #eadaca;
    border: 1px solid rgba(155,117,71,.14);
}

.modal-image,
.modal-video {
    width: 100%;
    max-height: 340px;
    display: block;
    object-fit: cover;
    background: #eadaca;
}

.modal-image[hidden],
.modal-video[hidden] { display: none; }

.modal h2 {
    margin: 2px 4px 12px;
    font-size: clamp(1.45rem, 4.5vw, 2.08rem);
    letter-spacing: -.03em;
}

.modal-body {
    margin: 0 4px 18px;
    white-space: pre-wrap;
    line-height: 1.62;
    color: #473622;
    font-size: 1.02rem;
}

.modal-actions {
    display: grid;
    gap: 10px;
    margin: 10px 4px 12px;
}

.modal-actions a,
.modal-back {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    border: 0;
    cursor: pointer;
}

.modal-actions a {
    background: var(--primary);
    color: white;
}

.modal-back {
    width: calc(100% - 8px);
    margin: 0 4px 4px;
    background: #efe1d1;
    color: var(--text);
    font-size: 1rem;
}

@media (min-width: 720px) {
    .qr-page { padding-inline: 24px; }
    .hero { border-radius: 0 0 38px 38px; min-height: 340px; }
    .intro-card { margin-inline: 38px; }
    .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-inline: 38px; }
    .service-card { min-height: 158px; border-radius: 24px; }
    .modal-backdrop { place-items: center; }
}

@media (max-width: 370px) {
    .hero { min-height: 215px; }
    .service-grid { gap: 12px; padding-inline: 12px; }
    .service-card { min-height: 132px; padding: 14px 8px; }
    .service-title { font-size: .82rem; }
    .service-icon { font-size: 2.7rem; }
}


/* V3 - página pública por cabana */
.empty-services {
    grid-column: 1 / -1;
    padding: 22px;
    border-radius: 20px;
    background: rgba(255,250,244,.9);
    border: 1px solid rgba(155,117,71,.14);
    color: var(--muted);
    text-align: center;
    font-weight: 700;
}

.empty-state {
    display: grid;
    place-items: center;
    padding: 20px;
}

.not-found-card {
    margin: 0;
    max-width: 560px;
}

.not-found-card h1 {
    margin: 0 0 8px;
    letter-spacing: -.04em;
}



/* V3.2 - cabeçalho mais discreto e guia rápido no cartão */
.hero-content {
    padding: 86px 22px 22px;
}

.hero h1 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(1.22rem, 4.5vw, 2rem);
    line-height: 1.12;
    font-weight: 760;
}

.intro-card {
    padding: 14px 18px;
}

.intro-card .intro-title {
    color: var(--text);
    font-size: .98rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.intro-extra {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.5;
    text-align: center;
    font-size: .92rem;
}

.intro-extra p,
.intro-extra h1,
.intro-extra h2,
.intro-extra h3,
.intro-extra h4 {
    margin: 0 0 8px;
}

.modal-body {
    white-space: normal;
}

.modal-body p,
.modal-body h1,
.modal-body h2,
.modal-body h3,
.modal-body h4 {
    margin: 0 0 12px;
}

.modal-body h1,
.modal-body h2,
.modal-body h3,
.modal-body h4 {
    line-height: 1.2;
    color: var(--text);
}

.modal-body ul,
.modal-body ol {
    margin: 0 0 14px 24px;
    padding: 0;
}

.modal-body li {
    margin: 4px 0;
}

.modal-body blockquote {
    margin: 12px 0;
    padding: 12px 14px;
    border-left: 4px solid var(--primary);
    border-radius: 14px;
    background: #f7efe5;
}

.modal-body a {
    color: var(--primary);
    font-weight: 800;
}

.site-footer p,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4 {
    margin: 0 0 8px;
}
