:root {
  --background: #ffffff;
  --surface: #fffdf8;
  --surface-strong: #f5f1ed;
  --foreground: #2c2013;
  --muted: #6b5d4f;
  --primary: #5d4a36;
  --primary-strong: #483927;
  --secondary: #c67854;
  --accent: #d89375;
  --border: rgba(93, 74, 54, 0.15);
  --shadow: 0 24px 70px rgba(93, 74, 54, 0.16);
  --radius-lg: 28px;
  --radius-md: 18px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(198, 120, 84, 0.16), transparent 32rem),
    linear-gradient(180deg, var(--background), #faf8f5 42%, #f5f1ed);
  color: var(--foreground);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 4vw, 2rem);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 30px rgba(93, 74, 54, 0.22);
}

.hero {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem) clamp(3rem, 7vw, 5rem);
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero-content,
.section {
  animation: rise 700ms ease both;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 1.35rem;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.hero-copy {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

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

.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 16px 35px rgba(63, 93, 69, 0.24);
}

.button.primary:hover {
  background: var(--primary-strong);
}

.button.secondary {
  border-color: var(--border);
  background: rgba(255, 253, 248, 0.72);
  color: var(--primary);
}

.contact-panel .button.primary {
  background: #fff;
  color: var(--primary);
  box-shadow: none;
}

.contact-panel .button.primary:hover {
  background: #f8efe3;
}

.contact-panel .button.secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-visual {
  margin: 0 calc(clamp(1rem, 3vw, 2rem) * -1);
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 6.5;
  box-shadow: 0 28px 80px rgba(44, 32, 19, 0.18);
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44, 32, 19, 0.08), rgba(44, 32, 19, 0.18));
}

.contact-panel p,
.hero-copy {
  color: var(--muted);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 2rem);
}

.preview {
  position: relative;
  display: grid;
  min-height: 36rem;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(44, 32, 19, 0.78), rgba(44, 32, 19, 0.42)),
    url("./public/raizes/foto-hero.jpeg") center / cover;
  box-shadow: var(--shadow);
}

.contact-panel {
  display: grid;
  align-content: center;
  justify-self: center;
  max-width: 680px;
  margin: clamp(1rem, 4vw, 3rem);
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(255, 253, 248, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(44, 32, 19, 0.58);
  color: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  text-align: center;
  backdrop-filter: blur(18px);
}

.contact-panel p {
  max-width: 620px;
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: rgba(255, 255, 255, 0.78);
}

.contact-panel .eyebrow {
  color: #f2c992;
}

.contact-panel h2 {
  color: #fff;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 2rem) 2.25rem;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

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

@media (max-width: 820px) {
  .site-header {
    position: static;
  }

  .hero,
  .preview {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-visual {
    aspect-ratio: 4 / 3;
  }

  .preview {
    min-height: 34rem;
  }

  .contact-panel {
    justify-self: stretch;
    margin: 1rem;
  }
}

@media (max-width: 520px) {
  .button {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4rem);
  }
}
