/* Mai sol e mar — page styles */
@import url("./design-system.css");

body {
  margin: 0;
  overflow-x: clip;
  text-wrap: pretty;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 90px;
}

a {
  color: var(--color-accent-700);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-800);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* —— Shell —— */
.page {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  --page-gutter: clamp(20px, 5vw, 72px);
}

.page-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-inline: var(--page-gutter);
  box-sizing: border-box;
}

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px 16px;
  padding: 12px var(--page-gutter);
  box-sizing: border-box;
  width: 100%;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(6px);
}

.nav-logo {
  height: 44px;
  width: auto;
  max-width: min(220px, 42vw);
  display: block;
  margin-right: auto;
  object-fit: contain;
  flex-shrink: 1;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: var(--color-accent-100);
  color: var(--color-accent-800);
  cursor: pointer;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 5px;
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.lang-switch {
  display: flex;
  gap: 2px;
  background: var(--color-accent-100);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}

.lang-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--color-accent-700);
}

.lang-btn.is-active {
  font-weight: 700;
  background: var(--color-accent);
  color: var(--color-bg);
}

.nav-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* —— Shared text —— */
.kicker {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent-700);
  margin-bottom: 12px;
}

.kicker-hero {
  margin-bottom: 14px;
}

.heading {
  font-family: var(--font-heading);
  font-weight: 400;
  margin: 0;
}

.body-muted {
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

.body-muted-strong {
  color: color-mix(in srgb, var(--color-text) 82%, transparent);
}

.link-underline {
  text-decoration: underline;
}

.photo-frame {
  margin: 0;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.photo-frame-hero {
  position: relative;
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle-accent {
  background: var(--color-accent-100);
  color: var(--color-accent-700);
}

.icon-circle-accent-2 {
  background: var(--color-accent-2-100);
  color: var(--color-accent-2-700);
}

.icon-circle-solid {
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-size: 17px;
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: 100px 0 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-blob {
  position: absolute;
  right: -160px;
  top: -140px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--color-accent-2-200);
  z-index: -1;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  margin: 0;
}

.hero-title-accent {
  color: var(--color-accent-700);
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.65;
  max-width: 46ch;
  margin: 24px 0 0;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 15px;
}

.hero-cta-secondary {
  padding: 14px 22px;
  font-size: 15px;
}

.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--color-accent-2-700);
  font-weight: 600;
}

.hero-form-link {
  margin-top: 10px;
  font-size: 14px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  background: color-mix(in srgb, var(--color-bg) 45%, transparent);
}

.hero-dot.is-active {
  background: var(--color-bg);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--color-bg);
  background: color-mix(in srgb, var(--color-bg) 28%, transparent);
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  transform: translateY(-50%);
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-arrow svg {
  display: block;
  filter: drop-shadow(0 1px 2px color-mix(in srgb, var(--color-text) 35%, transparent));
}

.hero-arrow:hover {
  background: color-mix(in srgb, var(--color-bg) 55%, transparent);
  color: var(--color-text);
}

.hero-arrow:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.hero-arrow-prev {
  left: 10px;
}

.hero-arrow-next {
  right: 10px;
}

/* —— Stats —— */
.stats {
  position: relative;
  padding: 8px 0 72px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.stat-card {
  border-radius: 24px;
  padding: 28px 22px;
  text-align: center;
}

.stat-card-1 {
  background: var(--color-accent-100);
}

.stat-card-2 {
  background: var(--color-accent-2-100);
}

.stat-card-3 {
  background: var(--color-accent-2-200);
}

.stat-card-4 {
  background: var(--color-accent-200);
}

.stat-value {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 38px;
  margin: 0;
}

.stat-card-1 .stat-value {
  color: var(--color-accent-700);
}

.stat-card-2 .stat-value {
  color: var(--color-accent-2-700);
}

.stat-card-3 .stat-value {
  color: var(--color-accent-2-800);
}

.stat-card-4 .stat-value {
  color: var(--color-accent-800);
}

.stat-label {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 8px 0 0;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

/* —— About —— */
.about {
  padding: 56px 0 88px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.about-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.16;
  margin: 0;
}

.about-p {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.75;
  color: color-mix(in srgb, var(--color-text) 82%, transparent);
}

.about-p:first-of-type {
  margin-top: 22px;
}

/* —— Diff —— */
.section-block {
  padding: 24px 0 88px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 36px);
  margin: 0;
}

.section-title-narrow {
  max-width: 22ch;
}

.diff-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* —— How it works —— */
.steps-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.step-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 19px;
  margin: 20px 0 0;
}

.step-body {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

/* —— Testimonials —— */
.depo-box {
  margin-top: 36px;
  border-radius: 28px;
  background: var(--color-accent-2-100);
  padding: 44px 32px;
  text-align: center;
}

.depo-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 19px;
  margin: 0 0 10px;
  color: var(--color-accent-2-800);
}

.depo-body {
  font-size: 14px;
  line-height: 1.7;
  max-width: 56ch;
  margin: 0 auto;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

/* —— FAQ —— */
.faq-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: 20px;
  background: var(--color-surface);
  padding: 6px 22px;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
}

.faq-answer {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 64ch;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

/* —— Final CTA —— */
.cta-section {
  padding: 16px 0 96px;
}

.cta-box {
  border-radius: 36px;
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 64px 40px;
  text-align: center;
}

.cta-logo {
  height: 40px;
  width: auto;
  margin: 0 auto 24px;
  display: block;
}

.cta-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 42px);
  max-width: 20ch;
  margin: 0 auto;
  line-height: 1.18;
}

