/* ==========================================================================
   Home — Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 15, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(245, 240, 232, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.85rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 40px;
  width: auto;
}

/* Hidden-but-accessible checkbox: stays focusable/operable via its label,
   never use display:none here. */
.nav-toggle-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-inline-start: auto;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ivory);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.nav-toggle-checkbox:focus-visible ~ .nav-toggle-label {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  position: relative;
  padding-block: 0.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--color-ivory);
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-orange);
}

@media (max-width: 859px) {
  .nav-toggle-label {
    display: flex;
  }

  .site-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: rgba(11, 11, 15, 0.98);
    border-bottom: 1px solid rgba(245, 240, 232, 0.12);
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.25s ease;
  }

  .nav-toggle-checkbox:checked ~ .site-nav {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(245, 240, 232, 0.08);
  }

  .site-nav a::after {
    display: none;
  }
}

/* ==========================================================================
   Home — Hero
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(1200px, 150vw);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(255, 77, 0, 0.18) 0%,
    rgba(255, 77, 0, 0.09) 35%,
    rgba(255, 77, 0, 0) 70%
  );
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding-block: 6rem 4rem;
  text-align: left;
}

.hero-text {
  order: 2;
}

.hero-photo {
  position: relative;
  order: 1;
  justify-self: center;
  width: 100%;
  max-width: 560px;
  margin-top: -1.2rem;
  animation: hero-reveal 0.7s ease both;
}

.hero-photo::before {
  content: '';
  position: absolute;
  inset: -15%;
  z-index: -1;
  background: radial-gradient(
    circle at 50% 38%,
    rgba(255, 77, 0, 0.32) 0%,
    rgba(255, 77, 0, 0.12) 42%,
    rgba(255, 77, 0, 0) 72%
  );
  filter: blur(18px);
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, black 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 78%, transparent 100%);
}

.hero-inner h1 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.01em;
  animation: hero-reveal 0.7s ease 0.1s both;
}

.hero-lead {
  max-width: 52ch;
  margin: 1.5rem 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: rgba(245, 240, 232, 0.85);
  animation: hero-reveal 0.7s ease 0.2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  animation: hero-reveal 0.7s ease 0.3s both;
}

@media (max-width: 859px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-photo {
    order: 1;
    max-width: 340px;
    margin-top: 0;
  }

  .hero-text {
    order: 2;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 559px) {
  .hero-actions {
    flex-direction: column;
    align-self: stretch;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@keyframes hero-reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner h1,
  .hero-lead,
  .hero-actions,
  .hero-photo {
    animation: none;
  }
}

/* ==========================================================================
   Home — Sobre
   ========================================================================== */

.sobre {
  position: relative;
  overflow: hidden;
}

.sobre::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -12%;
  z-index: 0;
  width: min(560px, 45vw);
  aspect-ratio: 1 / 1;
  background: radial-gradient(
    circle,
    rgba(255, 77, 0, 0.14) 0%,
    rgba(255, 77, 0, 0.06) 40%,
    rgba(255, 77, 0, 0) 70%
  );
  pointer-events: none;
}

.sobre .container {
  position: relative;
  z-index: 1;
}

.sobre-text {
  max-width: 68ch;
}

.sobre-text h2 {
  position: relative;
  max-width: 14ch;
  font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3rem);
  letter-spacing: -0.01em;
  color: var(--color-ivory);
}

.sobre-text h2::before {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  margin-bottom: 1.5rem;
  background: var(--color-orange);
  border-radius: 2px;
}

.sobre-text p {
  max-width: 65ch;
  margin: 0 0 1.25rem;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.1rem);
  line-height: 1.75;
  color: rgba(245, 240, 232, 0.8);
}

.sobre-text p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Home — Método (o que faço / como faço)
   ========================================================================== */

.metodo {
  position: relative;
  overflow: hidden;
}

.metodo::before {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -10%;
  z-index: 0;
  width: min(520px, 42vw);
  aspect-ratio: 1 / 1;
  background: radial-gradient(
    circle,
    rgba(255, 77, 0, 0.12) 0%,
    rgba(255, 77, 0, 0.05) 40%,
    rgba(255, 77, 0, 0) 70%
  );
  pointer-events: none;
}

.metodo .container {
  position: relative;
  z-index: 1;
}

.metodo h2 {
  max-width: 20ch;
  font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3rem);
  letter-spacing: -0.01em;
  color: var(--color-ivory);
}

.metodo-como-title {
  margin-top: 3.5rem;
}

.metodo-lead {
  max-width: 55ch;
  margin: 0.75rem 0 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.1rem);
  line-height: 1.65;
  color: rgba(245, 240, 232, 0.8);
}

.metodo-servicos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.servico-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.75rem 1.5rem;
  background: rgba(245, 240, 232, 0.04);
  border: 1px solid rgba(245, 240, 232, 0.12);
  border-left: 4px solid var(--color-orange);
  border-radius: var(--radius-card);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.servico-card:hover,
.servico-card:focus-within {
  transform: translateY(-4px);
  background: rgba(245, 240, 232, 0.07);
  border-color: rgba(245, 240, 232, 0.2);
  border-left-color: var(--color-orange);
}

.servico-card h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-ivory);
}

.servico-card p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(245, 240, 232, 0.65);
}

.metodo-passos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.metodo-passos li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: rgba(49, 91, 255, 0.06);
  border: 1px solid rgba(245, 240, 232, 0.12);
  border-radius: var(--radius-card);
}

.metodo-passo__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-ivory);
  font-family: var(--font-display);
  font-size: 1rem;
}

.metodo-passos h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-ivory);
}

.metodo-passos p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(245, 240, 232, 0.65);
}

