/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  /* Brand palette (fonte da verdade: doc/PLANO_SITE_RESKIN_1.md) */
  --red:         #ff635d;   /* acento SÓ sobre fundo escuro */
  --cyan:        #00c0cb;   /* acento SÓ sobre fundo escuro */
  --purple:      #5D2B90;   /* ação + acento sobre fundo claro */
  --purple-dark: #48206f;
  --black:       #0E0E0E;
  --light-blue:  #dee9ff;
  --white:       #ffffff;
  --off-white:   #f7f8f9;

  /* Semânticos (governados pelo fundo real da seção) */
  --action:         var(--purple);
  --action-hover:   var(--purple-dark);
  --ink:            var(--black);      /* texto sobre claro */
  --accent-on-light:var(--purple);     /* acento em seção clara */
  --accent-on-dark: var(--cyan);       /* acento em seção escura */

  --gray-600:   #4b5563;
  --gray-300:   #d1d5db;
  --gray-100:   #f3f4f6;

  --font-head:  'Josefin Sans', sans-serif;
  --font-body:  'Open Sans', sans-serif;

  --radius:     12px;   /* botões */
  --radius-lg:  24px;   /* cards */
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 8px 32px rgba(0,0,0,.12);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.16);

  --header-h:   88px;
  --space-section: 7.5rem;   /* respiro ~120px */
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.section-eyebrow {
  font-family: var(--font-head);
  font-size: clamp(.8rem, 1.5vw, .95rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-on-light);
  margin-bottom: .5rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

/* Acento base = seções claras (roxo). Seções escuras dão override abaixo. */
.accent { color: var(--accent-on-light); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-primary {
  background: var(--action);
  color: var(--white);
}
.btn-primary:hover { background: var(--action-hover); }

/* Outline vive sobre fundo escuro (Portfolio) → ciano passa AA */
.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 2.5px solid var(--cyan);
}
.btn-outline:hover { background: var(--cyan); color: var(--black); }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover { background: #1ebe5a; }

/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: box-shadow var(--transition);
  overflow: visible;
}
#header.scrolled { box-shadow: var(--shadow-sm); }

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

.logo { height: 230px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .03em;
  color: var(--ink);
  transition: color var(--transition);
}
.main-nav a:hover { color: var(--action); }

.nav-cta {
  background: var(--action);
  color: var(--white) !important;
  padding: .5rem 1.4rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover { background: var(--action-hover) !important; transform: translateY(-1px); }

.lang-toggle {
  background: transparent;
  border: 2px solid var(--action);
  color: var(--action);
  border-radius: var(--radius);
  padding: .3rem .85rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.lang-toggle:hover {
  background: var(--action);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 4px;
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

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

.hero-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(14, 14, 14, .78) 0%,
    rgba(14, 14, 14, .48) 60%,
    rgba(0, 192, 203, .18) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding-block: 6rem 5rem;
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 1.5rem;
}
/* Hero vive sobre vídeo/overlay escuro → vermelho passa AA */
.hero-title .accent { color: var(--red); }

.hero-body {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.85);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  opacity: .7;
  animation: bounce 2s infinite;
}
.scroll-down svg { width: 32px; height: 32px; }

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

/* ============================================================
   SERVICES
   ============================================================ */
.section-services {
  padding-block: var(--space-section);
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: .5rem;
}

.service-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-100);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  color: var(--action);
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .75rem;
  color: var(--ink);
}

.service-card p {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.section-portfolio {
  padding-block: var(--space-section);
  background: var(--black);
}

/* Seção escura → acento ciano; título branco, com destaque vermelho */
.section-portfolio .section-eyebrow { color: var(--accent-on-dark); }
.section-portfolio .section-title   { color: var(--white); }
.section-portfolio .accent          { color: var(--red); }

/* Estado "Em construção" (substitui o grid de thumbnails) */
.portfolio-construction {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: 3.5rem 1.5rem;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(93,43,144,.14) 0%, rgba(0,192,203,.08) 100%);
}

.portfolio-construction .construction-icon {
  width: 72px;
  height: 72px;
  color: var(--cyan);
}
.portfolio-construction .construction-icon svg { width: 100%; height: 100%; }

.construction-title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
}

.construction-body {
  font-size: 1rem;
  color: rgba(255,255,255,.72);
  max-width: 460px;
  line-height: 1.7;
}

/* ============================================================
   ADVANTAGE
   ============================================================ */
