/* ===================================================
   VINERY LANDING PAGE — Design System & Styles
   =================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: #4a4a4a;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul { list-style: none; }

/* ---------- CSS Variables ---------- */
:root {
  --wine: #64132F;
  --wine-dark: #450B1F;
  --cream: #FFEEE0;
  --sage: #AAC885;
  --sage-dark: #41562B;
  --mauve: #85485E;
  --white: #FFFFFF;
  --text: #1a1a1a;
  --text-body: #4a4a4a;
  --border: #e8e8e8;
  --shadow: rgba(0, 0, 0, 0.08);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-btn: 8px;
  --radius-full: 999px;
}

/* ---------- Custom Scrollbar ---------- */
/* Webkit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--mauve);
  border-radius: var(--radius-full);
  border: 2px solid var(--cream);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--wine);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--mauve) var(--cream);
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--wine);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cream);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

p {
  margin-bottom: 1rem;
}

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 1rem;
  padding: 10px 24px;
  border: 2px solid var(--sage-dark);
  border-radius: var(--radius-full);
  background: rgba(170, 200, 133, 0.12);
}

.eyebrow-light {
  color: var(--cream);
  border-color: rgba(255, 238, 224, 0.5);
  background: rgba(255, 238, 224, 0.1);
}

.text-center { text-align: center; }
.text-cream { color: rgba(255, 238, 224, 0.85); }

.section-subtitle {
  max-width: 600px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--text-body);
}

/* ---------- Focus States (Acessibilidade) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

/* ---------- Layout ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  overflow: hidden;
}

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

.section-wine {
  background: var(--wine);
  color: var(--cream);
}

.section-wine h2,
.section-wine h3 {
  color: var(--cream);
}

.section-wine p {
  color: rgba(255, 238, 224, 0.8);
}

.section-gradient {
  background: linear-gradient(to bottom, #FFFFFF 0%, var(--cream) 100%);
}

.section-wine-gradient {
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 100%);
  color: var(--cream);
}

.section-title-light {
  color: var(--cream) !important;
}

/* ---------- Split Layout ---------- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-reverse .split-visual { order: -1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.btn-primary {
  background: var(--wine);
  color: var(--cream);
  border-color: var(--wine);
}
.btn-primary:hover {
  background: var(--wine-dark);
  border-color: var(--wine-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(100, 19, 47, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--cream);
}
.btn-outline:hover {
  background: rgba(255, 238, 224, 0.12);
}

/* Botão outline para fundos claros */
.btn-outline-wine {
  background: transparent;
  color: var(--wine);
  border: 2px solid var(--wine);
}
.btn-outline-wine:hover {
  background: var(--wine);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(100, 19, 47, 0.25);
}

.btn-sage {
  background: var(--sage);
  color: var(--sage-dark);
  border-color: var(--sage);
}
.btn-sage:hover {
  background: #95b670;
}

.btn-large {
  padding: 16px 40px;
  font-size: 1rem;
  width: 100%;
  max-width: 320px;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  background: rgba(170, 200, 133, 0.15);
  color: var(--sage);
  border: 1.5px solid var(--sage);
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--wine-dark);
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
  background: rgba(69, 11, 31, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: rgba(255, 238, 224, 0.85);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sage);
  transition: width 0.25s ease;
  border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--cream);
}

.btn-nav {
  padding: 12px 28px;
  font-size: 0.9375rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wine-dark);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: url('../assets/hero-pattern.jpg') center/cover no-repeat;
  filter: blur(12px);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(69, 11, 31, 0.85), rgba(69, 11, 31, 0.65));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 120px 24px 80px;
}

.hero-subtitle {
  color: rgba(255, 238, 224, 0.85);
  font-size: 1.125rem;
  max-width: 640px;
  margin: 1.25rem auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  justify-content: center;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 238, 224, 0.5);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--cream);
  border-radius: 2px;
  animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* Touch/swipe indicator (mobile) */
