/*
============================================================
 TEMPORADA EM SC
 Folha de estilos principal
 Arquivo 28 - versão revisada
============================================================
 Mobile-first | Leve | Sem frameworks externos
============================================================
*/

:root {
    --bg: #f5f7f6;
    --surface: #ffffff;
    --surface-soft: #edf4f0;
    --surface-muted: #f8faf9;

    --text: #18221d;
    --text-soft: #617068;
    --border: #dfe7e2;

    --primary: #1f6f50;
    --primary-dark: #154e39;
    --primary-soft: #e9f4ee;

    --whatsapp: #25d366;
    --whatsapp-dark: #0d8f3d;

    --shadow-sm: 0 8px 22px rgba(21, 55, 41, 0.07);
    --shadow-md: 0 18px 48px rgba(21, 55, 41, 0.12);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 30px;

    --container: 1180px;
    --header-height: 76px;

    --transition: 180ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    line-height: 1.18;
    letter-spacing: -0.025em;
}

p:last-child {
    margin-bottom: 0;
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin-inline: auto;
}

.section {
    padding: 64px 0;
}

.section-title {
    margin-bottom: 12px;
    font-size: clamp(1.9rem, 5vw, 2.8rem);
}

.section-subtitle {
    max-width: 720px;
    margin-bottom: 32px;
    color: var(--text-soft);
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 7px 12px;
    border: 1px solid #cee2d7;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--text);
    color: #fff;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}


/*
============================================================
 CABEÇALHO
============================================================
*/

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    width: 100%;

    border-bottom: 1px solid rgba(223, 231, 226, 0.92);

    background: rgba(255, 255, 255, 0.95);

    box-shadow: 0 2px 14px rgba(18, 45, 32, 0.04);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition:
        box-shadow var(--transition),
        background var(--transition);
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.985);
    box-shadow: 0 8px 26px rgba(18, 45, 32, 0.08);
}

.header-container {
    display: flex;
    width: min(calc(100% - 28px), var(--container));
    min-height: var(--header-height);
    margin-inline: auto;

    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.brand-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;

    place-items: center;

    border-radius: 14px;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    color: #fff;

    box-shadow: 0 8px 20px rgba(31, 111, 80, 0.18);
}

.brand-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text strong {
    overflow: hidden;
    max-width: 165px;
    font-size: 0.98rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.brand-text small {
    display: none;
    margin-top: 5px;
    color: var(--text-soft);
    font-size: 0.69rem;
    white-space: nowrap;
}

.desktop-nav {
    display: none;
}

.header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp-top {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 0 13px;

    border-radius: 999px;
    background: var(--whatsapp);
    color: #093c1e;

    font-size: 0.86rem;
    font-weight: 800;

    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.18);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        filter var(--transition);
}

.btn-whatsapp-top:hover {
    filter: brightness(0.97);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.24);
    transform: translateY(-1px);
}

.btn-whatsapp-top span {
    display: none;
}

.menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    padding: 10px;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: var(--surface);
    color: var(--text);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;

    transition:
        transform var(--transition),
        opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;

    padding: 12px 16px 20px;

    border-top: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.mobile-nav[hidden] {
    display: none;
}

.mobile-nav a {
    display: flex;
    min-height: 50px;
    padding: 10px 12px;

    align-items: center;

    border-radius: 11px;

    font-weight: 750;
}

.mobile-nav a:hover {
    background: var(--surface-soft);
}

.mobile-nav .mobile-whatsapp {
    margin-top: 8px;
    justify-content: center;
    background: var(--whatsapp);
    color: #093c1e;
}


/*
============================================================
 HERO
============================================================
*/

.hero {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(7, 24, 17, 0.82) 0%,
            rgba(7, 24, 17, 0.67) 48%,
            rgba(7, 24, 17, 0.35) 100%
        ),
        url('../../img/imoveltemporadasc.jpg');

    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

    color: #ffffff;
}

.hero::before {
    position: absolute;
    content: "";
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.04) 0%,
            rgba(0, 0, 0, 0.18) 100%
        );

    pointer-events: none;
}

.hero-container {
    display: grid;
    width: min(calc(100% - 32px), var(--container));
    min-height: 560px;
    margin-inline: auto;
    padding: 64px 0;

    align-items: center;
    gap: 36px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    max-width: 780px;
    margin-bottom: 20px;
    font-size: clamp(2.35rem, 9vw, 4.9rem);
}

