/* A abertura e o catálogo usam as fotos do acervo da SGL. */
:root {
  --floresta: #103b2e;
  --marfim: #f8f5ec;
  --ouro: #a98a52;
  --margem: max(6vw, calc((100vw - 1380px) / 2));
}

html { scroll-padding-top: 90px; }
.site-header { padding-inline: var(--margem); }
.site-header, .site-header.is-scrolled { background: #fbfaf5; }
.nav-cta, .button-dark { background: var(--floresta); }
.button-dark:hover, .nav-cta:hover { background: #20553e; }
.button, .nav-cta { border-radius: 3px; }
.button:after { display: none; }
html:not(.motion-ready) .reveal { opacity: 1; transform: none; }

.opening {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: clamp(32px, 4vw, 72px) var(--margem);
  gap: clamp(36px, 6vw, 104px);
  align-items: stretch;
  background: var(--marfim);
  border-bottom: 1px solid #d9d5c6;
}
.opening-copy { align-self: center; padding-block: clamp(15px, 3vw, 54px); min-width: 0; }
.kicker, .group-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #40604c;
  font: 700 11px/1.5 var(--sans);
  letter-spacing: .17em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.kicker > span { width: 32px; height: 1px; background: var(--ouro); }
.opening h1, .directory h2, .field-record h2 {
  color: var(--floresta);
  font: 400 clamp(52px, 5.85vw, 96px)/1.02 var(--serif);
  letter-spacing: -.057em;
  margin: 0;
}
.opening h1 em, .directory h2 em, .field-record h2 em { color: #387054; font-weight: 400; }
.opening h1 em { white-space: nowrap; }
.opening-lead {
  max-width: 49ch;
  margin: 26px 0;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.7;
  color: #445950;
}
.opening-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 25px; }
.opening-actions .button { color: white; padding: 15px 20px; font-size: 14px; }
.catalog-link { padding-block: 10px; font-size: 14px; font-weight: 700; border-bottom: 1px solid #aca58f; }
.catalog-link span { margin-left: 5px; }
.opening-base {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(24px, 3.8vw, 64px);
  padding-top: 18px;
  border-top: 1px solid #d7d4c6;
  font-size: 12px;
  letter-spacing: .03em;
  color: #4a6155;
}
.locator { width: 12px; height: 12px; border: 1px solid #58715e; border-radius: 50%; box-shadow: inset 0 0 0 3px var(--marfim); background: #58715e; }
.opening-photo { margin: 0; position: relative; overflow: hidden; background: #204535; min-height: clamp(415px, 35vw, 640px); }
.opening-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.opening-photo figcaption {
  display: flex;
  align-items: center;
  gap: 13px;
  position: absolute;
  inset: auto 0 0;
  padding: 52px 26px 22px;
  background: linear-gradient(transparent, rgba(9,32,22,.87));
  color: white;
  font: 400 21px/1.3 var(--serif);
  text-transform: none;
  letter-spacing: normal;
}
.opening-photo small { display: block; margin-top: 3px; font: 12px/1.5 var(--sans); color: #e5e8dc; }
.viewfinder { width: 18px; height: 18px; border: 1px solid #e1cc94; position: relative; }
.viewfinder:after { content: ''; position: absolute; inset: 5px; border: 1px solid #e1cc94; border-radius: 50%; }

.directory, .field-record { padding: clamp(58px, 6vw, 106px) var(--margem); background: #fffef9; }
.directory-heading { display: flex; gap: 36px; justify-content: space-between; align-items: end; margin-bottom: 32px; }
.directory-heading > p { max-width: 35ch; margin: 0; color: #546458; font-size: 15px; line-height: 1.65; }
.directory .kicker, .field-record .kicker { margin-bottom: 12px; }
.directory h2, .field-record h2 { font-size: clamp(39px, 4.3vw, 68px); line-height: 1.08; }
.directory-grid, .record-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.7vw, 26px); align-items: start; }
.service-group { border: 1px solid #d9d8ca; background: var(--marfim); }
.service-group > img { width: 100%; height: clamp(120px, 13vw, 215px); object-fit: cover; }
.service-group:nth-child(1) > img { object-position: 50% 76%; }
.service-group:nth-child(2) > img { object-position: 54% 14%; }
.service-group:nth-child(3) > img { object-position: 50% 43%; }
.group-content { padding: clamp(18px, 2vw, 32px); }
.group-label { margin-bottom: 10px; font-size: 10px; }
.group-content h3 { font: 400 clamp(26px, 2.3vw, 39px)/1.1 var(--serif); letter-spacing: -.035em; margin: 0; }
.group-intro { color: #536358; font-size: 14px; line-height: 1.65; margin: 13px 0 22px; }
.service-group details { border-top: 1px solid #d4d3c5; }
.service-group summary, .field-album summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; cursor: pointer; list-style: none; color: var(--floresta); font-weight: 700; font-size: 14px; padding: 15px 0; }
.service-group summary::-webkit-details-marker, .field-album summary::-webkit-details-marker { display: none; }
.service-group summary:after, .field-album summary:after { content: '+'; font: 400 20px/1 var(--sans); color: #60705e; }
.service-group details[open] summary:after, .field-album[open] summary:after { content: '−'; }
.service-group details p { font-size: 14px; line-height: 1.7; color: #40554a; margin: 0 0 10px; }
.service-group details a { display: block; width: fit-content; font-size: 13px; padding: 6px 0; margin-bottom: 9px; text-decoration: underline; text-underline-offset: 4px; }
.service-group summary:hover, .field-album summary:hover { color: #27764d; }

.workflow-heading { gap: 0 6vw; }
.workflow-heading .eyebrow { margin-bottom: 12px; }
.workflow-heading h2 { margin-top: 0; }
.section:not(.directory):not(.field-record) { padding-block: clamp(56px, 6vw, 100px); }
.record-grid { margin-top: 30px; }
.record-grid figure, .album-grid figure { margin: 0; }
.record-grid img { width: 100%; height: clamp(220px, 23vw, 400px); object-fit: cover; object-position: center 35%; }
.record-grid figcaption, .album-grid figcaption { position: static; padding: 12px 0; background: transparent; color: var(--floresta); font: 400 20px/1.4 var(--serif); letter-spacing: -.02em; text-transform: none; }
.field-album { border-top: 1px solid #cccabb; margin-top: 20px; }
.field-album summary { width: fit-content; min-height: 48px; }
.album-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.album-grid img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #eeeae1; }
.album-grid figcaption { font-size: 17px; }
@media (min-width: 721px) and (max-width: 1050px) {
  .main-nav > a:not(.nav-cta) { display: inline; }
  .main-nav { gap: 13px; font-size: 11px; }
  .site-header { padding-inline: 3vw; }
}
@media (max-width: 800px) {
  .directory-heading { display: block; }
  .directory-heading > p { margin-top: 16px; max-width: 52ch; }
  .directory-grid { grid-template-columns: 1fr; }
  .service-group { display: grid; grid-template-columns: minmax(0,.65fr) minmax(0,1fr); }
  .service-group > img { height: 100%; min-height: 0; max-height: 380px; }
}
@media (max-width: 720px) {
  :root { --margem: clamp(19px, 5.5vw, 32px); }
  html { scroll-padding-top: 78px; }
  .opening { grid-template-columns: 1fr; padding-block: 32px 24px; gap: 22px; }
  .opening-copy { padding: 0; }
  .opening h1 { font-size: clamp(46px, 10.9vw, 72px); }
  .opening-lead { margin: 16px 0 20px; }
  .opening-actions { gap: 8px 18px; }
  .opening-base { margin-top: 20px; padding-top: 12px; }
  .opening-photo { min-height: 0; aspect-ratio: 1.44; }
  .opening-photo img { object-position: center 16%; }
  .opening-photo figcaption { padding: 28px 15px 12px; font-size: 19px; }
  .opening-photo small { font-size: 11px; }
  .record-grid { gap: 12px; grid-template-columns: 1fr 1fr; }
  .record-grid figure:first-child { grid-column: 1/-1; }
  .record-grid img { height: auto; aspect-ratio: 4/5; }
  .record-grid figure:first-child img { aspect-ratio: 1.45; object-position: center 36%; }
  .record-grid figcaption { font-size: 17px; }
  .album-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 540px) {
  .service-group { display: block; }
  .service-group > img { height: 136px; }
  .directory-grid { gap: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .opening-copy { animation: chegar .55s ease-out both; }
  @keyframes chegar { from { opacity: .4; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