.scroll-touch {
  display: none;
  color: rgba(255, 238, 224, 0.7);
  width: 100%;
  text-align: center;
}

.scroll-touch-finger {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fingerBounce 2s ease-in-out infinite;
}

.scroll-touch-finger svg {
  width: 30px;
  height: 40px;
}

.scroll-touch-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 4px;
}

.scroll-touch-arrows span {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 238, 224, 0.6);
  border-bottom: 2px solid rgba(255, 238, 224, 0.6);
  transform: rotate(45deg);
}

.scroll-touch-arrows span:nth-child(1) {
  animation: chevronFade 1.5s ease-in-out infinite;
}

.scroll-touch-arrows span:nth-child(2) {
  animation: chevronFade 1.5s ease-in-out 0.2s infinite;
}

.scroll-touch-arrows span:nth-child(3) {
  animation: chevronFade 1.5s ease-in-out 0.4s infinite;
}

@keyframes fingerBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes chevronFade {
  0% { opacity: 0.2; }
  50% { opacity: 1; }
  100% { opacity: 0.2; }
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(100, 19, 47, 0.1);
}

.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--wine);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-body);
  font-weight: 500;
}

/* ---------- Benefits Grid (Para Vinícolas) ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 3rem 0;
}

.benefit-item {
  text-align: center;
  padding: 32px 16px;
  border-radius: var(--radius-lg);
  transition: background 0.2s ease;
}

.benefit-item:hover {
  background: rgba(255, 238, 224, 0.08);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 238, 224, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.benefit-icon svg {
  color: var(--cream);
  width: 28px;
  height: 28px;
}

.benefit-item h3 {
  margin-bottom: 8px;
}

.section-cta {
  text-align: center;
  margin-top: 1rem;
}

/* ---------- Feature Cards ---------- */
.section-header-center {
  text-align: center;
  margin-bottom: 0;
}

.section-header-center .eyebrow,
.section-header-center h2 {
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 24px;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(100, 19, 47, 0.12);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(100, 19, 47, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  color: var(--wine);
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 0.9375rem;
}

/* ---------- Expandable Feature Cards ---------- */
.feature-expandable {
  cursor: pointer;
  overflow: hidden;
}

.feature-card-header {
  position: relative;
}

.feature-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--wine);
  opacity: 0.5;
  transition: opacity 0.25s ease;
}

.feature-hint svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.feature-expandable:hover .feature-hint {
  opacity: 0.8;
}

.feature-expandable.expanded .feature-hint {
  opacity: 1;
}

.feature-expandable.expanded .feature-hint svg {
  transform: rotate(180deg);
}

.feature-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0s 0.4s;
}

.feature-expandable.expanded .feature-details {
  opacity: 1;
  visibility: visible;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0s 0s;
}

.feature-detail-list {
  padding-top: 16px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-body);
  line-height: 1.5;
}

.feature-detail-list li svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--sage-dark);
  margin-top: 1px;
}

.feature-expandable.expanded {
  box-shadow: 0 12px 40px rgba(100, 19, 47, 0.14);
  border-color: rgba(100, 19, 47, 0.15);
}

/* ---------- Check List ---------- */
.check-list {
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text);
}

.check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--sage-dark);
  margin-top: 2px;
}

/* ---------- Mockup Frames ---------- */
.mockup-frame {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(100, 19, 47, 0.15);
  border: 1px solid var(--border);
}

.mockup-frame-sage {
  box-shadow: 0 20px 60px rgba(65, 86, 43, 0.12);
}

.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: #f5f5f5;
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
}

