/* ============================================================
   Casa dos Arcos - Design tokens
   ============================================================ */
:root {
  /* English blue - deep, sophisticated, not navy */
  --blue-900: #0E2540;
  --blue-800: #14365C;
  --blue-700: #1B4775;   /* primary */
  --blue-600: #25578E;
  --blue-500: #3B6FA8;
  --blue-300: #92AECB;
  --blue-100: #DCE6F2;
  --blue-50:  #EEF3FA;

  /* Neutrals - warm off-white, charcoal */
  --paper:   #FAF8F4;
  --paper-2: #F4F0E8;
  --ink:     #1A1A1A;
  --ink-2:   #3A3A3A;
  --ink-3:   #6B6B6B;
  --line:    #E6E0D5;

  /* Accent - soft brass/gold for the centenary feel */
  --gold: #B89968;

  /* Type */
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing */
  --container: 1280px;
  --container-tight: 1080px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Typographic scale - editorial */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.eyebrow-light { color: var(--blue-100); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--ink);
}
h1 { font-size: clamp(40px, 6vw, 88px); }
h2 { font-size: clamp(32px, 4.4vw, 60px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); }
.italic { font-style: italic; }
.lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 60ch;
}

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-tight {
  max-width: var(--container-tight);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: clamp(80px, 11vw, 160px) 0; }
.section-tight { padding: clamp(60px, 8vw, 100px) 0; }

/* Page hero — banner shown at the top of sub-pages */
.page-hero {
  position: relative;
  padding-top: clamp(160px, 18vw, 240px);
  padding-bottom: clamp(70px, 10vw, 130px);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero h1 {
  font-size: clamp(40px, 6vw, 80px);
  margin-top: 18px;
  max-width: 18ch;
}
.page-hero-lead {
  margin-top: 24px;
  max-width: 56ch;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-2);
  line-height: 1.55;
}
.page-hero .container { position: relative; z-index: 2; }

/* Image variant — photo background with overlay */
.page-hero-image {
  background: var(--blue-900);
  border-bottom: none;
  min-height: clamp(360px, 50vw, 520px);
  display: flex;
  align-items: flex-end;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(14,37,64,0.10) 0%, rgba(14,37,64,0.30) 50%, rgba(14,37,64,0.75) 100%),
    rgba(14,37,64,0.22);
}
.page-hero-image h1 {
  color: var(--paper);
  text-shadow: 0 2px 24px rgba(0,0,0,0.40), 0 1px 2px rgba(0,0,0,0.25);
}
.page-hero-image .page-hero-lead {
  color: var(--blue-100);
  max-width: 64ch;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.page-hero-image .eyebrow {
  color: var(--blue-100);
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

/* Home CTAs — 3 large cards linking to subpages */
.home-ctas {
  background: var(--paper);
  padding: clamp(80px, 10vw, 140px) 0;
}
.home-ctas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.home-cta-card {
  position: relative;
  overflow: hidden;
  display: block;
  height: clamp(380px, 42vw, 540px);
  background: var(--blue-900);
  color: var(--paper);
}
.home-cta-card .img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}
.home-cta-card:hover .img { transform: scale(1.06); }
.home-cta-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,37,64,0.85) 0%, rgba(14,37,64,0.30) 55%, rgba(14,37,64,0.10) 100%);
}
.home-cta-card .label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 4vw, 44px);
}
.home-cta-card .cta-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  margin-top: 10px;
}
.home-cta-card .cta-arrow {
  font-family: var(--serif);
  font-size: 28px;
  margin-top: 18px;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.home-cta-card:hover .cta-arrow { transform: translateX(8px); }

@media (max-width: 880px) {
  .home-ctas-grid { grid-template-columns: 1fr; }
  .home-cta-card { height: clamp(280px, 60vw, 380px); }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all .35s cubic-bezier(.2,.8,.2,1);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-700);
  color: var(--paper);
}
.btn-primary:hover { background: var(--blue-900); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255,255,255,.7);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--paper); }
.btn-outline {
  background: transparent;
  color: var(--blue-700);
  border-color: var(--blue-700);
}
.btn-outline:hover { background: var(--blue-700); color: var(--paper); }

