/* ===========================================================
   Criativa Presentes - estilos
   Fonte: Manrope (auto-hospedada). Acento único: laranja da marca.
   =========================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #211d18;
  --ink-soft: #55504a;
  --paper: #fdfcfa;
  --paper-alt: #f4f1ec;
  --line: #e6e1d7;
  --accent: #e05f0f;
  --accent-dark: #b94b09;
  --accent-soft: #fbe9db;
  --on-accent: #fffaf5;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-soft: 0 12px 30px -18px rgba(33, 29, 24, 0.35);
  --max: 1240px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-sm { padding: 10px 18px; font-size: 0.875rem; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-on-dark {
  background: #fff;
  color: var(--accent-dark);
}
.btn-on-dark:hover { background: var(--on-accent); }

.btn-on-dark-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-on-dark-outline:hover { border-color: #fff; }

/* WhatsApp CTA buttons: icon + idle breathing cue + lift/press feedback */
.btn-cta {
  position: relative;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.18s ease, border-color 0.18s ease;
  animation: ctaBreathe 3.4s ease-in-out infinite;
  animation-delay: var(--cta-delay, 0s);
}
.btn-cta:nth-child(2) { --cta-delay: 1.1s; }

.btn-cta-icon { flex-shrink: 0; }

.btn-cta:hover,
.btn-cta:focus-visible {
  animation-play-state: paused;
  transform: translateY(-3px) scale(1.03);
}
.btn-on-dark.btn-cta:hover { box-shadow: 0 16px 30px -14px rgba(33, 29, 24, 0.45); }
.btn-on-dark-outline.btn-cta:hover { box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.35); }

.btn-cta:active {
  animation-play-state: paused;
  transform: translateY(-1px) scale(0.97);
  transition-duration: 0.1s;
}