.mockup-dot:first-child { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #febc2e; }
.mockup-dot:nth-child(3) { background: #28c840; }

.mockup-screenshot {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top left;
  max-height: 380px;
  cursor: zoom-in;
  transition: filter 0.2s ease;
}

/* Clickable mockup frame */
.mockup-clickable {
  position: relative;
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mockup-clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(100, 19, 47, 0.2);
}

.mockup-clickable:hover .mockup-screenshot {
  filter: brightness(1.05);
}

.mockup-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(69, 11, 31, 0.85);
  color: var(--cream);
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.mockup-zoom-hint svg {
  width: 14px;
  height: 14px;
}

.mockup-clickable:hover .mockup-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  cursor: default;
}

.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.lightbox-close:hover {
  color: #fff;
  transform: scale(1.15);
}

/* ---------- Video Modal ---------- */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}

.video-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-content {
  max-width: 900px;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  cursor: default;
}

.video-modal-overlay.active .video-modal-content {
  transform: scale(1);
}

.video-modal-content video {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
}

.mockup-content {
  padding: 0;
  min-height: 340px;
  display: flex;
}

/* --- Sidebar (shared) --- */
.mockup-sidebar {
  width: 64px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 8px;
  background: var(--wine-dark);
  flex-shrink: 0;
}

.mockup-sidebar-logo {
  height: 14px;
  width: 36px;
  background: rgba(255, 238, 224, 0.4);
  border-radius: 3px;
  margin-bottom: 8px;
}

.mockup-sidebar-item {
  height: 10px;
  background: rgba(255, 238, 224, 0.15);
  border-radius: 6px;
}

.mockup-sidebar-item.active {
  background: rgba(255, 255, 255, 0.2);
}

.mockup-sidebar-user {
  margin-top: auto;
  height: 10px;
  background: rgba(255, 238, 224, 0.12);
  border-radius: 6px;
}

/* Casa sidebar variant */
.mockup-sidebar-casa {
  gap: 5px;
}

.mockup-sidebar-casa-name {
  height: 8px;
  width: 40px;
  background: rgba(255, 238, 224, 0.25);
  border-radius: 3px;
  margin-bottom: 6px;
}

/* --- Main area (shared) --- */
.mockup-main {
  flex: 1;
  padding: 16px;
  overflow: hidden;
}

.mockup-page-title {
  height: 12px;
  width: 100px;
  background: #ddd;
  border-radius: 4px;
  margin-bottom: 14px;
}

/* --- Stat cards row --- */
.mockup-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.mockup-stat-box {
  height: 52px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.mockup-stat-box::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  width: 55%;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
}

.mockup-stat-box::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 10px;
  height: 10px;
  width: 40%;
  background: var(--wine);
  border-radius: 3px;
  opacity: 0.7;
}

.mockup-stat-box:nth-child(2)::after { width: 30%; background: var(--sage-dark); }
.mockup-stat-box:nth-child(3)::after { width: 20%; background: var(--mauve); }
.mockup-stat-box:nth-child(4)::after { width: 35%; background: var(--wine); }

/* Casa stat variant */
.mockup-stat-casa::after {
  background: var(--sage-dark) !important;
}
.mockup-stat-casa:nth-child(1)::after { background: var(--wine) !important; }
.mockup-stat-casa:nth-child(3)::after { background: #c0392b !important; opacity: 0.5; }
.mockup-stat-casa:nth-child(4)::after { background: var(--mauve) !important; }

/* --- Body grid (table + sidebar) --- */
.mockup-body-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

.mockup-section-title {
  height: 8px;
  width: 80px;
  background: #d0d0d0;
  border-radius: 3px;
  margin-bottom: 10px;
}

/* --- Table --- */
.mockup-table {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.mockup-table-header {
  height: 12px;
  background: #f0f0f0;
  border-bottom: 1px solid var(--border);
}

.mockup-table-row {
  height: 16px;
  border-bottom: 1px solid #f5f5f5;
  position: relative;
}

.mockup-table-row::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  height: 5px;
  background: #eee;
  border-radius: 2px;
}

.mockup-table-row:nth-child(even)::before { width: 40%; }

.mockup-table-row::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20%;
  height: 5px;
  background: rgba(100, 19, 47, 0.1);
  border-radius: 2px;
}

