/* =========================================================
   Hotel Praia — Main CSS
   Palette: navy #0f1a24 | terracota #c8714a | areia #f5ede0
   ========================================================= */

:root {
    --bg:           #0f1a24;
    --bg-alt:       #162232;
    --ink:          #f5ede0;
    --ink-muted:    rgba(245,237,224,0.65);
    --accent:       #c8714a;
    --accent-dark:  #9e4f2e;
    --surface:      #1e2f40;
    --border:       #2e4458;
    --nav-h:        72px;
    --radius:       4px;
    --transition:   0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 17px;
    line-height: 1.7;
}

img { display: block; width: 100%; height: auto; object-fit: cover; }

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

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
    font-family: 'Georgia', serif;
    font-weight: normal;
    line-height: 1.2;
}
h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

.hp-label {
    display: inline-block;
    font-family: 'Arial', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

/* ── LAYOUT ── */
.hp-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(1.2rem, 4vw, 3rem);
}

.hp-section {
    padding: clamp(4rem, 9vw, 8rem) 0;
}

.hp-section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}
.hp-section__header p {
    color: var(--ink-muted);
    margin-top: 1rem;
    font-size: 1.05rem;
}

/* ── BUTTONS ── */
.hp-btn {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    font-family: 'Arial', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    cursor: pointer;
}
.hp-btn--accent {
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
}
.hp-btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.hp-btn--outline {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--border);
}
.hp-btn--outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── NAV ── */
.hp-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.2rem, 4vw, 3rem);
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition);
}
.hp-nav.scrolled {
    background: rgba(15,26,36,0.97);
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hp-nav__logo {
    font-family: 'Georgia', serif;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: var(--ink);
}
.hp-nav__links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}
.hp-nav__links a {
    font-family: 'Arial', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    transition: color var(--transition);
}
.hp-nav__links a:hover { color: var(--ink); }
.hp-nav__cta {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 0.55rem 1.4rem;
    border-radius: var(--radius);
}
.hp-nav__cta:hover { background: var(--accent-dark) !important; }

.hp-nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hp-nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: transform var(--transition), opacity var(--transition);
}

/* ── HERO ── */
.hp-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.hp-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15,26,36,0.45) 0%, rgba(15,26,36,0.65) 100%);
}
.hp-hero__content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    padding: 0 1.5rem;
}
.hp-hero__title {
    color: var(--ink);
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hp-hero__sub {
    color: rgba(245,237,224,0.85);
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}
.hp-hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
.hp-hero__scroll span {
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--accent));
    margin: 0 auto;
    animation: scrollLine 2s ease infinite;
}
@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── SOBRE ── */
.hp-sobre { background: var(--bg-alt); }
.hp-sobre__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.hp-sobre__text h2 { margin-bottom: 1.5rem; }
.hp-sobre__text p { color: var(--ink-muted); }
.hp-sobre__img img {
    border-radius: var(--radius);
    height: 480px;
}

