/* ==========================================================================
   3D MAIS ARQUITETURA — DESIGN SYSTEM & STYLESHEET
   Arquiteto: Joálisson Carvalho Santos | Maceió - AL
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..800;1,9..144,300..800&family=Outfit:wght@300;400;500;600;700&display=swap');

/* --- 1. DESIGN TOKENS --- */
:root {
  --bg: #FAF9F6;
  --bg-alt: #F3F1EB;
  --fg: #1A1A1A;
  --fg-muted: #5A5A5A;
  --accent: #C9A86D;
  --accent-hover: #B8955A;
  --border: #E8E4DC;
  --card: #FFFFFF;
  --overlay: rgba(26, 26, 26, 0.45);
  --whatsapp: #25D366;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --fs-hero: clamp(2.75rem, 7vw, 5.5rem);
  --fs-h1: clamp(2.25rem, 5vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 3.5vw, 2.5rem);
  --fs-h3: 1.25rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  --letter-tight: -0.02em;
  --letter-wide: 0.12em;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  --container: 1280px;
  --container-wide: 1440px;
  --gutter: clamp(1.5rem, 4vw, 3rem);

  --radius: 2px;
  --shadow-soft: 0 2px 16px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-elevated: 0 16px 48px rgba(0, 0, 0, 0.08);

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration-fast: 200ms;
  --duration-base: 350ms;
  --duration-slow: 500ms;
}

/* --- 2. RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Accessible focus ring */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--fg);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  z-index: 100;
  transition: top var(--duration-fast) var(--ease);
}
.skip-link:focus {
  top: 1rem;
}

/* --- 3. LAYOUT & CONTAINERS --- */
.container {
  width: 100%;
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.section-alt {
  background-color: var(--bg-alt);
}

/* --- 4. TYPOGRAPHY --- */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: var(--letter-tight);
  line-height: 1.15;
  font-weight: 400;
}

.headline-hero {
  font-size: var(--fs-hero);
  font-weight: 400;
  color: #FAF9F6;
  text-wrap: balance;
  margin-bottom: var(--space-md);
}

.headline-section {
  font-size: var(--fs-h1);
  color: var(--fg);
  margin-bottom: var(--space-sm);
}

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* --- 5. TOP BAR & NAVIGATION --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.5rem 0;
  transition: background-color var(--duration-base) var(--ease), padding var(--duration-base) var(--ease), border-color var(--duration-base) var(--ease);
}

.site-header.scrolled {
  background-color: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  box-shadow: var(--shadow-soft);
}

.site-header.scrolled .brand {
  color: var(--fg);
}

.site-header.scrolled .nav-link {
  color: var(--fg-muted);
}
.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active {
  color: var(--fg);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: color var(--duration-fast) var(--ease);
  position: relative;
  padding: 0.25rem 0;
}
.nav-link:hover {
  color: #FFFFFF;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background-color: var(--accent);
}

/* --- 6. BUTTONS & CTAS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
  transition: all var(--duration-fast) var(--ease);
  border-radius: var(--radius);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--fg);
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-dark {
  background-color: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
}
.btn-dark:hover {
  background-color: var(--accent);
  color: var(--fg);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  color: #FAF9F6;
  border: 1px solid rgba(250, 249, 246, 0.4);
}
.btn-outline-light:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sticky WhatsApp button */
.whatsapp-sticky {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--fg);
  color: #FFFFFF;
  padding: 0.75rem 1.25rem;
  border-radius: 2px;
  border: 1px solid rgba(201, 168, 109, 0.4);
  box-shadow: var(--shadow-elevated);
  transition: all var(--duration-fast) var(--ease);
}
.whatsapp-sticky:hover {
  background-color: var(--whatsapp);
  border-color: var(--whatsapp);
  transform: scale(1.03);
}
.whatsapp-sticky svg {
  width: 20px;
  height: 20px;
  fill: var(--whatsapp);
  transition: fill var(--duration-fast) var(--ease);
}
.whatsapp-sticky:hover svg {
  fill: #FFFFFF;
}

/* --- 7. HERO SECTION --- */
.hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-xl);
  padding-top: 10rem;
  overflow: hidden;
  background-color: #141414;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20,20,20,0.92) 0%, rgba(26,26,26,0.5) 50%, rgba(26,26,26,0.3) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* --- 8. CARDS & GRIDS --- */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-medium);
}

.card-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: var(--bg-alt);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}
.card:hover .card-media img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* --- 9. BEFORE & AFTER SLIDER --- */
.ba-container {
  position: relative;
  aspect-ratio: 16/10;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: #1A1A1A;
  box-shadow: var(--shadow-elevated);
}

.ba-after, .ba-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ba-before {
  overflow: hidden;
  z-index: 10;
}
.ba-after img, .ba-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #FFFFFF;
  z-index: 20;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 30;
}

/* --- 10. MODAL & LIGHTBOX --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: var(--bg);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-elevated);
}

/* --- 11. RESPONSIVENESS --- */
@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .ba-container {
    aspect-ratio: 16/9;
  }
}
