/* Stodeveldo — folha de estilo comum */

:root {
  --bg: #eeece6;
  --bg-alt: #dedbd2;
  --dark: #1b2430;
  --ink: #1a1a18;
  --muted: #6d6a62;
  --on-dark: #eeece6;
  --accent: #2a4f78;
  --accent-2: #9a6a1c;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --step: 80px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

a:focus-visible,
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- grelha de 12 colunas ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- coluna de serviço / escala ---------- */

.rail {
  grid-column: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
}

.rail-num {
  font-size: 13px;
  line-height: 1.4;
  color: var(--accent-2);
  letter-spacing: 0.04em;
}

.rail-label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.rail-scale {
  width: 2px;
  min-height: 120px;
  flex: 1 1 auto;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--accent-2) 0 24px,
    transparent 24px 40px
  );
}

.rail-scale--long { min-height: 260px; }

/* barra de separação: traços verticais curtos */
.ticks {
  height: 24px;
  margin: 0;
  border: 0;
  background-image: repeating-linear-gradient(
    to right,
    var(--accent) 0 1px,
    transparent 1px 12px
  );
  opacity: 0.55;
}

/* ---------- cabeçalho e navegação ---------- */

.site-header {
  padding-top: 28px;
  padding-bottom: 28px;
}

.site-header .grid { align-items: baseline; }

.brand {
  grid-column: 1 / 5;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover { text-decoration: underline; text-underline-offset: 4px; }

.site-nav {
  grid-column: 5 / 13;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
  font-size: 15px;
}

.site-nav a { color: var(--ink); text-decoration: none; padding-bottom: 2px; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.site-nav a[aria-current='page'] { border-bottom: 2px solid var(--accent); }

/* ---------- secções ---------- */

.section { padding-top: var(--step); }
.section--first { padding-top: 56px; }
.section--flat { padding-top: 0; }

.section-body { grid-column: 3 / 10; }
.section-wide { grid-column: 3 / 12; }

.section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 18px;
}

.section h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.25;
  margin: 32px 0 10px;
}

p { margin: 0 0 20px; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 19px;
  line-height: 1.7;
}

.note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- hero ---------- */

.hero { padding-top: 40px; padding-bottom: 8px; }

.hero .rail { grid-column: 1 / 3; }

.hero-text { grid-column: 3 / 11; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 52px;
  line-height: 1.05;
  margin: 0 0 24px;
  max-width: 16ch;
}

.hero h1 span { display: block; }

.hero-lead { grid-column: 3 / 9; }

/* ---------- imagem principal ---------- */

.figure-main {
  margin: 56px 0 0;
  align-items: start;
}

.figure-main img {
  grid-column: 4 / 13;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.figure-main figcaption {
  grid-column: 1 / 4;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  padding-right: 12px;
  border-left: 2px solid var(--accent-2);
  padding-left: 12px;
}

/* ---------- listas ---------- */

.list-cols {
  grid-column: 3 / 12;
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 40px;
}

.list-cols li {
  break-inside: avoid;
  margin: 0 0 16px;
  padding-left: 18px;
  position: relative;
}

.list-cols li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 2px;
  background: var(--accent);
}

.steps {
  grid-column: 3 / 12;
  margin: 0;
  padding: 0 0 0 22px;
  columns: 2;
  column-gap: 40px;
}

.steps li { break-inside: avoid; margin: 0 0 16px; padding-left: 4px; }
.steps li::marker { color: var(--accent-2); }

ul.plain { margin: 0 0 20px; padding-left: 20px; }
ul.plain li { margin-bottom: 10px; }

/* ---------- secção alternada ---------- */

.band-alt {
  background: var(--bg-alt);
  padding-top: var(--step);
  padding-bottom: var(--step);
  margin-top: var(--step);
}

.band-alt + .section { padding-top: var(--step); }

/* ---------- secção contrastante ---------- */

.band-dark {
  background: var(--dark);
  color: var(--on-dark);
  padding-top: var(--step);
  padding-bottom: var(--step);
  margin-top: var(--step);
}