.mockup-table-row:last-child {
  border-bottom: none;
}

/* --- Chart --- */
.mockup-chart {
  height: 100%;
  min-height: 80px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.mockup-chart::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background:
    linear-gradient(90deg,
      transparent 0%, transparent 6%,
      rgba(170, 200, 133, 0.2) 6%, rgba(170, 200, 133, 0.2) 11%,
      transparent 11%, transparent 17%,
      rgba(170, 200, 133, 0.35) 17%, rgba(170, 200, 133, 0.35) 22%,
      transparent 22%, transparent 28%,
      rgba(170, 200, 133, 0.15) 28%, rgba(170, 200, 133, 0.15) 33%,
      transparent 33%, transparent 39%,
      rgba(170, 200, 133, 0.45) 39%, rgba(170, 200, 133, 0.45) 44%,
      transparent 44%, transparent 50%,
      rgba(170, 200, 133, 0.3) 50%, rgba(170, 200, 133, 0.3) 55%,
      transparent 55%, transparent 61%,
      rgba(170, 200, 133, 0.5) 61%, rgba(170, 200, 133, 0.5) 66%,
      transparent 66%, transparent 72%,
      rgba(170, 200, 133, 0.25) 72%, rgba(170, 200, 133, 0.25) 77%,
      transparent 77%, transparent 83%,
      rgba(170, 200, 133, 0.55) 83%, rgba(170, 200, 133, 0.55) 88%,
      transparent 88%
    );
}

/* --- Casa mockup specifics --- */
.mockup-casa {
  background: #111;
}

.mockup-casa .mockup-main {
  background: #1a1a1a;
}

.mockup-casa .mockup-page-title {
  background: #444;
}

.mockup-casa .mockup-section-title {
  background: #444;
}

.mockup-casa .mockup-stat-box {
  background: #222;
  border-color: #333;
}

.mockup-casa .mockup-stat-box::before {
  background: #444;
}

.mockup-casa .mockup-table {
  background: #222;
  border-color: #333;
}

.mockup-casa .mockup-table-header {
  background: #2a2a2a;
  border-color: #333;
}

.mockup-casa .mockup-table-row {
  border-color: #2a2a2a;
}

.mockup-casa .mockup-table-row::before {
  background: #3a3a3a;
}

.mockup-casa .mockup-table-row::after {
  background: rgba(170, 200, 133, 0.15);
}

/* Mais vendidos */
.mockup-vendidos {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mockup-vendido-item {
  height: 36px;
  background: #222;
  border-radius: 10px;
  border: 1px solid #333;
  position: relative;
}

.mockup-vendido-item::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  height: 6px;
  background: #3a3a3a;
  border-radius: 3px;
}

.mockup-vendido-item::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18%;
  height: 6px;
  background: rgba(100, 19, 47, 0.4);
  border-radius: 3px;
}

/* ---------- Timeline (Jornada) ---------- */
.timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 3rem;
}

.timeline-step {
  text-align: center;
  flex: 1;
  max-width: 200px;
  padding: 0 12px;
}

.timeline-number {
  width: 52px;
  height: 52px;
  background: var(--wine);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 16px;
  box-shadow: 0 4px 15px rgba(100, 19, 47, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-step:hover .timeline-number {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(100, 19, 47, 0.35);
}

.timeline-step h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--wine);
}

.timeline-step p {
  font-size: 0.8125rem;
  color: var(--text-body);
  margin-bottom: 0;
}

.timeline-connector {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--wine), var(--mauve));
  opacity: 0.3;
  flex-shrink: 0;
  margin-top: 26px;
}

/* ---------- Divider Ornament ---------- */
.divider-ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px auto 0;
  max-width: 200px;
}

.divider-ornament::before,
.divider-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--wine);
  opacity: 0.3;
}