.btn .arrow {
  display: inline-block;
  transition: transform .35s;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding: 22px 0;
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(250, 248, 244, 0.96);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  border-bottom-color: var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  line-height: 1;
  color: var(--paper);
  transition: color .4s;
}
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
  transition: height .4s, opacity .4s;
}
.site-header.scrolled .brand-logo { height: 46px; }
.brand-logo.white { display: block; }
.brand-logo.blue  { display: none; }
.site-header.scrolled .brand-logo.white { display: none; }
.site-header.scrolled .brand-logo.blue  { display: block; }
.nav-main {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-main a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  transition: color .4s, opacity .25s;
  position: relative;
}
.site-header.scrolled .nav-main a { color: var(--ink-2); }
.nav-main a:hover { opacity: .65; }
.nav-main a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.lang-switch {
  display: flex;
  gap: 2px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lang-switch button {
  color: var(--paper);
  padding: 6px 8px;
  opacity: .55;
  transition: opacity .25s;
}
.site-header.scrolled .lang-switch button { color: var(--ink-2); }
.lang-switch button.active { opacity: 1; }
.lang-switch button:hover { opacity: 1; }
.lang-switch .sep { opacity: .35; padding: 6px 0; }

.nav-toggle { display: none; }
.menu-overlay { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  color: var(--paper);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Soft spotlight covering the title area (left-center where the text actually sits).
     Wider ellipse to ensure entire title gets shading; peak slightly right where the patio is brighter. */
  background: radial-gradient(
    ellipse 65% 42% at 32% 78%,
    rgba(14,37,64, 0.65) 0%,
    rgba(14,37,64, 0.40) 45%,
    rgba(14,37,64, 0.10) 75%,
    rgba(14,37,64, 0.0) 100%
  );
}
@media (max-width: 720px) {
  .hero-bg::after {
    /* Mobile: title is centred, so spotlight sits more centrally */
    background: radial-gradient(
      ellipse 95% 24% at 50% 70%,
      rgba(14,37,64, 0.55) 0%,
      rgba(14,37,64, 0.28) 55%,
      rgba(14,37,64, 0.0) 100%
    );
  }
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(60px, 9vw, 130px);
  padding-top: 140px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.hero-eyebrow .line { width: 48px; height: 1px; background: rgba(255,255,255,.6); }
.hero h1 {
  color: var(--paper);
  max-width: 14ch;
  font-weight: 300;
  text-shadow: 0 2px 28px rgba(14,37,64,0.45), 0 1px 2px rgba(0,0,0,0.25);
}
.hero h1 .em {
  font-style: italic;
  color: var(--paper);
}
.hero-meta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-divider {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--gutter);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  border-top: 1px solid rgba(255,255,255,.18);
  z-index: 2;
}
.hero-divider .dot { opacity: .55; }
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.scroll-cue .arrow-down {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.7);
  position: relative;
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(.6); transform-origin: top; opacity: .4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ============================================================
   Intro / Sobre
   ============================================================ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.intro-meta { }
.intro-meta .since {
  font-family: var(--serif);
  font-size: clamp(80px, 11vw, 150px);
  line-height: 0.9;
  color: var(--blue-700);
  font-style: italic;
  letter-spacing: -0.02em;
}
.intro-meta .since-sub {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.intro-meta-photo {
  margin-top: 56px;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center 35%;
  border-radius: 2px;
  box-shadow: 0 18px 40px -22px rgba(27,58,92,0.35);
}
.intro-meta-caption {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.5;
  max-width: 32ch;
}
.intro-body-photo {
  margin-top: 64px;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  box-shadow: 0 18px 40px -22px rgba(27,58,92,0.35);
}
.intro-body-caption {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.5;
  max-width: 42ch;
}
.intro-body p {
  font-size: 17px;
  color: var(--ink-2);
  margin-bottom: 22px;
  max-width: 60ch;
}
.intro-body .first-letter::first-letter {
  font-family: var(--serif);
  font-size: 5.5em;
  float: left;
  line-height: 0.85;
  padding: 8px 12px 0 0;
  color: var(--blue-700);
  font-style: italic;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 90px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-row .feat {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
}
.feature-row .feat:last-child { border-right: none; }
.feature-row .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 12px;
}
.feature-row .feat-title {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 6px;
}
.feature-row .feat-text {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.55;
}

/* ============================================================
   O Espaço - masonry editorial
   ============================================================ */
.section-dark {
  background: var(--blue-900);
  color: var(--paper);
}
.section-dark h2,
.section-dark h3 { color: var(--paper); }
.section-dark .lead { color: var(--blue-100); }
.section-dark .eyebrow { color: var(--blue-300); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.section-head h2 { max-width: 16ch; }
.section-head .head-right { max-width: 38ch; }

.spaces-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.space-card {
  position: relative;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}
.space-card .img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  background-color: #1B4775;
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}
.space-card:hover .img { transform: scale(1.06); }
.space-card .label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  background: linear-gradient(to top, rgba(14,37,64,0.95) 0%, rgba(14,37,64,0.75) 35%, rgba(14,37,64,0.0) 100%);
  color: var(--paper);
  text-shadow: 0 1px 16px rgba(0,0,0,0.45);
  padding-top: 90px;
}
.space-card .label .name {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
}
.space-card .label .sub {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: .75;
  margin-top: 4px;
}
.space-card .label .cap {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
}

/* Space lightbox */
.space-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 32, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 60px);
  overflow-y: auto;
}
.space-lightbox.open { opacity: 1; pointer-events: auto; }
.space-lightbox-card {
  background: var(--paper);
  color: var(--ink);
  max-width: 1180px;
  width: 100%;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  border-radius: 2px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1);
}
.space-lightbox.open .space-lightbox-card { transform: translateY(0); }
.space-lb-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-size: 24px;
  font-family: var(--serif);
  line-height: 1;
  z-index: 5;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.space-lb-close:hover { background: var(--paper); transform: scale(1.05); }
