/* Na Home, as três colunas usam o mesmo intervalo das fotos de Projetos. */
#principal {
  --column-gap: clamp(1rem, 2vw, 1.5rem);
  --section-space: clamp(2rem, 3.6vw, 3.25rem);
  --section-tint: color-mix(in srgb, var(--green) 5%, white);
  --section-rule: color-mix(in srgb, var(--deep) 24%, white);
}

/* A linha acompanha as margens do título e da foto. */
.hero {
  padding-bottom: var(--section-space);
  border-bottom: 1px solid var(--line);
}
.hero-actions .button-dark:hover {
  box-shadow: none;
}
.hero-actions .button-dark:focus-visible { outline-color: var(--link); }
.solutions { padding-block: var(--section-space); }

/* A régua acompanha os mesmos limites da primeira e da última fotografia. */
.projects {
  padding-block: 0 var(--section-space);
  border: 0;
  background: var(--section-tint);
}
.projects > .container {
  position: relative;
  padding-top: var(--section-space);
}
.projects > .container::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background:
    linear-gradient(var(--gold), var(--gold)) left top / 3.5rem 3px no-repeat,
    repeating-linear-gradient(115deg, transparent 0 5px, var(--section-rule) 5px 6px, transparent 6px 9px) right top / 5rem 7px no-repeat,
    linear-gradient(var(--section-rule), var(--section-rule)) left top / 100% 1px no-repeat;
}

/* A legenda encerra o backup no mesmo fundo da foto. */
.backup-section {
  padding-bottom: 0;
  background: var(--deep);
}
.backup-note {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  max-width: 105ch;
  margin: 0;
  padding-block: .875rem clamp(1.25rem, 2.2vw, 2rem);
  color: var(--white);
  opacity: 1;
  text-align: left;
  font-size: .8125rem;
  line-height: 1.5;
}
.backup-note::before {
  content: "";
  flex: 0 0 1.75rem;
  height: 2px;
  background: var(--gold);
  transform: translateY(-.25em);
}
.backup-section > .container { border-bottom: 1px solid rgb(255 255 255 / 25%); }
.projects .section-heading { margin-bottom: clamp(1.5rem, 2.6vw, 2.5rem); }

.home-blog-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1.5rem;
  padding-block: clamp(1rem, 2vw, 1.75rem);
  border-top: 1px solid var(--line);
  color: var(--deep);
}
.home-blog-callout strong { font: 600 1.125rem/1.35 var(--title); }
.home-blog-callout:is(:hover, :focus-visible) .text-link { text-decoration: underline; }

/* Uma única mudança de fundo abre as dúvidas. A lista continua nativa. */
.home-faq {
  position: relative;
  isolation: isolate;
  border: 0;
  padding-block: var(--section-space);
}
.home-faq::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--section-tint);
  box-shadow: 0 0 0 100vmax var(--section-tint);
  clip-path: inset(0 -100vmax);
  pointer-events: none;
}
.home-faq .faq-section { max-width: none; }
.home-faq .faq-list { margin: 0; border-top: 2px solid var(--deep); }
.home-faq .faq-list details { border-color: var(--section-rule); }
.home-faq .faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 1rem .25rem 1rem 0;
  list-style: none;
}
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  color: var(--link);
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
}
.home-faq details[open] summary::after { background-size: 100% 2px, 0 0; }
.home-faq .faq-list details p { max-width: 72ch; }

@media (min-width: 651px) {
  .hero {
    grid-template-areas:
      "kicker   ."
      "title    photo"
      "intro    photo"
      "actions  photo"
      "location photo";
    grid-template-rows: auto auto auto auto 1fr;
    row-gap: 0;
    align-items: start;
  }
  .hero-copy { display: contents; }
  .hero-copy > .eyebrow { grid-area: kicker; }
  .hero-copy > h1 {
    grid-area: title;
    font-size: clamp(1.875rem, 4.7vw, 4.5rem);
    line-height: 1.06;
    text-box-trim: trim-start;
    text-box-edge: cap alphabetic;
  }
  .hero-copy .mobile-break { display: none; }
  .hero-description { grid-area: intro; }
  .hero-actions { grid-area: actions; }
  .hero-location { grid-area: location; }
  .hero > .work-carousel { grid-area: photo; }
}
@media (min-width: 901px) {
  .projects .section-heading {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: .875rem var(--column-gap);
  }
  .projects .section-heading > div:first-child { display: contents; }
  .projects .section-heading .eyebrow {
    grid-column: 1 / -1;
    margin: 0;
  }
  .projects .section-heading h2 {
    grid-column: span 2;
    max-width: 24ch;
    text-wrap: balance;
  }
  .projects .section-heading > :last-child {
    max-width: 46ch;
    margin: 0;
    padding: 0;
  }
  .home-faq .faq-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    column-gap: var(--column-gap);
    align-items: start;
  }
  .home-faq .eyebrow { grid-column: 1; margin: 0 0 .875rem; }
  .home-faq h2 { grid-column: 1; font-size: clamp(2rem, 3vw, 2.875rem); }
  .home-faq .faq-list { grid-area: 1 / 2 / span 2 / -1; }
}
@media (max-width: 900px) {
  .home-faq h2 { margin-bottom: 1.25rem; }
}
@media (min-width: 651px) and (max-width: 900px) {
  .projects .section-heading {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
    gap: 2rem;
  }
}
@media (max-width: 650px) {
  .hero { padding-bottom: 1.5rem; }
  .solutions { padding-top: 1.125rem; }
  .backup-note { gap: .5rem; }
  .backup-note::before { flex-basis: 1rem; }
  .home-blog-callout { flex-direction: column; align-items: flex-start; }
  .home-faq .eyebrow { margin-bottom: .625rem; }
}