.section-advantage {
  padding-block: var(--space-section);
  background: var(--white);
}

.advantage-intro {
  max-width: 800px;
  margin: 0 auto 5rem;
  text-align: center;
}

.advantage-title { margin-bottom: 1rem; }

.advantage-body {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.advantage-icons-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.advantage-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  color: var(--action);
}
.advantage-icon-item svg {
  width: 48px;
  height: 48px;
}
.advantage-icon-item span {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-600);
}

/* DUBSOL block */
.dubsol-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: linear-gradient(135deg, #0E0E0E 0%, #1a1a1a 100%);
  border-radius: var(--radius-lg);
  padding: 4rem;
  color: var(--white);
  margin-bottom: 4rem;
}

.dubsol-eyebrow {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
  margin-bottom: .75rem;
}

.dubsol-title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.dubsol-logo-inline {
  height: 100px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-block: -30px;
}

.dubsol-body {
  font-size: .95rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.dubsol-body strong { color: var(--accent-on-dark); }

.dubsol-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.dubsol-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .95rem;
  color: rgba(255,255,255,.85);
}

.dubsol-list li svg {
  width: 18px;
  height: 18px;
  color: var(--accent-on-dark);
  flex-shrink: 0;
}

/* Screen mockup */
.dubsol-screen-mock {
  background: #1e2535;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.06);
}

.mock-bar {
  height: 32px;
  background: #161c28;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}
.mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  opacity: .4;
}
.mock-bar span:nth-child(1) { background: #ff5f57; opacity: 1; }
.mock-bar span:nth-child(2) { background: #febc2e; opacity: 1; }
.mock-bar span:nth-child(3) { background: #28c840; opacity: 1; }

.mock-body {
  display: flex;
  height: 220px;
}

.mock-sidebar {
  width: 48px;
  background: #161c28;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mock-nav-item {
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
}
.mock-nav-item.active { background: var(--cyan); opacity: .7; }

.mock-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-row {
  height: 10px;
  border-radius: 5px;
  background: rgba(255,255,255,.1);
}
.mock-row.short  { width: 55%; }
.mock-row.medium { width: 75%; }

.mock-cards {
  display: flex;
  gap: 8px;
  flex: 1;
}
.mock-card {
  flex: 1;
  border-radius: 8px;
}
.mock-card.teal  { background: rgba(0,192,203,.3); }
.mock-card.coral { background: rgba(255,99,93,.3); }
.mock-card.light { background: rgba(255,255,255,.08); }

/* Tagline */
.tagline-block {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  border-radius: var(--radius-lg);
}

.tagline-text {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}
.tagline-text strong { font-weight: 700; }

/* ============================================================
   CONTACT
   ============================================================ */
.section-contact {
  padding-block: var(--space-section);
  background: var(--off-white);
  text-align: center;
}

.contact-inner { max-width: 640px; }

.section-contact .section-eyebrow { color: var(--accent-on-light); }

.contact-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  color: var(--gray-600);
  transition: color var(--transition);
}
.contact-info-item svg { width: 18px; height: 18px; color: var(--action); flex-shrink: 0; }
.contact-info-item:hover { color: var(--action); }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--black);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo { height: 36px; width: auto; }

.footer-copy {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  font-family: var(--font-head);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.social-links a:hover {
  background: var(--cyan);
  color: var(--black);
  transform: translateY(-2px);
}
.social-links svg { width: 18px; height: 18px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .dubsol-block {
    grid-template-columns: 1fr;
    padding: 2.5rem 2rem;
    gap: 2.5rem;
  }
  .dubsol-visual { order: -1; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    padding: 1.5rem 0;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--gray-100);
  }
  .nav-cta {
    margin: 1rem 2rem 0;
    width: calc(100% - 4rem);
    justify-content: center;
    border-radius: var(--radius);
    padding: .85rem 1.5rem;
  }

  .nav-toggle { display: flex; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  /* Respiro de seção reduzido em telas pequenas */
  .section-services,
  .section-portfolio,
  .section-advantage,
  .section-contact { padding-block: 4rem; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .advantage-icons-row { gap: 1.5rem; }
  .dubsol-block { padding: 1.75rem 1.5rem; }
  .contact-buttons { flex-direction: column; width: 100%; }
  .contact-buttons .btn { width: 100%; justify-content: center; }

  .section-services,
  .section-portfolio,
  .section-advantage,
  .section-contact { padding-block: 3rem; }
}

/* ============================================================
   ANIMATIONS ON SCROLL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }
