/* Sala Lunins — identidade visual PMMS / Lunins (petróleo #38525a · ouro) */

:root {
  --brand-petroleo: #38525a;
  --brand-petroleo-dark: #2a3d44;
  --brand-petroleo-soft: #4a6b75;
  --brand-gold: #c9a227;
  --brand-gold-bright: #d4af37;
  --brand-gold-muted: #e8d5a3;
  --bg: #f9f7f3;
  --bg-alt: #f0ebe3;
  --surface: #ffffff;
  --text: #1a1d21;
  --text-muted: #4a4d54;
  --accent: var(--brand-petroleo);
  --accent-soft: var(--brand-petroleo-soft);
  --accent-warm: var(--brand-gold);
  --border: #d4cfc4;
  --shadow: rgba(26, 40, 45, 0.1);
  --radius: 12px;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-display: "Cormorant Garamond", "Source Serif 4", Georgia, serif;
  --header-h: 72px;
  --maxw: min(50rem, 92vw);
  --maxw-wide: min(62rem, 94vw);
  --section-pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad-y: clamp(3rem, 6vw, 5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.72;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--brand-petroleo-dark);
  color: #fff;
  z-index: 9999;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid var(--brand-gold-muted);
}

.skip-link:focus {
  top: 1rem;
}

/* Header — marca petróleo + logo ouro */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--brand-petroleo-dark) 0%, var(--brand-petroleo) 100%);
  border-bottom: 3px solid var(--brand-gold-muted);
  box-shadow: 0 4px 24px rgba(26, 40, 45, 0.25);
}

.header-inner {
  max-width: min(1400px, 100%);
  margin: 0 auto;
  padding: 0.85rem var(--section-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-lockup:hover .brand-title {
  color: var(--brand-gold-bright);
}

.brand-logo {
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.2;
}

.brand-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav-list a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--brand-gold-bright);
}

.nav-list a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--brand-gold-muted);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    width: 100%;
    display: none;
    padding: 0.75rem 0 0.5rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-top: 0.25rem;
  }

  .nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Hero — overlay petróleo + fio dourado (identidade) */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-pad-y) var(--section-pad-x);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--brand-petroleo-dark) 0%, var(--brand-petroleo) 45%, #2e4a52 100%);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 75% 15%, rgba(212, 175, 55, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 15% 85%, rgba(232, 213, 163, 0.08), transparent 50%);
  pointer-events: none;
}

.hero--image .hero-bg--photo {
  background:
    linear-gradient(145deg, rgba(42, 61, 68, 0.88) 0%, rgba(56, 82, 90, 0.82) 45%, rgba(42, 61, 68, 0.88) 100%),
    url("../img/projeto/posterior-b.jpg") center 42% / cover no-repeat var(--brand-petroleo-dark);
}

.hero--image .hero-bg--photo::after {
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: min(44rem, 94vw);
  text-align: center;
  color: #faf8f2;
  padding: 0 0.5rem;
}

.eyebrow {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  opacity: 0.85;
  margin: 0 0 0.85rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.32rem);
  font-weight: 600;
  line-height: 1.42;
  margin: 0 0 1rem;
  color: var(--brand-gold-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 22em;
  margin-left: auto;
  margin-right: auto;
}

.hero-tagline-line {
  display: block;
}

.hero-tagline-line + .hero-tagline-line {
  margin-top: 0.2em;
}

.hero-tagline .tagline-phrase {
  white-space: nowrap;
}

.hero-tagline .tagline-dot {
  display: inline-block;
  margin: 0 0.35em;
  font-weight: 500;
  opacity: 0.95;
}

@media (max-width: 380px) {
  .hero-tagline .tagline-phrase {
    white-space: normal;
  }
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 500;
  opacity: 0.95;
  margin: 0 0 0.85rem;
  line-height: 1.45;
}

.hero-meta {
  font-size: 0.9375rem;
  opacity: 0.88;
  margin: 0 0 0.45rem;
}

.hero-credit {
  font-size: 0.875rem;
  opacity: 0.72;
  margin: 0 0 1.75rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.9rem 1.85rem;
  background: linear-gradient(180deg, var(--brand-gold-bright) 0%, #b89226 100%);
  color: #1a1a1a;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #e8d080 0%, var(--brand-gold-bright) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--brand-gold-muted);
  outline-offset: 3px;
}

/* Hero: hierarquia tipográfica sóbria no telemóvel */
@media (max-width: 719px) {
  .hero {
    min-height: auto;
    padding-top: clamp(2.5rem, 11vw, 3.75rem);
    padding-bottom: clamp(2.65rem, 11vw, 3.75rem);
    padding-left: max(1.15rem, env(safe-area-inset-left));
    padding-right: max(1.15rem, env(safe-area-inset-right));
  }

  .hero-content {
    padding: 0 0.35rem;
    max-width: min(100%, 22.5rem);
    margin-left: auto;
    margin-right: auto;
  }

  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.65rem;
    line-height: 1.45;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 6.8vw, 2.15rem);
    margin-bottom: 0.65rem;
    line-height: 1.12;
  }

  .hero-tagline {
    font-size: clamp(0.72rem, 2.6vw, 0.82rem);
    letter-spacing: 0.07em;
    line-height: 1.45;
    margin-bottom: 0.85rem;
  }

  .hero-tagline-line + .hero-tagline-line {
    margin-top: 0.28em;
  }

  .hero-subtitle {
    font-size: clamp(0.92rem, 3.4vw, 1.05rem);
    line-height: 1.5;
    margin-bottom: 0.75rem;
  }

  .hero-meta {
    font-size: 0.78rem;
    line-height: 1.55;
    margin-bottom: 0.5rem;
  }

  .hero-credit {
    font-size: 0.72rem;
    line-height: 1.55;
    margin-bottom: 1.35rem;
  }

  .hero .btn-primary {
    font-size: 0.9rem;
    padding: 0.72rem 1.4rem;
  }
}

/* Note */
.note-sources {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 2rem var(--section-pad-x);
  border-left: 5px solid var(--brand-gold);
  background: var(--surface);
  box-shadow: 0 4px 24px var(--shadow);
}

.note-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.85rem;
  color: var(--brand-petroleo);
}

.note-sources p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Sections */
.section {
  padding: var(--section-pad-y) var(--section-pad-x);
}

.section-alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-num {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brand-petroleo-soft);
  margin-bottom: 0.65rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--brand-petroleo);
  margin: 0 0 1.35rem;
  line-height: 1.2;
}

.section h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.section p {
  margin: 0 0 1rem;
  color: var(--text);
}

.section ul,
.section ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.section li {
  margin-bottom: 0.5rem;
}

.list-check li::marker {
  color: var(--brand-petroleo-soft);
}

.lead {
  font-size: 1.2rem;
  margin-top: 1.25rem;
  line-height: 1.65;
}

.highlight-box {
  background: var(--surface);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px var(--shadow);
  margin: 1.25rem 0 0;
}

.small-print {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Concept */
.section-concept {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-style: italic;
  color: var(--brand-petroleo);
  margin: 0 0 1rem;
  padding: 0;
  border: none;
  line-height: 1.35;
}

.panels {
  font-size: 1.12rem;
  margin-bottom: 1rem;
}

.tags {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto 0;
  max-width: 44rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.65rem;
}

.tags li {
  margin: 0;
  padding: 0.45rem 1rem;
  background: var(--surface);
  border: 1px solid rgba(56, 82, 90, 0.2);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}

@media (min-width: 640px) {
  .tags {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.55rem 0.65rem;
  }

  /* três na primeira linha; duas na segunda, centralizadas */
  .tags li:nth-child(1) {
    grid-column: 1 / 3;
  }

  .tags li:nth-child(2) {
    grid-column: 3 / 5;
  }

  .tags li:nth-child(3) {
    grid-column: 5 / 7;
  }

  .tags li:nth-child(4) {
    grid-column: 2 / 4;
  }

  .tags li:nth-child(5) {
    grid-column: 4 / 6;
  }
}

/* Fundamentos grid */
.fundamentos-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .fundamentos-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.fundamentos-grid .section {
  margin: 0;
}

.fundamentos-grid .section-inner {
  max-width: none;
  padding: 0 1.5rem;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 2px 16px var(--shadow);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.02rem;
  line-height: 1.55;
}

.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: rgba(56, 82, 90, 0.08);
  font-weight: 600;
  color: var(--brand-petroleo);
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: rgba(30, 58, 95, 0.04);
}

/* Zones */
.zones {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: zone;
}

.zones li {
  counter-increment: zone;
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 3rem;
  margin-bottom: 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px var(--shadow);
}

.zones li::before {
  content: counter(zone);
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  width: 1.75rem;
  height: 1.75rem;
  line-height: 1.75rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand-petroleo);
  border-radius: 50%;
}

.zone-func {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
}

/* Benefits */
.section-benefits {
  background: linear-gradient(135deg, var(--brand-petroleo-dark) 0%, var(--brand-petroleo) 100%);
  color: #faf8f2;
  border-top: 3px solid var(--brand-gold-muted);
  border-bottom: 3px solid var(--brand-gold-muted);
}