.space-lightbox-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: stretch;
}
.space-lightbox-media {
  display: flex;
  flex-direction: column;
  background: var(--blue-900);
}
.space-lightbox-img {
  flex: 1;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--blue-700);
}
.space-lightbox-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: var(--blue-900);
}
.space-lightbox-thumbs .thumb {
  flex: 1;
  height: 64px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s;
  border: 2px solid transparent;
}
.space-lightbox-thumbs .thumb:hover { opacity: 0.85; }
.space-lightbox-thumbs .thumb.active { opacity: 1; border-color: var(--paper); }
.space-lightbox-text {
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
}
.space-lightbox-text h2 {
  font-size: clamp(28px, 3vw, 44px);
  color: var(--blue-700);
}
.space-lightbox-text p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.space-lightbox-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: auto;
}
.space-lightbox-meta .k {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.space-lightbox-meta .v {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--blue-700);
}
.space-card { transition: transform 0.45s cubic-bezier(.2,.8,.2,1); }
.space-card:hover { transform: translateY(-4px); }

@media (max-width: 880px) {
  .space-lightbox { padding: 12px; }
  .space-lightbox-grid { grid-template-columns: 1fr; }
  .space-lightbox-img { min-height: 320px; }
  .space-lightbox-card { max-height: calc(100vh - 24px); border-radius: 4px; }
  .space-lightbox-text { padding: 28px 22px 32px; }
  .space-lightbox-text h2 { font-size: clamp(26px, 7vw, 34px); }
  .space-lightbox-text p { font-size: 15px; line-height: 1.6; margin-bottom: 22px; }
  .space-lightbox-text .btn { width: 100%; justify-content: space-between; }
  .space-lightbox-meta { padding: 14px 0; }
  .space-lightbox-meta .v { font-size: 16px; }
  .space-lightbox-thumbs .thumb { height: 56px; }
  .space-lb-close { top: 10px; right: 10px; width: 36px; height: 36px; font-size: 22px; }
}
.space-1 { grid-column: span 7; height: 540px; }
.space-2 { grid-column: span 5; height: 540px; }
.space-3 { grid-column: span 4; height: 420px; }
.space-4 { grid-column: span 4; height: 420px; }
.space-5 { grid-column: span 4; height: 420px; }

