/* ============================================================
   TEMPO by Müze — Praia Brava, Itajaí
   Direção Visual Autoral: Arquitetura da Geografia & Hospitalidade Silenciosa
   Tokens & Identidade Exclusiva Manica Marin
   ============================================================ */

:root {
  --paper: #F7F5EE;
  --paper-warm: #EFECE3;
  --paper-card: #FFFFFF;
  --greige: #E5E2D9;
  --cream: #EBE5D9;
  --terracotta: #6A4029;
  --terracotta-dark: #4D2D1B;
  --terracotta-light: #8A5338;
  --gold-mineral: #9E7445;
  --gold-soft: #B89263;
  --ink: #24201D;
  --ink-soft: #574F47;
  --ink-muted: #82786E;
  --line-light: rgba(106, 64, 41, 0.12);
  --line-strong: rgba(106, 64, 41, 0.24);
  --line-on-dark: rgba(235, 229, 217, 0.18);
  
  --serif: "Cormorant Garamond", "Mrs Eaves", Garamond, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --maxw: 1360px;
  --maxw-narrow: 1040px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-soft: 0 16px 40px -12px rgba(77, 45, 27, 0.08);
  --shadow-deep: 0 24px 60px -16px rgba(36, 32, 29, 0.25);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--paper);
}

body {
  font-family: var(--sans);
  background-color: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

main img:not([data-no-zoom]) {
  cursor: zoom-in;
}

main img:not([data-no-zoom]):focus-visible {
  outline: 3px solid var(--gold-mineral);
  outline-offset: 4px;
}

.image-lightbox {
  width: min(94vw, 1500px);
  max-width: none;
  max-height: 94vh;
  padding: clamp(14px, 2vw, 28px);
  overflow: auto;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(106, 64, 41, 0.2);
  border-radius: var(--radius-md);
  box-shadow: 0 28px 90px rgba(15, 12, 10, 0.38);
}

.image-lightbox::backdrop {
  background: rgba(18, 15, 13, 0.86);
  backdrop-filter: blur(5px);
}

.image-lightbox-frame {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.image-lightbox-image {
  width: auto;
  max-width: 100%;
  max-height: calc(94vh - 100px);
  object-fit: contain;
  cursor: auto;
}

.image-lightbox-caption {
  max-width: 900px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

.image-lightbox-close {
  position: sticky;
  top: 0;
  justify-self: end;
  z-index: 1;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--paper-warm);
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: 0.82rem;
}

.image-lightbox-close span {
  margin-left: 6px;
  font-size: 1.2rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ------------------------------------------------------------
   Tipografia e Hierarquia Editorial
   ------------------------------------------------------------ */

.serif {
  font-family: var(--serif);
}

.sc {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.12em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-mineral);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: var(--gold-mineral);
}

.on-dark .eyebrow {
  color: var(--gold-soft);
}

.on-dark .eyebrow::before {
  background-color: var(--gold-soft);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  color: inherit;
}

.display-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6.5vw, 5.4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.display-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--terracotta);
}

.on-dark .display-title em {
  color: var(--gold-soft);
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--terracotta);
}

.on-dark .section-title em {
  color: var(--gold-soft);
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 58ch;
  margin-bottom: 1.5rem;
}

.on-dark .lead {
  color: var(--cream);
  opacity: 0.95;
}

.body-text {
  font-size: 1.025rem;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 62ch;
}

.on-dark .body-text {
  color: rgba(235, 229, 217, 0.82);
}

/* ------------------------------------------------------------
   Layout & Estrutura
   ------------------------------------------------------------ */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.wrap-narrow {
  max-width: var(--maxw-narrow);
}

.section-pad {
  padding-top: clamp(64px, 8vw, 120px);
  padding-bottom: clamp(64px, 8vw, 120px);
}

.section-pad-sm {
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(40px, 5vw, 72px);
}

.on-dark {
  background-color: var(--terracotta);
  color: var(--paper);
}

.on-dark-deep {
  background-color: var(--terracotta-dark);
  color: var(--paper);
}

.on-warm {
  background-color: var(--paper-warm);
}

/* ------------------------------------------------------------
   Skip Link & Header
   ------------------------------------------------------------ */

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 20px;
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(247, 245, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-light);
  z-index: 50;
  transition: background-color 0.3s ease;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.site-header .brand img {
  height: 38px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
}