/* ==========================================================================
   Home — Resultados (prova + antes/depois)
   ========================================================================== */

.resultados {
  padding-bottom: 0;
}

.prova-stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.25rem 2rem;
  padding: 2.5rem;
  background: rgba(255, 77, 0, 0.08);
  border: 1px solid rgba(255, 77, 0, 0.3);
  border-radius: var(--radius-card);
}

.prova-stat__number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 4vw, 4.5rem);
  line-height: 1;
  color: var(--color-orange);
}

.prova-stat__desc {
  max-width: 42ch;
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.1rem);
  line-height: 1.6;
  color: rgba(245, 240, 232, 0.85);
}

.antes-depois h2 {
  max-width: 20ch;
  font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3rem);
  letter-spacing: -0.01em;
  color: var(--color-ivory);
}

.antes-depois-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.ad-col {
  padding: 2rem 1.75rem;
  border-radius: var(--radius-card);
}

.ad-col h3 {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ad-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ad-col li {
  position: relative;
  padding-left: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
}

.ad-col--antes {
  background: rgba(245, 240, 232, 0.03);
  border: 1px solid rgba(245, 240, 232, 0.12);
}

.ad-col--antes h3 {
  color: rgba(245, 240, 232, 0.55);
}

.ad-col--antes li {
  color: rgba(245, 240, 232, 0.65);
}

.ad-col--antes li::before {
  content: '×';
  position: absolute;
  left: 0;
  color: rgba(245, 240, 232, 0.4);
  font-weight: 800;
}

.ad-col--depois {
  background: rgba(255, 77, 0, 0.07);
  border: 1px solid rgba(255, 77, 0, 0.3);
}

.ad-col--depois h3 {
  color: var(--color-orange);
}

.ad-col--depois li {
  color: var(--color-ivory);
}

.ad-col--depois li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-orange);
  font-weight: 800;
}

@media (max-width: 639px) {
  .antes-depois-grid {
    grid-template-columns: 1fr;
  }

  .prova-stat {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Home — Footer
   ========================================================================== */

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  padding-block: 3.5rem 2.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    padding-block: 6rem 3rem;
  }
}

.footer-inner h2 {
  max-width: 20ch;
  font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3rem);
  letter-spacing: -0.01em;
  color: var(--color-ivory);
}

.footer-inner h2::before {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  margin: 0 auto 1.5rem;
  background: var(--color-blue);
  border-radius: 2px;
  transform: skewX(-20deg);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-copy {
  font-size: 0.8rem;
  text-align: center;
  color: rgba(245, 240, 232, 0.5);
}

/* ==========================================================================
   Home — Ecossistema
   ========================================================================== */

.ecossistema {
  position: relative;
  overflow: hidden;
}

.ecossistema::before {
  content: '';
  position: absolute;
  top: -12%;
  right: -10%;
  z-index: 0;
  width: min(500px, 42vw);
  aspect-ratio: 1 / 1;
  background: radial-gradient(
    circle,
    rgba(49, 91, 255, 0.16) 0%,
    rgba(49, 91, 255, 0.07) 40%,
    rgba(49, 91, 255, 0) 70%
  );
  pointer-events: none;
}

.ecossistema .container {
  position: relative;
  z-index: 1;
}

.ecossistema > .container > h2 {
  position: relative;
  max-width: 20ch;
  font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3rem);
  letter-spacing: -0.01em;
  color: var(--color-ivory);
}

.ecossistema > .container > h2::before {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  margin-bottom: 1.5rem;
  background: var(--color-blue);
  border-radius: 2px;
  transform: skewX(-20deg);
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.eco-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2.5rem 2rem;
  background: rgba(245, 240, 232, 0.05);
  border: 1px solid rgba(245, 240, 232, 0.14);
  border-top: 4px solid var(--color-blue);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.eco-card:hover,
.eco-card:focus-within {
  transform: translateY(-6px);
  background: rgba(245, 240, 232, 0.08);
  border-color: rgba(245, 240, 232, 0.24);
  border-top-color: var(--color-blue);
  box-shadow: 0 28px 48px -20px rgba(49, 91, 255, 0.28);
}

.eco-card__title {
  margin: 0;
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.65rem);
  letter-spacing: 0.01em;
  color: var(--color-ivory);
}

.eco-card__desc {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(245, 240, 232, 0.75);
  flex-grow: 1;
}

@media (max-width: 759px) {
  .eco-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ==========================================================================
   Home — Newsletter
   ========================================================================== */

.newsletter {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 77, 0, 0.14) 0%, rgba(255, 77, 0, 0) 42%),
    /* Last stop pushed to 250% (not 100%) so pure --color-blue is only
       approached asymptotically and never actually reached within the box —
       keeps the section's brightest point below the AA contrast threshold
       for the ivory text sitting on top of it (see task-7-report.md). */
    linear-gradient(150deg, #16224c 0%, #24399a 55%, var(--color-blue) 250%);
  clip-path: polygon(0 9%, 100% 0%, 100% 91%, 0% 100%);
}

.newsletter-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
}

.newsletter-inner h2 {
  max-width: 20ch;
  margin-inline: auto;
  font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3rem);
  letter-spacing: -0.01em;
  color: var(--color-ivory);
}

.newsletter-inner h2::before {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  margin: 0 auto 1.5rem;
  background: var(--color-orange);
  border-radius: 2px;
  transform: skewX(-20deg);
}

.newsletter-inner > p:first-of-type {
  max-width: 52ch;
  margin: 1.25rem auto 0;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.1rem);
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.85);
}

.newsletter-inner .btn {
  margin-top: 2.5rem;
}