/* ── QUARTOS ── */
.hp-quartos { background: var(--bg); }
.hp-quartos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.hp-quarto-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.hp-quarto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.hp-quarto-card__img {
    position: relative;
    overflow: hidden;
    height: 240px;
}
.hp-quarto-card__img img {
    height: 100%;
    transition: transform 0.6s ease;
}
.hp-quarto-card:hover .hp-quarto-card__img img { transform: scale(1.05); }
.hp-quarto-card__price {
    position: absolute;
    bottom: 1rem; right: 1rem;
    background: var(--accent);
    color: #fff;
    font-family: 'Arial', sans-serif;
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius);
}
.hp-quarto-card__body {
    padding: 1.6rem;
}
.hp-quarto-card__body h3 { margin-bottom: 0.75rem; font-size: 1.2rem; }
.hp-quarto-card__body p {
    color: var(--ink-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-quarto-card__features {
    list-style: none;
    margin-bottom: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.hp-quarto-card__features li {
    font-family: 'Arial', sans-serif;
    font-size: 0.72rem;
    color: var(--ink-muted);
    background: var(--bg-alt);
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* ── RESTAURANTE ── */
.hp-restaurante {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hp-restaurante__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.hp-restaurante__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15,26,36,0.9) 40%, rgba(15,26,36,0.4) 100%);
}
.hp-restaurante__content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.hp-restaurante__content h2 { margin-bottom: 1.5rem; }
.hp-restaurante__content p {
    color: var(--ink-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* ── PISCINA ── */
.hp-piscina { background: var(--bg-alt); }
.hp-piscina__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.hp-piscina__img img {
    border-radius: var(--radius);
    height: 480px;
}
.hp-piscina__text h2 { margin-bottom: 1.5rem; }
.hp-piscina__text p {
    color: var(--ink-muted);
    margin-bottom: 2rem;
}

/* ── GALERIA ── */
.hp-galeria { background: var(--bg); }
.hp-galeria__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 240px);
    gap: 0.5rem;
}
.hp-galeria__item {
    overflow: hidden;
    border-radius: var(--radius);
}
.hp-galeria__item:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}
.hp-galeria__item:first-child { grid-row-end: 2; }
.hp-galeria__item img {
    height: 100%;
    transition: transform 0.6s ease;
}
.hp-galeria__item:hover img { transform: scale(1.06); }

/* ── TESTEMUNHOS ── */
.hp-testemunhos { background: var(--bg-alt); }
.hp-testemunhos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.hp-testemunho-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.hp-testemunho-card__stars { color: var(--accent); font-size: 1rem; letter-spacing: 0.1em; }
.hp-testemunho-card blockquote {
    color: var(--ink-muted);
    font-size: 0.92rem;
    flex: 1;
    font-style: italic;
}
.hp-testemunho-card footer strong {
    display: block;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--ink);
}
.hp-testemunho-card footer span {
    font-family: 'Arial', sans-serif;
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── CONTACTO ── */
.hp-contacto { background: var(--bg); }
.hp-contacto .hp-section__header { margin-bottom: 3rem; }

/* FluentForms override */
.hp-contacto .ff-el-form-control,
.hp-contacto .ff-el-input {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    color: var(--ink) !important;
    border-radius: var(--radius) !important;
    padding: 0.9rem 1.2rem !important;
}
.hp-contacto .ff-btn-submit {
    background: var(--accent) !important;
    border: none !important;
    color: #fff !important;
    padding: 0.9rem 2.5rem !important;
    letter-spacing: 0.1em !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    border-radius: var(--radius) !important;
    cursor: pointer !important;
    transition: background var(--transition) !important;
}
.hp-contacto .ff-btn-submit:hover { background: var(--accent-dark) !important; }
.hp-contacto .ff-el-group { max-width: 700px; margin: 0 auto 1.2rem; }
.hp-contacto .ff-el-input--label { color: var(--ink-muted) !important; font-size: 0.85rem !important; margin-bottom: 0.4rem !important; }

/* ── FOOTER ── */
.hp-footer {
    background: #080f15;
    border-top: 1px solid var(--border);
    padding: 4rem 0 0;
}
.hp-footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(1.2rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}
.hp-footer__name {
    font-family: 'Georgia', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.hp-footer__tagline {
    color: var(--ink-muted);
    font-size: 0.85rem;
}
.hp-footer__links h4 {
    font-family: 'Arial', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.2rem;
}
.hp-footer__links ul { list-style: none; }
.hp-footer__links li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--ink-muted);
}
.hp-footer__links a { color: var(--ink-muted); transition: color var(--transition); }
.hp-footer__links a:hover { color: var(--ink); }
.hp-footer__bottom {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 1.5rem;
    font-family: 'Arial', sans-serif;
    font-size: 0.75rem;
    color: var(--ink-muted);
}

/* ── ANIMATIONS ── */
.hp-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.hp-reveal.visible {
    opacity: 1;
    transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .hp-quartos__grid { grid-template-columns: repeat(2, 1fr); }
    .hp-testemunhos__grid { grid-template-columns: repeat(2, 1fr); }
    .hp-footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .hp-nav__links { display: none; }
    .hp-nav__links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: var(--bg);
        padding: 2rem;
        gap: 1.5rem;
        border-top: 1px solid var(--border);
    }
    .hp-nav__toggle { display: flex; }
    .hp-sobre__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hp-piscina__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hp-quartos__grid { grid-template-columns: 1fr; }
    .hp-galeria__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .hp-galeria__item:first-child { grid-column: 1 / 3; grid-row: auto; }
    .hp-testemunhos__grid { grid-template-columns: 1fr; }
    .hp-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
    .hp-galeria__grid { grid-template-columns: 1fr; }
    .hp-galeria__item:first-child { grid-column: auto; }
    .hp-galeria__item { height: 220px; }
}