.header-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.header-nav a:hover {
  color: var(--terracotta);
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.language-switch a {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.language-switch a[aria-current="page"] {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
}

.footer-language-switch {
  grid-column: 1 / -1;
  justify-content: flex-end;
  margin-top: 18px;
}

.header-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  color: var(--terracotta);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  background: var(--terracotta);
  color: #fff !important;
  border-radius: 30px;
  transition: background-color 0.25s var(--ease), transform 0.2s var(--ease);
}

.header-cta:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
}

/* ------------------------------------------------------------
   Subnav / Menu de Capítulos
   ------------------------------------------------------------ */

.chapter-nav {
  position: sticky;
  top: 76px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line-light);
  z-index: 40;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(184, 80, 48, 0.45) transparent;
  mask-image: linear-gradient(to right, black 0%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 85%, transparent 100%);
}

.chapter-nav::-webkit-scrollbar {
  height: 3px;
}

.chapter-nav::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
}

.chapter-nav::-webkit-scrollbar-thumb {
  background: var(--terracotta);
  border-radius: 2px;
}

.chapter-nav .wrap {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.8vw, 32px);
  height: 48px;
  padding-right: 48px; /* space so the last chapter isn't cut off by mask */
}

.chapter-link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 12px 0;
  position: relative;
  flex-shrink: 0;
}

.chapter-link:hover,
.chapter-link.is-active {
  color: var(--terracotta);
}

.chapter-link.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--terracotta);
}

/* ------------------------------------------------------------
   Hero Section: Abertura Contemplativa
   ------------------------------------------------------------ */

.hero-tempo {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(32px, 5vh, 64px);
  padding-bottom: clamp(32px, 5vh, 48px);
  background-color: var(--paper);
  border-bottom: 1px solid var(--line-light);
}

.hero-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 1rem;
}

.hero-meta-top span i {
  font-style: normal;
  color: var(--gold-mineral);
  margin: 0 4px;
}

.hero-main-content {
  margin-top: clamp(24px, 4vh, 48px);
  margin-bottom: clamp(32px, 5vh, 56px);
}

.hero-monogram {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-mineral);
  margin-bottom: 0.5rem;
}

.hero-title-group {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-top: 1rem;
}

.hero-subtitle strong {
  font-weight: 400;
  color: var(--ink);
}

.hero-media-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

.hero-media-wrapper img {
  width: 100%;
  height: clamp(380px, 62vh, 640px);
  object-fit: cover;
  transform: scale(1);
  transition: transform 1.2s var(--ease);
}

.hero-media-wrapper:hover img {
  transform: scale(1.02);
}

.hero-media-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: linear-gradient(to top, rgba(20, 16, 14, 0.85) 0%, rgba(20, 16, 14, 0) 100%);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-meta-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
  margin-top: 2rem;
}

/* ------------------------------------------------------------
   Faixa Factual Estruturada (Grid de Síntese)
   ------------------------------------------------------------ */

.fact-strip {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line-light);
  padding-top: 36px;
  padding-bottom: 36px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.fact-item {
  border-left: 2px solid var(--gold-mineral);
  padding-left: 16px;
}

.fact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.fact-value {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}

.fact-sub {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* ------------------------------------------------------------
   Manifesto & Conceito: A Beleza do Tempo
   ------------------------------------------------------------ */

.manifesto-section {
  position: relative;
  overflow: hidden;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.manifesto-quote {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.3;
  color: var(--terracotta);
  border-left: 3px solid var(--terracotta);
  padding-left: 24px;
  margin-bottom: 2rem;
}

.triad-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-light);
}

.triad-item h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-mineral);
  margin-bottom: 4px;
}

.triad-item p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.manifesto-image-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.manifesto-image-box img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

/* ------------------------------------------------------------
   Masterplan: 8 Torres & Fluxos Independentes
   ------------------------------------------------------------ */

.masterplan-section {
  background-color: var(--paper-warm);
}

.masterplan-header {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.masterplan-schematic {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.masterplan-image-card {
  background: #fff;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-soft);
}

.masterplan-image-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.masterplan-legend-strip {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.masterplan-legend-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.masterplan-legend-strip span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--terracotta);
}

.masterplan-info-deck {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.deck-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.deck-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.deck-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--terracotta);
}

.deck-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.deck-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pill-item {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--paper-warm);
  color: var(--ink-soft);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--line-light);
}

/* ------------------------------------------------------------
   As 4 Assinaturas Globais (Grid Curado)
   ------------------------------------------------------------ */

