/* ============================================================
   Capitalize v3 — Custom Styles
   ============================================================ */

@font-face {
  font-family: 'Codec Pro';
  src: url('../codec-pro/CodecPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Codec Pro';
  src: url('../codec-pro/CodecPro-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --brand:           #0d2633;
  --brand-teal:      #163a49;
  --brand-mid:       #1e4d62;
  --brand-gold:      #DCB978;
  --brand-gold-light:#e8cb92;
  --brand-gold-dark: #c4a45e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--brand);
  font-family: "DM Sans", system-ui, sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--brand); }
::-webkit-scrollbar-thumb { background: var(--brand-mid); border-radius: 3px; }

/* ---- Navbar ---- */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(13, 38, 51, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(220, 185, 120, 0.15);
}

/* ---- Hero scroll line animation ---- */
.scroll-line {
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(1.1); }
}

/* ---- Clients Marquee ---- */
.marquee-container {
  overflow: hidden;
  position: relative;
  height: 140px;
  display: flex;
  align-items: center;
}

.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #163a49, transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #163a49, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 120s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-logo {
  height: 350px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  filter: opacity(0.85);
  transition: filter 0.3s ease;
  flex-shrink: 0;
}

.client-logo:hover { filter: opacity(1); }

/* ---- Section label ---- */
.section-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-gold);
  margin-bottom: 1rem;
}

/* ---- Gold underline ---- */
.gold-line {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--brand-gold);
  margin-top: 1.25rem;
}

/* ---- Hero B styles ---- */
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(220,185,120,0.8);
}

.hero-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(220,185,120,0.6);
}

.tag-pill {
  display: inline-block;
  border: 1px solid rgba(220,185,120,0.3);
  color: rgba(220,185,120,0.7);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 1px;
}

.stats-panel {
  background: #101f2b;
  border-left: 1px solid rgba(220,185,120,0.2);
  position: relative;
  overflow: hidden;
}

