/* =========================================
   Kaigen — Variables & Reset
   ========================================= */
:root {
  --bg-deep: #1a1d3a;
  --bg-mid: #2a2952;
  --bg-light: #f7f5f2;
  --bg-section: #fbfaf8;

  --primary: #e8a084;
  --primary-hover: #d88869;
  --primary-soft: #f3c8b3;

  --text-dark: #1f2138;
  --text-muted: #5e607a;
  --text-light: #f5f0eb;
  --text-light-soft: rgba(245, 240, 235, 0.78);

  --border: rgba(31, 33, 56, 0.08);
  --border-light: rgba(255, 255, 255, 0.18);

  --shadow-sm: 0 4px 16px rgba(26, 29, 58, 0.08);
  --shadow-md: 0 12px 40px rgba(26, 29, 58, 0.14);
  --shadow-lg: 0 24px 60px rgba(26, 29, 58, 0.22);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   Header
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(26, 29, 58, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

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

.nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav a {
  color: var(--text-light);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav a:hover { color: var(--primary); }
.nav a:hover::after { transform: scaleX(1); }

.lang-switch {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  border: 1px solid var(--border-light);
}

.lang-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: all 0.25s ease;
}

.lang-btn.active,
.lang-btn:hover {
  opacity: 1;
  transform: scale(1.05);
}

.flag {
  display: inline-block;
  width: 22px;
  height: 16px;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.flag-br {
  background: linear-gradient(180deg, #009b3a 0%, #009b3a 100%);
  position: relative;
}
.flag-br::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: #ffdf00;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.flag-br::before {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #002776;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.flag-us {
  background:
    linear-gradient(180deg,
      #b22234 0 12.5%, #fff 12.5% 25%,
      #b22234 25% 37.5%, #fff 37.5% 50%,
      #b22234 50% 62.5%, #fff 62.5% 75%,
      #b22234 75% 87.5%, #fff 87.5% 100%);
  position: relative;
}
.flag-us::before {
  content: '';
  position: absolute;
  width: 50%;
  height: 50%;
  background: #3c3b6e;
  top: 0; left: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* =========================================
   Hero
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--text-light);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(26, 29, 58, 0.55) 0%, rgba(42, 41, 82, 0.75) 100%),
    linear-gradient(110deg, rgba(232, 160, 132, 0.18) 0%, rgba(26, 29, 58, 0.6) 60%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 880px;
  padding-top: 80px;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: var(--primary);
  text-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  margin-bottom: 36px;
  color: var(--text-light);
  max-width: 640px;
  font-weight: 300;
}

.scroll-down {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 28px;
  height: 46px;
  border: 2px solid var(--primary);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-down span {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 4px;
  animation: scroll-bounce 1.6s infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(10px); opacity: 0.3; }
}

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-deep);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  border: 1.5px solid currentColor;
  color: var(--primary);
}
.btn-ghost:hover {
  background: var(--primary);
  color: var(--bg-deep);
  border-color: var(--primary);
}

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* =========================================
   Sections
   ========================================= */
.section {
  padding: 100px 0;
}

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

.section-header {
  margin-bottom: 64px;
}

.section-header.center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary-hover);
  margin-bottom: 12px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--bg-deep);
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--bg-deep);
}

h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bg-deep);
  margin-bottom: 16px;
  font-weight: 600;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.muted { color: var(--text-muted); }
.center { text-align: center; }

