:root {
  --beige: #f2e9db;
  --beige-strong: #e5d6bf;
  --white: #fffaf4;
  --olive: #15261c;
  --olive-dark: #0f1c14;
  --charcoal: #272723;
  --muted: #6c6a61;
  --gold: #d4b77a;
  --shadow: 0 24px 70px rgba(39, 39, 35, 0.12);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 54px);
  color: var(--white);
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease, padding 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  padding-block: 14px;
  color: var(--charcoal);
  background: rgba(255, 250, 242, 0.92);
  box-shadow: 0 10px 34px rgba(39, 39, 35, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: 0.02em;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a {
  opacity: 0.9;
  transition: opacity 180ms ease, color 180ms ease;
}

.site-nav a:hover {
  color: var(--gold);
  opacity: 1;
}

.nav-cta {
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: currentColor;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 200ms ease, opacity 200ms ease;
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -8% 0;
  z-index: -3;
  background:
    linear-gradient(120deg, rgba(21, 38, 28, 0.7), rgba(21, 38, 28, 0.16)),
    url("assets/casa-vinha.jpg") center 42% / cover;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 250, 242, 0.18), transparent 34%),
    linear-gradient(to bottom, rgba(21, 38, 28, 0.08), rgba(21, 38, 28, 0.72));
}

.hero-content {
  max-width: 860px;
  padding-top: 76px;
  color: var(--white);
  text-align: center;
}

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

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(4rem, 12vw, 8.4rem);
  font-weight: 700;
}

.brand-line {
  width: fit-content;
  margin: -8px auto 20px;
  color: var(--gold);
  font-size: clamp(0.85rem, 1.5vw, 1.06rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  font-weight: 700;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.hero-subtitle {
  max-width: 680px;
  margin: 0 auto 34px;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.hero-actions,
.booking-cta .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: var(--charcoal);
  background: var(--gold);
  box-shadow: 0 14px 36px rgba(184, 154, 95, 0.34);
}

.button-primary:hover {
  background: #e0c58b;
}

.button-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 250, 242, 0.7);
  background: rgba(255, 250, 242, 0.08);
  backdrop-filter: blur(10px);
}

.button-map {
  width: fit-content;
  margin-top: 10px;
  color: var(--white);
  background: var(--olive);
  box-shadow: 0 14px 34px rgba(21, 38, 28, 0.18);
}

.button-map:hover {
  background: var(--olive-dark);
}

.section {
  padding: clamp(76px, 10vw, 132px) 0;
}

.section-light {
  background: var(--beige);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: center;
}

.section-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  margin-bottom: 34px;
}

.about-panel {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(184, 154, 95, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.76);
  box-shadow: var(--shadow);
}

.about-panel::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(123, 134, 97, 0.22);
  border-radius: calc(var(--radius) - 2px);
  pointer-events: none;
}

.about-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.about-panel div {
  padding: clamp(26px, 4vw, 42px);
}

