/* ============================================================
 *  Chácara Recanto Verde — Estilos
 *  Paleta: Terracota & Sálvia
 * ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Nunito+Sans:wght@300;400;500;600;700&display=swap");

:root {
  --terracotta: oklch(0.62 0.13 38);
  --terracotta-soft: oklch(0.78 0.09 50);
  --sage: oklch(0.72 0.05 145);
  --sage-deep: oklch(0.42 0.06 145);
  --cream: oklch(0.975 0.012 75);

  --background: oklch(0.985 0.008 80);
  --foreground: oklch(0.24 0.03 40);
  --card: oklch(1 0 0);
  --muted: oklch(0.94 0.012 80);
  --muted-foreground: oklch(0.5 0.025 60);
  --border: oklch(0.9 0.018 70);
  --primary-foreground: oklch(0.99 0.005 80);

  --radius: 0.5rem;
  --font-sans: "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Lora", ui-serif, Georgia, serif;

  --container-max: 80rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  line-height: 1.1;
}

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

.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1.25rem;
  max-width: var(--container-max);
}

.text-balance { text-wrap: balance; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 9999px;
  padding: .9rem 1.75rem;
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: all .25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--primary-foreground);
}
.btn-primary:hover { background: color-mix(in oklab, var(--terracotta) 90%, black); }
.btn-outline-cream {
  border-color: color-mix(in oklab, var(--cream) 50%, transparent);
  color: var(--cream);
  background: transparent;
}
.btn-outline-cream:hover { background: var(--cream); color: var(--foreground); }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  color: var(--cream);
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--cream);
}
.brand-mark {
  height: 2.5rem; width: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklab, var(--cream) 40%, transparent);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
}
.brand-text { line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.125rem; }
.brand-tag {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.2em;
  color: color-mix(in oklab, var(--cream) 70%, transparent);
}
@media (max-width: 640px) { .brand-text { display: none; } }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav-desktop a {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: color-mix(in oklab, var(--cream) 85%, transparent);
  transition: color .2s;
}
.nav-desktop a:hover { color: var(--cream); }

.phone-pill {
  display: none;
  align-items: center;
  gap: .5rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklab, var(--cream) 40%, transparent);
  padding: .5rem 1rem;
  font-size: .85rem;
  color: var(--cream);
  transition: all .2s;
}
.phone-pill:hover { background: var(--cream); color: var(--foreground); }

.menu-btn {
  background: none;
  border: 0;
  color: var(--cream);
  padding: .5rem;
  cursor: pointer;
  border-radius: .375rem;
  display: inline-flex;
}

@media (min-width: 768px) {
  .nav-desktop, .phone-pill { display: inline-flex; }
  .menu-btn { display: none; }
}

.mobile-menu {
  display: none;
  margin: 0 1.25rem;
  border-radius: 1rem;
  background: color-mix(in oklab, var(--foreground) 95%, transparent);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
  color: var(--cream);
}
.mobile-menu.open { display: block; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu a {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: color-mix(in oklab, var(--cream) 85%, transparent);
}
.mobile-menu .mobile-phone {
  margin-top: .5rem;
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--terracotta-soft);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    color-mix(in oklab, var(--foreground) 70%, transparent),
    color-mix(in oklab, var(--foreground) 40%, transparent),
    color-mix(in oklab, var(--foreground) 85%, transparent)
  );
}
.hero .container {
  padding-top: 10rem;
  padding-bottom: 5rem;
}
.hero-content { max-width: 48rem; color: var(--cream); }
.eyebrow {
  display: inline-block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: color-mix(in oklab, var(--cream) 80%, transparent);
}
.hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
}
.hero p {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1rem;
  color: color-mix(in oklab, var(--cream) 85%, transparent);
}
@media (min-width: 768px) {
  .hero p { font-size: 1.125rem; }
  .hero .container { padding-top: 11rem; padding-bottom: 7rem; }
}
.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* ---------- About ---------- */
.about {
  background: var(--cream);
  padding: 6rem 0;
}
@media (min-width: 768px) { .about { padding: 8rem 0; } }

