/* RecomoTec.FV — identidade ouro / preto */
:root {
  --bg-deep: #0a0a0b;
  --bg-card: #121214;
  --bg-elevated: #1a1a1e;
  --gold: #c9a227;
  --gold-light: #e4c65a;
  --gold-dark: #8a7018;
  --text: #f2f2f3;
  --text-muted: #a8a8b0;
  --border: rgba(201, 162, 39, 0.35);
  --radius: 12px;
  --shadow-gold: 0 0 40px rgba(201, 162, 39, 0.12);
  --font: "Montserrat", system-ui, sans-serif;
  --max: 1180px;
  --header-h: 92px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Circuit background */
.circuit-bg {
  position: relative;
  isolation: isolate;
}

.circuit-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(201, 162, 39, 0.08), transparent),
    var(--bg-deep);
}

.circuit-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M10 10h20v4H10zm30 0h8v4h-8zm20 0h30v4H60zm0 20h4v20h-4zm0 30h4v30h-4zM10 50h40v4H10zm50 0h20v4H60zm30 0h20v4H90zM10 90h20v4H10zm40 0h8v4h-8zm30 0h30v4H80z' fill='none' stroke='%23c9a227' stroke-width='0.6' opacity='0.25'/%3E%3Ccircle cx='10' cy='10' r='2' fill='%23c9a227' opacity='0.4'/%3E%3Ccircle cx='60' cy='30' r='2' fill='%23c9a227' opacity='0.3'/%3E%3Ccircle cx='90' cy='90' r='2' fill='%23c9a227' opacity='0.35'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid var(--border);
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  max-width: 16rem;
}

@media (min-width: 900px) {
  .brand img {
    width: 76px;
    height: 76px;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .brand-tagline {
    font-size: 0.75rem;
  }
}

.nav-desktop {
  display: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-desktop a {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-desktop a:hover {
  color: var(--gold-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #0a0a0b;
  box-shadow: var(--shadow-gold);
  animation: btnGlow 3s ease-in-out infinite;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(201, 162, 39, 0.35);
  text-decoration: none;
}

.btn-primary:hover::before {
  transform: translateX(120%);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: rgba(201, 162, 39, 0.12);
  border-color: var(--gold);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  width: 100%;
  margin-top: 1.25rem;
}

@keyframes btnGlow {
  0%,
  100% {
    box-shadow: 0 0 24px rgba(201, 162, 39, 0.15);
  }
  50% {
    box-shadow: 0 0 36px rgba(201, 162, 39, 0.28);
  }
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--border);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  padding: 0.65rem 0;
  color: var(--text);
  font-weight: 500;
}

.nav-mobile .btn-whatsapp-nav {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.5rem;
  padding: 0.65rem 1.1rem;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
}

.hero-impact {
  position: relative;
  padding: 0;
  min-height: clamp(420px, 72vh, 640px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

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

.hero-impact-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.02);
  animation: heroKenBurns 18s ease-in-out infinite alternate;
}

.hero-impact-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 10, 11, 0.92) 0%, rgba(10, 10, 11, 0.72) 42%, rgba(10, 10, 11, 0.35) 100%),
    linear-gradient(0deg, rgba(10, 10, 11, 0.85) 0%, transparent 45%);
}

.hero-impact-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: inherit;
  padding: 3.5rem 0 4rem;
}

.hero-impact .hero-lead {
  max-width: 38rem;
  color: #d8d8de;
}

.hero-impact .hero-copy {
  max-width: 720px;
}

@keyframes heroKenBurns {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 800;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-copy {
  animation: fadeUp 0.8s ease both;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-gold);
  animation: fadeUp 0.8s 0.15s ease both;
}

.hero-visual-media {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  display: block;
  min-height: 240px;
  background: var(--bg-card);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.08), transparent 55%);
  pointer-events: none;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-impact-inner {
    padding: 4.5rem 0 5rem;
  }
}

/* Marcas CFTV */
.brands-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-bottom: 1.5rem;
}

.brand-card {
  padding: 1.35rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}

.brand-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--gold-light);
}

.brand-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.brands-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 52rem;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-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;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-copy,
  .hero-visual,
  .hero-impact-media img,
  .btn-primary {
    animation: none;
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

/* Process */
.process-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.process-step {
  position: relative;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.process-step:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.process-step .num {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #0a0a0b;
  font-weight: 800;
  font-size: 0.9rem;
}

.process-step h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.process-step p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Services */
.services-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.service-card .btn-sm {
  margin-top: auto;
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  color: var(--gold);
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--gold-light);
}

.service-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.service-card li {
  margin-bottom: 0.35rem;
}

/* Why us */
.why-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.why-card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.why-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.why-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Testimonials */
.testimonials-wrap {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.45s ease;
}

.testimonial {
  min-width: 100%;
  padding: 0 0.25rem;
  box-sizing: border-box;
}

.testimonial-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.testimonial blockquote {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
}

.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--gold-light);
}

.testimonial cite span {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.testimonial-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--gold-light);
  cursor: pointer;
  font-size: 1.1rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.testimonial-nav button:hover {
  transform: scale(1.08);
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.testimonial-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--text-muted);
  opacity: 0.4;
  cursor: pointer;
  padding: 0;
}

.testimonial-dots button.is-active {
  background: var(--gold);
  opacity: 1;
  transform: scale(1.2);
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--bg-card);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  color: var(--gold);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.faq-item.is-open .faq-question::after {
  content: "−";
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-info h3 {
  margin-top: 0;
  color: var(--gold-light);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2rem;
}

.footer-grid h4 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-grid li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Utilities */
.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;
}

.text-gold {
  color: var(--gold-light);
}

/* Voltar ao topo */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  color: var(--gold-light);
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

.back-to-top:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 28px rgba(201, 162, 39, 0.25);
  transform: translateY(-3px);
}

/* WhatsApp flutuante */
.whatsapp-float {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: whatsappPulse 2.5s ease-in-out infinite;
}

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

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55);
  text-decoration: none;
}

.btn-whatsapp-nav {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp-nav svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-whatsapp-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  color: #fff !important;
}

@media (min-width: 900px) {
  .btn-whatsapp-nav {
    display: inline-flex;
  }
}

@keyframes whatsappPulse {
  0%,
  100% {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  }
  50% {
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.65);
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    animation: none;
  }
}