.btn-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@keyframes ctaBreathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.015); }
}
.btn-on-dark.btn-cta { box-shadow: 0 8px 18px -12px rgba(33, 29, 24, 0.5); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 20px -18px rgba(33, 29, 24, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img { border-radius: 50%; width: 40px; height: 40px; }
.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand-name em { font-style: normal; color: var(--accent); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 64px 0 96px;
  overflow: clip;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  animation: heroPhotoBreathe 18s ease-in-out infinite;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 17, 13, 0.88) 0%, rgba(20, 17, 13, 0.62) 38%, rgba(20, 17, 13, 0.18) 68%, rgba(20, 17, 13, 0.05) 100%),
    linear-gradient(0deg, rgba(20, 17, 13, 0.35), rgba(20, 17, 13, 0) 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin-left: 0;
  margin-right: auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
  transition-delay: 0s;
}
.hero-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-title[data-reveal] { transition-delay: 0.08s; }
.hero-sub[data-reveal] { transition-delay: 0.16s; }
.hero-actions[data-reveal] { transition-delay: 0.24s; }
.hero-perks[data-reveal] { transition-delay: 0.32s; }

.hero-title {
  font-size: clamp(1.9rem, 2.7vw + 1rem, 2.75rem);
  color: #fff;
  margin-bottom: 18px;
}
.hero-accent { color: var(--accent); }

.hero-sub {
  font-size: 1.08rem;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.hero-actions .btn svg { flex-shrink: 0; }

.btn-hero {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.18s ease, border-color 0.18s ease;
}
.btn-hero svg { transition: transform 0.25s ease; }
.btn-hero:hover { transform: translateY(-2px); }
.btn-on-dark.btn-hero:hover svg { transform: translateX(3px); }
.btn-hero:active { transform: translateY(0) scale(0.97); transition-duration: 0.1s; }

.hero-perks {
  list-style: none;
  margin: 0;
  padding-top: 28px;
  padding-left: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.hero-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-perks svg {
  flex-shrink: 0;
  color: var(--accent);
}
.hero-perks span {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.3;
}
.hero-perks strong {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 56px;
  z-index: 1;
}

@keyframes heroPhotoBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ---------- About ---------- */
.about { padding: 88px 0; background: var(--paper-alt); }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

.about-text h2 {
  font-size: clamp(1.7rem, 2vw + 1rem, 2.3rem);
  max-width: 16ch;
}
.about-text p { max-width: 58ch; font-size: 1.02rem; }

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 22px;
}
.about-badge-number {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.about-badge-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  line-height: 1.3;
}

.about-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

/* ---------- Missão, Visão e Valores ---------- */
.mvv-grid[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.mvv-col {
  padding: 0 36px;
  border-left: 1px solid var(--line);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.mvv-col:first-child { border-left: none; padding-left: 0; }
.mvv-col:last-child { padding-right: 0; }

.mvv-grid.is-visible .mvv-col { opacity: 1; transform: translateY(0); }
.mvv-grid .mvv-col:nth-child(2) { transition-delay: 0.12s; }
.mvv-grid .mvv-col:nth-child(3) { transition-delay: 0.24s; }

.mvv-col svg { color: var(--accent); margin-bottom: 18px; }

.mvv-col h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.mvv-col p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
  max-width: 34ch;
}

.mvv-values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.mvv-values li {
  position: relative;
  padding-left: 17px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.mvv-values li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Portfolio ---------- */
.portfolio { padding: 96px 0; }

.section-head {
  max-width: 46ch;
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 2vw + 1rem, 2.3rem);
}
.section-head p { font-size: 1.02rem; }

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

.gallery-item {
  position: relative;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Highlights ---------- */
.highlights { padding: 88px 0; background: var(--ink); color: #fff; }

.highlights .section-head h2 { color: #fff; }
.highlights .section-head p { color: rgba(255, 255, 255, 0.68); }

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.highlight {
  padding: 0 40px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.highlight:first-child { border-left: none; padding-left: 0; }

.highlight-num {
  display: block;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.highlight h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.highlight p {
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- Regions / unit selector ---------- */
.regions { padding: 96px 0; }

.unit-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.unit-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  color: var(--ink-soft);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease;
}
.unit-tab:hover {
  border-color: rgba(224, 95, 15, 0.35);
  transform: translateY(-2px);
}
.unit-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.unit-tab-icon {
  flex-shrink: 0;
  color: var(--ink-soft);
  transition: color 0.25s ease, transform 0.25s ease;
}

.unit-tab-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.unit-tab-text strong {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 700;
}
.unit-tab-text small {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.unit-tab.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 12px 28px -20px rgba(224, 95, 15, 0.55);
}
.unit-tab.is-active .unit-tab-icon {
  color: var(--accent);
  transform: scale(1.12);
}
.unit-tab.is-active .unit-tab-text strong {
  color: var(--accent-dark);
}

/* ---------- Location / map ---------- */
.location-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: stretch;
}

.location-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.location-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0;
  transition: opacity 0.35s ease;
}

.location-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
  transition: opacity 0.35s ease;
}
.location-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.location-map {
  position: relative;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.location-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.location-map.is-loading iframe {
  opacity: 0;
}

.location-info.is-updating h3,
.location-info.is-updating .location-address {
  opacity: 0;
}

/* ---------- CTA final ---------- */
.cta-final {
  padding: 96px 0;
  background: var(--accent);
  color: var(--on-accent);
}
.cta-final-inner {
  text-align: center;
  max-width: 640px;
}
.cta-final h2 {
  color: #fff;
  font-size: clamp(1.7rem, 2vw + 1rem, 2.3rem);
}
.cta-final p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}
.cta-final-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand {
  display: flex;
  gap: 12px;
}
.footer-brand img { border-radius: 50%; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; margin: 0; }

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom p { margin: 0; }

/* ---------- Region modal ---------- */
.region-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.region-modal.is-open { visibility: visible; opacity: 1; }

.region-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 29, 24, 0.55);
}

.region-modal-panel {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 420px;
  width: calc(100% - 40px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.4);
  transform: translateY(12px);
  transition: transform 0.22s ease;
}
.region-modal.is-open .region-modal-panel { transform: translateY(0); }

.region-modal-panel h3 { font-size: 1.3rem; margin-bottom: 6px; }
.region-modal-panel p { margin-bottom: 22px; }

.region-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
}
.region-modal-close:hover { background: var(--paper-alt); }

.region-modal-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.region-modal-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.region-modal-option:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.region-modal-option span { font-weight: 700; }
.region-modal-option small { color: var(--ink-soft); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 13, 10, 0.94);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.lightbox.is-open { visibility: visible; opacity: 1; }

.lightbox-img {
  max-width: min(88vw, 920px);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.18); }

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 1.8rem;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 250;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(224, 95, 15, 0.55);
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease;
}
.whatsapp-fab:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .gallery-item img { transition: none; }
  .btn-cta { animation: none; }
  .btn-cta:hover, .btn-cta:focus-visible { transform: none; }
  .btn-hero:hover { transform: none; }
  .hero-bg-img { animation: none; }
  .unit-tab { transition: none; }
  .unit-tab:hover { transform: none; }
  .location-info h3, .location-address, .location-map iframe { transition: none; }
  .mvv-col { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1024px) {
  .hero-grid { gap: 40px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  .main-nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }

  .hero {
    min-height: 640px;
    min-height: 82svh;
    min-height: 82dvh;
    align-items: flex-end;
    padding: 40px 0 72px;
  }
  .hero-bg-img {
    object-position: center 20%;
  }
  .hero-bg-overlay {
    background-image:
      linear-gradient(0deg, rgba(20, 17, 13, 0.9) 0%, rgba(20, 17, 13, 0.56) 36%, rgba(20, 17, 13, 0.16) 64%, rgba(20, 17, 13, 0.05) 100%),
      linear-gradient(90deg, rgba(20, 17, 13, 0.32) 0%, rgba(20, 17, 13, 0.04) 48%);
  }
  .hero-content { max-width: none; }
  .hero-title { max-width: none; }
  .hero-perks { gap: 20px 24px; }

  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-media { order: -1; }

  .mvv-grid[data-reveal] { grid-template-columns: 1fr; margin-top: 48px; padding-top: 40px; gap: 32px; }
  .mvv-col { border-left: none; padding: 0; }
  .mvv-col p { max-width: none; }

  .highlights-grid { grid-template-columns: 1fr; gap: 32px; }
  .highlight { border-left: none; padding-left: 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .highlight:first-child { border-top: none; padding-top: 0; }

  .unit-selector { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
  .location-block { grid-template-columns: 1fr; gap: 28px; }
  .location-map { min-height: 260px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .unit-tab { padding: 18px 20px; }
  .location-actions { flex-direction: column; align-items: stretch; }
  .location-actions .btn { width: 100%; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.4rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .cta-final-actions { flex-direction: column; width: 100%; }
  .cta-final-actions .btn { width: 100%; }
}
