:root {
  --navy: #08264a;
  --navy-2: #113b63;
  --aqua: #7cc9c1;
  --sand: #efe4d0;
  --sand-2: #f8f3eb;
  --gold: #c89a3d;
  --ink: #14212f;
  --muted: #65717f;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(8, 38, 74, 0.13);
  --radius: 8px;
  --container: min(1140px, calc(100% - 40px));
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(20px, calc((100vw - 1140px) / 2));
  color: var(--white);
  transition: background 220ms ease, box-shadow 220ms ease, padding 220ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  padding-block: 12px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 36px rgba(8, 38, 74, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand__logo {
  width: 68px;
  height: 52px;
  object-fit: contain;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  padding: 5px;
  box-shadow: 0 10px 28px rgba(8, 38, 74, 0.12);
}

.brand strong {
  display: block;
  font-weight: 800;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: currentColor;
  font-size: 0.72rem;
  opacity: 0.78;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.92rem;
  font-weight: 700;
}

.main-nav a {
  transition: color 180ms ease;
}

.main-nav a:hover {
  color: var(--gold);
}

.booking-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--white) !important;
  background: #003b95;
  border-radius: 50%;
  font-weight: 800;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: var(--white) !important;
  background: var(--navy);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 160px 0 74px;
  color: var(--white);
}

.hero__media,
.hero__media::after {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.74) saturate(0.95);
  transform: scale(1.02);
}

.hero__media::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 38, 74, 0.78), rgba(8, 38, 74, 0.28) 58%, rgba(8, 38, 74, 0.36)),
    linear-gradient(0deg, rgba(8, 38, 74, 0.72), transparent 52%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin-inline: auto;
  max-width: 760px;
  margin-left: max(20px, calc((100vw - 1140px) / 2));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  max-width: 780px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.25;
}

.hero__lead {
  max-width: 600px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero__actions,
.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn--primary {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 14px 34px rgba(8, 38, 74, 0.24);
}

.btn--secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn--light {
  color: var(--navy);
  background: var(--white);
}

.btn--booking {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.36);
  background: #003b95;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero__badges span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  font-weight: 800;
}

/* Property highlight */
.property-strip {
  padding: 82px 0;
  background: var(--white);
}

.property-strip__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 54px;
  align-items: center;
}

.property-strip__image {
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.property-strip__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(0.98) saturate(0.92) brightness(0.98);
}

.property-strip__content p:not(.eyebrow) {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--navy);
  font-weight: 800;
  border-bottom: 2px solid var(--gold);
}

/* Sections */
.section {
  padding: 94px 0;
}

.section--intro {
  background: var(--sand-2);
}

.intro-grid,
.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 64px;
  align-items: center;
}

.intro-text,
.location__content p,
.address-line,
.final-cta p,
.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature {
  min-height: 210px;
  padding: 30px;
  border: 1px solid rgba(8, 38, 74, 0.09);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 36px rgba(8, 38, 74, 0.06);
}

.feature span {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--gold);
  font-weight: 800;
}

.feature p,
.stay-card p {
  color: var(--muted);
}

.accommodations,
.location {
  background: linear-gradient(180deg, var(--sand-2), #fff);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

/* Accommodations */
.accommodation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.stay-card {
  overflow: hidden;
  border: 1px solid rgba(8, 38, 74, 0.08);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.stay-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sand);
}

.stay-card__image img,
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(0.97) saturate(0.9) brightness(0.98);
  transition: transform 520ms ease, filter 520ms ease;
}

.stay-card:hover img,
.gallery__item:hover img {
  transform: scale(1.045);
  filter: contrast(1) saturate(0.95) brightness(1);
}

.stay-card__body {
  padding: 30px;
}

.stay-card__capacity {
  margin-bottom: 8px;
  color: var(--gold) !important;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stay-card__body a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--navy);
  font-weight: 800;
  border-bottom: 2px solid var(--gold);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 260px;
  gap: 16px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  background: var(--sand);
  box-shadow: 0 18px 45px rgba(8, 38, 74, 0.1);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 38, 74, 0.5), transparent 48%);
  opacity: 0.72;
  pointer-events: none;
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__item figcaption {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 16px;
  color: var(--white);
  font-weight: 800;
}

/* Location */
.map-placeholder {
  min-height: 380px;
  overflow: hidden;
  border: 1px solid rgba(8, 38, 74, 0.12);
  border-radius: var(--radius);
  color: var(--navy);
  background:
    linear-gradient(135deg, rgba(124, 201, 193, 0.28), rgba(239, 228, 208, 0.68)),
    repeating-linear-gradient(45deg, rgba(8, 38, 74, 0.05) 0 1px, transparent 1px 22px);
  box-shadow: var(--shadow);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 420px;
}

/* Conversion areas */
.final-cta {
  padding: 92px 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 38, 74, 0.94), rgba(17, 59, 99, 0.78)),
    url("assets/img/praia-canasvieiras.jpg") center/cover;
}

.final-cta__inner {
  max-width: 780px;
}

.final-cta h2 {
  color: var(--white);
}

.final-cta p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.84);
}

.floating-whatsapp {
  position: fixed;
  z-index: 45;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  color: var(--white);
  background: #1fa855;
  border-radius: 999px;
  box-shadow: 0 16px 38px rgba(31, 168, 85, 0.34);
  font-weight: 800;
}

.footer {
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.82);
  background: #061f3d;
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer__about {
  max-width: 560px;
}

.footer__address {
  color: var(--white);
  font-weight: 700;
}

.footer__contact {
  min-width: 260px;
}

.footer strong {
  color: var(--white);
}

.footer p {
  margin: 4px 0;
}

.footer__booking {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--white);
  font-weight: 800;
}

.footer__booking span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #003b95;
  border-radius: 50%;
}

.footer__credit {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
}

.footer__credit a {
  color: var(--white);
  font-weight: 800;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 70px 16px auto;
    display: grid;
    gap: 8px;
    padding: 18px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.97);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 12px;
  }

  .nav-cta {
    margin-top: 6px;
  }

  .hero {
    min-height: 88vh;
    padding-top: 140px;
  }

  .intro-grid,
  .location-grid,
  .property-strip__grid,
  .accommodation-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

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

@media (max-width: 620px) {
  :root {
    --container: min(100% - 28px, 1140px);
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand__logo {
    width: 58px;
    height: 46px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 86vh;
    padding-bottom: 50px;
  }

  .hero__content {
    width: var(--container);
    margin-inline: auto;
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4.6rem);
  }

  .btn {
    width: 100%;
  }

  .hero__badges span {
    font-size: 0.78rem;
  }

  .section {
    padding: 70px 0;
  }

  .property-strip {
    padding: 64px 0;
  }

  .feature-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: auto;
  }

  .gallery {
    grid-auto-rows: 250px;
  }

  .gallery__item--wide,
  .gallery__item--tall {
    grid-column: auto;
    grid-row: auto;
  }

  .map-placeholder {
    min-height: 300px;
  }

  .map-embed iframe {
    height: 330px;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    min-height: 50px;
    padding-inline: 16px;
  }

  .footer__inner {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
