/* ============================================
   ARTEEM MADEIRA — Design System & Styles
   Marcenaria Artesanal | Betim - MG
   ============================================ */

/* --- Google Fonts (loaded in HTML for parallel downloading) --- */

/* ============================================
   CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* Colors */
  --color-primary: #1C1009;
  --color-primary-rgb: 28, 16, 9;
  --color-secondary: #FCFAF5;
  --color-secondary-dark: #FAF6EC;
  --color-tertiary: #A85A32;
  --color-tertiary-light: #DFA67B;
  --color-accent: #E67E22;
  --color-accent-hover: #D35400;
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1DA851;
  --color-white: #FFFFFF;
  --color-text-dark: #1C1009;
  --color-text-body: #3A2E26;
  --color-text-light: #7A6658;
  --color-overlay: rgba(28, 16, 9, 0.45);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Sizing */
  --container-max: 1240px;
  --container-padding: 1.25rem;
  --header-height: 72px;
  --border-radius: 8px;
  --border-radius-lg: 16px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(28, 16, 9, 0.06);
  --shadow-md: 0 4px 20px rgba(28, 16, 9, 0.09);
  --shadow-lg: 0 8px 40px rgba(28, 16, 9, 0.12);
  --shadow-xl: 0 16px 60px rgba(28, 16, 9, 0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-body);
  background-color: var(--color-secondary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-padding {
  padding: var(--space-xl) 0;
}

#scroll-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 60px;
  pointer-events: none;
  visibility: hidden;
}

.processo-timeline-line {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-primary);
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--color-text-body);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin: var(--space-sm) auto 0;
  border-radius: 2px;
}

.section-header p {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all var(--transition-base), transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  min-height: 48px;
  min-width: 44px;
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: translateY(0) scale(0.97) !important;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn:hover::after {
  opacity: 1;
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(230, 126, 34, 0.3);
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px rgba(230, 126, 34, 0.4);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
  transform: translateY(-2px) scale(1.02);
}

.btn-outline-terracota {
  background: transparent;
  color: var(--color-tertiary);
  border: 2px solid var(--color-tertiary);
}

.btn-outline-terracota:hover {
  background-color: var(--color-tertiary);
  color: var(--color-white);
  transform: translateY(-2px) scale(1.02);
}

.btn-whatsapp-lg {
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-lg:hover {
  background-color: var(--color-whatsapp-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(252, 250, 245, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition-base), box-shadow var(--transition-base), height var(--transition-base);
}

.header.scrolled {
  background: rgba(28, 16, 9, 0.72);
  border-bottom: 1px solid rgba(230, 126, 34, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.header.scrolled .nav-link {
  color: rgba(252, 250, 245, 0.85);
}

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

.header.scrolled .logo-text {
  color: var(--color-secondary);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  z-index: 1001;
}

.logo-icon svg {
  width: 36px;
  height: 36px;
  fill: var(--color-primary);
  transition: fill var(--transition-base);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  transition: color var(--transition-base);
}

/* Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-primary);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

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

.header-cta {
  display: none;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px; /* Optimized for mobile touch size (48px target) */
  z-index: 1001;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-secondary);
  transition: all var(--transition-base);
  border-radius: 1px;
}

.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);
}

/* Mobile Navigation Drawer */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 16, 9, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 999;
}

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

.nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  height: 100dvh;
  background: var(--color-secondary);
  padding: calc(var(--header-height) + 2rem) var(--space-lg) var(--space-lg);
  transition: right var(--transition-slow), visibility var(--transition-slow);
  visibility: hidden;
  z-index: 1000;
  overflow-y: auto;
  box-shadow: -8px 0 40px rgba(28, 16, 9, 0.2);
}

.nav-drawer.active {
  right: 0;
  visibility: visible;
}

.nav-drawer .nav-menu {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.nav-drawer .nav-link {
  font-size: 1.25rem;
  padding: 1rem 0;
  width: 100%;
  border-bottom: 1px solid rgba(160, 82, 45, 0.15);
  color: var(--color-primary);
}

.nav-drawer .header-cta {
  display: inline-flex;
  margin-top: var(--space-md);
  width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(var(--color-primary-rgb), 0.3) 0%,
    rgba(var(--color-primary-rgb), 0.5) 50%,
    rgba(var(--color-primary-rgb), 0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 var(--container-padding);
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards 0.3s;
}

.hero h1 em {
  font-style: italic;
  color: var(--color-accent);
}

.hero-subtitle {
  color: rgba(252, 250, 245, 0.9);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards 0.6s;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards 0.9s;
}

/* ============================================
   LOGO IMAGE STYLES
   ============================================ */
.logo-img {
  display: none !important;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: -0.01em;
  transition: color var(--transition-base);
  display: block;
}

/* Footer text logo */
.footer-logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: -0.01em;
}

/* Gallery caption enhanced */
.gallery-caption strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.gallery-caption span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  opacity: 0.85;
  line-height: 1.4;
}

/* Testimonial product photos */
.depoimento-photo {
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: var(--space-sm);
  aspect-ratio: 4/3;
}