.stats-panel::before {
  content: '';
  position: absolute;
  top: -40%; left: -20%;
  width: 80%; height: 80%;
  background: radial-gradient(ellipse, rgba(220,185,120,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.stat-block + .stat-block {
  border-top: 1px solid rgba(220,185,120,0.1);
}

.stat-big {
  font-family: 'Codec Pro', system-ui, sans-serif;
  font-size: clamp(3.5rem, 5.5vw, 5rem);
  font-weight: 400;
  color: #DCB978;
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
}

@media (min-width: 1024px) {
  .left-panel {
    clip-path: polygon(0 0, 95% 0, 100% 100%, 0 100%);
  }
  .stats-panel {
    clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%);
    margin-left: -2%;
  }
}

/* ---- Service cards ---- */
.service-card {
  border: 1px solid rgba(220, 185, 120, 0.15);
  border-radius: 2px;
  padding: 2.5rem 2rem;
  background: rgba(30, 77, 98, 0.25);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
  height: 100%;
}

.service-card:hover {
  border-color: rgba(220, 185, 120, 0.5);
  background: rgba(30, 77, 98, 0.45);
  transform: translateY(-4px);
}

.service-card.featured {
  border-color: rgba(220, 185, 120, 0.35);
  background: rgba(220, 185, 120, 0.07);
}

.service-card.featured:hover {
  border-color: var(--brand-gold);
  background: rgba(220, 185, 120, 0.13);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--brand-gold);
}

/* ---- Metodologia steps ---- */
.method-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.method-number {
  font-family: 'Codec Pro', system-ui, sans-serif;
  font-size: 3rem;
  line-height: 1;
  color: rgba(220, 185, 120, 0.2);
  font-weight: 400;
  flex-shrink: 0;
  width: 3.5rem;
  text-align: right;
}

/* ---- NPS numbers ---- */
.nps-number {
  font-family: 'Codec Pro', system-ui, sans-serif;
  font-size: clamp(4.5rem, 11vw, 8rem);
  font-weight: 400;
  line-height: 1;
  color: var(--brand-gold);
  letter-spacing: -0.02em;
}

/* ---- Video grid ---- */
.video-thumb {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  background: var(--brand-teal);
  border: 1px solid rgba(220, 185, 120, 0.15);
  aspect-ratio: 16/9;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.video-thumb:hover {
  border-color: rgba(220, 185, 120, 0.5);
  transform: translateY(-4px);
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: filter 0.3s ease;
}

.video-thumb:hover .video-thumb-img { filter: brightness(0.85); }

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-play-btn span {
  width: 52px;
  height: 52px;
  background: rgba(220, 185, 120, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.video-thumb:hover .video-play-btn span {
  background: var(--brand-gold);
  transform: scale(1.1);
}

.video-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(13,38,51,0.9), transparent);
  font-size: 0.8rem;
  font-weight: 500;
}

/* ---- Video lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  width: 100%;
  max-width: 900px;
  position: relative;
}

.lightbox-inner iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
}

.lightbox-close:hover { color: var(--brand-gold); }

/* ---- Testimonial slider ---- */
.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.testimonial-card {
  flex-shrink: 0;
  width: 100%;
  padding: 0 1rem;
}

@media (min-width: 768px)  { .testimonial-card { width: 50%; } }
@media (min-width: 1024px) { .testimonial-card { width: 33.333%; } }

.testimonial-inner {
  background: rgba(22, 58, 73, 0.6);
  border: 1px solid rgba(220, 185, 120, 0.15);
  border-radius: 2px;
  padding: 2rem;
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-quote {
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  flex: 1;
  font-size: 0.95rem;
}

.testimonial-logo {
  height: 36px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  opacity: 0.85;
}

.testimonial-logo-wrap {
  height: 70px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.testimonial-logo-lg {
  height: 210px;
  width: auto;
  max-width: none;
}

/* ---- Team cards ---- */
.team-card {
  overflow: hidden;
  border-radius: 2px;
  background: var(--brand-teal);
  border: 1px solid rgba(220, 185, 120, 0.1);
  transition: border-color 0.3s ease;
}

.team-card:hover { border-color: rgba(220, 185, 120, 0.4); }

.team-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.5s ease;
}

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

/* ---- Contact form ---- */
.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  color: #fff;
  padding: 0.875rem 1.25rem;
  font-size: 0.9rem;
  font-family: "DM Sans", sans-serif;
  transition: border-color 0.25s ease;
  outline: none;
}

.form-input::placeholder { color: rgba(255, 255, 255, 0.35); }

.form-input:focus {
  border-color: var(--brand-gold);
  background: rgba(255, 255, 255, 0.09);
}

textarea.form-input {
  resize: vertical;
  min-height: 140px;
}

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--brand-gold);
  color: var(--brand);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 99;
  cursor: pointer;
  text-decoration: none;
}

.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--brand-gold-light); transform: translateY(-3px); }

/* ---- Reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

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

/* ---- Dot nav ---- */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  padding: 0;
}

.dot.active { background: var(--brand-gold); transform: scale(1.3); }

/* ---- Footer ---- */
footer { border-top: 1px solid rgba(220, 185, 120, 0.15); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nps-number { font-size: clamp(3.5rem, 18vw, 5.5rem); }
  .team-card img { height: auto !important; }
}

/* Hero: reduz espaçamentos no painel de stats para caber em telas mais baixas */
@media (min-width: 1024px) and (max-height: 860px) {
  .stats-panel { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
  .stat-block  { padding-top: 0.875rem !important; padding-bottom: 0.875rem !important; }
}

@media (min-width: 1024px) and (max-height: 780px) {
  .stats-panel { padding-top: 1rem !important; padding-bottom: 1rem !important; }
  .stat-block  { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
  .stat-big    { font-size: clamp(2.6rem, 4.2vw, 3.8rem) !important; }
  .left-panel  { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
}