.panel-label {
  display: block;
  margin-bottom: 28px;
  color: var(--olive);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-panel strong {
  display: block;
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.15;
}

.about-panel p {
  position: relative;
  margin-bottom: 0;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery-item {
  position: relative;
  min-height: clamp(190px, 24vw, 310px);
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(21, 38, 28, 0.12), rgba(21, 38, 28, 0.54)),
    linear-gradient(135deg, var(--beige-strong), var(--gold) 35%, var(--olive) 100%);
}

.gallery-item:nth-child(2n) {
  background:
    linear-gradient(145deg, rgba(21, 38, 28, 0.08), rgba(21, 38, 28, 0.5)),
    linear-gradient(135deg, #f2e9db, #d4b77a 42%, #15261c);
}

.gallery-item:nth-child(3n) {
  background:
    linear-gradient(145deg, rgba(21, 38, 28, 0.08), rgba(21, 38, 28, 0.48)),
    linear-gradient(135deg, #fff7e9, #d4b77a 40%, #15261c);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21, 38, 28, 0.7), transparent 58%);
}

.gallery-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-photo:first-child {
  grid-column: span 2;
}

.gallery-photo:first-child img {
  object-position: center 38%;
}

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

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.amenity-card {
  min-height: 158px;
  padding: 24px;
  border: 1px solid rgba(80, 88, 62, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.amenity-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 154, 95, 0.42);
  box-shadow: 0 18px 44px rgba(39, 39, 35, 0.09);
}

.amenity-card svg {
  width: 34px;
  height: 34px;
  margin-bottom: 24px;
  color: var(--olive);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.amenity-card h3 {
  margin-bottom: 0;
}

.experience {
  color: var(--white);
  background:
    linear-gradient(rgba(21, 38, 28, 0.9), rgba(21, 38, 28, 0.92)),
    linear-gradient(135deg, #15261c, #0f1c14);
}

.experience .section-copy p:not(.eyebrow) {
  color: rgba(255, 250, 242, 0.72);
}

.experience-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(34px, 7vw, 80px);
  align-items: start;
}

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

.experience-item {
  padding: 28px;
  border: 1px solid rgba(255, 250, 242, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.06);
}

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

.experience-item p {
  margin-bottom: 0;
  color: rgba(255, 250, 242, 0.72);
}

.location-layout {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
}

.map-placeholder {
  position: relative;
  min-height: 410px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(80, 88, 62, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(80, 88, 62, 0.1) 1px, transparent 1px),
    linear-gradient(135deg, #f8f0df, #d9dfc5);
  background-size: 44px 44px, 44px 44px, cover;
  box-shadow: var(--shadow);
}

.map-placeholder::before,
.map-placeholder::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(123, 134, 97, 0.18);
}

.map-placeholder::before {
  width: 340px;
  height: 92px;
  transform: rotate(-24deg);
}

.map-placeholder::after {
  width: 230px;
  height: 68px;
  transform: translate(70px, 86px) rotate(18deg);
}

.map-pin {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border: 8px solid var(--gold);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(39, 39, 35, 0.18);
}

.map-placeholder span {
  position: absolute;
  z-index: 1;
  left: 24px;
  bottom: 22px;
  color: var(--olive-dark);
  font-weight: 800;
}

.location-coordinates {
  margin: 18px 0 0;
  color: var(--olive-dark);
}

.location-coordinates strong {
  color: var(--olive);
}

.booking-cta {
  padding: clamp(72px, 10vw, 120px) 0;
  color: var(--white);
  text-align: center;
  background:
    linear-gradient(rgba(21, 38, 28, 0.88), rgba(21, 38, 28, 0.88)),
    url("assets/ponte-misarela.jpg") center / cover;
}

.booking-cta .container {
  flex-direction: column;
}

.booking-cta h2 {
  max-width: 820px;
  margin-bottom: 12px;
}

.site-footer {
  padding: 34px 0;
  background: var(--olive-dark);
  color: var(--white);
}

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

.footer-content p {
  margin: 4px 0 0;
  color: rgba(255, 250, 242, 0.66);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: rgba(255, 250, 242, 0.76);
}

.footer-links a:hover {
  color: var(--gold);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

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

  .hero-bg {
    transform: none !important;
  }
}

@media (max-width: 980px) {
  .split,
  .experience-layout,
  .location-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    padding: 16px 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 70px 14px auto;
    display: grid;
    gap: 4px;
    padding: 18px;
    border-radius: var(--radius);
    color: var(--charcoal);
    background: rgba(255, 250, 242, 0.98);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
  }

  .site-nav.is-active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 12px 10px;
  }

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

  h1 {
    font-size: clamp(3.1rem, 18vw, 5.4rem);
  }

  .hero {
    min-height: 92svh;
  }

  .hero-content {
    text-align: left;
  }

  .brand-line {
    margin-inline: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
  }

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

  .gallery-photo:first-child {
    grid-column: auto;
  }

  .gallery-item,
  .map-placeholder {
    min-height: 260px;
  }

  .footer-content,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
  }
}
