/* ============================================
   BROTERO RESIDENCES — Design System & Styles
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Colors */
  --gold: #C9A96E;
  --gold-light: #D4BA85;
  --gold-dark: #A8894F;
  --dark: #0F0F0F;
  --dark-surface: #1A1A1A;
  --dark-card: #222222;
  --dark-border: #2A2A2A;
  --cream: #F5F0EB;
  --cream-light: #FAF7F4;
  --warm-gray: #8B7E74;
  --warm-gray-light: #A69B90;
  --white: #FFFFFF;
  --error: #E85D5D;
  --success: #5DAE72;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Spacing */
  --section-py: clamp(5rem, 10vw, 9rem);
  --container-px: clamp(1.25rem, 4vw, 3rem);
  --container-max: 1280px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-mid: 0.4s var(--ease-out);
  --transition-slow: 0.7s var(--ease-out);

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--dark);
  color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-light);
}

ul { list-style: none; }

.hidden { display: none !important; }

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ---------- Section ---------- */
.section {
  padding: var(--section-py) 0;
  position: relative;
}

.section__header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  position: relative;
  padding: 0.4em 1.2em;
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 50px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section__title--left {
  text-align: left;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--warm-gray-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-mid);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--dark);
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 169, 110, 0.35);
  color: var(--dark);
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.8em 2em;
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn--sm { padding: 0.6em 1.5em; font-size: 0.78rem; }
.btn--lg { padding: 1em 2.5em; font-size: 0.9rem; }
.btn--full { width: 100%; }

/* ============================================
   FLOORPLAN MODAL
   ============================================ */
.floorplan-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  backdrop-filter: blur(5px);
}

.floorplan-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.floorplan-modal__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: transparent;
  color: var(--light);
  border: none;
  cursor: pointer;
  z-index: 10000;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.floorplan-modal__close:hover {
  color: var(--gold);
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.1);
}

.floorplan-modal__content {
  width: 90%;
  height: 90%;
  max-width: 1200px;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.floorplan-modal.active .floorplan-modal__content {
  transform: scale(1);
}

/* ============================================
   WHATSAPP BUTTON
   ============================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all var(--transition-fast);
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-btn svg {
  width: 32px;
  height: 32px;
}

.whatsapp-btn:hover {
  transform: scale(1.1) translateY(-5px);
  background-color: #128c7e;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
  animation: none;
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all var(--transition-mid);
}

.navbar.scrolled {
  padding: 0.6rem 0;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.navbar__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.navbar__logo-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-mid);
}

.navbar__logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.9); /* Perfect zoom to show full crest with small margin */
  transform-origin: center;
}

.navbar.scrolled .navbar__logo-wrapper {
  width: 55px;
  height: 55px;
}

.navbar__logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.3em 0;
  transition: color var(--transition-fast);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition-mid);
}

.navbar__link:hover {
  color: var(--gold);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.3);
  background: transparent;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-toggle:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all var(--transition-fast);
  transform-origin: center;
}

.navbar__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.05);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 15, 15, 0.5) 0%,
    rgba(15, 15, 15, 0.3) 30%,
    rgba(15, 15, 15, 0.5) 70%,
    rgba(15, 15, 15, 0.9) 100%
  );
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--container-px);
  max-width: 850px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1.4em;
  border: 1px solid rgba(201, 169, 110, 0.4);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
  background: rgba(201, 169, 110, 0.08);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero__desc {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--warm-gray-light);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero__prices {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 1.5rem 2.5rem;
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: var(--radius-lg);
}

.hero__price-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.hero__price-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.hero__price-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
}

.hero__price-from {
  font-size: 0.7rem;
  color: var(--warm-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero__price-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--warm-gray);
  font-size: 0.7rem;
  text-transform: uppercase;
  text-align: center;
}

.hero__scroll span {
  display: block;
  letter-spacing: 0.2em;
}