/* ============================================================
   Eventos
   ============================================================ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.event-card {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .5s, box-shadow .5s;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(14,37,64,0.25);
}
.event-card .img {
  height: 320px;
  background-size: cover;
  background-position: center;
}
.event-card-casamentos .img { background-position: center; }
.event-card .body {
  padding: 36px 32px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.event-card .num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 14px;
}
.event-card h3 { margin-bottom: 16px; }
.event-card p {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 28px;
  flex: 1;
}
.event-card .more {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-700);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.event-card .more .arrow { transition: transform .35s; }
.event-card:hover .more .arrow { transform: translateX(6px); }

/* ============================================================
   Quote / pull-quote section
   ============================================================ */
.pullquote {
  background: var(--paper-2);
  text-align: center;
  position: relative;
}
.pullquote .quote-mark {
  font-family: var(--serif);
  font-size: 140px;
  line-height: 0.8;
  color: var(--blue-100);
  font-style: italic;
}
.pullquote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.25;
  color: var(--blue-900);
  max-width: 24ch;
  margin: 0 auto;
  letter-spacing: -0.005em;
}
.pullquote cite {
  display: block;
  margin-top: 36px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ============================================================
   Galeria
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.g-tile {
  overflow: hidden;
  cursor: zoom-in;
  background: #000;
  position: relative;
}
.g-tile .img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 1s ease;
}
.g-tile:hover .img { transform: scale(1.05); }
.g-tile::after {
  content: "+";
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  color: var(--blue-900);
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .35s;
}
.g-tile:hover::after { opacity: 1; }

/* layout */
.g1 { grid-column: span 5; height: 380px; }
.g2 { grid-column: span 4; height: 380px; }
.g3 { grid-column: span 3; height: 380px; }
.g4 { grid-column: span 3; height: 320px; }
.g5 { grid-column: span 6; height: 320px; }
.g6 { grid-column: span 3; height: 320px; }
.g7 { grid-column: span 4; height: 360px; }
.g8 { grid-column: span 5; height: 360px; }
.g9 { grid-column: span 3; height: 360px; }
.g10 { grid-column: span 3; height: 340px; }
.g11 { grid-column: span 5; height: 340px; }
.g12 { grid-column: span 4; height: 340px; }
.g13 { grid-column: span 7; height: 380px; }
.g14 { grid-column: span 5; height: 380px; }

.gallery-foot {
  margin-top: 50px;
  text-align: center;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(14, 37, 64, 0.96);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  background-size: cover;
  background-position: center;
  width: 1100px;
  height: 700px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  color: var(--paper);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  transition: background .25s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.18); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   Testemunhos carousel
   ============================================================ */
.testimonials {
  background: var(--blue-900);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding-top: clamp(80px, 9vw, 120px);
  padding-bottom: clamp(80px, 9vw, 120px);
}
.testimonials::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--azulejo-pattern);
  background-size: 200px;
  opacity: 0.10;
  pointer-events: none;
}
.testimonials h2 {
  color: var(--paper);
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.testimonials .eyebrow-light::before,
.testimonials .eyebrow-light::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--blue-300);
  vertical-align: middle;
  opacity: 0.5;
  margin: 0 12px;
}
.testi-track {
  position: relative;
  min-height: 260px;
  margin-top: 8px;
}
.testi-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--gutter);
}
.testi-slide.active { opacity: 1; }
.testi-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.55;
  color: var(--paper);
  max-width: 56ch;
  letter-spacing: -0.005em;
  margin: 0 auto;
}
.testi-meta {
  margin-top: 24px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue-300);
}
.testi-meta .name { color: var(--paper); display: block; margin-bottom: 6px; font-size: 13px; letter-spacing: 0.18em;}
.stars { color: var(--gold); letter-spacing: 6px; margin: 24px 0 10px; font-size: 12px; opacity: 0.85; }