.signatures-section {
  position: relative;
}

.signatures-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3.5vw, 40px);
  margin-top: clamp(32px, 4vw, 56px);
}

.signature-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.signature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.signature-card-media {
  position: relative;
  height: 280px;
  overflow: hidden;
}

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

.signature-card:hover .signature-card-media img {
  transform: scale(1.04);
}

.signature-role {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(247, 245, 238, 0.94);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.signature-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.signature-card-body h3 {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.signature-card-body .author-meta {
  font-size: 0.82rem;
  color: var(--gold-mineral);
  font-weight: 500;
  margin-bottom: 14px;
}

.signature-card-body p {
  font-size: 0.925rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 16px;
}

.signature-portfolio-tag {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-light);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.signature-portfolio-tag strong {
  color: var(--ink);
  font-weight: 600;
}

/* Complemento das assinaturas: Regina Bruni & Melnick */
.signatures-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.secondary-card {
  background: var(--paper-warm);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.secondary-card h4 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.secondary-card span {
  font-size: 0.75rem;
  color: var(--gold-mineral);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.secondary-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-top: 10px;
}

/* ------------------------------------------------------------
   Hotel Emiliano: A Hospitalidade Silenciosa (Seção Imersiva)
   ------------------------------------------------------------ */

.emiliano-hero-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-bottom: clamp(48px, 6vw, 84px);
}

.emiliano-hero-img {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

.emiliano-hero-img img {
  width: 100%;
  height: clamp(360px, 50vh, 520px);
  object-fit: cover;
}

.emiliano-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
  margin-bottom: clamp(48px, 6vw, 80px);
}

.emiliano-feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: background-color 0.25s var(--ease), transform 0.2s var(--ease);
}

.emiliano-feature-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.emiliano-feature-card h3 {
  font-size: 1.35rem;
  color: var(--cream);
  margin-bottom: 10px;
}

.emiliano-feature-card ul {
  list-style: none;
  margin-top: 12px;
}

.emiliano-feature-card ul li {
  font-size: 0.86rem;
  color: rgba(235, 229, 217, 0.82);
  line-height: 1.6;
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}

.emiliano-feature-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold-soft);
}

/* ------------------------------------------------------------
   Os 17 Serviços Residenciais: Interface Interativa por Categorias
   ------------------------------------------------------------ */

.services-interactive-wrapper {
  background: var(--paper-card);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
  color: var(--ink);
  box-shadow: var(--shadow-deep);
}

.services-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--paper-warm);
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}

.tab-btn:hover {
  background: var(--greige);
  color: var(--ink);
}

.tab-btn.is-active {
  background: var(--terracotta);
  color: #fff;
  font-weight: 600;
}

.service-tier-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper-warm);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--gold-mineral);
}

.service-tier-notice span strong {
  color: var(--terracotta);
}

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

.service-card-item {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 20px;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card-item:hover {
  border-color: var(--terracotta);
  transform: translateY(-2px);
}

.service-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-mineral);
  display: block;
  margin-bottom: 6px;
}

