/* ============================================================
   O Refúgio & Casca de Noz — Design System
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Shared Neutral Palette */
  --color-bg: #fafaf8;
  --color-bg-alt: #f3f1ed;
  --color-text: #1c1c1c;
  --color-text-light: #6b6560;
  --color-text-muted: #9a9590;
  --color-border: #e5e2dc;
  --color-border-light: #efece7;

  /* Refúgio — Ocean */
  --refugio-deep: #0e2a42;
  --refugio-primary: #1b4d6e;
  --refugio-accent: #3d8eb5;
  --refugio-light: #c7dfe9;
  --refugio-wash: #edf4f8;

  /* Casca de Noz — Earth */
  --casca-deep: #3a2518;
  --casca-primary: #6b4c3b;
  --casca-accent: #b8875e;
  --casca-sage: #9aad82;
  --casca-light: #e8ddd0;
  --casca-wash: #f7f3ee;

  /* Spacing Scale */
  --sp-2xs: 0.25rem;
  --sp-xs: 0.5rem;
  --sp-sm: 0.75rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2.5rem;
  --sp-2xl: 4rem;
  --sp-3xl: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --shadow-xl: 0 16px 50px rgba(0,0,0,0.12);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 150ms var(--ease-out);
  --t-base: 300ms var(--ease-out);
  --t-slow: 500ms var(--ease-out);

  /* Layout */
  --nav-height: 64px;
  --container-max: 1200px;
  --container-narrow: 800px;
}


/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p { max-width: 65ch; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-md);
  z-index: 200;
  padding: var(--sp-xs) var(--sp-md);
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}
.skip-link:focus {
  top: var(--sp-md);
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--t-base), box-shadow var(--t-base);
}

.nav.scrolled {
  background: rgba(250, 250, 248, 0.98);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  transition: opacity var(--t-fast);
}
.nav__logo:hover { opacity: 0.7; }
.nav__logo img {
  height: 24px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
}

.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--color-text-light);
  position: relative;
  padding: 0.25rem 0;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width var(--t-base);
}
.nav__links a:hover { color: var(--color-text); }
.nav__links a:hover::after { width: 100%; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.lang-switch a {
  padding: 0.2rem 0.35rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}
.lang-switch a:hover { color: var(--color-text); }
.lang-switch a.active { color: var(--color-text); font-weight: 600; }
.lang-switch span { color: var(--color-border); user-select: none; }

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav__toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-text);
  transition: transform var(--t-base), opacity var(--t-fast);
  transform-origin: center;
}
.nav__toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Mobile Nav Overlay */
.nav__mobile {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 250, 248, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
  z-index: 99;
}
.nav__mobile.open {
  opacity: 1;
  pointer-events: auto;
}
.nav__mobile a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text);
  font-style: italic;
}


/* ============================================================
   HERO (Full viewport, used on property pages)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--sp-xl) var(--sp-lg) var(--sp-3xl);
  width: 100%;
  max-width: 700px;
}

.hero__logo {
  height: clamp(3rem, 7vw, 5rem);
  width: auto;
  margin: 0 auto var(--sp-sm);
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.hero__subtitle {
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  color: rgba(255,255,255,0.85);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 300;
}


/* ============================================================
   SECTIONS — Shared Patterns
   ============================================================ */
.section {
  padding: var(--sp-3xl) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__header {
  text-align: center;
  margin-bottom: var(--sp-2xl);
}

.section__header h2 {
  margin-bottom: var(--sp-sm);
  font-style: italic;
}

.section__header p {
  margin: 0 auto;
  color: var(--color-text-light);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 300;
  line-height: 1.8;
}


/* --- Stats Row --- */
.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-sm) var(--sp-md);
  margin-top: var(--sp-lg);
}
.stats__item {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-light);
}
.stats__divider {
  width: 1px;
  height: 0.9rem;
  background: var(--color-border);
  flex-shrink: 0;
}


/* --- Image Grid / Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.gallery__item:hover img {
  transform: scale(1.03);
}

.gallery__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-lg) var(--sp-md) var(--sp-sm);
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  pointer-events: none;
}


/* --- Fullwidth Image Strip (parallax on desktop) --- */
.strip {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.strip__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.strip__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.strip__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--sp-2xl) var(--sp-lg);
  max-width: 700px;
}

