/* =====================================================================
   saocontradiorio.com — cinematic single-property build
   palette: atlantic ink / jade / sand / ivory / burnt copper accent
   ===================================================================== */

:root {
  --ink:        #0A1A24;   /* atlantic deep */
  --ink-2:      #0F2738;   /* atlantic mid */
  --jade:       #1E5A52;   /* mata atlântica */
  --jade-deep:  #134039;
  --sand:       #E8D9B5;   /* warm tan */
  --ivory:      #F4EDE0;   /* warm bone */
  --copper:     #C26A3F;   /* burnt accent */
  --copper-2:   #9E5430;
  --line:       rgba(244,237,224,0.18);
  --line-ink:   rgba(10,26,36,0.14);
  --whats:      #1FAF54;

  --serif:      "Fraunces", "Cormorant Garamond", "Times New Roman", serif;
  --display:    "Fraunces", "Cormorant Garamond", "Times New Roman", serif;
  --ui:         "Inter", system-ui, -apple-system, sans-serif;
  --mono:       "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --ease:       cubic-bezier(.2, .7, 0, 1);
  --nav-h:      72px;
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width:100%; display:block; }
a   { color: inherit; text-decoration: none; }

::selection { background: var(--copper); color: var(--ivory); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--ivory); padding: 8px 12px;
  z-index: 9999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- NAV ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0;
  display: flex; align-items: center; gap: 24px;
  padding: 16px 32px;
  height: var(--nav-h);
  z-index: 100;
  color: var(--ivory);
  transition: background .35s var(--ease), color .35s var(--ease), backdrop-filter .35s var(--ease);
  mix-blend-mode: difference;
}
.nav.is-scrolled {
  mix-blend-mode: normal;
  background: rgba(10,26,36,0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.nav__brand { display:flex; align-items:center; gap:14px; margin-right:auto; font-family: var(--display); font-weight: 400; letter-spacing: 0.02em; }
.nav__mark { font-size: 28px; line-height: 1; letter-spacing: -0.02em; font-style: italic; }
.nav__mark-dot { color: var(--copper); padding: 0 2px; }
.nav__word { font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; opacity:.86; font-family: var(--ui); font-weight: 500; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  opacity: .82; position: relative; padding: 4px 0;
}
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__links a.is-active::after { content:""; position:absolute; left:0; right:0; bottom:-4px; height:1px; background: var(--copper); }
.nav__cta {
  display: inline-flex; align-items:center; gap:10px;
  background: var(--copper); color: var(--ivory);
  padding: 10px 18px; border-radius: 999px;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.nav__cta:hover { background: var(--copper-2); transform: translateY(-1px); }
.nav__cta-dot { width:7px; height:7px; border-radius:50%; background: var(--ivory); box-shadow: 0 0 0 0 rgba(244,237,224,.6); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(244,237,224,.55);} 80%{box-shadow:0 0 0 10px rgba(244,237,224,0);} 100%{box-shadow:0 0 0 0 rgba(244,237,224,0);} }

.nav__burger { display:none; background:none; border:0; width:40px; height:40px; cursor:pointer; padding:0; }
.nav__burger span { display:block; height:1.5px; background: currentColor; margin: 6px 4px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- FULLSCREEN MENU ---------- */

.menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ink);
  color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .45s var(--ease);
}
.menu[hidden] { display: flex; } /* always rendered for transition */
.menu.is-open { opacity: 1; pointer-events: auto; }
.menu__inner { width: min(92vw, 1100px); padding: 120px 0 80px; }
.menu__list { list-style: none; margin:0; padding:0; }
.menu__list li { border-top: 1px solid var(--line); }
.menu__list li:last-child { border-bottom: 1px solid var(--line); }
.menu__list a {
  display: flex; align-items: baseline; gap: 32px;
  padding: 28px 12px;
  font-family: var(--display); font-size: clamp(36px, 7vw, 92px);
  font-weight: 400; letter-spacing: -0.02em;
  transition: padding .3s var(--ease), color .3s var(--ease);
}
.menu__list a:hover { padding-left: 36px; color: var(--copper); }
.menu__num { font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em; opacity: .55; }
.menu__meta { margin-top: 48px; display:flex; flex-wrap: wrap; gap: 32px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; opacity: .72; }
.menu__meta a { border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.menu__meta a:hover { color: var(--copper); border-color: var(--copper); }

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid; place-items: end start;
  padding: 0 clamp(24px, 5vw, 80px) clamp(48px, 7vw, 96px);
  color: var(--ivory);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; will-change: transform; }
.hero__media img { width:100%; height:100%; object-fit: cover; transform: scale(1.06); }
.hero__veil {
  position:absolute; inset:0; z-index:1;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(10,26,36,0.0) 0%, rgba(10,26,36,0.55) 100%),
    linear-gradient(180deg, rgba(10,26,36,0.55) 0%, rgba(10,26,36,0.0) 30%, rgba(10,26,36,0.0) 55%, rgba(10,26,36,0.78) 100%);
}
.hero__copy { position: relative; z-index: 2; max-width: 980px; }
.hero__eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; opacity: .82; margin: 0 0 24px; }
.hero__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(56px, 11vw, 184px);
  line-height: 0.92; letter-spacing: -0.035em; margin: 0;
}
.hero__title span { display:block; }
.hero__title em { font-style: italic; color: var(--sand); font-weight: 300; }
.hero__lede { max-width: 540px; font-size: 17px; line-height: 1.55; opacity: .92; margin: 32px 0 36px; }
.hero__ctas { display:flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll {
  position: absolute; right: clamp(24px,5vw,80px); bottom: 40px;
  z-index: 2; font-family: var(--mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .8;
}
.hero__scroll::after { content:""; display:block; width:1px; height:48px; background: var(--ivory); margin: 12px auto 0; animation: drop 2s var(--ease) infinite; transform-origin: top; }
@keyframes drop { 0%{transform:scaleY(.1);} 60%,100%{transform:scaleY(1); opacity:.2;} }

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  border: 1px solid transparent;
}
.btn--solid { background: var(--copper); color: var(--ivory); }
.btn--solid:hover { background: var(--copper-2); transform: translateY(-1px); }
.btn--ghost  { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: currentColor; color: var(--ink); }

/* ---------- SPEC STRIP ---------- */

.strip {
  background: var(--ivory);
  border-top: 1px solid var(--line-ink);
  border-bottom: 1px solid var(--line-ink);
}
.strip--dark {
  background: var(--ink); color: var(--ivory);
  border-color: var(--line);
}
.strip__row {
  list-style:none; margin:0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.strip__row li {
  padding: 28px clamp(16px, 2vw, 32px);
  display: flex; flex-direction: column; gap: 6px;
  border-left: 1px solid var(--line-ink);
  font-family: var(--ui);
}
.strip--dark .strip__row li { border-left-color: var(--line); }
.strip__row li:first-child { border-left: 0; }
.strip__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; opacity: .7; }
.strip__value { font-family: var(--display); font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.01em; }

/* ---------- STANDFIRST ---------- */

.standfirst {
  padding: clamp(96px, 14vw, 200px) clamp(24px,5vw,80px);
  max-width: 1280px; margin: 0 auto;
}
.standfirst__eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; opacity: .65; margin: 0 0 24px; }
.standfirst__h {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(36px, 5.5vw, 84px);
  line-height: 1.02; letter-spacing: -0.025em;
  margin: 0 0 32px; max-width: 18ch;
}
.standfirst__body { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.6; max-width: 60ch; color: rgba(10,26,36,0.78); }