.service-card-item h4 {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.service-card-item p {
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.service-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.service-tag.common {
  background: #E8F0EA;
  color: #245A32;
}

.service-tag.ondemand {
  background: #F8EEE6;
  color: var(--terracotta);
}

/* ------------------------------------------------------------
   O Parque das Águas & Amenidades por Torre
   ------------------------------------------------------------ */

.water-section {
  position: relative;
}

.water-triad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
  margin-top: 36px;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.water-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.water-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.water-card-body {
  padding: 24px;
}

.water-card-body h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.water-card-body p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.tower-amenities-accordion {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 32px;
}

.tower-amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.tower-col {
  border-left: 2px solid var(--line-strong);
  padding-left: 16px;
}

.tower-col h4 {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.tower-col p {
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   Localização & Praia Brava Norte
   ------------------------------------------------------------ */

.location-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.location-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}

.metric-box h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.metric-box .metric-val {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--terracotta);
  margin-top: 4px;
}

.metric-box .metric-time {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* Leituras editoriais relacionadas */
.related-reading-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.related-reading-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 260px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--paper-card);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.reading-kicker {
  color: var(--gold-mineral);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.related-reading-card h3 {
  margin-top: 18px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
}

.related-reading-card p {
  margin: 14px 0 22px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

.related-reading-card a {
  margin-top: auto;
  color: var(--terracotta);
  font-size: 0.85rem;
  font-weight: 650;
}

.related-reading-card a:hover {
  color: var(--terracotta-dark);
}

/* ------------------------------------------------------------
   CTA Consultivo & Integração Estoque Vivo Vista
   ------------------------------------------------------------ */

.closing-cta {
  background: var(--terracotta-dark);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing-cta .eyebrow {
  color: var(--gold-soft);
}

.closing-cta .eyebrow::before {
  background-color: var(--gold-soft);
}

.closing-box {
  max-width: 760px;
  margin: 0 auto;
}

.closing-box h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.closing-box h2 em {
  font-style: italic;
  color: var(--gold-soft);
}

.closing-box p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--cream);
  opacity: 0.92;
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  color: var(--terracotta-dark);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 16px 32px;
  border-radius: 40px;
  box-shadow: var(--shadow-deep);
  transition: all 0.25s var(--ease);
}

.button-primary:hover {
  background: #fff;
  transform: translateY(-2px);
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line-on-dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 16px 28px;
  border-radius: 40px;
  transition: all 0.25s var(--ease);
}

.button-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.cta-disclaimer {
  font-size: 0.75rem;
  color: rgba(235, 229, 217, 0.65);
  margin-top: 2rem;
  line-height: 1.5;
}

/* ------------------------------------------------------------
   Rodapé Institucional
   ------------------------------------------------------------ */

.site-footer {
  background: var(--paper-warm);
  color: var(--ink-soft);
  padding-top: 48px;
  padding-bottom: 48px;
  font-size: 0.8rem;
  border-top: 1px solid var(--line-light);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-creci {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 8px;
}

.footer-locations {
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--ink-muted);
}

/* ------------------------------------------------------------
   Caderno Editorial: Componentes de Ensaio & Leitura Crítica
   ------------------------------------------------------------ */

.chapter-index {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-mineral);
  margin-bottom: 0.85rem;
}

.on-dark .chapter-index {
  color: var(--gold-soft);
}

.chapter-index i {
  display: inline-block;
  width: 20px;
  height: 1px;
  background-color: currentColor;
}

.editorial-essay {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.editorial-essay p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 68ch;
}

.on-dark .editorial-essay p {
  color: rgba(235, 229, 217, 0.88);
}

.editorial-essay p strong {
  color: var(--ink);
  font-weight: 600;
}

.on-dark .editorial-essay p strong {
  color: #fff;
}

.external-entity-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--terracotta);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(106, 64, 41, 0.35);
  transition: all 0.2s ease;
}

.external-entity-link:hover {
  color: var(--terracotta-dark);
  text-decoration-color: var(--terracotta);
}

.on-dark .external-entity-link {
  color: var(--gold-soft);
  text-decoration-color: rgba(184, 146, 99, 0.4);
}

.on-dark .external-entity-link:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.notice-card {
  background: var(--paper-warm);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--terracotta);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.notice-card h4 {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.notice-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.spec-table-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
  margin-bottom: 2rem;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.spec-table th {
  background: var(--paper-warm);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-light);
}

.spec-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-light);
  color: var(--ink-soft);
  line-height: 1.5;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table td strong {
  color: var(--ink);
  font-weight: 600;
}

.related-reading-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 2rem;
}

.related-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: var(--terracotta);
}

.related-card .related-meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-mineral);
  margin-bottom: 8px;
}

.related-card h4 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--ink);
}

.related-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 16px;
  flex-grow: 1;
}

.related-card a.read-link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ------------------------------------------------------------
   Responsividade & Media Queries
   ------------------------------------------------------------ */

@media (max-width: 1024px) {
  .manifesto-grid,
  .masterplan-schematic,
  .emiliano-hero-block,
  .location-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .signatures-grid {
    grid-template-columns: 1fr;
  }
  
  .emiliano-features-grid,
  .water-triad-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .related-reading-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header .wrap {
    height: 64px;
  }
  
  .header-nav {
    display: none;
  }
  
  .chapter-nav {
    top: 64px;
    padding-left: 12px;
  }

  .chapter-nav .wrap {
    gap: 20px;
    padding-right: 36px;
  }

  .hero-meta-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    padding-bottom: 0.75rem;
  }

  .hero-meta-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    padding-top: 1rem;
    margin-top: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.45;
  }
  
  .triad-box {
    grid-template-columns: 1fr;
  }
  
  .signatures-secondary {
    grid-template-columns: 1fr;
  }
  
  .location-metrics {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   Acessibilidade: Redução de Movimento
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
