/* ============================================================
   Recovering Pisos — base styles
   Breakpoints: mobile <810px, tablet 810-1199px, desktop ≥1200px
   ============================================================ */

:root {
  --bg:           #0a0a0a;
  --bg-alt:       #141414;
  --surface:      #1a1a1a;
  --ink:          #f5f5f4;
  --ink-dim:      #a3a3a3;
  --ink-muted:    #737373;
  --accent:       #c9a36a;
  --accent-soft:  rgba(201, 163, 106, 0.15);
  --border:       rgba(255,255,255,0.08);
  --border-bold:  rgba(255,255,255,0.18);
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    22px;
  --shadow-lg:    0 30px 80px rgba(0,0,0,0.55);
  --ease:         cubic-bezier(.22,.61,.36,1);
  --container:    1240px;
  --gutter:       24px;
  --gutter-mobile: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter-mobile);
}
@media (min-width: 810px) {
  .container { padding: 0 var(--gutter); }
}

/* ---------------------------------------------------------- HEADER */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  background: rgba(10,10,10,0.55);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .3s var(--ease);
}
.site-header.scrolled { background: rgba(10,10,10,0.92); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent) 0%, #8b6a3d 100%);
  display: grid; place-items: center; color: #1a1a1a;
  font-weight: 700; font-size: 13px;
}
.nav-links {
  display: none;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--ink-dim);
  transition: color .2s var(--ease);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta {
  display: none;
  padding: 10px 20px;
  border: 1px solid var(--border-bold);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: all .25s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.nav-burger {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--border-bold); border-radius: 10px;
}
.nav-burger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--ink); position: relative;
}
.nav-burger span::before, .nav-burger span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1.5px;
  background: var(--ink); transition: transform .3s var(--ease);
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after  { top:  6px; }

@media (min-width: 810px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
}
@media (min-width: 1200px) {
  .nav-cta { display: inline-flex; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(20px);
  padding: 100px 24px 40px;
  transform: translateY(-100%); opacity: 0;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
  pointer-events: none;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.mobile-menu a {
  display: block; padding: 18px 0;
  font-size: 26px; font-weight: 600; letter-spacing: -0.02em;
  border-bottom: 1px solid var(--border);
}

/* ---------------------------------------------------------- HERO SLIDER
   Replica do componente Framer do projeto:
   - background full-bleed, transição x-axis (-100% → 0 → 100%)
   - card branco flutuante bottom-left (desktop) / bottom-spread (mobile)
   - dots quadrados brancos */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #000;
  touch-action: pan-y;
}

/* Background slides */
.hero-bg-slides { position: absolute; inset: 0; z-index: 1; }
.hero-bg-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.hero-bg-slide.active { transform: translateX(0); }
.hero-bg-slide.exit   { transform: translateX(-100%); }

/* Floating card wrap */
.hero-card-wrap {
  position: absolute;
  bottom: 100px;
  left: 16px;
  right: 16px;
  max-width: 280px;
  z-index: 3;
}
@media (min-width: 810px) {
  .hero-card-wrap {
    bottom: 32px;
    left: 32px;
    right: auto;
    max-width: 400px;
  }
}

/* Card (animated) */
.hero-cards { position: relative; }
.hero-card {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  color: #000;
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.5s cubic-bezier(.4, 0, .2, 1), transform 0.5s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}
.hero-card.active {
  opacity: 1; transform: translateX(0);
  pointer-events: auto;
  position: relative; inset: auto;
}
.hero-card.exit {
  opacity: 0; transform: translateX(-100px);
}
@media (min-width: 810px) {
  .hero-card { padding: 24px; gap: 16px; }
}

.hero-card-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
@media (min-width: 810px) {
  .hero-card-img { height: 200px; }
}

.hero-card h2 {
  margin: 0;
  color: #000;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
@media (min-width: 810px) {
  .hero-card h2 { font-size: 32px; }
}

.hero-card p {
  margin: 0;
  color: #000;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
@media (min-width: 810px) {
  .hero-card p { font-size: 15px; }
}

.hero-card-btn {
  align-self: flex-start;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: opacity .2s;
}
.hero-card-btn:hover { opacity: 0.85; }
@media (min-width: 810px) {
  .hero-card-btn { padding: 12px 24px; font-size: 14px; }
}

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}
@media (min-width: 810px) {
  .hero-dots {
    left: 32px;
    transform: none;
  }
}
.hero-dot {
  width: 12px; height: 12px;
  border-radius: 0;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: background .3s ease, transform .3s ease;
}
.hero-dot.active { background: #fff; }
.hero-dot:hover:not(.active) { transform: scale(1.2); }

/* Buttons (genéricos, usados em outras seções) */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 999px;
  transition: all .3s var(--ease);
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--bg); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--border-bold); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-arrow { transition: transform .3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

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

/* ---------------------------------------------------------- SECTIONS */
.section {
  padding: 80px 0;
  position: relative;
}
@media (min-width: 810px) { .section { padding: 120px 0; } }
@media (min-width: 1200px){ .section { padding: 160px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--accent);
}
.section-title {
  font-size: clamp(34px, 5.5vw, 64px);
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: 24px;
}
.section-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-dim);
  max-width: 56ch;
  line-height: 1.6;
}