.cta-text {
  margin: 18px auto 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-bg) 88%, transparent);
}

.cta-btn {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  font-size: 16px;
  background: var(--color-bg);
  color: var(--color-accent-700);
}

.cta-note {
  margin-top: 14px;
  font-size: 13px;
  color: color-mix(in srgb, var(--color-bg) 82%, transparent);
}

.cta-form-link {
  margin-top: 10px;
  font-size: 14px;
}

.cta-form-link a {
  color: var(--color-bg);
  text-decoration: underline;
  opacity: 0.9;
}

.cta-form-link a:hover {
  color: var(--color-bg);
  opacity: 1;
}

/* —— Footer —— */
.site-footer {
  padding: 32px 0 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
}

/* —— Photos —— */
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-frame-hero img {
  object-fit: contain;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: grid;
  place-items: center;
  background: var(--color-surface);
  color: color-mix(in srgb, var(--color-text) 45%, transparent);
  font-size: 14px;
  text-align: center;
  padding: 24px;
}

/* —— Responsive —— */

/* Tablet */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 64px 0 40px;
    gap: 40px;
  }

  .hero-blob {
    display: none;
  }

  .photo-frame-hero {
    max-width: 420px;
    width: 100%;
    margin-inline: auto;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 0 64px;
  }

  .about .photo-frame {
    max-width: 360px;
    width: 100%;
    margin-inline: auto;
  }

  .diff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-block {
    padding: 20px 0 64px;
  }

  .nav {
    gap: 8px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--page-gutter) 16px;
    background: color-mix(in srgb, var(--color-bg) 97%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
    box-shadow: var(--shadow-md);
  }

  .nav.is-open .nav-panel {
    display: flex;
  }

  .nav-panel .nav-link {
    display: block;
    padding: 14px 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  }

  .nav-panel .nav-link:last-child {
    border-bottom: none;
  }

  .nav-panel .nav-link:hover {
    color: var(--color-accent-700);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .page {
    --page-gutter: 20px;
  }

  .page-inner {
    padding-inline: var(--page-gutter);
  }

  .nav {
    gap: 6px;
    padding-block: 8px;
    padding-inline: var(--page-gutter);
  }

  .nav-logo {
    height: 32px;
    max-width: 36vw;
  }

  .nav-actions {
    gap: 6px;
  }

  .lang-btn {
    padding: 5px 8px;
    font-size: 11px;
  }

  .nav-wa {
    width: 40px;
    height: 40px;
    padding: 0;
    min-width: 40px;
  }

  .nav-wa span {
    display: none;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .hero {
    padding: 36px 0 28px;
    gap: 28px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta,
  .hero-cta-secondary {
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .photo-frame {
    border-radius: 24px;
  }

  .photo-frame-hero {
    max-width: 100%;
  }

  .hero-arrow {
    width: 32px;
    height: 32px;
  }

  .stats {
    gap: 12px;
    padding: 8px 0 48px;
  }

  .stat-card {
    padding: 22px 16px;
  }

  .stat-value {
    font-size: 32px;
  }

  .diff-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    border-radius: 28px;
    padding: 40px 20px;
  }

  .cta-btn {
    width: 100%;
    justify-content: center;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 24px 0 40px;
  }

  .depo-box {
    padding: 32px 20px;
  }

  .faq-item {
    padding: 4px 16px;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .hero-tags {
    gap: 8px;
  }
}