.section-benefits .section-num {
  color: rgba(232, 213, 163, 0.85);
}

.section-benefits h2 {
  color: #fff;
}

.benefits-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.benefit-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin: 0 0 0.5rem;
  color: #fff;
  font-weight: 600;
}

.benefit-card p {
  margin: 0;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
}

/* Conclusion */
.section-conclusion {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.pull-quote-final {
  font-family: var(--font-display);
  color: var(--text);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  line-height: 1.45;
}

.refs {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.refs li {
  margin-bottom: 0.65rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem var(--section-pad-x);
  background: linear-gradient(180deg, #0f1416 0%, var(--brand-petroleo-dark) 100%);
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  border-top: 3px solid var(--brand-gold-muted);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo {
  flex-shrink: 0;
}

.footer-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.1vw, 1.2rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.site-footer p {
  margin: 0 0 0.45rem;
}

.footer-meta {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.footer-small {
  font-size: 0.78rem;
  opacity: 0.75;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
  text-wrap: balance;
}

.footer-credit-sub {
  display: block;
  margin-top: 0.35rem;
}

.back-top {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--brand-gold-muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.45);
}

.back-top:hover {
  color: var(--brand-gold-bright);
}

.footer-lead {
  font-size: clamp(0.88rem, 1.9vw, 0.98rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.48;
  text-wrap: balance;
}

.footer-note {
  font-size: 0.75rem;
  line-height: 1.58;
  opacity: 0.72;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  text-wrap: balance;
}

@media (max-width: 719px) {
  .site-footer {
    padding: 2.35rem max(1.1rem, env(safe-area-inset-right)) 2.6rem max(1.1rem, env(safe-area-inset-left));
  }

  .footer-brand {
    margin-bottom: 1rem;
  }

  .footer-logo {
    width: 34px;
    height: auto;
  }

  .footer-title {
    font-size: 0.95rem;
  }

  .site-footer p {
    margin-bottom: 0.55rem;
  }

  .footer-lead {
    font-size: 0.8rem;
    line-height: 1.52;
    max-width: 21rem;
    padding: 0 0.2rem;
    font-weight: 500;
  }

  .footer-meta {
    font-size: 0.72rem;
    line-height: 1.52;
    padding: 0 0.2rem;
    color: rgba(255, 255, 255, 0.78);
  }

  .footer-small {
    font-size: 0.7rem;
    line-height: 1.55;
    padding: 0 0.2rem;
  }

  .footer-note {
    font-size: 0.68rem;
    line-height: 1.62;
    margin-top: 1rem;
    padding: 0 0.35rem;
    opacity: 0.68;
  }

  .back-top {
    margin-top: 1.35rem;
    font-size: 0.85rem;
  }
}

/* Página 404 (publicação) */
.page-error {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, var(--bg) 0%, var(--bg-alt) 100%);
  color: var(--text);
}

.error-main {
  text-align: center;
  padding: 2rem var(--section-pad-x);
  max-width: 28rem;
}

.error-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-petroleo-soft);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.error-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--brand-petroleo);
  margin: 0 0 1rem;
  font-weight: 700;
}

.error-text {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Galeria / comparativos / detalhes */
.section-inner-wide {
  max-width: min(1100px, 100%);
}

/* Galeria: coluna mais larga para planta e comparativos */
.section-gallery .section-inner-wide {
  max-width: min(1400px, 100%);
}

.section-gallery {
  padding: var(--section-pad-y) var(--section-pad-x) calc(var(--section-pad-y) + 0.5rem);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.section-gallery .section-num {
  color: var(--brand-petroleo-soft);
}

.section-gallery #galeria-titulo {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.65rem);
  color: var(--brand-petroleo);
}

.gallery-intro {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 2.75rem;
  max-width: min(52rem, 100%);
}

.compare-heading {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  color: var(--brand-petroleo);
  margin: 2.75rem 0 1.1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.section-gallery .compare-heading:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

@media (max-width: 720px) {
  .compare-row {
    grid-template-columns: 1fr;
  }
}

.compare-figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
}

.compare-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* Comparativos em par (todas as vistas em duas colunas): imagem inteira — sem recorte lateral */
.compare-row--square {
  align-items: start;
}

.compare-row--square .compare-figure {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.compare-row--square .compare-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.compare-figure figcaption {
  padding: 0.75rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-petroleo);
  background: rgba(56, 82, 90, 0.06);
  border-top: 1px solid var(--border);
}

/* Vista superior: uma planta em largura total do bloco da galeria */
.gallery-single-wide {
  margin: 0 0 2rem;
  width: 100%;
}

.gallery-single-wide .compare-figure--solo {
  margin: 0;
}

.gallery-single-wide .compare-figure--solo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Vistas com legenda externa (faixa ao lado da imagem) */
.view-annotate-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

.view-annotate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 300px);
  gap: 0.75rem 1rem;
  min-width: 0;
  align-items: start;
}

