/* ============================================================
   Vivenda Benfica — Arrendamento Diário (Luanda, Angola)
   Warm, bright hospitality theme. Light/cream palette.
   ============================================================ */

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Backgrounds */
  --bg: #fbf8f2;
  --surface: #ffffff;
  --surface-2: #f3ede1;

  /* Text */
  --text: #1f1d1a;
  --text-muted: #6b665e;

  /* Borders */
  --border: #e7e0d4;

  /* Accents */
  --accent: #c8962a;        /* warm gold */
  --accent-rgb: 200, 150, 42;
  --accent-2: #1f8a5b;      /* palm green */
  --accent-2-rgb: 31, 138, 91;
  --whatsapp: #25d366;

  /* Radius */
  --radius: 0.5rem;
  --radius-sm: 0.25rem;

  /* Spacing scale */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;

  /* Layout */
  --nav-height: 4.25rem;
  --max-width: 1200px;

  --shadow-sm: 0 1px 3px rgba(31, 29, 26, 0.08);
  --shadow: 0 8px 30px rgba(31, 29, 26, 0.10);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

/* LAYOUT HELPERS */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-label {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  margin-bottom: var(--space-md);
}

.section-desc {
  color: var(--text-muted);
  max-width: 60ch;
  font-size: 1.05rem;
}

.section-header {
  margin-bottom: var(--space-2xl);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all 0.18s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #073b1e;
  border-color: var(--whatsapp);
}
.btn-whatsapp:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(251, 248, 242, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}
.nav-links a {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.nav-links a:hover {
  color: var(--text);
}

/* Language switcher */
.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.nav-lang .lang-active { color: var(--text); font-weight: 600; }
.nav-lang .lang-sep { color: var(--border); }
.nav-lang a { color: var(--text-muted); }
.nav-lang a:hover { color: var(--accent); }
.nav-panel-links .nav-lang { font-size: 1rem; }
.footer-lang {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: rgba(216, 210, 198, 0.6);
  margin-top: var(--space-sm);
}
.footer-lang .lang-active { color: #fff; font-weight: 600; }
.footer-lang a { color: rgba(216, 210, 198, 0.6); }
.footer-lang a:hover { color: var(--accent); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: all 0.2s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-panel {
  position: fixed;
  top: var(--nav-height);
  right: 0;
  width: min(80vw, 320px);
  height: calc(100vh - var(--nav-height));
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: var(--space-xl);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 101;
}
.nav-panel.active { transform: translateX(0); }
.nav-panel-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.nav-panel-links a {
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  color: var(--text);
}
.nav-panel-links .btn { margin-top: var(--space-md); justify-content: center; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 29, 26, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 100;
}
.nav-backdrop.active { opacity: 1; pointer-events: auto; }

/* HERO */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-image:
    linear-gradient(180deg, rgba(31, 29, 26, 0.25) 0%, rgba(31, 29, 26, 0.75) 100%),
    url("resources/photo1.jpg");
  background-size: cover;
  background-position: center;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-xl) var(--space-3xl);
  width: 100%;
}

.hero-badge {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(var(--accent-rgb), 0.95);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.5rem);
  font-weight: 600;
  max-width: 16ch;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(0.85rem, 2.2vw, 1.05rem);
  letter-spacing: 0.02em;
  color: #f3ede1;
  margin-bottom: var(--space-lg);
}

.hero-price {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius);
  margin-bottom: var(--space-xl);
}
.hero-price .price-main {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-xs);
}
.hero-price .price-value {
  font-family: "Oswald", sans-serif;
  font-size: 1.9rem;
  font-weight: 600;
}
.hero-price .price-unit {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: #f3ede1;
}
.hero-price .price-cap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: #f3ede1;
  opacity: 0.85;
}
.hero-price .price-cap svg {
  width: 13px;
  height: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* HIGHLIGHTS */
.highlights {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
.highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xs);
  padding: var(--space-lg) var(--space-md);
}
.highlight-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
}
.highlight-icon svg { width: 1.5rem; height: 1.5rem; }
.highlight-value {
  font-family: "Oswald", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
}
.highlight-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: var(--space-md);
  min-height: 460px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--surface-2);
}
.gallery-item:first-child {
  grid-row: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(31, 29, 26, 0);
  transition: background 0.25s ease;
}
.gallery-item:hover::after { background: rgba(31, 29, 26, 0.12); }

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 14, 12, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-close { top: var(--space-lg); right: var(--space-lg); }
.lightbox-prev { left: var(--space-lg); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--space-lg); top: 50%; transform: translateY(-50%); }

/* SOBRE */
.about-text {
  max-width: 65ch;
  font-size: 1.1rem;
  color: var(--text-muted);
}
.about-text p + p { margin-top: var(--space-md); }
.about-text strong { color: var(--text); font-weight: 600; }

/* COMODIDADES */
.amenities {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.amenity {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.amenity-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(var(--accent-2-rgb), 0.12);
  color: var(--accent-2);
}
.amenity-icon svg { width: 1.4rem; height: 1.4rem; }
.amenity-text strong {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
}
.amenity-text span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* DISPONIBILIDADE / CALENDAR */
.cal-legend {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
}
.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-muted);
}
.cal-swatch {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 3px;
  display: inline-block;
}
.cal-swatch.free { background: var(--surface); border: 1px solid var(--border); }
.cal-swatch.booked { background: rgba(var(--accent-rgb), 0.18); border: 1px solid var(--accent); }

.calendar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
.cal-month {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
}
.cal-month-name {
  font-family: "Oswald", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: capitalize;
  margin-bottom: var(--space-md);
  text-align: center;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-dow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-align: center;
  padding-bottom: var(--space-xs);
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.cal-day.empty { background: transparent; }
.cal-day.muted {
  color: #c9c2b4;
  text-decoration: line-through;
}
.cal-day.booked {
  background: rgba(var(--accent-rgb), 0.18);
  color: var(--accent);
  font-weight: 600;
  position: relative;
}
.cal-day.today {
  outline: 2px solid var(--accent-2);
  outline-offset: -2px;
  font-weight: 600;
}
.cal-note {
  margin-top: var(--space-xl);
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* LOCALIZAÇÃO / MAP */
.map-address {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}
.map-wrap {
  position: relative;
  width: 100%;
  padding-top: 52%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* CONTACTO */
.contact {
  background: var(--surface-2);
  text-align: center;
}
.contact-content { max-width: 640px; margin: 0 auto; }
.contact .section-desc { margin: 0 auto var(--space-xl); }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
}
.contact-number {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.1rem;
  color: var(--text);
}

/* FOOTER */
.footer {
  background: var(--text);
  color: #d8d2c6;
  padding: var(--space-2xl) 0;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.footer-brand {
  font-family: "Oswald", sans-serif;
  font-size: 1.1rem;
  color: #fff;
}
.footer-brand span { color: var(--accent); }
.footer-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: #a8a294;
}
.footer a:hover { color: var(--accent); }

/* RESPONSIVE */
@media (max-width: 1000px) {
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .calendar { grid-template-columns: 1fr; max-width: 420px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: var(--space-3xl) 0; }
  .hero { min-height: 88vh; }
}

@media (max-width: 600px) {
  .container { padding: 0 var(--space-lg); }
  .nav-inner { padding: 0 var(--space-lg); }
  .hero-inner { padding-left: var(--space-lg); padding-right: var(--space-lg); }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    min-height: 0;
  }
  .gallery-item { aspect-ratio: 4 / 3; }
  .gallery-item:first-child { grid-row: auto; }
  .amenities-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
