:root {
  --ink: #172033;
  --text: #465264;
  --muted: #748094;
  --line: #dfe5ee;
  --paper: #fffdf8;
  --soft: #f4efe5;
  --mint: #dcefe7;
  --green: #2f7d6d;
  --blue: #1f536a;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(23, 32, 51, 0.11);
  --radius: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  background: var(--paper);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(197, 138, 44, 0.7);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  font-size: clamp(2.7rem, 7vw, 5.7rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.18rem;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  padding: 0.7rem 0.9rem;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.topbar .container {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 50%;
  font-size: 0.92rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: flex-end;
}

.nav a {
  padding: 0.55rem 0.75rem;
  color: var(--text);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover {
  color: var(--blue);
  background: var(--mint);
}

.hero {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 253, 248, 0.9) 48%, rgba(220, 239, 231, 0.7) 100%),
    radial-gradient(circle at 92% 18%, rgba(197, 138, 44, 0.18), transparent 26%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
}

.hero-copy {
  max-width: 760px;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  color: var(--white);
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
  background: var(--green);
  transform: translateY(-2px);
}

.button.secondary {
  color: var(--blue);
  background: transparent;
}

.button.secondary:hover {
  color: var(--white);
  background: var(--blue);
}

.hero-card {
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card svg {
  display: block;
  width: 100%;
  border-radius: 10px;
  background: var(--mint);
}

.hero-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section.soft {
  background: var(--soft);
}

.section-header {
  max-width: 760px;
  margin-bottom: 2rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.comfort-card,
.home-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.07);
}

.comfort-card {
  padding: 1.35rem;
}

.comfort-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.9rem;
  color: var(--blue);
  background: var(--mint);
  border-radius: 50%;
  font-weight: 850;
}

.homes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.home-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 125, 109, 0.35);
  box-shadow: var(--shadow);
}

.home-visual {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--sky, #dcefe7);
}

.home-body {
  padding: 1.1rem;
}

.home-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.tag {
  padding: 0.3rem 0.55rem;
  color: var(--blue);
  background: var(--mint);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.price {
  color: var(--green);
  font-size: 1.28rem;
  font-weight: 900;
  white-space: nowrap;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.features li {
  padding: 0.3rem 0.5rem;
  color: var(--muted);
  background: #f6f8fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.closing {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.quote {
  padding: clamp(1.5rem, 4vw, 2.3rem);
  color: var(--white);
  background: linear-gradient(135deg, var(--ink), var(--blue));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quote p {
  color: var(--white);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.35;
}

.footer {
  padding: 2rem 0;
  color: rgba(255, 255, 255, 0.82);
  background: var(--ink);
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer a {
  color: var(--white);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Formulário de cadastro */
.newsletter-section {
  background: linear-gradient(135deg, var(--mint), rgba(47, 125, 109, 0.08));
}

.newsletter-container {
  max-width: 800px;
  margin: 0 auto;
}

.newsletter-header {
  text-align: center;
  margin-bottom: 2rem;
}

.newsletter-header h2 {
  margin-bottom: 0.5rem;
}

.newsletter-header p {
  color: var(--text);
  font-size: 1.05rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  padding: 0.75rem 0.9rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 83, 106, 0.1);
}

.form-group input::placeholder {
  color: var(--muted);
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-checkbox {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--green);
}

.form-checkbox label {
  margin: 0;
  font-weight: 400;
  cursor: pointer;
  line-height: 1.4;
}

.form-submit {
  margin-top: 0.5rem;
}

.form-submit button {
  width: 100%;
  padding: 1rem;
  color: var(--white);
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 8px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.form-submit button:hover {
  background: var(--green);
  transform: translateY(-2px);
}

@media (max-width: 960px) {
  .hero-grid,
  .closing {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 1.2rem, var(--container));
  }

  .topbar .container {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.8rem 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .intro-grid,
  .homes-grid {
    grid-template-columns: 1fr;
  }

  .home-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