.strip__content h2 {
  color: #fff;
  margin-bottom: var(--sp-md);
  font-style: italic;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.strip__content p {
  margin: 0 auto;
  color: rgba(255,255,255,0.9);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.8;
  font-weight: 300;
}


/* --- Contact CTA --- */
.cta-block {
  text-align: center;
  padding: var(--sp-2xl) var(--sp-lg);
}

.cta-block h3 {
  font-style: italic;
  margin-bottom: var(--sp-lg);
}

.cta-block__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--t-base);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  border-color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn--whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}
.btn--whatsapp:hover {
  background: #1fb855;
  border-color: #1fb855;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Property-themed buttons */
.btn--refugio {
  background: var(--refugio-primary);
  border-color: var(--refugio-primary);
  color: #fff;
}
.btn--refugio:hover {
  background: var(--refugio-accent);
  border-color: var(--refugio-accent);
}

.btn--casca {
  background: var(--casca-primary);
  border-color: var(--casca-primary);
  color: #fff;
}
.btn--casca:hover {
  background: var(--casca-accent);
  border-color: var(--casca-accent);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.7);
  padding: var(--sp-2xl) 0 var(--sp-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-2xl);
  margin-bottom: var(--sp-2xl);
}

.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: var(--sp-md);
  letter-spacing: 0.3px;
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer__logo {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  margin-bottom: var(--sp-md);
}

.footer__links a {
  display: block;
  font-size: 0.875rem;
  padding: 0.2rem 0;
  color: rgba(255,255,255,0.6);
}
.footer__links a:hover { color: #fff; }

.footer__contact p,
.footer__contact a {
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.3rem;
}
.footer__contact a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--sp-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}


/* ============================================================
   GATEWAY / HOME CAROUSEL
   ============================================================ */
.gateway {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  overscroll-behavior-y: none;
}

.gateway__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}
.gateway__slide.active {
  opacity: 1;
  pointer-events: auto;
}

.gateway__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.gateway__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.05) 100%);
}

.gateway__body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  padding: var(--sp-2xl);
  padding-left: max(5rem, 10vw);
}

.gateway__text {
  max-width: 540px;
}

.gateway__lead {
  font-size: clamp(0.75rem, 1.6vw, 0.9rem);
  color: rgba(255,255,255,0.8);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 300;
  font-style: italic;
  margin-bottom: var(--sp-sm);
}

.gateway__logo {
  height: clamp(2.5rem, 6vw, 4.5rem);
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  margin-bottom: var(--sp-md);
}

.gateway__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: #fff;
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
  margin-bottom: var(--sp-md);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.gateway__desc {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: var(--sp-xl);
  max-width: 460px;
}

.gateway__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  background: transparent;
  transition: all var(--t-base);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.gateway__cta:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
  transform: translateX(4px);
}
.gateway__cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t-base);
}
.gateway__cta:hover svg { transform: translateX(3px); }

/* Dots */
.gateway__dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.75rem;
}

.gateway__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
  transition: all var(--t-base);
  -webkit-tap-highlight-color: transparent;
}
.gateway__dot.active {
  background: #fff;
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(255,255,255,0.4);
}
.gateway__dot:hover { background: rgba(255,255,255,0.7); }

/* Gateway Lang Toggle */
.gateway__lang {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.gateway__lang a {
  color: rgba(255,255,255,0.5);
  padding: 0.25rem 0.35rem;
}
.gateway__lang a:hover { color: rgba(255,255,255,0.95); }
.gateway__lang a.active { color: #fff; font-weight: 600; }
.gateway__lang span { color: rgba(255,255,255,0.2); user-select: none; }

/* Social Sidebar */
.social-bar {
  position: fixed;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: opacity var(--t-base);
}
.social-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: rgba(255,255,255,0.5);
  transition: color var(--t-base), transform var(--t-base);
}
.social-bar a svg { width: 18px; height: 18px; }
.social-bar a:hover { color: #fff; transform: translateX(3px); }


/* ============================================================
   CONTACT FORM
   ============================================================ */
.form {
  max-width: 560px;
  margin: 0 auto;
}

.form__group {
  margin-bottom: var(--sp-lg);
}

.form__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--sp-xs);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--color-text-light);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6560' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form__success {
  display: none;
  text-align: center;
  padding: var(--sp-xl);
}

.form__success.show {
  display: block;
}

.form__success h3 {
  color: #25d366;
  margin-bottom: var(--sp-sm);
}


/* ============================================================
   INITIATIVE CARDS (Essência page)
   ============================================================ */
.initiatives {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}

.initiative-card {
  padding: var(--sp-xl);
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.initiative-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.initiative-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: var(--sp-xs);
}

.initiative-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.initiative-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--sp-md);
  color: var(--casca-sage);
}


/* ============================================================
   ABOUT — Info Cards
   ============================================================ */
.info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}

.info-card {
  padding: var(--sp-xl);
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  text-align: center;
}

.info-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--sp-xs);
}

.info-card p {
  margin: 0 auto;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
}


/* ============================================================
   PROPERTY CARDS (About page, linking to properties)
   ============================================================ */
.property-card {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.property-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.property-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.property-card:hover img {
  transform: scale(1.03);
}

.property-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-lg);
}

.property-card__logo {
  height: 2rem;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: var(--sp-xs);
}

.property-card__tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  font-weight: 300;
}

.property-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
}