/* Brand showcase block */
.brand-block {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 810px) {
  .brand-block { grid-template-columns: 1fr 1fr; gap: 64px; }
  .brand-block.reverse > :first-child { order: 2; }
}
@media (min-width: 1200px) {
  .brand-block { gap: 96px; }
}
.brand-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--surface);
}
.brand-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.brand-block:hover .brand-media img { transform: scale(1.04); }
.brand-meta {
  display: flex; flex-direction: column;
  padding: 8px 0;
}
.brand-logo-text {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600; letter-spacing: -0.04em;
  margin-bottom: 18px;
}
.brand-tagline {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-dim);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 46ch;
}
.brand-features {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin-bottom: 40px;
}
.brand-features li {
  font-size: 14px; color: var(--ink);
  padding-left: 22px; position: relative;
  line-height: 1.4;
}
.brand-features li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 12px; height: 1px; background: var(--accent);
}

/* Product gallery (mini) */
.products {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
}
.product-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.product-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease);
}
.product-card:hover img { transform: scale(1.06); }
.product-card-label {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); font-weight: 500;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 8px;
}

/* ---------------------------------------------------------- BRAND PAGE */
.brand-hero {
  padding: 160px 0 80px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 810px) {
  .brand-hero { padding: 200px 0 120px; }
}
.brand-hero-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 810px) {
  .brand-hero-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: end; }
}
.brand-hero h1 {
  font-size: clamp(52px, 10vw, 140px);
  letter-spacing: -0.05em;
  font-weight: 600;
  line-height: 0.9;
}
.brand-hero-side p {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-dim);
  margin-bottom: 28px;
}
.brand-hero-side .stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  margin-top: 36px;
}
.stat-num { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.stat-label { font-size: 12px; color: var(--ink-muted); letter-spacing: 0.08em; text-transform: uppercase; }

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 810px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (min-width: 1200px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--surface);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-meta {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 500;
}
.gallery-item-meta span {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------------------------------------------------------- CTA STRIP */
.cta-strip {
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-alt) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
  text-align: center;
}
@media (min-width: 810px) { .cta-strip { padding: 120px 0; } }
.cta-strip h2 {
  font-size: clamp(34px, 5vw, 56px);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}
.cta-strip p {
  font-size: 17px; color: var(--ink-dim);
  margin-bottom: 36px;
  max-width: 52ch; margin-left: auto; margin-right: auto;
}

/* ---------------------------------------------------------- FOOTER */
.site-footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
@media (min-width: 810px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
}
.footer-col h4 {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 18px; font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--ink-dim); font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--ink); }
.footer-brand p {
  color: var(--ink-dim); font-size: 14px; max-width: 36ch; line-height: 1.6; margin-top: 14px;
}
.footer-bottom {
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--ink-muted);
}
@media (min-width: 810px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------------------------------------------------------- UTILITIES */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.no-scroll { overflow: hidden; }