.ornament {
  width: 8px;
  height: 8px;
  background: var(--wine);
  border-radius: 50%;
  opacity: 0.5;
}

/* ---------- Sommelier Section ---------- */
.sommelier-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.sommelier-text h2 {
  margin-bottom: 1rem;
}

.sommelier-text p {
  margin-bottom: 2rem;
}

/* Chat Widget */
.chat-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  max-width: 380px;
  margin-left: auto;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--wine);
  color: var(--cream);
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 238, 224, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-avatar svg {
  width: 22px;
  height: 22px;
  color: var(--cream);
}

.chat-name {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
}

.chat-status {
  display: block;
  font-size: 0.6875rem;
  opacity: 0.75;
}

.chat-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--sage);
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.chat-messages {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.8125rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.chat-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

.chat-msg p { margin-bottom: 0; color: inherit; }

.chat-msg-bot {
  background: #f5f5f5;
  color: var(--text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-msg-user {
  background: var(--wine);
  color: var(--cream);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: #999;
}

.chat-input svg {
  width: 18px;
  height: 18px;
  color: var(--wine);
}

/* ---------- Contact CTA ---------- */
.cta-block {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  box-shadow: 0 8px 40px rgba(100, 19, 47, 0.08);
}

.cta-block .section-subtitle {
  margin-bottom: 0.5rem;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 0;
}

.contact-buttons .btn-outline-wine {
  font-size: 0.9375rem;
}

/* WhatsApp button */
.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  padding: 14px 28px;
  background: #1a9e4b;
  color: #fff;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.whatsapp-cta:hover {
  background: #157a3b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 158, 75, 0.3);
  color: #fff;
}

.whatsapp-cta svg {
  width: 20px;
  height: 20px;
}

/* ---------- Contact Form ---------- */
.contact-form {
  margin-top: 2rem;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wine);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e0d6d9;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--text);
  background: #faf8f8;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #b0a5a8;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(100, 19, 47, 0.08);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  padding: 15px 24px;
  font-size: 1rem;
  margin-top: 4px;
  border-radius: var(--radius);
}

.form-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

/* Formspree state messages */
.form-feedback {
  display: none;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  padding: 12px 16px;
  border-radius: var(--radius);
}

.form-feedback.success {
  color: var(--sage-dark);
  background: rgba(170, 200, 133, 0.15);
  border: 1px solid rgba(170, 200, 133, 0.35);
}

.form-feedback.error {
  color: #7b1a1a;
  background: rgba(100, 19, 47, 0.06);
  border: 1px solid rgba(100, 19, 47, 0.15);
}

/* Field-level error text */
.field-error {
  display: block;
  font-size: 0.8125rem;
  color: #c0392b;
  margin-top: 3px;
  min-height: 1em;
}

.contact-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2rem 0 1.5rem;
  color: var(--mauve);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-divider::before,
.contact-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e0d6d9, transparent);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: var(--wine);
  color: var(--cream);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(100, 19, 47, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--wine-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(100, 19, 47, 0.4);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--wine-dark);
  color: rgba(255, 238, 224, 0.75);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  height: 32px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 238, 224, 0.7);
  margin-bottom: 0;
}

.footer-links h4,
.footer-contact h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream);
  margin-bottom: 16px;
}

.footer-links a,
.footer-contact a {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 10px;
  color: rgba(255, 238, 224, 0.75);
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--cream);
}

.footer-contact .footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-contact .footer-whatsapp svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 238, 224, 0.15);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 238, 224, 0.5);
  margin-bottom: 4px;
}

.legal-notice {
  font-weight: 600;
  color: rgba(255, 238, 224, 0.65) !important;
  margin-bottom: 8px !important;
}

/* ===================================================
   RESPONSIVE
   =================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sommelier-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .chat-widget {
    margin: 0 auto;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet portrait */