.depoimento-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.depoimento-card:hover .depoimento-photo img {
  transform: scale(1.03);
}

/* ============================================
   DIFERENCIAIS
   ============================================ */
.diferenciais {
  background: radial-gradient(circle at 10% 20%, rgba(230, 126, 34, 0.04) 0%, transparent 60%),
              radial-gradient(circle at 90% 80%, rgba(230, 126, 34, 0.04) 0%, transparent 60%);
  background-color: var(--color-secondary);
  padding: var(--space-2xl) 0;
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.diferencial-card {
  padding: var(--space-lg);
  border: 1px solid rgba(122, 102, 88, 0.15);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-base), transform var(--transition-spring);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  box-shadow: 0 10px 30px rgba(28, 16, 9, 0.03);
}

.diferencial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--color-accent);
  border-radius: 2px 0 0 2px;
  transition: height var(--transition-slow);
}

.diferencial-card:hover::before {
  height: 100%;
}

.diferencial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(28, 16, 9, 0.08);
  border-color: rgba(230, 126, 34, 0.35);
  background: rgba(255, 255, 255, 0.75);
}

.diferencial-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  color: var(--color-accent);
}

.diferencial-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diferencial-card h3 {
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
  font-size: 1.375rem;
}

.diferencial-card p {
  color: var(--color-text-body);
  line-height: 1.75;
}

/* ============================================
   GALLERY / PRODUTOS
   ============================================ */
.produtos {
  background-color: var(--color-white);
  padding: var(--space-2xl) 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  background: linear-gradient(to top, rgba(var(--color-primary-rgb), 0.85), transparent);
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-cta {
  text-align: center;
  margin-top: var(--space-xl);
}

/* ============================================
   SOBRE (About)
   ============================================ */
.sobre {
  background: radial-gradient(circle at 80% 20%, rgba(230, 126, 34, 0.04) 0%, transparent 50%);
  background-color: var(--color-secondary);
  padding: var(--space-2xl) 0;
  position: relative;
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.sobre-content h2 {
  margin-bottom: var(--space-md);
}

.sobre-content h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin-top: var(--space-sm);
  border-radius: 2px;
}

.sobre-content p {
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.sobre-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(122, 102, 88, 0.2);
}

.metric {
  text-align: center;
}

.metric-value {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.1;
}

.metric-label {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sobre-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.sobre-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}

.sobre-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(230, 126, 34, 0.15);
  border-radius: var(--border-radius-lg);
  pointer-events: none;
}

/* ============================================
   PROCESSO (Process / Timeline)
   ============================================ */
.processo {
  background: linear-gradient(135deg, var(--color-primary) 0%, #110a06 100%);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.processo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.processo .section-header h2 {
  color: var(--color-white);
}

.processo .section-header h2::after {
  background-color: rgba(230, 126, 34, 0.4);
}

.processo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

.processo-step {
  text-align: center;
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg) var(--space-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-base);
  z-index: 2;
  box-shadow: 0 8px 32px rgba(28, 16, 9, 0.25);
}

.processo-step:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(230, 126, 34, 0.45);
  box-shadow: 0 16px 40px rgba(28, 16, 9, 0.4);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md) auto;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 10px rgba(28, 16, 9, 0.15);
}

.step-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.processo-step h3 {
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.processo-step p {
  color: rgba(252, 250, 245, 0.85);
  font-size: 0.9375rem;
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   DEPOIMENTOS (Testimonials)
   ============================================ */
.depoimentos {
  background-color: var(--color-white);
  padding: var(--space-2xl) 0;
}

.depoimentos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.depoimento-card {
  background: #FAF6EC;
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  position: relative;
  transition: all var(--transition-base), transform var(--transition-spring);
  border: 1px solid rgba(122, 102, 88, 0.1);
  box-shadow: 0 10px 30px rgba(28, 16, 9, 0.04);
}

.depoimento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(28, 16, 9, 0.08);
  border-color: rgba(230, 126, 34, 0.25);
  background: #FFFFFF;
}

/* Testimonial Carousel Dots */
.carousel-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 1.5rem;
}

@media (max-width: 767px) {
  .carousel-dots {
    display: flex;
  }
}

.carousel-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(122, 102, 88, 0.25);
  transition: all var(--transition-base);
  cursor: pointer;
}

/* Invisible expanded click target area (32px x 32px) for touch friendly interaction */
.carousel-dot::after {
  content: '';
  position: absolute;
  top: -12px;
  bottom: -12px;
  left: -12px;
  right: -12px;
}

.carousel-dot.active {
  background-color: var(--color-accent);
  transform: scale(1.1);
  width: 18px;
  border-radius: 4px;
}

.depoimento-card::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.15;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}

.depoimento-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-sm);
}

.depoimento-stars svg {
  width: 18px;
  height: 18px;
  fill: var(--color-accent);
}