/* =========================================
   Products grid
   ========================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 32px;
  margin-bottom: 56px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-mid);
}

.product-img img,
.product-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.product-card:hover .product-img img,
.product-card:hover .product-img video {
  transform: scale(1.06);
}

.product-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-body h3 { color: var(--bg-deep); }

.product-body p {
  color: var(--text-muted);
  font-size: 15px;
  flex: 1;
}

.product-body .btn-ghost {
  align-self: flex-start;
  padding: 10px 0;
  border: none;
  border-radius: 0;
  font-weight: 600;
}
.product-body .btn-ghost:hover {
  background: transparent;
  color: var(--primary-hover);
  border-color: transparent;
  transform: translateX(4px);
}

.cta-row { text-align: center; }

/* =========================================
   Split sections
   ========================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-reverse .split-media { order: 2; }

.split-media img,
.split-media video {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.split-content h2 { margin: 8px 0 24px; }

.split-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.feature-list {
  margin: 24px 0 32px;
}

.feature-list li {
  position: relative;
  padding: 10px 0 10px 32px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  background-image: linear-gradient(135deg, var(--primary), var(--primary-hover));
}

.feature-list li::after {
  content: '✓';
  position: absolute;
  left: 4px;
  top: 9px;
  color: white;
  font-size: 12px;
  font-weight: 700;
}

/* =========================================
   About / Stats
   ========================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text p {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

.stat {
  background: linear-gradient(135deg, var(--bg-deep), var(--bg-mid));
  color: var(--text-light);
  padding: 28px 22px;
  border-radius: var(--radius-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.35;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.6rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-light-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =========================================
   Clients
   ========================================= */
.clients-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 40px 0 32px;
}

.clients-list li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--bg-deep);
  padding: 16px 32px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.clients-list li:hover {
  border-color: var(--primary);
  color: var(--primary-hover);
  transform: translateY(-3px);
}

/* =========================================
   CTA Banner (Trabalhe Conosco)
   ========================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-mid) 60%, #3a2c4a 100%);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  padding: 56px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}

.cta-banner h2 { color: var(--text-light); margin: 8px 0 12px; }
.cta-banner p { color: var(--text-light-soft); max-width: 520px; }
.cta-banner .btn { flex-shrink: 0; }

/* =========================================
   Contact
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-info h2 { margin: 8px 0 16px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 32px; }

.info-list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.info-list strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-hover);
  font-weight: 600;
}

.info-list a:hover { color: var(--primary-hover); }

.contact-form {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field input,
.field textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--text-dark);
  background: var(--bg-section);
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(232, 160, 132, 0.15);
}

.contact-form .btn { align-self: flex-start; }

.form-status {
  font-size: 14px;
  color: var(--text-muted);
  min-height: 20px;
}
.form-status.success { color: #1a7f4a; }
.form-status.error { color: #c0392b; }

/* =========================================
   Map
   ========================================= */
.map-wrap {
  margin-top: 64px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background: var(--bg-section);
}

.map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
  filter: saturate(0.9);
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  background: var(--bg-deep);
  color: var(--text-light-soft);
  padding: 72px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo { height: 40px; margin-bottom: 18px; }

.site-footer p { font-size: 14px; line-height: 1.7; margin-bottom: 12px; }

.site-footer h4 { color: var(--text-light); }

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(245, 240, 235, 0.55);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom .legal { display: flex; gap: 24px; }
.footer-bottom a:hover { color: var(--primary); }

/* =========================================
   WhatsApp float
   ========================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float svg { width: 30px; height: 30px; }

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.55);
}

/* =========================================
   Reveal animation
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 960px) {
  .split,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .split-reverse .split-media { order: 0; }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    text-align: left;
  }

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

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-toggle { display: flex; z-index: 110; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80%;
    max-width: 320px;
    background: var(--bg-deep);
    flex-direction: column;
    justify-content: flex-start;
    padding: 96px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: var(--shadow-lg);
    gap: 24px;
  }

  .nav.open { transform: translateX(0); }

  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
  }

  .nav a { font-size: 17px; }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .stats { grid-template-columns: 1fr 1fr; }
  .info-list li { grid-template-columns: 1fr; gap: 4px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .contact-form { padding: 28px; }
}

@media (max-width: 480px) {
  .product-grid { gap: 20px; }
  .product-body { padding: 22px; }
  .stats { grid-template-columns: 1fr; }
  .clients-list li { font-size: 1.2rem; padding: 12px 22px; }
}
