.site-header,
.detail-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(9px);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-header.is-scrolled,
.detail-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.site-header::after,
.detail-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green-primary), var(--gold), var(--green-primary));
}

.header-inner,
.detail-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  padding: 0;
}

.brand-logo img {
  width: auto;
  height: 48px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  flex: 1 1 auto;
}

.nav-link,
.footer-button {
  position: relative;
  border: 0;
  background: transparent;
  color: #2a2a2a;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.35rem;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--green-primary);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.social-strip {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-right: 0.75rem;
  padding: 0.35rem 0.45rem;
  border-radius: var(--radius-xs);
  background: var(--green-primary);
}

.icon-button {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  color: #f2c94c;
  border-color: rgba(242, 201, 76, 0.45);
  background: rgba(255, 255, 255, 0.1);
}

.icon {
  width: 1.15rem;
  height: 1.15rem;
  display: inline-block;
  flex: 0 0 auto;
}

.icon.small {
  width: 0.95rem;
  height: 0.95rem;
}

.icon.medium {
  width: 1.35rem;
  height: 1.35rem;
}

.section-svg {
  width: 3rem;
  height: 3rem;
}

.project-svg {
  width: 2.5rem;
  height: 2.5rem;
}

.family-svg {
  width: 2.25rem;
  height: 2.25rem;
}

.social-icon .icon {
  width: 2rem;
  height: 2rem;
}

.header-cnpj {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mobile-toggle {
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--black);
}

.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 45;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  background: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-lg);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-inner {
  width: min(calc(100% - 2rem), 46rem);
  margin-inline: auto;
  padding: 1rem 0 1.25rem;
}

.mobile-menu .nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.mobile-menu .nav-link::after {
  display: none;
}

.mobile-menu .nav-link:hover,
.mobile-menu .nav-link:focus-visible {
  background: var(--off-white);
}

.mobile-menu-footer {
  display: flex;
  gap: 0.75rem;
  border-top: 1px solid var(--gray-200);
  margin-top: 0.7rem;
  padding-top: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.8rem;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.4rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green-primary);
  color: var(--white);
  box-shadow: var(--shadow-green);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gold);
  color: var(--black);
  box-shadow: var(--shadow-gold);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover,
.btn-dark:focus-visible {
  background: var(--gold);
  color: var(--black);
}

.btn-outline {
  border: 2px solid var(--green-primary);
  background: transparent;
  color: var(--green-primary);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--green-primary);
  color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--green-dark);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: #fde047;
}

.section-divider {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, rgba(15, 92, 46, 0.1), rgba(212, 175, 55, 0.1), transparent);
}

.section-divider.gold-white {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), transparent, rgba(15, 92, 46, 0.05));
}

.section-divider.green-gold {
  background: linear-gradient(90deg, rgba(15, 92, 46, 0.1), rgba(212, 175, 55, 0.1), transparent);
}

.section-divider.blue-green {
  background: linear-gradient(90deg, rgba(29, 111, 164, 0.1), transparent, rgba(15, 92, 46, 0.1));
}

.section-divider.white-green {
  background: linear-gradient(90deg, transparent, rgba(15, 92, 46, 0.05), transparent);
}

.section-divider::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(212, 175, 55, 0.3);
}

.card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  color: rgba(17, 17, 17, 0.62);
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--gray-200);
  border-radius: 0;
  background: rgba(248, 248, 246, 0.75);
  color: var(--black);
  padding: 0.95rem 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--green-primary);
  background: var(--white);
  outline: 0;
}

.field-error {
  display: none;
  color: var(--danger);
  font-size: 0.78rem;
}

.form-field.has-error .field-error {
  display: block;
}

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: var(--danger);
}

.toast-region {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  display: grid;
  gap: 0.75rem;
  width: min(24rem, calc(100vw - 2rem));
}

.toast {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--black);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
  border-left: 4px solid var(--success);
  animation: toastIn 0.3s ease both;
}

.toast.error {
  border-left-color: var(--danger);
}

.toast-title {
  margin: 0 0 0.15rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
}

.toast-message {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.92rem;
}

.toast-close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--gray-500);
  font-size: 1.2rem;
  line-height: 1;
}

.site-footer {
  background: var(--green-dark);
  color: var(--white);
}

.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), #fde047, var(--gold));
}

.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.95fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-block: clamp(3.5rem, 6vw, 4.3rem);
}

.footer-logo {
  height: 80px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-description {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 0.55rem;
}

.footer-social a {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--white);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green-dark);
}

.footer-title {
  margin: 0 0 1.2rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.58rem;
}

.footer-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.62);
  padding: 0;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.footer-button .icon {
  width: 0.8rem;
  height: 0.8rem;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-button:hover,
.footer-button:focus-visible {
  color: var(--gold);
}

.footer-button:hover .icon,
.footer-button:focus-visible .icon {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact {
  display: grid;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact-item .icon {
  color: var(--gold);
  margin-top: 0.2rem;
}

.footer-contact-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-contact-value {
  margin: 0.1rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.35rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.76rem;
}

.footer-legal {
  max-width: 33rem;
  color: rgba(255, 255, 255, 0.22) !important;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