.band-dark h2, .band-dark h3 { color: var(--on-dark); }
.band-dark .rail-label { color: #a9a49a; }
.band-dark .rail-scale {
  background-image: repeating-linear-gradient(
    to bottom,
    var(--accent-2) 0 24px,
    transparent 24px 40px
  );
}

.band-dark .figure-detail {
  grid-column: 3 / 7;
  margin: 0;
}

.band-dark .figure-detail img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.band-dark .figure-detail figcaption {
  font-size: 13px;
  line-height: 1.6;
  color: #a9a49a;
  margin-top: 12px;
}

.band-dark .dark-text { grid-column: 8 / 13; }
.band-dark .dark-text a { color: #9db7d6; }

/* ---------- páginas de texto ---------- */

.page-head { padding-top: 48px; }
.page-head .rail { grid-column: 1 / 3; }
.page-head h1 {
  grid-column: 3 / 11;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 20px;
}

.prose { grid-column: 3 / 10; }
.prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  margin: 40px 0 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  margin: 28px 0 8px;
}

.prose .ticks { margin: 28px 0; width: 120px; }

.page-body { padding-top: 40px; padding-bottom: var(--step); }

.contact-line {
  font-size: 17px;
  margin-top: 24px;
}

/* ---------- rodapé ---------- */

.site-footer {
  border-top: 1px solid rgba(26, 26, 24, 0.18);
  margin-top: var(--step);
  padding-top: 26px;
  padding-bottom: 40px;
}

.footer-bay {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 28px;
  grid-column: 1 / 13;
}

.footer-name {
  font-family: var(--serif);
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 15px;
}

.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

.footer-mail { font-size: 15px; }

.footer-rule {
  grid-column: 1 / 13;
  height: 1px;
  background: rgba(26, 26, 24, 0.18);
  margin: 22px 0 12px;
}

.footer-note { grid-column: 1 / 13; font-size: 13px; color: var(--muted); }

/* ---------- tablet ---------- */

@media (max-width: 1000px) {
  .hero h1 { font-size: 44px; }
  .hero-text, .hero-lead, .section-body, .prose { grid-column: 3 / 13; }
  .section-wide, .list-cols, .steps { grid-column: 3 / 13; }
  .page-head h1 { grid-column: 3 / 13; }
  .figure-main img { grid-column: 3 / 13; }
  .figure-main figcaption { grid-column: 3 / 13; margin-top: 12px; }
  .band-dark .figure-detail { grid-column: 3 / 8; }
  .band-dark .dark-text { grid-column: 8 / 13; }
}

/* ---------- mobile ---------- */

@media (max-width: 760px) {
  :root { --step: 48px; }

  body { font-size: 16px; }

  .grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    padding: 0 20px;
  }

  .brand, .site-nav, .hero-text, .hero-lead, .section-body, .section-wide,
  .list-cols, .steps, .prose, .page-head h1, .footer-bay, .footer-rule,
  .footer-note, .band-dark .figure-detail, .band-dark .dark-text,
  .figure-main img, .figure-main figcaption {
    grid-column: 1;
  }

  .site-nav { justify-content: flex-start; margin-top: 14px; }

  .rail {
    grid-column: 1;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding-top: 0;
    margin-bottom: 12px;
  }

  .rail-scale {
    width: 40px;
    min-height: 0;
    height: 2px;
    flex: 0 0 auto;
    background-image: repeating-linear-gradient(
      to right,
      var(--accent-2) 0 8px,
      transparent 8px 14px
    );
  }

  .rail-scale--long { min-height: 0; }

  .hero h1 { font-size: 34px; max-width: none; }
  .hero h1 span { display: inline; }
  .section h2 { font-size: 25px; }
  .page-head h1 { font-size: 30px; }
  .lead { font-size: 17px; }

  .list-cols, .steps { columns: 1; }

  .figure-main { margin-top: 36px; }
  .figure-main figcaption { border-left: 2px solid var(--accent-2); }

  .band-dark .figure-detail { margin-bottom: 28px; }

  .footer-bay { flex-direction: column; align-items: flex-start; }
}