.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  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; }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--dark);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.about__paragraph {
  font-size: 1.02rem;
  color: var(--warm-gray-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about__paragraph:last-child {
  margin-bottom: 0;
}

.about__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.8s var(--ease-out);
}

.about__image:hover img {
  transform: scale(1.03);
}

.about__image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 169, 110, 0.15);
  pointer-events: none;
}

/* Stats */
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding: 2.5rem;
  background: var(--dark-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark-border);
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.82rem;
  color: var(--warm-gray);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Features */
.about__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem 1.5rem;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-mid);
}

.feature-card:hover {
  border-color: rgba(201, 169, 110, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.2rem;
  color: var(--gold);
}

.feature-card__icon svg {
  width: 100%;
  height: 100%;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.feature-card__desc {
  font-size: 0.88rem;
  color: var(--warm-gray-light);
  line-height: 1.6;
}

/* ============================================
   TYPOLOGIES
   ============================================ */
.typologies {
  background: var(--dark-surface);
}

.typo-tabs-wrapper {
  position: relative;
  margin-bottom: 3rem;
  border-radius: var(--radius-md);
}

.typo-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem;
  background: var(--dark);
  border-radius: var(--radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.typo-tabs::-webkit-scrollbar {
  display: none;
}

.scroll-fade {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(to right, rgba(15,15,15,0) 0%, rgba(15,15,15,1) 100%);
  pointer-events: none;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.8rem;
  color: var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  z-index: 2;
}

.scroll-fade svg {
  width: 24px;
  height: 24px;
  animation: bounce-right 1.5s infinite ease-in-out;
  opacity: 0.8;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

@keyframes bounce-right {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.typo-tab {
  flex: 1;
  min-width: max-content;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-mid);
}

.typo-tab__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--warm-gray);
  transition: color var(--transition-fast);
}

.typo-tab__price {
  font-size: 0.72rem;
  color: var(--warm-gray);
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

.typo-tab.active {
  background: rgba(201, 169, 110, 0.12);
  box-shadow: 0 0 0 1px rgba(201, 169, 110, 0.2);
}

.typo-tab.active .typo-tab__name {
  color: var(--gold);
}

.typo-tab.active .typo-tab__price {
  color: var(--gold-light);
}

.typo-tab:hover .typo-tab__name {
  color: var(--cream);
}

/* Tab Content */
.typo-content {
  display: none;
  opacity: 0;
  transform: translateY(16px);
}

.typo-content.active {
  display: block;
  animation: tabFadeIn 0.5s var(--ease-out) forwards;
}

@keyframes tabFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.typo-content__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.typo-content__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.typo-content__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.8s var(--ease-out);
}

.typo-content__image:hover img {
  transform: scale(1.03);
}

.typo-content__image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 169, 110, 0.1);
  pointer-events: none;
}

.typo-content__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 1rem;
}

.typo-content__desc {
  font-size: 1rem;
  color: var(--warm-gray-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.typo-content__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.typo-content__features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--cream);
}

.typo-content__features svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  background: var(--dark);
}

.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.gallery__filter {
  padding: 0.55em 1.3em;
  background: transparent;
  border: 1px solid var(--dark-border);
  border-radius: 50px;
  color: var(--warm-gray);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery__filter:hover {
  border-color: rgba(201, 169, 110, 0.3);
  color: var(--cream);
}

.gallery__filter.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: all var(--transition-mid);
}

