/* Basic reset */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Be Vietnam,
    Segoe UI,
    Roboto,
    Ubuntu,
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: #0b2d3a;
  background: #f6f8fb;
}
:root {
  --brand: #0b6a97;
  --brand-2: #0e86bd;
  --accent: #f39b4a;
  --ink: #016394;
  --muted: #4b6978;
  --surface: #ffffff;
  --radius: 0.875rem;
}
.container {
  max-width: 68.75rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.center {
  text-align: center;
}
.small {
  font-size: 0.875rem;
}

.btn {
  display: inline-block;
  padding: 0.875rem 1.375rem;
  border-radius: 12px;
  border: 0;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
}
.btn--accent {
  background: var(--accent);
}
.btn--accent-empty {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn--small {
  font-size: 0.875rem;
  padding: 0.625rem 0.875rem;
}
.btn--whatsapp {
  background: #25d366;
  color: #14313f;
}
.btn--form {
  margin-left: auto;
  background: #fff;
  color: var(--ink);
}
.btn--solar {
  margin-left: auto;
  background: #fff;
  color: var(--accent);
  cursor: pointer;
  pointer-events: auto;
  z-index: 1;
  position: relative;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0b6a97;
  color: #fff;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 0;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.03125rem;
}
.menu {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
}
.menu a {
  color: #d7ebf6;
  text-decoration: none;
  font-weight: 600;
}
.menu a:hover {
  color: #fff;
}
.menu-toggle {
  display: none;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 29rem;
  background:
    linear-gradient(180deg, rgba(256, 256, 256, 0.5), rgba(1, 99, 148, 0.8)),
    url("/assets/initial-banner-background.png");
  background-size: cover;
  background-position: center;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
}
.hero-content {
  position: relative;
  padding: 4.5rem 0;
  color: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 29rem;
}
.hero h1 {
  max-width: 47.5rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  margin: 0 0 2rem;
  text-transform: uppercase;
}

/* Why */
.why {
  padding: 4rem 0;
}
.why h2 {
  font-size: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1.75rem;
}
.grid {
  display: grid;
  gap: 1.125rem;
}
.stats {
  grid-template-columns: repeat(6, 1fr);
}
.stat {
  padding: 1.125rem;
  text-align: center;
}
.stat h3 {
  font-size: 1rem;
  color: var(--ink);
  text-transform: uppercase;
}

/* How */
.how {
  background: linear-gradient(263.11deg, #e98d35 1.03%, #016394 71.58%);
  color: #fff;
  padding: 2.5rem 0;
}
.how h2 {
  text-align: center;
  margin: 0 0 2rem;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 50rem;
}
.text-center {
  text-align: center;
}
.checks li {
  margin: 1rem 0;
}
.checks li::before {
  content: "✓";
  color: #fff;
  font-weight: 700;
  margin-right: 0.5rem;
}
.checks--light li::before {
  color: #fff;
}

/* Fast */
.fast {
  padding: 3rem 0 1.875rem;
  background: #f6f8fb;
  color: var(--ink);
}
.fast h2 {
  text-align: center;
  margin: 0 0 1rem;
  font-size: 1.5rem;
  text-transform: uppercase;
}
.fast p {
  text-align: center;
  margin: 0 0 1rem;
  font-size: 1.1rem;
}
.fast p:last-of-type {
  margin-bottom: 2rem;
}

/* Accordion */
.accordion-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.accordion-item {
  overflow: hidden;
  border-radius: 0.5rem;
}

.accordion-header {
  position: relative;
  width: 100%;
  background: #0b6a97;
  color: #fff;
  border: none;
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1;
}
.accordion-header:hover {
  background: #0a5a87;
}
.accordion-header:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.accordion-header[aria-expanded="true"] {
  background: #0a5a87;
}
.accordion-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}
.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}
.accordion-content {
  position: relative;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #fff;
  z-index: 0;
  border: 2px solid var(--ink);
  border-top: none;
  border-bottom: none;
}
.accordion-content.open {
  max-height: 20rem;
  margin-top: -0.5rem;
  border-bottom: 2px solid var(--ink);
  z-index: 0;
}
.accordion-list {
  list-style: none;
  padding: 1rem 1.5rem;
  margin: 0;
}
.accordion-list li {
  padding: 0.5rem 0;
  color: var(--ink);
  font-size: 0.95rem;
  border-bottom: 1px solid #f0f4f7;
  position: relative;
  padding-left: 1.5rem;
}
.accordion-list li:last-child {
  border-bottom: none;
}
.accordion-list li::before {
  content: "•";
  color: var(--brand);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Steps */
.steps {
  background: #0b6a97;
  color: #fff;
  padding: 3rem 0;
}
.steps h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 2rem;
}
.timeline {
  position: relative;
  max-width: 48.75rem;
  margin: 0 auto 1rem;
  padding-left: 1.5rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 1.75rem;
  bottom: 0;
  width: 0.25rem;
  background: #fff;
  z-index: 1;
}
.timeline-item-last::before {
  width: 0;
}
.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding-bottom: 2rem;
  z-index: 2;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-circle {
  width: 1.75rem;
  height: 1.75rem;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 1.5rem;
  position: relative;
  z-index: 3;
}
.timeline-content {
  flex: 1;
  color: #fff;
}
.timeline-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

/* Logos */
.logos {
  background: #fff;
  padding: 1.625rem 0;
}

.logos h2 {
  text-align: center;
  margin: 0 auto 2rem;
  color: var(--ink);
  font-size: 1.5rem;
  text-transform: uppercase;
  max-width: 40rem;
}
.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.625rem;
  flex-wrap: wrap;
}
.logos-row div {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #016394;
  border-radius: 0.5rem;
  padding: 0.5rem;
  width: 11.25rem;
  height: 8.125rem;
}
.chev {
  font-size: 1.75rem;
  color: #89a7b5;
}