/* ---------- CHAPTER (alternating full-bleed) ---------- */

.chapter {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 100vh;
  background: var(--ink); color: var(--ivory);
  overflow: hidden;
}
.chapter:nth-of-type(even) { background: var(--ink-2); }
.chapter--right { direction: rtl; }
.chapter--right > * { direction: ltr; }

.chapter__media { position: relative; overflow: hidden; }
.chapter__media img { width:100%; height:100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.chapter:hover .chapter__media img { transform: scale(1.04); }

.chapter__copy {
  padding: clamp(64px, 8vw, 128px) clamp(28px, 5vw, 96px);
  display: flex; flex-direction: column; justify-content: center;
  max-width: 720px;
}
.chapter__eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--sand); margin: 0 0 22px; }
.chapter__h {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.04; letter-spacing: -0.025em;
  margin: 0 0 26px;
}
.chapter__body { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.65; opacity: .9; max-width: 52ch; }

/* ---------- PAGETOP (interior pages) ---------- */

.pagetop {
  position: relative;
  min-height: 72vh;
  display: grid; place-items: end start;
  padding: var(--nav-h) clamp(24px,5vw,80px) clamp(56px,7vw,96px);
  color: var(--ivory);
  background-image: var(--bg);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.pagetop--tall { min-height: 80vh; }
.pagetop__veil {
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(10,26,36,0.45) 0%, rgba(10,26,36,0.0) 30%, rgba(10,26,36,0.0) 55%, rgba(10,26,36,0.72) 100%);
}
.pagetop__copy { position: relative; max-width: 1100px; }
.pagetop__eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; opacity: .85; margin: 0 0 22px; }
.pagetop__h {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(56px, 11vw, 170px);
  line-height: 0.94; letter-spacing: -0.035em; margin: 0;
}
.pagetop__h em { font-style: italic; color: var(--sand); font-weight: 300; display: block; }
.pagetop__lede { max-width: 580px; font-size: 18px; line-height: 1.55; opacity: .92; margin: 28px 0 0; }

