/* ============================================================
   TERRENOS TONDELA — style.css
   Reset, variáveis, tipografia, layout global, secções,
   estrutura das páginas e responsividade.
   Componentes reutilizáveis estão em components.css
   ============================================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.7;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--color-ink);
  background-color: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

ul[role="list"],
ol[role="list"],
.nav-list,
.submenu,
.footer-links,
.chip-row,
.feature-list {
  list-style: none;
  padding: 0;
}

a {
  color: var(--color-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-green-dark);
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--color-gold-soft);
  color: var(--color-ink);
}

/* ---------- Variáveis ---------- */
:root {
  /* Paleta premium */
  --color-green: #24382e;
  --color-green-dark: #16241d;
  --color-green-soft: #35523f;
  --color-gold: #9a7a48;
  --color-gold-dark: #7c6136;
  --color-gold-soft: #efe5d4;
  --color-ink: #22271f;
  --color-muted: #5b635b;
  --color-paper: #f7f5f0;
  --color-card: #ffffff;
  --color-line: #e2dccf;
  --color-focus: #b06c1f;

  /* Tipografia */
  --font-display: Georgia, "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Medidas */
  --container: 1180px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 10px rgba(22, 36, 29, 0.07);
  --shadow-md: 0 12px 34px rgba(22, 36, 29, 0.12);
  --shadow-lg: 0 26px 60px rgba(22, 36, 29, 0.18);
  --section-pad: clamp(4rem, 9vw, 7.5rem);
}

/* ---------- Tipografia ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--color-green-dark);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}

h4 {
  font-size: 1.08rem;
}

p {
  max-width: 68ch;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--color-muted);
  max-width: 62ch;
}

.small {
  font-size: 0.9rem;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-pad);
}

.section-alt {
  background: var(--color-card);
  border-block: 1px solid var(--color-line);
}

.section-tint {
  background: linear-gradient(180deg, #f2eee5 0%, var(--color-paper) 100%);
}

.section-header {
  max-width: 760px;
  margin-bottom: clamp(2.2rem, 5vw, 3.6rem);
}

.section-header .section-lead {
  margin-top: 1rem;
}

.section-header-center {
  margin-inline: auto;
  text-align: center;
}

.section-header-center .section-lead {
  margin-inline: auto;
}

/* Grid de duas colunas (texto + apoio) */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split > :last-child {
  min-width: 0;
}

/* Prosa editorial */
.prose > * + * {
  margin-top: 1.1rem;
}

.prose h2 {
  margin-top: 2.2rem;
}

.prose h3 {
  margin-top: 1.8rem;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
  max-width: 68ch;
}

.prose li + li {
  margin-top: 0.45rem;
}

/* ---------- Hero (Homepage) ---------- */
.hero {
  position: relative;
  min-height: max(88vh, 560px);
  display: flex;
  align-items: flex-end;
  color: #f6f3ec;
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    185deg,
    rgba(15, 24, 19, 0.28) 0%,
    rgba(15, 24, 19, 0.45) 45%,
    rgba(13, 21, 17, 0.86) 100%
  );
}

.hero-content {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  max-width: 820px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #e8ddc6;
  margin-bottom: 1.4rem;
}

.hero-kicker::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--color-gold);
}

.hero-title {
  color: #fbf9f4;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  line-height: 1.65;
  color: #ece7db;
  max-width: 58ch;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}

.hero-cta {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-meta {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.4rem;
  font-size: 0.95rem;
  color: #ded7c7;
}

.hero-meta strong {
  color: #fff;
  font-weight: 600;
}

/* ---------- Hero interior (páginas de terreno) ---------- */
.page-hero {
  position: relative;
  min-height: clamp(340px, 52vh, 520px);
  display: flex;
  align-items: flex-end;
  color: #f6f3ec;
  isolation: isolate;
  overflow: hidden;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(185deg, rgba(15, 24, 19, 0.2) 0%, rgba(13, 21, 17, 0.82) 100%);
}

.page-hero-content {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 860px;
}

.page-hero-content .hero-kicker {
  color: #e8ddc6;
}

.page-hero-title {
  color: #fbf9f4;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
}

.page-hero-sub {
  margin-top: 1rem;
  color: #ece7db;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  max-width: 60ch;
}

/* ---------- Tabelas de dados ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-card);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  min-width: 34rem;
}

.data-table caption {
  text-align: left;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-green-dark);
  padding: 1.1rem 1.3rem 0.4rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.9rem 1.3rem;
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
}

.data-table thead th {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  background: #fbf9f4;
}

.data-table tbody th {
  font-weight: 600;
  color: var(--color-green-dark);
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:nth-child(even) {
  background: #fcfbf7;
}

/* ---------- Listas de características ---------- */
.feature-list li {
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: 0.8rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1.05rem;
  height: 0.55rem;
  border-left: 2.5px solid var(--color-gold);
  border-bottom: 2.5px solid var(--color-gold);
  transform: rotate(-45deg);
}

.num-list {
  counter-reset: item;
}

.num-list li {
  counter-increment: item;
  position: relative;
  padding-left: 3.4rem;
  margin-bottom: 1.6rem;
}

.num-list li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -0.15rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
}

.num-list h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

/* ---------- Secção CTA final ---------- */
.cta-panel {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(154, 122, 72, 0.28), transparent 60%),
    var(--color-green-dark);
  color: #ece7db;
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.cta-panel h2,
.cta-panel h3 {
  color: #fbf9f4;
}

.cta-panel p {
  color: #cfd8cd;
  max-width: 58ch;
}

.cta-panel .eyebrow {
  color: #d8c496;
}

.cta-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.cta-note {
  margin-top: 1.6rem;
  font-size: 0.92rem;
  color: #b9c2b6;
}

.cta-note a {
  color: #e8ddc6;
}

/* ---------- Faixa de imagens (resumo visual) ---------- */
.image-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.image-strip a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.image-strip a:hover,
.image-strip a:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.image-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Responsividade ---------- */
@media (max-width: 900px) {
  .image-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .hero-cta .btn {
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-media img {
    transform: none !important;
  }
}

/* ---------- Impressão ---------- */
@media print {
  .site-header,
  .site-footer,
  .modal,
  .hero-cta,
  .cta-actions {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