/* Partner + form */
.partner {
  background: linear-gradient(rgba(1, 99, 148, 0.9)), url("/assets/partner-background.png");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 3.375rem 0;
}
.partner-container {
  max-width: 25rem;
}
.partner-container p {
  margin: 2rem 0;
}
.partner-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}
.card {
  padding: 1.125rem;
}
.card h3 {
  margin-top: 0;
}
.card label {
  display: block;
  margin: 0.625rem 0 0.375rem;
  font-weight: 600;
}
.card input,
.card textarea,
.card select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cfe0e7;
  border-radius: 0.625rem;
  background: none;
  color: #fff;
}
.card input::placeholder,
.card textarea::placeholder,
.card select::placeholder {
  color: #fff;
}
.card > div {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
  margin-left: auto;
}

/* Contacts */
.contacts {
  background: #e9f2f8;
  padding: 1.75rem 0;
  color: var(--ink);
}
.contacts p {
  margin: 0;
}
.contact-list {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.contact-number {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-number::before {
  content: url("/assets/phone-icon.svg");
}
.contact-whatsapp {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-whatsapp::before {
  content: url("/assets/whatsapp-icon.svg");
}
.address-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
  justify-content: center;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

/* Solar banner */
.solar {
  position: relative;
  background:
    linear-gradient(120deg, rgba(233, 141, 53, 0.8), rgba(233, 141, 53, 0.8)),
    url("/assets/solar-banner-background.png");
  color: #fff;
  padding: 2.625rem 0;
  text-align: center;
  z-index: 1;
}
.solar .overlay {
  display: none;
}

/* Footer */
.site-footer {
  background: #fff;
  color: var(--ink);
  padding: 1.5rem 0;
}
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.03125rem;
}
.footer-nav {
  display: flex;
  gap: 1rem;
}
.footer-nav a {
  color: #cbe1eb;
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: #fff;
}
.footer-legal {
  border-top: 1px solid #4b6978;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-legal p {
  margin: 0;
  font-size: 0.85rem;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #dfdfdf;
}
.separator {
  color: #4b6978;
  font-size: 0.8rem;
}

/* Lazy Loading */
.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}
.lazy.loaded {
  opacity: 1;
}
img.lazy {
  filter: blur(5px);
}
img.lazy.loaded {
  filter: blur(0);
}

/* Performance optimizations */
img {
  max-width: 100%;
  height: auto;
}
.btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Ensure all buttons have pointer cursor */
button,
.btn,
input[type="submit"],
input[type="button"] {
  cursor: pointer;
}

/* LGPD Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--surface);
  border-top: 1px solid #e0e7eb;
  box-shadow: 0 -0.25rem 1.25rem rgba(0, 0, 0, 0.1);
  padding: 1.25rem 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.cookie-banner.show {
  transform: translateY(0);
}
.cookie-content {
  max-width: 68.75rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.cookie-text {
  flex: 1;
}
.cookie-text h3 {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-size: 1.1rem;
}
.cookie-text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.privacy-link {
  color: var(--brand);
  text-decoration: none;
}
.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn--outline {
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
  cursor: pointer;
}
.btn--text {
  background: transparent;
  border: none;
  color: var(--muted);
  text-decoration: underline;
  padding: 0.5rem 0;
  cursor: pointer;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.cookie-modal.show {
  display: flex;
}
.modal-content {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 31.25rem;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-content h3 {
  margin: 0 0 1.25rem;
  color: var(--ink);
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.cookie-option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 2.75rem;
  height: 1.5rem;
  flex-shrink: 0;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  transition: 0.3s;
  border-radius: 1.5rem;
}
.slider:before {
  position: absolute;
  content: "";
  height: 1.125rem;
  width: 1.125rem;
  left: 0.1875rem;
  bottom: 0.1875rem;
  background: white;
  transition: 0.3s;
  border-radius: 50%;
}
input:checked + .slider {
  background: var(--brand);
}
input:checked + .slider:before {
  transform: translateX(1.25rem);
}
input:disabled + .slider {
  background: #e0e7eb;
  cursor: not-allowed;
}
.cookie-info {
  flex: 1;
}
.cookie-info strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
}
.cookie-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.3;
}
.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}
.modal-actions .btn {
  cursor: pointer;
}

/* Privacy Policy Page */
.privacy-content {
  padding: 2.5rem 0;
  min-height: 60vh;
}
.privacy-content h1 {
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.last-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.privacy-content section {
  margin-bottom: 2rem;
}
.privacy-content h2 {
  color: var(--ink);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
.privacy-content h3 {
  color: var(--ink);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}
.privacy-content ul {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
}
.privacy-content li {
  margin: 0.5rem 0;
  color: var(--muted);
  line-height: 1.5;
}
.privacy-content p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.back-to-site {
  margin-top: 2.5rem;
  text-align: center;
}

/* Adesão Modal */
.adesao-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1002;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.adesao-modal.show {
  display: flex;
}

/* Prevenir scroll do body quando modal estiver aberto */
body.modal-open {
  overflow: hidden;
}

/* Form note styling */
.form-note {
  display: block;
  color: #94a3b8;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-style: italic;
}

/* Form validation styling */
input:valid,
textarea:valid {
  border-color: #10b981;
}

/* Error message styling */
.form-error {
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

/* Field error styling */
input.error,
textarea.error {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
.adesao-content {
  background: #002f53f7;
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 31.25rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.adesao-content h2 {
  text-align: center;
  margin: 0 0 1rem;
  font-size: 1.4rem;
  letter-spacing: 0.03125rem;
}
.adesao-intro {
  text-align: center;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  font-size: 0.9rem;
}
.adesao-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0.9;
}
.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  padding: 0.75rem;
  color: #fff;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.form-group textarea {
  resize: vertical;
  min-height: 5rem;
}
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  gap: 1rem;
}
.adesao-stats {
  font-size: 0.8rem;
  opacity: 0.8;
  flex: 1;
}
.btn--large {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

/* Responsive Cookie Banner */
@media (max-width: 40rem) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  .cookie-actions {
    justify-content: center;
  }
  .modal-content {
    padding: 1.25rem;
  }
  .modal-actions {
    flex-direction: column;
  }

  /* Adesão Modal Mobile */
  .adesao-content {
    padding: 1.5rem;
    max-width: 95vw;
  }
  .form-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .adesao-stats {
    text-align: center;
    order: 2;
  }
  .btn--large {
    order: 1;
    width: 100%;
  }
}

/* Responsive */
@media (max-width: 61.25rem) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .partner-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 40rem) {
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #002f53;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .menu.show {
    display: flex;
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .menu-toggle {
    display: block;
    background: none;
    border: 2px solid #cbe1eb;
    border-radius: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
    color: #fff;
    position: relative;
  }

  .menu-toggle::before {
    content: "☰";
    font-size: 1.2rem;
  }

  .menu-toggle[aria-expanded="true"]::before {
    content: "✕";
  }

  .menu a {
    color: #fff;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 1.1rem;
  }

  .menu a:last-child {
    border-bottom: none;
  }

  .menu a:hover {
    color: #cbe1eb;
    background: rgba(255, 255, 255, 0.05);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .accordion-container {
    grid-template-columns: 1fr;
    margin: 0 1rem 2rem;
  }
  .accordion-header {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }
  .accordion-list {
    padding: 0.875rem 1rem;
  }
  .accordion-list li {
    font-size: 0.9rem;
  }
  .hero h1 {
    font-size: 1.7rem;
  }

  /* Hero Mobile - Remove background-attachment para melhor performance */
  .hero {
    background-attachment: scroll;
  }

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
  }

  /* Footer Mobile */
  .footer-main {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-legal {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  .footer-links {
    justify-content: center;
  }
}