/* ---------- PROSE ---------- */

.prose {
  padding: clamp(96px, 14vw, 180px) clamp(24px,5vw,80px);
  max-width: 1280px; margin: 0 auto;
}
.prose--narrow { max-width: 1000px; }
.prose__eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; opacity: .65; margin: 0 0 22px; }
.prose__h { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5vw, 72px); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 48px; max-width: 22ch; }
.prose__cols {
  columns: 2; column-gap: 56px;
  font-size: clamp(16px, 1.15vw, 19px); line-height: 1.7; color: rgba(10,26,36,0.82);
}
.prose__cols p { break-inside: avoid-column; margin: 0 0 20px; }

/* ---------- GALLERY ---------- */

.gallery {
  background: var(--ink); color: var(--ivory);
  padding: clamp(96px, 14vw, 180px) clamp(16px,3vw,48px);
}
.gallery__head { padding: 0 clamp(8px,2vw,32px) clamp(56px,7vw,96px); max-width: 1280px; margin: 0 auto; }
.gallery__eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; opacity: .65; margin: 0 0 22px; }
.gallery__h { font-family: var(--display); font-weight: 400; font-size: clamp(34px,5vw,72px); line-height: 1; letter-spacing: -0.025em; margin: 0; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.gallery__cell { margin: 0; overflow: hidden; border-radius: 2px; }
.gallery__cell img { width:100%; height:100%; object-fit:cover; transition: transform 1.2s var(--ease); }
.gallery__cell:hover img { transform: scale(1.04); }

/* ---------- AMENITIES ---------- */

.amenities { padding: clamp(96px,14vw,180px) clamp(24px,5vw,80px); max-width: 1280px; margin: 0 auto; }
.amenities__eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; opacity: .65; margin: 0 0 22px; }
.amenities__h { font-family: var(--display); font-weight: 400; font-size: clamp(34px,5vw,72px); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 56px; }
.amenities__cols {
  display: grid; gap: 48px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.amenities__col h3 { font-family: var(--mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line-ink); color: rgba(10,26,36,0.6); }
.amenities__col ul { list-style: none; padding: 0; margin: 0; }
.amenities__col li { padding: 8px 0; font-size: 15.5px; color: rgba(10,26,36,0.84); border-bottom: 1px dashed var(--line-ink); }
.amenities__col li:last-child { border-bottom: 0; }

/* ---------- NEAR ---------- */

.near { background: var(--ink); color: var(--ivory); padding: clamp(96px,14vw,180px) clamp(24px,5vw,80px); }
.near__eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; opacity: .65; margin: 0 0 22px; }
.near__h { font-family: var(--display); font-weight: 400; font-size: clamp(34px,5vw,72px); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 56px; max-width: 1100px; }
.near__list { list-style: none; padding: 0; margin: 0; max-width: 1100px; }
.near__list li { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 26px 0; border-top: 1px solid var(--line); }
.near__list li:last-child { border-bottom: 1px solid var(--line); }
.near__name { font-family: var(--display); font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.01em; }
.near__note { color: var(--sand); opacity: .82; font-size: 15.5px; align-self: center; }