.gallery__item.hidden {
  display: none;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(201, 169, 110, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery__item-overlay svg {
  width: 36px;
  height: 36px;
  color: var(--white);
}

.gallery__item:hover .gallery__item-overlay {
  opacity: 1;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-mid);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox__content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox__close svg {
  width: 20px;
  height: 20px;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox__nav:hover {
  background: rgba(201, 169, 110, 0.3);
}

.lightbox__nav svg {
  width: 22px;
  height: 22px;
}

.lightbox__prev { left: 1.5rem; }
.lightbox__next { right: 1.5rem; }

.lightbox__counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: var(--warm-gray);
  letter-spacing: 0.1em;
}

/* ============================================
   VIDEOS
   ============================================ */
.videos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.video-card {
  background: var(--dark);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-mid);
}

.video-card:hover {
  border-color: rgba(201, 169, 110, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.video-card video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: #000;
}

.video-title {
  padding: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  text-align: center;
  border-top: 1px solid var(--dark-border);
}

/* ============================================
   LOCATION
   ============================================ */
.location {
  background: var(--dark-surface);
}

.location__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.location__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--dark-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.location__map iframe {
  display: block;
  border-radius: var(--radius-lg);
  filter: brightness(0.85) contrast(1.1) saturate(0);
  transition: filter var(--transition-mid);
}

.location__map:hover iframe {
  filter: brightness(0.9) contrast(1.05) saturate(0.5);
}

/* Leaflet Overrides */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
  background: var(--white) !important;
}

.leaflet-popup-tip {
  background: var(--white) !important;
}

.leaflet-container a.leaflet-popup-close-button {
  color: var(--dark) !important;
  top: 10px !important;
  right: 10px !important;
}

.leaflet-control-zoom a {
  background: var(--white) !important;
  color: var(--dark) !important;
  border: none !important;
}

.leaflet-control-zoom a:hover {
  color: var(--gold) !important;
  background: var(--light) !important;
}

.location__info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.location__card {
  padding: 1.5rem;
  background: var(--dark);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-mid);
}

.location__card:hover {
  border-color: rgba(201, 169, 110, 0.2);
  transform: translateX(4px);
}

.location__card-icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.location__card-icon svg {
  width: 100%;
  height: 100%;
}

.location__card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.location__card p {
  font-size: 0.88rem;
  color: var(--warm-gray-light);
  line-height: 1.6;
}

.location__address {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 1.5rem;
  background: rgba(201, 169, 110, 0.08);
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: var(--radius-md);
  color: var(--gold);
}

.location__address svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.location__address span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: var(--dark);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: stretch;
}

.contact__desc {
  font-size: 1.02rem;
  color: var(--warm-gray-light);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.contact__developer {
  padding: 2rem;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
}

.contact__developer-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.contact__developer-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.contact__developer p {
  font-size: 0.88rem;
  color: var(--warm-gray-light);
  line-height: 1.8;
}

.contact__developer a {
  color: var(--gold);
}

.contact__alvara {
  margin-top: 0.8rem;
  font-size: 0.78rem !important;
  color: var(--warm-gray) !important;
  letter-spacing: 0.03em;
}

.contact__schedule {
  font-size: 0.85rem !important;
  color: var(--warm-gray) !important;
}

/* Form */
.contact__form-wrapper {
  padding: 2.5rem;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}

.contact__form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group--grow {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group--grow textarea {
  flex: 1;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--dark);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B7E74' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--warm-gray);
}

.form-status {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(93, 174, 114, 0.12);
  color: var(--success);
  border: 1px solid rgba(93, 174, 114, 0.2);
}

.form-status.error {
  display: block;
  background: rgba(232, 93, 93, 0.12);
  color: var(--error);
  border: 1px solid rgba(232, 93, 93, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--dark-border);
  background: var(--dark);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--dark-border);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__logo-wrapper {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.9);
  transform-origin: center;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
}

.footer__links {
  display: flex;
  gap: 2rem;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--warm-gray);
  transition: color var(--transition-fast);
}

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

.footer__bottom {
  text-align: center;
}

.footer__disclaimer {
  font-size: 0.75rem;
  color: var(--warm-gray);
  max-width: 700px;
  margin: 0 auto 1.2rem;
  line-height: 1.6;
  font-style: italic;
}

.footer__credits p {
  font-size: 0.82rem;
  color: var(--warm-gray);
  line-height: 1.8;
}

.footer__credits a {
  color: var(--gold);
  font-weight: 500;
}

/* ============================================
   ACABAMENTOS (FINISHES)
   ============================================ */
.finishes {
  background: var(--dark-surface);
}