@media (max-width: 768px) {
  html { scroll-padding-top: 72px; }

  .section { padding: 72px 0; }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split-reverse .split-visual { order: 0; }

  .navbar-links {
    display: none;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: rgba(69, 11, 31, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-top: 1px solid rgba(255, 238, 224, 0.1);
  }

  .navbar-links.open { display: flex; }

  .hamburger { display: flex; }

  .btn-nav {
    width: 100%;
    text-align: center;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .timeline-step {
    max-width: 100%;
    width: 100%;
  }

  .timeline-connector {
    width: 2px;
    height: 24px;
    margin: 8px auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 100px 24px 60px;
  }

  h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .sommelier-text { text-align: center; }
  .sommelier-text .btn { margin: 0 auto; }

  .scroll-mouse { display: none; }
  .scroll-touch { display: block; }
}

/* Mobile (up to 480px) */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .section { padding: 56px 0; }

  h1 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 1.75rem); }
  h3 { font-size: 1.1rem; }

  .eyebrow {
    font-size: 0.875rem;
    padding: 8px 18px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.875rem;
  }

  .btn-large {
    padding: 14px 32px;
    max-width: 100%;
  }

  .navbar-inner { height: 72px; }
  .logo-img { height: 36px; }

  .navbar-links {
    top: 72px;
  }

  .hero {
    min-height: calc(100vh - 72px);
    min-height: calc(100dvh - 72px);
  }

  .hero-content {
    padding: 80px 16px 60px;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin: 1rem auto 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn { width: 100%; }

  .scroll-indicator { bottom: 16px; }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card { padding: 20px 16px; }
  .stat-number { font-size: 2rem; }

  .split-layout { gap: 32px; }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .benefit-item { padding: 20px 12px; }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card { padding: 24px 20px; }

  .check-list { margin: 1rem 0 1.5rem; }

  .mockup-content { min-height: 240px; }
  .mockup-sidebar { width: 48px; padding: 8px 6px; }
  .mockup-stats-row { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .mockup-stat-box { height: 40px; }
  .mockup-body-grid { grid-template-columns: 1fr; }

  .timeline-step { padding: 0 8px; }
  .timeline-number {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .sommelier-layout { gap: 32px; }
  .chat-widget { max-width: 100%; }
  .chat-messages { padding: 16px; min-height: 160px; }
  .chat-msg { font-size: 0.8125rem; padding: 10px 14px; }

  .badge {
    font-size: 0.875rem;
    padding: 10px 20px;
  }

  .cta-block {
    padding: 32px 20px;
  }
  .cta-block h2 { font-size: 1.5rem; }

  .form-row { grid-template-columns: 1fr; }

  .contact-buttons { margin-top: 2rem; }

  .whatsapp-cta {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 14px 24px;
  }

  .contact-buttons .btn-outline-wine {
    width: 100%;
    justify-content: center;
  }

  .footer { padding: 48px 0 24px; }
  .footer-grid { gap: 24px; margin-bottom: 32px; }

  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }

  .section-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 2rem;
  }

  .divider-ornament { margin: 16px auto 0; }
}

/* Mobile extra small (320px devices) */
@media (max-width: 360px) {
  .container { padding: 0 12px; }

  h1 { font-size: 1.625rem; }
  h2 { font-size: 1.375rem; }

  .hero-content { padding: 72px 12px 48px; }

  .hero-subtitle { font-size: 0.9375rem; }

  .btn {
    padding: 11px 20px;
    font-size: 0.8125rem;
  }

  .navbar-inner { height: 64px; }
  .logo-img { height: 32px; }
  .navbar-links { top: 64px; }

  .stat-number { font-size: 1.75rem; }

  .feature-card { padding: 20px 16px; }

  .chat-msg { font-size: 0.75rem; padding: 8px 12px; }
  .chat-header { padding: 12px 16px; }
  .chat-input { padding: 12px 16px; }

  .cta-block { padding: 24px 16px; }
}