.depoimento-text {
  font-style: italic;
  line-height: 1.8;
  color: var(--color-text-body);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.depoimento-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.depoimento-author-info strong {
  display: block;
  font-family: var(--font-serif);
  color: var(--color-primary);
  font-size: 1rem;
}

.depoimento-author-info span {
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

/* ============================================
   CTA FINAL
   ============================================ */
.cta-final {
  background-color: var(--color-primary);
  position: relative;
  padding: var(--space-3xl) 0;
  overflow: hidden;
}

.cta-final-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-final-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(var(--color-primary-rgb), 0.85);
  z-index: 1;
}

.cta-final-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-final h2 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.cta-final-subtitle {
  color: rgba(252, 250, 245, 0.85);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  margin-bottom: var(--space-xl);
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-lg);
}

.cta-final-note {
  color: rgba(252, 250, 245, 0.6);
  font-size: 0.875rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--color-primary);
  color: rgba(252, 250, 245, 0.75);
  padding: var(--space-xl) 0 var(--space-md);
  border-top: 1px solid rgba(160, 82, 45, 0.3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-logo .logo-text,
.footer-logo .footer-logo-text {
  display: block;
  color: var(--color-secondary);
  font-size: 1.5rem;
}

.footer-logo .logo-img {
  display: none;
}

.footer-about-text {
  margin-top: var(--space-xs);
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(252, 250, 245, 0.6);
}

.footer h4 {
  color: var(--color-secondary);
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.footer-links a {
  display: block;
  padding: 0.375rem 0;
  font-size: 0.9375rem;
  color: rgba(252, 250, 245, 0.7);
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
  font-size: 0.9375rem;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  fill: var(--color-accent);
  flex-shrink: 0;
}

.footer-contact a {
  color: rgba(252, 250, 245, 0.7);
}

.footer-contact a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(252, 250, 245, 0.1);
  padding-top: var(--space-md);
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(252, 250, 245, 0.4);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  transition: all var(--transition-base);
}

.whatsapp-float.hidden {
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
}

.whatsapp-float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--color-whatsapp);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
  position: relative;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float-btn svg {
  width: 32px;
  height: 32px;
  fill: var(--color-white);
}

/* Pulse animation */
.whatsapp-float-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background-color: var(--color-whatsapp);
  opacity: 0;
  animation: whatsappPulse 2s infinite;
}

.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-white);
  color: var(--color-text-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--color-white);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes whatsappPulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  70% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: transform, opacity;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ============================================
   MOBILE-SPECIFIC: Gallery captions always visible
   ============================================ */
@media (max-width: 767px) {
  .gallery-caption {
    transform: translateY(0);
    position: relative;
    background: var(--color-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
  }

  .gallery-item {
    aspect-ratio: auto;
  }

  .gallery-item img {
    aspect-ratio: 4/3;
  }
}

/* ============================================
   RESPONSIVE — TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
  }

  .section-padding {
    padding: var(--space-2xl) 0;
  }

  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }

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

  .diferenciais-grid .diferencial-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .gallery-item:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16/9;
  }

  .sobre-grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .sobre-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }

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

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

  .depoimentos-grid .depoimento-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }

  .cta-final-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

/* ============================================
   RESPONSIVE — DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }

  .nav-drawer {
    position: static;
    width: auto;
    height: auto;
    background: none;
    padding: 0;
    box-shadow: none;
    overflow: visible;
    visibility: visible;
  }

  .nav-overlay {
    display: none;
  }

  .nav-drawer .nav-menu {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .nav-drawer .nav-link {
    font-size: 0.9375rem;
    padding: 0.25rem 0;
    border-bottom: none;
    color: rgba(252, 250, 245, 0.85);
  }

  .nav-drawer .nav-link:hover,
  .nav-drawer .nav-link.active {
    color: var(--color-accent);
  }

  .nav-drawer .header-cta {
    display: inline-flex;
    margin-top: 0;
    width: auto;
  }

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

  .diferenciais-grid .diferencial-card:last-child {
    grid-column: auto;
    max-width: none;
    justify-self: auto;
  }

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

  .gallery-item:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    aspect-ratio: auto;
  }

  .gallery-item:nth-child(2) {
    aspect-ratio: 4/3;
  }

  .gallery-item:nth-child(3) {
    aspect-ratio: 4/3;
  }

  .processo-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
  }

  /* Timeline connector line (desktop only) */
  .processo-timeline-line {
    display: block;
    position: absolute;
    top: 88px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(to right, rgba(230, 126, 34, 0.1) 0%, rgba(230, 126, 34, 0.65) 50%, rgba(230, 126, 34, 0.1) 100%);
    z-index: 1;
  }

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

  .depoimentos-grid .depoimento-card:last-child {
    grid-column: auto;
    max-width: none;
    justify-self: auto;
  }
}

/* ============================================
   RESPONSIVE — LARGE DESKTOP (1280px+)
   ============================================ */
@media (min-width: 1280px) {
  :root {
    --container-max: 1240px;
  }
}

/* Timeline display logic correctly defined inline and inside media queries */

/* ============================================
   RESPONSIVE — EXTRA SMALL MOBILE (<480px)
   ============================================ */
@media (max-width: 480px) {
  .depoimento-card {
    padding: var(--space-md);
  }
  
  .processo-step {
    padding: var(--space-md) var(--space-sm);
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}