/* ============================================================
   CONTACT PAGE — Two-column Layout
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2xl);
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
}

.whatsapp-card {
  padding: var(--sp-xl);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-lg);
}

.whatsapp-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: var(--sp-xs);
  color: var(--color-text);
}

.whatsapp-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--sp-lg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
}

.contact-info__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

.contact-info__item span {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.contact-info__item a {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}
.contact-info__item a:hover {
  color: var(--color-text);
}


/* ============================================================
   CHAT WIDGET
   ============================================================ */
.chat-bubble {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-text);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--t-base), box-shadow var(--t-base);
  -webkit-tap-highlight-color: transparent;
}
.chat-bubble:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}
.chat-bubble svg { width: 24px; height: 24px; }

.chat-bubble__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid var(--color-bg);
  display: none;
}
.chat-bubble__badge.show { display: block; }

/* Chat Popup */
.chat-popup {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 91;
  width: 380px;
  height: 520px;
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base);
}

.chat-popup.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-popup__header {
  padding: var(--sp-md) var(--sp-lg);
  background: var(--color-text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-popup__agent {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.chat-popup__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.2);
}

.chat-popup__name {
  font-size: 0.85rem;
  font-weight: 600;
}

.chat-popup__status {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.chat-popup__status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25d366;
}

.chat-popup__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  transition: color var(--t-fast);
}
.chat-popup__close:hover { color: #fff; }
.chat-popup__close svg { width: 18px; height: 18px; }

/* Chat Messages */
.chat-popup__messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  scroll-behavior: smooth;
}

.chat-msg {
  max-width: 85%;
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  line-height: 1.6;
  word-wrap: break-word;
}

.chat-msg--bot {
  align-self: flex-start;
  background: var(--color-bg-alt);
  color: var(--color-text);
  border-bottom-left-radius: var(--radius-sm);
}

.chat-msg--user {
  align-self: flex-end;
  background: var(--color-text);
  color: #fff;
  border-bottom-right-radius: var(--radius-sm);
}

/* Chat markdown styling */
.chat-msg--bot p { margin-bottom: 0.4rem; max-width: none; }
.chat-msg--bot p:last-child { margin-bottom: 0; }
.chat-msg--bot a { color: var(--refugio-accent); text-decoration: underline; }
.chat-msg--bot ul, .chat-msg--bot ol { padding-left: 1.2rem; margin: 0.3rem 0; }
.chat-msg--bot li { margin-bottom: 0.2rem; }
.chat-msg--bot strong { font-weight: 600; }

/* Typing indicator */
.chat-typing {
  display: flex;
  gap: 4px;
  padding: var(--sp-sm) var(--sp-md);
  align-self: flex-start;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-sm);
}
.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-muted);
  animation: typingBounce 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Suggestion Chips */
.chat-suggestions {
  padding: 0 var(--sp-md) var(--sp-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chat-chip {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-family: var(--font-body);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-light);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.chat-chip:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

/* Chat Input */
.chat-popup__input {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: var(--sp-sm) var(--sp-md);
  border-top: 1px solid var(--color-border-light);
  flex-shrink: 0;
}

.chat-popup__input input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  outline: none;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--t-fast);
}
.chat-popup__input input:focus { border-color: var(--color-text-light); }
.chat-popup__input input::placeholder { color: var(--color-text-muted); }

.chat-popup__send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--color-text);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-fast), transform var(--t-fast);
}
.chat-popup__send:hover { transform: scale(1.05); }
.chat-popup__send:disabled { opacity: 0.4; cursor: default; transform: none; }
.chat-popup__send svg { width: 16px; height: 16px; }


/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   RESPONSIVE — Tablet (768px)
   ============================================================ */
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .initiatives { grid-template-columns: repeat(2, 1fr); }
  .info-cards { grid-template-columns: repeat(3, 1fr); }
  .property-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
}

/* ============================================================
   RESPONSIVE — Desktop (1024px)
   ============================================================ */
@media (min-width: 1024px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .initiatives { grid-template-columns: repeat(3, 1fr); }

  .gateway__body {
    padding-left: max(10rem, 15vw);
  }
}


/* ============================================================
   RESPONSIVE — Mobile (<=768px)
   ============================================================ */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  .gateway__body {
    padding: var(--sp-xl) var(--sp-lg);
    padding-bottom: max(6rem, calc(env(safe-area-inset-bottom) + 4rem));
    align-items: flex-end;
  }

  .gateway__lang { top: 1rem; right: 1rem; }

  .social-bar { display: none; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--sp-sm);
    text-align: center;
  }

  /* Chat - fullwidth on mobile */
  .chat-popup {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 85vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .chat-bubble {
    bottom: 1rem;
    right: 1rem;
  }
}


/* ============================================================
   DISABLE PARALLAX ON MOBILE / TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .strip__bg,
  .hero__bg {
    background-attachment: scroll !important;
  }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .gallery__item:hover img,
  .property-card:hover img {
    transform: none;
  }
}