.hero p {
    max-width: 650px;
    margin-bottom: 28px;

    color: rgba(255, 255, 255, 0.90);

    font-size: clamp(1rem, 3.5vw, 1.18rem);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.hero h1 {
    color: #ffffff;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.30);
}

.hero .eyebrow {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/*
============================================================
 BOTÕES
============================================================
*/

.btn {
    display: inline-flex;
    min-height: 50px;
    padding: 12px 20px;

    align-items: center;
    justify-content: center;
    gap: 9px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-weight: 800;
    line-height: 1.2;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    box-shadow: 0 8px 22px rgba(31, 111, 80, 0.18);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    border-color: var(--border);
    background: var(--surface);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: #cdd9d2;
    background: var(--surface-muted);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #093c1e;
}

.btn-whatsapp:hover {
    background: #20c45c;
}


/*
============================================================
 DESTINOS
============================================================
*/

.destinations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.destination-card {
    position: relative;
    display: flex;
    min-height: 200px;
    overflow: hidden;

    padding: 24px;

    align-items: flex-end;

    border-radius: var(--radius-lg);

    background: var(--primary-dark);
    box-shadow: var(--shadow-sm);
    color: #fff;

    isolation: isolate;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.destination-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.destination-card img {
    position: absolute;
    z-index: -2;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 320ms ease;
}

.destination-card:hover img {
    transform: scale(1.03);
}

.destination-card::after {
    position: absolute;
    z-index: -1;
    content: "";
    inset: 0;

    background: linear-gradient(
        180deg,
        rgba(8, 29, 20, 0.04) 18%,
        rgba(8, 29, 20, 0.86) 100%
    );
}

.destination-card h3 {
    margin: 0;
    font-size: 1.45rem;
}


/*
============================================================
 CARDS DE HOSPEDAGENS
============================================================
*/

.properties-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.property-card {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: var(--surface);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.property-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.property-image {
    position: relative;
    display: block;
    overflow: hidden;

    aspect-ratio: 4 / 3;

    background: #e9eeeb;
}

.property-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 320ms ease;
}

.property-card:hover .property-image img {
    transform: scale(1.025);
}

.property-badge {
    position: absolute;
    top: 14px;
    left: 14px;

    padding: 7px 11px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.94);
    color: var(--primary-dark);

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

    font-size: 0.76rem;
    font-weight: 800;
}

.property-body {
    padding: 20px;
}

.property-location {
    margin-bottom: 7px;

    color: var(--primary);

    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.property-title {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.property-description {
    margin-bottom: 18px;
    color: var(--text-soft);
    font-size: 0.94rem;
}

.property-features {
    display: flex;
    margin: 0 0 20px;
    padding: 0;

    flex-wrap: wrap;
    gap: 8px;

    list-style: none;
}

.property-features li {
    padding: 6px 9px;

    border-radius: 9px;

    background: var(--surface-soft);
    color: var(--text-soft);

    font-size: 0.8rem;
    font-weight: 700;
}

.property-footer {
    display: flex;
    padding-top: 16px;

    align-items: center;
    justify-content: space-between;
    gap: 12px;

    border-top: 1px solid var(--border);
}

.property-price {
    color: var(--text-soft);
    font-size: 0.85rem;
}

.property-price strong {
    display: block;
    color: var(--text);
    font-size: 1.15rem;
}


/*
============================================================
 PÁGINA DE HOSPEDAGEM
============================================================
*/

.property-hero {
    padding: 42px 0 28px;

    border-bottom: 1px solid var(--border);

    background:
        radial-gradient(circle at 90% 20%, rgba(31, 111, 80, 0.08), transparent 30%),
        var(--surface);
}

.property-hero h1 {
    max-width: 900px;
    margin-bottom: 10px;

    font-size: clamp(2rem, 7vw, 3.6rem);
}

.property-hero .location {
    max-width: 760px;
    color: var(--text-soft);
}

.gallery {
    display: grid;
    gap: 8px;
}

.gallery img {
    width: 100%;
    height: 100%;
    min-height: 220px;

    border-radius: var(--radius-md);

    background: #e9eeeb;

    object-fit: cover;
}

.property-layout {
    display: grid;
    gap: 28px;
}

.property-content,
.booking-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.property-content {
    padding: 24px;
}

.property-content h2 {
    margin-bottom: 16px;
}

.property-content h3 {
    margin-top: 30px;
    margin-bottom: 12px;
    font-size: 1.18rem;
}

.property-content p {
    color: #344039;
}

.booking-card {
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.booking-card h2 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.booking-card .btn {
    width: 100%;
}


/*
============================================================
 WHATSAPP FLUTUANTE
============================================================
*/

.whatsapp-floating {
    position: fixed;
    z-index: 900;

    right: 18px;
    bottom: 18px;

    display: grid;
    width: 58px;
    height: 58px;

    place-items: center;

    border-radius: 50%;

    background: var(--whatsapp);
    color: #093c1e;

    box-shadow: 0 10px 28px rgba(20, 90, 44, 0.28);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.whatsapp-floating:hover {
    box-shadow: 0 14px 34px rgba(20, 90, 44, 0.34);
    transform: translateY(-3px) scale(1.03);
}


/*
============================================================
 RODAPÉ
============================================================
*/

.site-footer {
    margin-top: 64px;
    padding: 50px 0 24px;

    background: #10251b;
    color: rgba(255, 255, 255, 0.82);
}

.footer-grid {
    display: grid;
    gap: 30px;
}

.site-footer h2,
.site-footer h3 {
    color: #fff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    margin-top: 36px;
    padding-top: 22px;

    flex-direction: column;
    gap: 6px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);

    color: rgba(255, 255, 255, 0.62);

    font-size: 0.84rem;
}

.footer-bottom p {
    margin-bottom: 0;
}


/*
============================================================
 UTILITÁRIOS
============================================================
*/

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

.text-muted {
    color: var(--text-soft);
}

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;

    border: 0;
    margin: -1px;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;
}



@media (max-width: 639px) {

    .hero {
        background-position: 58% center;
    }

    .hero-container {
        min-height: 520px;
    }

}


/*
============================================================
 MOBILE PEQUENO
============================================================
*/

@media (max-width: 389px) {

    .header-container {
        width: min(calc(100% - 20px), var(--container));
    }

    .brand-icon {
        width: 40px;
        height: 40px;
    }

    .brand-text strong {
        max-width: 135px;
        font-size: 0.9rem;
    }

    .btn-whatsapp-top {
        width: 42px;
        min-height: 42px;
        padding: 0;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .property-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .property-footer .btn {
        width: 100%;
    }
}


/*
============================================================
 TABLET
============================================================
*/

@media (min-width: 560px) {

    .brand-text strong {
        max-width: none;
    }

    .brand-text small {
        display: block;
    }

    .btn-whatsapp-top span {
        display: inline;
    }

}

@media (min-width: 640px) {

    .destinations-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .properties-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

}


/*
============================================================
 DESKTOP
============================================================
*/

@media (min-width: 900px) {

    :root {
        --header-height: 82px;
    }

    .section {
        padding: 88px 0;
    }

    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .desktop-nav a {
        padding: 10px 12px;

        border-radius: 999px;

        color: var(--text-soft);

        font-size: 0.91rem;
        font-weight: 750;

        transition:
            background var(--transition),
            color var(--transition);
    }

    .desktop-nav a:hover {
        background: var(--surface-soft);
        color: var(--primary-dark);
    }

    .menu-toggle,
    .mobile-nav {
        display: none !important;
    }

    .brand-text strong {
        font-size: 1.06rem;
    }

    .brand-text small {
        font-size: 0.73rem;
    }

    .hero-container {
        min-height: 660px;
        padding: 92px 0;
    }

    .destinations-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .destination-card {
        min-height: 270px;
    }

    .properties-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .property-layout {
        grid-template-columns: minmax(0, 1fr) 350px;
        align-items: start;
    }

    .booking-card {
        position: sticky;
        top: calc(var(--header-height) + 22px);
    }

    .gallery {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: 220px 220px;
    }

    .gallery > :first-child {
        grid-row: 1 / 3;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

}


/*
============================================================
 TELAS GRANDES
============================================================
*/

@media (min-width: 1200px) {

    .properties-grid {
        gap: 26px;
    }

    .property-body {
        padding: 22px;
    }

}


/*
============================================================
 ACESSIBILIDADE
============================================================
*/

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}