.about-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }
}
.about .eyebrow { color: var(--terracotta); }
.about h2 {
  margin-top: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
}
.about p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}
.about-divider {
  margin-top: 1.5rem;
  height: 1px;
  width: 6rem;
  background: color-mix(in oklab, var(--terracotta) 40%, transparent);
}
.about-quote {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--sage-deep);
}

/* ---------- Features ---------- */
.features {
  margin-top: 5rem;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--border);
}
@media (min-width: 768px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, 1fr); } }

.feature {
  background: var(--card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background .25s;
}
.feature:hover { background: color-mix(in oklab, var(--sage) 15%, var(--card)); }
.feature-icon {
  display: flex;
  height: 3rem; width: 3rem;
  align-items: center; justify-content: center;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--terracotta) 10%, transparent);
  color: var(--terracotta);
  transition: all .25s;
}
.feature:hover .feature-icon {
  background: var(--terracotta);
  color: var(--primary-foreground);
}
.feature h3 { font-size: 1.5rem; }
.feature p {
  font-size: .875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* ---------- Gallery ---------- */
.gallery-section {
  background: var(--background);
  padding: 6rem 0;
}
@media (min-width: 768px) { .gallery-section { padding: 8rem 0; } }
.gallery-head {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .gallery-head { flex-direction: row; align-items: flex-end; margin-bottom: 4rem; }
}
.gallery-head .eyebrow { color: var(--terracotta); }
.gallery-head h2 {
  margin-top: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 36rem;
}
.gallery-head p {
  max-width: 28rem;
  color: var(--muted-foreground);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--muted);
  aspect-ratio: 4 / 5;
}
.gallery-item.featured {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1 / 1;
}
.gallery-item img {
  height: 100%; width: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, color-mix(in oklab, var(--foreground) 40%, transparent), transparent);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.gallery-item:hover::after { opacity: 1; }

/* ---------- Contact ---------- */
.contact {
  background: var(--sage-deep);
  color: var(--cream);
  padding: 6rem 0;
}
@media (min-width: 768px) { .contact { padding: 8rem 0; } }
.contact-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.contact .eyebrow { color: var(--terracotta-soft); }
.contact h2 {
  margin-top: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
}
.contact p.lead {
  margin-top: 1.25rem;
  max-width: 28rem;
  color: color-mix(in oklab, var(--cream) 80%, transparent);
}
.contact .btn-primary { margin-top: 2rem; padding: 1rem 2rem; }
.socials {
  margin-top: 2.5rem;
  display: flex; gap: .75rem;
}
.social-icon {
  display: inline-flex;
  height: 2.5rem; width: 2.5rem;
  align-items: center; justify-content: center;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklab, var(--cream) 30%, transparent);
  transition: all .2s;
}
.social-icon:hover { background: var(--cream); color: var(--sage-deep); }

.contact-list {
  display: flex; flex-direction: column; gap: 1.25rem;
}
.contact-item {
  display: flex; gap: 1rem;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in oklab, var(--cream) 15%, transparent);
  background: color-mix(in oklab, var(--cream) 5%, transparent);
}
.contact-item-icon {
  flex-shrink: 0;
  height: 2.5rem; width: 2.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--cream) 10%, transparent);
  color: var(--terracotta-soft);
}
.contact-item-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: color-mix(in oklab, var(--cream) 60%, transparent);
}
.contact-item-value { margin-top: .25rem; color: var(--cream); }
.contact-item-value a:hover { color: var(--terracotta-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--foreground);
  color: color-mix(in oklab, var(--cream) 80%, transparent);
}
.site-footer .row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 0;
  font-size: .875rem;
}
@media (min-width: 768px) {
  .site-footer .row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.site-footer .meta { color: color-mix(in oklab, var(--cream) 60%, transparent); }

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 40;
  display: flex;
  height: 3.5rem; width: 3.5rem;
  align-items: center; justify-content: center;
  border-radius: 9999px;
  background: var(--sage-deep);
  color: var(--cream);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,.3);
  transition: transform .2s, background .2s;
}
.wa-fab:hover {
  transform: scale(1.05);
  background: color-mix(in oklab, var(--sage-deep) 90%, black);
}

/* ---------- Ícones ---------- */
.icon { width: 1rem; height: 1rem; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