/* ---------- MAP ---------- */

.map { padding: 0 clamp(24px,5vw,80px) clamp(56px,8vw,120px); background: var(--ivory); }
.map__inner { overflow: hidden; border-radius: 8px; box-shadow: 0 24px 80px -32px rgba(10,26,36,0.4); }
.map iframe { width: 100%; height: clamp(360px, 50vh, 560px); border: 0; display: block; }

/* ---------- CALLOUT ---------- */

.callout {
  background: var(--jade); color: var(--ivory);
  padding: clamp(96px, 14vw, 180px) clamp(24px,5vw,80px);
}
.callout--alt { background: var(--jade-deep); }
.callout__inner { max-width: 1100px; margin: 0 auto; }
.callout__eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--sand); margin: 0 0 24px; }
.callout__h { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5.5vw, 86px); line-height: 1; letter-spacing: -0.025em; margin: 0 0 28px; max-width: 16ch; }
.callout__body { font-size: clamp(17px, 1.3vw, 20px); max-width: 60ch; opacity: .92; margin: 0 0 36px; }
.callout__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- CONTACT CARDS ---------- */

.contact { padding: clamp(64px,10vw,128px) clamp(24px,5vw,80px); background: var(--ivory); }
.contact__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); max-width: 1280px; margin: 0 auto; }
.contact__card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 36px 32px; min-height: 220px;
  background: #fff; border: 1px solid var(--line-ink);
  border-radius: 4px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.contact__card:hover { transform: translateY(-3px); border-color: var(--copper); }
.contact__card--whats { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.contact__card--whats:hover { background: #11283b; }
.contact__label { font-family: var(--mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; opacity: .65; margin: 0; }
.contact__value { font-family: var(--display); font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.01em; margin: 0; }
.contact__hint { font-size: 14.5px; opacity: .72; margin: auto 0 0; }

/* ---------- FOOTER ---------- */

.foot { background: var(--ink); color: var(--ivory); padding: clamp(64px,8vw,120px) clamp(24px,5vw,80px) 32px; }
.foot__top { display: grid; gap: 48px; grid-template-columns: 2fr 1fr; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.foot__word { font-family: var(--display); font-size: clamp(34px,4vw,56px); margin: 0 0 16px; letter-spacing: -0.02em; }
.foot__line { max-width: 50ch; opacity: .8; font-size: 16px; margin: 0; }
.foot__contact { display: flex; flex-direction: column; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.foot__contact a { opacity: .85; transition: color .25s var(--ease), opacity .25s var(--ease); }
.foot__contact a:hover { color: var(--copper); opacity: 1; }
.foot__meta { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .6; flex-wrap: wrap; }
.foot__meta a { border-bottom: 1px solid var(--line); }
.foot__meta a:hover { color: var(--copper); border-color: var(--copper); }

/* ---------- WHATSAPP FAB ---------- */

.whats-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whats); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 18px 40px -12px rgba(31,175,84,0.55), 0 2px 6px rgba(0,0,0,0.18);
  transition: transform .25s var(--ease);
}
.whats-fab:hover { transform: translateY(-3px) scale(1.04); }

/* ---------- REVEAL ---------- */

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1100px) {
  .strip__row { grid-template-columns: repeat(3, 1fr); }
  .strip__row li:nth-child(4) { border-left: 0; }
}
@media (max-width: 900px) {
  .nav { padding: 14px 20px; }
  .nav__word { display: none; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .chapter { grid-template-columns: 1fr; min-height: auto; }
  .chapter--right { direction: ltr; }
  .chapter__media { aspect-ratio: 4/3; }
  .chapter__copy { padding: 64px 24px 80px; }
  .prose__cols { columns: 1; }
  .foot__top { grid-template-columns: 1fr; }
  .near__list li { grid-template-columns: 1fr; gap: 8px; }
  .near__note { color: var(--sand); }
  .gallery__cell { grid-column: 1 / -1 !important; aspect-ratio: 3/2 !important; }
}
@media (max-width: 600px) {
  .strip__row { grid-template-columns: repeat(2, 1fr); }
  .strip__row li:nth-child(odd) { border-left: 0; }
  .strip__row li { padding: 18px 16px; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__scroll::after { animation: none; }
  .nav__cta-dot { animation: none; }
}