.finishes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.finishes__card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--dark);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-mid);
}

.finishes__card:hover {
  border-color: rgba(201, 169, 110, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
}

.finishes__card-img {
  position: relative;
  overflow: hidden;
}

.finishes__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
  transition: transform 0.6s var(--ease-out);
}

.finishes__card:hover .finishes__card-img img {
  transform: scale(1.05);
}

.finishes__card-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.finishes__card-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 1rem;
}

.finishes__card-content ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.finishes__card-content li {
  font-size: 0.88rem;
  color: var(--warm-gray-light);
  padding-left: 1.2em;
  position: relative;
  line-height: 1.5;
}

.finishes__card-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* ============================================
   PARALLAX DIVIDER
   ============================================ */
.parallax-divider {
  position: relative;
  height: 45vh;
  min-height: 350px;
  overflow: hidden;
}

.parallax-divider > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center 30%;
}

.parallax-divider__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 15, 15, 0.75) 0%,
    rgba(15, 15, 15, 0.5) 50%,
    rgba(15, 15, 15, 0.75) 100%
  );
}

.parallax-divider__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--container-px);
}

.parallax-divider__quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  max-width: 700px;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.parallax-divider__attr {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: linear-gradient(
    135deg,
    rgba(201, 169, 110, 0.08) 0%,
    rgba(15, 15, 15, 1) 50%,
    rgba(201, 169, 110, 0.06) 100%
  );
  border-top: 1px solid rgba(201, 169, 110, 0.1);
  border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.cta-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 3rem 3.5rem;
  background: var(--dark-surface);
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-banner__content::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.08), transparent 70%);
  pointer-events: none;
}

.cta-banner__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.cta-banner__text p {
  font-size: 1rem;
  color: var(--warm-gray-light);
  max-width: 500px;
  line-height: 1.7;
}

.cta-banner__actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
  
  .about__image {
    max-height: 400px;
  }
  
  .about__features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .typo-content__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .location__grid {
    grid-template-columns: 1fr;
  }
  
  .contact__grid {
    grid-template-columns: 1fr;
  }
  
  .finishes__grid {
    grid-template-columns: 1fr;
  }
  
  .cta-banner__content {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 2rem;
  }
  
  .cta-banner__text p {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .navbar__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    transition: right var(--transition-mid);
    border-left: 1px solid rgba(201, 169, 110, 0.1);
  }
  
  .navbar__menu.active {
    right: 0;
  }
  
  .navbar__hamburger {
    display: flex;
  }
  
  .navbar__cta {
    display: none;
  }
  
  .navbar__link {
    font-size: 1.1rem;
  }
  
  .hero__prices {
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem 2rem;
  }
  
  .hero__price-divider {
    width: 60px;
    height: 1px;
  }
  
  .about__stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .about__features {
    grid-template-columns: 1fr;
  }
  
  .typo-tabs {
    gap: 0.3rem;
  }
  
  .scroll-fade {
    display: flex;
  }
  
  .typo-tab {
    padding: 0.8rem 1rem;
  }
  
  .typo-content__features {
    grid-template-columns: 1fr;
  }
  
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer__top {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .finishes__card {
    grid-template-columns: 1fr;
  }
  
  .finishes__card-img img {
    max-height: 200px;
  }
  
  .parallax-divider {
    height: 35vh;
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }
  
  .gallery__grid {
    grid-template-columns: 1fr;
  }
  
  .contact__form-wrapper {
    padding: 1.5rem;
  }
  
  .lightbox__nav {
    width: 40px;
    height: 40px;
  }
  
  .lightbox__prev { left: 0.5rem; }
  .lightbox__next { right: 0.5rem; }
}

/* ============================================
   ANIMATION UTILITIES
   ============================================ */
.anim-fade-up {
  opacity: 0;
  transform: translateY(30px);
}

.anim-reveal {
  opacity: 0;
  transform: translateY(40px);
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-overlay__logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  animation: loading-pulse 1.5s ease-in-out infinite;
}

@keyframes loading-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}