.compare-figure--in-annotate {
  margin: 0;
}

.callout-rail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.05rem;
  box-shadow: 0 4px 18px var(--shadow);
}

.callout-rail-heading {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-petroleo);
  margin: 0 0 0.65rem;
  font-weight: 700;
}

.callout-rail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.callout-rail-list li {
  margin: 0 0 0.45rem;
}

.callout-rail-list li:last-child {
  margin-bottom: 0;
}

.callout-rail-list a {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 0.4rem 0.35rem;
  border-radius: 6px;
  border-bottom: 1px solid rgba(56, 82, 90, 0.1);
  transition: color 0.15s, background 0.15s;
}

.callout-rail-list li:last-child a {
  border-bottom: none;
  padding-bottom: 0.15rem;
}

.callout-rail-list a:hover {
  color: var(--brand-petroleo);
  background: rgba(56, 82, 90, 0.06);
}

.callout-rail-list a:focus-visible {
  outline: 2px solid var(--brand-petroleo-soft);
  outline-offset: 2px;
}

.view-annotate--planta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 300px);
  gap: 0.75rem 1rem;
  margin-bottom: 2rem;
  align-items: start;
}

.glossario-ambiente {
  margin: 2.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.glossario-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  color: var(--brand-petroleo);
  margin: 0 0 0.5rem;
}

.glossario-intro {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: min(48rem, 100%);
}

.gloss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1rem 1.25rem;
}

.gloss-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.2rem;
  box-shadow: 0 2px 14px var(--shadow);
  scroll-margin-top: 5.5rem;
}

.gloss-card-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin: 0 0 0.5rem;
  color: var(--brand-petroleo);
  font-weight: 700;
}

.gloss-card-body {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .view-annotate-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 719px) {
  .view-annotate,
  .view-annotate--planta {
    grid-template-columns: 1fr;
  }

  .callout-rail {
    order: 2;
  }

  .view-annotate .compare-figure--in-annotate {
    order: 1;
  }
}

.detail-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  color: var(--brand-petroleo);
  margin: 3rem 0 0.5rem;
}

.detail-intro {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 1.35rem;
}

.detail-intro code {
  font-size: 0.85em;
  background: var(--bg-alt);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.detail-grid {
  display: grid;
  gap: 1.35rem;
}

/* 6 imagens: 3+3 no desktop, 2+2+2 no médio, 1 col no estreito */
.detail-grid--balanced {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

@media (max-width: 960px) {
  .detail-grid--balanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .detail-grid--balanced {
    grid-template-columns: 1fr;
  }
}

.detail-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px var(--shadow);
}

.detail-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}

.detail-card figcaption {
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.45;
}

@media (min-width: 900px) {
  .detail-card img {
    height: 240px;
  }
}