.testi-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}
.testi-controls button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 18px;
  transition: background .25s, border-color .25s;
}
.testi-controls button:hover { background: rgba(255,255,255,0.1); border-color: var(--paper); }
.testi-dots { display: flex; gap: 10px; }
.testi-dots .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background .3s, width .3s;
  cursor: pointer;
}
.testi-dots .dot.active { background: var(--paper); width: 24px; border-radius: 3px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.faq-list { border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  cursor: pointer;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  color: var(--ink);
  line-height: 1.3;
}
.faq-q .toggle {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 1px solid var(--ink-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s, background .25s, color .25s, border-color .25s;
  font-size: 14px;
  font-family: var(--sans);
  font-weight: 300;
}
.faq-item.open .toggle {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: var(--paper);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s ease, margin-top .35s ease;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.7;
  max-width: 65ch;
}
.faq-item.open .faq-a {
  max-height: 280px;
  margin-top: 16px;
}

/* ============================================================
   Localização
   ============================================================ */
.location-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  border: 1px solid var(--line);
}
.location-info {
  padding: clamp(36px, 5vw, 72px);
  background: var(--paper);
}
.location-info h3 { margin-bottom: 20px; }
.location-info .addr {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: var(--blue-700);
  line-height: 1.45;
  margin-bottom: 32px;
}
.location-info .info-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.location-info .info-row:last-child { border-bottom: 1px solid var(--line); }
.location-info .info-row .k {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.location-info .info-row .v { color: var(--ink); text-align: right; }
.map-frame {
  min-height: 460px;
  position: relative;
  background: var(--blue-50);
  overflow: hidden;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.35) contrast(0.95);
  position: absolute;
  inset: 0;
}

/* ============================================================
   Contacto / Form
   ============================================================ */
.contact-section {
  background: var(--paper);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--azulejo-pattern);
  background-size: 220px;
  opacity: 0.05;
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
  position: relative;
  z-index: 2;
}
.contact-section h2 { color: var(--blue-700); }
.contact-section .eyebrow-light { color: var(--ink-3) !important; }
.contact-info p {
  color: var(--ink-2);
  font-size: 16px;
  margin-bottom: 24px;
  max-width: 38ch;
}
.contact-info .ci-row {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.contact-info .ci-row:last-child { border-bottom: 1px solid var(--line); }
.contact-info .ci-k {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.contact-info .ci-v {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--blue-700);
}
.contact-info .ci-v:hover { color: var(--blue-900); }

.contact-form {
  background: transparent;
  border: 1px solid var(--line);
  padding: clamp(30px, 4vw, 56px);
  backdrop-filter: none;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group.full { grid-column: span 2; }
.form-group label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.form-group label .req { color: var(--blue-700); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.18);
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .3s;
}
.form-group select { color: var(--ink); }
.form-group select option { color: var(--ink); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--blue-700);
}
.form-group .err {
  color: #F4B860;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 6px;
  min-height: 14px;
  display: block;
}
.form-group.error input,
.form-group.error select,
.form-group.error textarea { border-bottom-color: #F4B860; }

/* honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; }

.submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.submit-note {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  max-width: 32ch;
  line-height: 1.5;
}
.submit-row .btn-primary {
  background: var(--blue-700);
  color: var(--paper);
}
.submit-row .btn-primary:hover { background: var(--blue-900); }

.form-success {
  text-align: center;
  padding: 30px 0;
}
.form-success .check {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 1px solid var(--blue-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-700);
  font-size: 26px;
  margin-bottom: 24px;
}
.form-success h3 { color: var(--blue-700); margin-bottom: 14px; }
.form-success p { color: var(--ink-2); max-width: 34ch; margin: 0 auto; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--blue-900);
  color: var(--paper);
  padding: 90px 0 40px;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.azulejo-band {
  height: 60px;
  background-image: var(--azulejo-pattern);
  background-size: 120px;
  background-repeat: repeat;
  opacity: 0.5;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand-mark { color: var(--paper); }
.footer-brand .brand-sub { color: var(--blue-300); }
.footer-brand p {
  margin-top: 24px;
  color: var(--blue-100);
  font-size: 14px;
  max-width: 32ch;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-300);
  font-weight: 500;
  margin-bottom: 22px;
}
.footer-col a {
  display: block;
  color: var(--blue-100);
  font-size: 14px;
  padding: 6px 0;
  transition: color .25s, padding-left .25s;
}
.footer-col a:hover { color: var(--paper); padding-left: 4px; }
.footer-bottom {
  padding-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--blue-300);
}
.footer-bottom a:hover { color: var(--paper); }
.socials { display: flex; gap: 14px; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, border-color .25s;
}
.socials a:hover { background: rgba(255,255,255,0.1); border-color: var(--paper); }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translate3d(0, 44px, 0);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.8,.2,1);
  will-change: transform, opacity;
}
.reveal.in { opacity: 1; transform: translate3d(0, 0, 0); }
.reveal-d2 { transition-delay: .14s; }
.reveal-d3 { transition-delay: .28s; }
.reveal-d4 { transition-delay: .42s; }
.reveal-d5 { transition-delay: .56s; }

/* Parallax background images — space-card has absolute-positioned img that can extend beyond container */
.hero-bg { will-change: transform; }
.space-card .img {
  inset: -8% 0 -8% 0;
  height: auto;
  will-change: transform;
  --py: 0%;
  --sx: 1;
  transform: translate3d(0, var(--py), 0) scale(var(--sx));
  transition: transform 0.25s linear, --sx 0.6s cubic-bezier(.2,.8,.2,1);
}
.space-card:hover .img { --sx: 1.04; }
/* Event-card .img is a fixed-height block (not absolute) — keep its native sizing; only animate scale on hover */
.event-card .img {
  will-change: transform;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.event-card:hover .img { transform: scale(1.03); }

/* Gallery tile hover lift */
.g-tile { transition: transform 0.5s cubic-bezier(.2,.8,.2,1); }
.g-tile:hover { transform: translateY(-3px); }

/* Smooth fade for lightbox images */
.space-lightbox-img { transition: background-image 0.4s ease; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-bg, .space-card .img, .event-card .img, .g-tile {
    transition: none !important;
    transform: none !important;
    will-change: auto;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .intro-grid { grid-template-columns: 1fr; gap: 50px; }
  .intro-meta { position: static; }
  .feature-row { grid-template-columns: repeat(2, 1fr); }
  .feature-row .feat:nth-child(2) { border-right: none; }
  .feature-row .feat:nth-child(1),
  .feature-row .feat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .events-grid { grid-template-columns: 1fr; gap: 24px; }
  .faq-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .location-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .spaces-grid {
    grid-template-columns: 1fr;
  }
  .space-1, .space-2, .space-3, .space-4, .space-5 {
    grid-column: 1 / -1; height: 320px;
  }
  .gallery-grid { grid-template-columns: repeat(6, 1fr); }
  .g1, .g2, .g3, .g4, .g5, .g6, .g7, .g8, .g9,
  .g10, .g11, .g12, .g13, .g14 {
    grid-column: span 3; height: 240px;
  }

  /* Contact section — softer on mobile so the azulejo pattern doesn't clash with the dividers */
  .contact-section::before { opacity: 0.04; background-size: 240px; }
  .contact-info .ci-row {
    border-top: 1px solid rgba(255,255,255,0.10);
    padding: 18px 0;
  }
  .contact-info .ci-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.10); }
}
@media (max-width: 720px) {
  .nav-main { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
  }
  .nav-toggle span {
    width: 22px; height: 1px; background: var(--paper);
    transition: background .3s;
  }
  .site-header.scrolled .nav-toggle span { background: var(--ink); }
  .menu-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--blue-900);
    color: var(--paper);
    z-index: 90;
    flex-direction: column;
    padding: 100px var(--gutter) 40px;
    transform: translateX(100%);
    transition: transform .5s cubic-bezier(.7,0,.3,1);
  }
  .menu-overlay.open { transform: translateX(0); }
  .menu-overlay a {
    font-family: var(--serif);
    font-size: 36px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    color: var(--paper);
  }
  .menu-overlay .lang-switch { margin-top: 30px; }
  .menu-overlay .lang-switch button { color: var(--paper); }
  .form-row { grid-template-columns: 1fr; }
  .form-group.full { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-head { flex-direction: column; align-items: start; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .g1, .g2, .g3, .g4, .g5, .g6, .g7, .g8, .g9 {
    grid-column: span 1; height: 220px;
  }
  .pullquote .quote-mark { font-size: 90px; }
}