/* ========== Mobile / tablet estreito: leitura, fluxo e coesão (≤719px) ========== */
@media (max-width: 719px) {
  :root {
    --section-pad-x: clamp(1rem, 4.5vw, 1.4rem);
    --section-pad-y: clamp(2.35rem, 7.5vw, 3.85rem);
  }

  html {
    overflow-x: clip;
  }

  body {
    font-size: 1.0625rem;
    line-height: 1.78;
    text-rendering: optimizeLegibility;
  }

  .header-inner {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .nav {
    padding: 0.85rem 0.65rem 0.65rem;
  }

  .nav-list {
    gap: 0.15rem 0;
  }

  .nav-list a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.35rem;
    font-size: 0.95rem;
  }

  .section h2 {
    font-size: clamp(1.52rem, 5.8vw, 2.05rem);
    line-height: 1.22;
    margin-bottom: 1.1rem;
  }

  .section h3 {
    font-size: 1.12rem;
    line-height: 1.35;
  }

  .section p,
  .section li {
    line-height: 1.78;
  }

  .section li {
    margin-bottom: 0.62rem;
  }

  .section ul,
  .section ol {
    padding-left: 1.35rem;
  }

  .lead {
    font-size: 1.08rem;
    line-height: 1.72;
  }

  .highlight-box {
    padding: 1.15rem 1.05rem;
    line-height: 1.72;
  }

  .pull-quote {
    font-size: clamp(1.38rem, 5.2vw, 2rem);
    line-height: 1.38;
  }

  .panels {
    font-size: 1.04rem;
    line-height: 1.68;
  }

  .tags li {
    font-size: 0.94rem;
    padding: 0.48rem 0.95rem;
    line-height: 1.4;
  }

  .note-sources {
    padding: 1.45rem 1.1rem;
    margin-left: 0;
    margin-right: 0;
  }

  .note-sources p {
    line-height: 1.78;
    font-size: 1.02rem;
  }

  .table-wrap {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    margin-left: 0;
    margin-right: 0;
  }

  .data-table {
    font-size: 0.97rem;
    line-height: 1.62;
  }

  .data-table th,
  .data-table td {
    padding: 0.68rem 0.72rem;
    white-space: normal;
    word-break: break-word;
    hyphens: auto;
  }

  .zones li {
    padding: 1.3rem 1rem 1.3rem 2.85rem;
  }

  .zones li::before {
    left: 0.82rem;
    top: 1.28rem;
  }

  .zone-func {
    line-height: 1.55;
    margin-top: 0.55rem;
  }

  .benefit-card {
    padding: 1.35rem 1.1rem;
  }

  .benefit-card h3 {
    font-size: 1.08rem;
    margin-bottom: 0.55rem;
  }

  .benefit-card p {
    line-height: 1.68;
    font-size: 1rem;
  }

  .pull-quote-final {
    line-height: 1.52;
    font-size: clamp(1.12rem, 3.8vw, 1.48rem);
  }

  .refs {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .refs li {
    margin-bottom: 0.72rem;
  }

  .section-gallery {
    padding-bottom: calc(var(--section-pad-y) + 0.35rem);
  }

  .section-gallery #galeria-titulo {
    font-size: clamp(1.62rem, 6vw, 2.4rem);
    line-height: 1.14;
    margin-bottom: 0.35rem;
  }

  .gallery-intro {
    font-size: 1.04rem;
    line-height: 1.82;
    margin-bottom: 1.85rem;
  }

  .compare-heading {
    margin: 1.85rem 0 0.9rem;
    padding-top: 1.25rem;
    font-size: clamp(1.28rem, 4.2vw, 1.62rem);
    line-height: 1.2;
  }

  .compare-row {
    gap: 1rem;
    margin-bottom: 1.35rem;
  }

  .compare-figure figcaption {
    padding: 0.8rem 0.95rem;
    font-size: 0.91rem;
    line-height: 1.45;
  }

  .view-annotate-row {
    gap: 1rem;
    margin-bottom: 1.35rem;
  }

  .callout-rail {
    padding: 1.12rem 0.95rem 1.15rem;
  }

  .callout-rail-heading {
    margin-bottom: 0.7rem;
  }

  .callout-rail-list a {
    font-size: 0.94rem;
    padding: 0.5rem 0.35rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    line-height: 1.35;
  }

  .glossario-title {
    font-size: clamp(1.38rem, 4.5vw, 1.85rem);
    line-height: 1.2;
  }

  .glossario-intro {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
  }

  .gloss-grid {
    gap: 1rem;
  }

  .gloss-card {
    padding: 1.15rem 1.05rem 1.2rem;
  }

  .gloss-card-title {
    font-size: 1.06rem;
    line-height: 1.3;
    margin-bottom: 0.45rem;
  }

  .gloss-card-body {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .detail-heading {
    margin: 2.2rem 0 0.45rem;
    font-size: clamp(1.32rem, 4.2vw, 1.72rem);
  }

  .detail-intro {
    font-size: 1rem;
    line-height: 1.72;
    margin-bottom: 1.15rem;
  }

  .detail-grid {
    gap: 1.15rem;
  }

  .detail-card img {
    height: min(52vw, 220px);
    max-height: 240px;
  }

  .detail-card figcaption {
    padding: 0.85rem 0.95rem;
    font-size: 0.91rem;
    line-height: 1.55;
  }

  .btn-primary {
    display: block;
    width: 100%;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0.95rem 1.5rem;
    box-sizing: border-box;
  }

  .fundamentos-grid .section-inner {
    padding: 0 0.25rem;
  }

  .section-num {
    margin-bottom: 0.55rem;
  }

  .section-benefits {
    padding-top: calc(var(--section-pad-y) + 0.25rem);
    padding-bottom: calc(var(--section-pad-y) + 0.25rem);
  }

  .small-print {
    line-height: 1.65;
  }
}


/* Print */
@media print {
  .site-header,
  .nav-toggle,
  .btn-primary,
  .back-top {
    display: none !important;
  }

  .hero {
    min-height: auto;
    page-break-after: always;
  }

  .section {
    page-break-inside: avoid;
  }
}

