/* ===== Fernando Lins — Site v2 (referência: webcompany.com.br) ===== */

:root {
  --ink: #0F1210;
  --ink2: #1B1E1B;
  --paper: #F6F6F3;
  --surface: #FFFFFF;
  --text: #16171A;
  --muted-d: #63676F;
  --muted-l: rgba(255,255,255,0.64);
  --accent: #E8332F;
  --accent-dim: #C22420;
  --violet: #6E4FE0;
  --border-l: rgba(17,18,16,0.1);
  --border-d: rgba(255,255,255,0.14);
  --radius: 8px;
  --font-head: 'Inter Tight', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 20px;
}

.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--accent); }

.section-head { max-width: 640px; margin: 0 0 56px; }

.section-head h2 { font-size: clamp(32px, 4.5vw, 54px); margin-bottom: 18px; }

.section-head p { color: var(--muted-d); font-size: 17px; max-width: 520px; }

section.dark .section-head p,
.dark .eyebrow { }

section.dark .section-head p { color: var(--muted-l); }

section { padding: 120px 0; }

section.dark { background: var(--ink); color: #fff; }
section.paper { background: var(--paper); }

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dim); }

.btn-outline-dark {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0;
}
.btn-outline-dark:hover { border-color: #fff; }

.btn-outline-light {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-l);
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0;
}
.btn-outline-light:hover { border-color: var(--text); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 3px;
}

.link-arrow svg { transition: transform 0.2s ease; }
.link-arrow:hover svg { transform: translate(3px, -3px); }

.actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }

/* ===== Header ===== */

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo { display: inline-flex; align-items: center; }
.logo img { height: 36px; width: auto; display: block; }

.footer-brand .logo img { height: 32px; }

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

.nav-links a {
  position: relative;
  color: rgba(255,255,255,0.78);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s ease;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }

header { transition: box-shadow 0.3s ease, background 0.3s ease; }
header.scrolled { box-shadow: 0 8px 24px -12px rgba(0,0,0,0.4); }

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

.nav-cta .btn { padding: 13px 24px; font-size: 12.5px; }

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

.nav-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* ===== Hero ===== */

.hero {
  background: var(--ink);
  color: #fff;
  padding: 200px 0 130px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 20%, black, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 70% 20%, black, transparent 75%);
  z-index: 0;
}

.hero-decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero-decor .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.hero-decor .glow-1 {
  width: 560px; height: 560px;
  background: var(--accent);
  opacity: 0.32;
  top: -180px; right: -140px;
  animation: drift1 17s ease-in-out infinite alternate;
}

.hero-decor .glow-2 {
  width: 440px; height: 440px;
  background: var(--violet);
  opacity: 0.24;
  bottom: -160px; left: 8%;
  animation: drift2 21s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-50px, 40px) scale(1.12); }
}

@keyframes drift2 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, -30px) scale(1.08); }
}

.hero-art {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  opacity: 0.5;
  animation: floatArt 7s ease-in-out infinite;
}

@keyframes floatArt {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 16px)); }
}

@media (max-width: 1180px) {
  .hero-art { display: none; }
}

.hero-inner { max-width: 780px; position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(40px, 6.2vw, 76px);
  margin-bottom: 30px;
}

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

.hero p.lead {
  font-size: 19px;
  color: var(--muted-l);
  max-width: 560px;
  margin-bottom: 44px;
}

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.14);
  max-width: 560px;
}

.hero-trust li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--muted-l);
}

.hero-trust li svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }

/* ===== About (Sobre Mim) ===== */

.about-card {
  display: grid;
  grid-template-columns: 400px 1fr;
  background: var(--ink2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
}

.about-photo { position: relative; height: 100%; min-height: 480px; min-width: 0; }

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--ink2) 100%);
  opacity: 0.6;
}

.about-content { padding: 56px 60px 56px 52px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }

.about-kicker {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 14px;
}

.about-content h2 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 24px; }
.about-content p { color: var(--muted-l); font-size: 15.5px; line-height: 1.7; margin-bottom: 16px; max-width: 580px; }

.about-credential {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 6px 0 26px;
}

.about-content .link-arrow { color: #fff; align-self: flex-start; }

/* ===== Services pillars ===== */

.pillars-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-bottom: 52px;
  margin-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.pillar h5 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  padding-left: 16px;
  position: relative;
}

.pillar h5::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.pillar p { font-size: 13.5px; color: var(--muted-l); padding-left: 16px; }

/* ===== Services (tabs) ===== */

.services-layout { display: grid; grid-template-columns: 280px 1fr; gap: 64px; }

.services-tabs { display: flex; flex-direction: column; gap: 4px; }

.service-tab {
  text-align: left;
  background: none;
  border: none;
  border-left: 2px solid rgba(255,255,255,0.16);
  padding: 16px 0 16px 22px;
  color: var(--muted-l);
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.service-tab:hover { color: #fff; }

.service-tab.active { color: #fff; border-left-color: var(--accent); }

.service-panel { display: none; }
.service-panel.active { display: block; animation: fadeIn 0.35s ease; }

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

.service-panel h3 { font-size: clamp(28px, 3.5vw, 42px); margin-bottom: 18px; }
.service-panel > p { color: var(--muted-l); font-size: 17px; max-width: 560px; margin-bottom: 24px; }

.funnel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
  margin-bottom: 34px;
}

.funnel span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 7px 13px;
  border-radius: 100px;
  white-space: nowrap;
}

.funnel span.funnel-final { color: #fff; background: var(--accent); border-color: var(--accent); }

.funnel svg { color: rgba(255,255,255,0.35); flex-shrink: 0; }

.service-panel ul { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }

.service-panel ul li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.service-panel ul li:last-child { border-bottom: none; }


/* ===== Process ===== */

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }

.process-num {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}

.process-card h4 { font-size: 19px; margin-bottom: 10px; color: #fff; }
.process-card p { font-size: 14.5px; color: var(--muted-l); }

/* ===== Portfolio (cards with real screenshots) ===== */

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.portfolio-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-l);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(15, 18, 16, 0.28);
  border-color: transparent;
}

.portfolio-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }

.portfolio-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-thumb img { transform: scale(1.06); }

.portfolio-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }

.portfolio-tag {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--violet);
  margin-bottom: 10px;
}

.portfolio-body h4 { font-size: 18px; margin-bottom: 14px; }

.portfolio-transform { flex: 1; display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.portfolio-transform p { font-size: 13.5px; color: var(--muted-d); line-height: 1.55; }
.portfolio-transform strong { color: var(--text); font-weight: 700; }

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.portfolio-link svg { transition: transform 0.25s ease; color: var(--accent); }
.portfolio-card:hover .portfolio-link svg { transform: translate(3px, -3px); }

/* ===== Differentiator band ===== */

.band { background: var(--surface); border-top: 1px solid var(--border-l); border-bottom: 1px solid var(--border-l); }

.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }

.band-item { border-left: 2px solid var(--accent); padding-left: 22px; }
.band-item h4 { font-size: 18px; margin-bottom: 10px; }
.band-item p { font-size: 14.5px; color: var(--muted-d); }

/* ===== FAQ (divider list) ===== */

.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--border-l); max-width: 820px; }

.faq-item { border-bottom: 1px solid var(--border-l); transition: background 0.25s ease; }
.faq-item:hover { background: rgba(17,18,16,0.02); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.faq-question .icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease, color 0.25s ease;
  color: var(--text);
}

.faq-item.open .faq-question .icon { transform: rotate(45deg); color: var(--accent); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }

.faq-answer p { padding: 0 40px 26px 0; color: var(--muted-d); font-size: 15px; }

/* ===== Final CTA ===== */

.cta-final { background: var(--ink); color: #fff; }

.cta-final .section-head { max-width: 720px; }
.cta-final h2 { font-size: clamp(34px, 5.5vw, 62px); margin-bottom: 20px; }
.cta-final p { color: var(--muted-l); font-size: 18px; max-width: 560px; margin-bottom: 44px; }

/* ===== Footer ===== */

footer { background: var(--ink); color: rgba(255,255,255,0.6); padding: 60px 0 28px; border-top: 1px solid rgba(255,255,255,0.1); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p { font-size: 14px; margin: 16px 0 20px; max-width: 260px; }

.footer-social { display: flex; gap: 12px; }

.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover { background: var(--accent); border-color: var(--accent); }

.footer-col h5 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }

.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== WhatsApp float ===== */

.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 24px -8px rgba(0,0,0,0.35);
  transition: transform 0.2s ease;
}

.wa-float:hover { transform: scale(1.08); }

/* ===== Reveal animation ===== */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Merge component-specific transitions with the reveal fade so neither gets clobbered */
.portfolio-card.reveal { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease, opacity 0.6s ease; }
.faq-item.reveal { transition: background 0.25s ease, opacity 0.6s ease, transform 0.6s ease; }

.portfolio-grid .reveal:nth-child(1), .process-grid .reveal:nth-child(1) { transition-delay: 0s; }
.portfolio-grid .reveal:nth-child(2), .process-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.portfolio-grid .reveal:nth-child(3), .process-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.portfolio-grid .reveal:nth-child(4), .process-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.portfolio-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.portfolio-grid .reveal:nth-child(6) { transition-delay: 0.4s; }

/* ===== Responsive ===== */

@media (max-width: 980px) {
  .container { padding: 0 24px; }
  section { padding: 88px 0; }
  .about-card { grid-template-columns: 1fr; }
  .about-photo { min-height: 340px; aspect-ratio: 4 / 3; }
  .about-photo::after { background: linear-gradient(180deg, transparent 55%, var(--ink2) 100%); }
  .about-content { padding: 40px 32px; }
  .pillars-row { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .services-layout { grid-template-columns: 1fr; gap: 32px; }
  .services-tabs { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .service-tab { border-left: none; border-bottom: 2px solid rgba(255,255,255,0.16); padding: 10px 4px; font-size: 15px; }
  .service-tab.active { border-bottom-color: var(--accent); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .band-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Nav switches to the hamburger earlier than other layout breakpoints: 6 links + CTA don't fit between 720-980px. */
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-outline-dark { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 720px) {
  .hero { padding: 150px 0 90px; }
  .hero-trust { margin-top: 40px; padding-top: 28px; }
  section { padding: 72px 0; }
  .pillars-row { grid-template-columns: 1fr; gap: 24px; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .actions { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* Mobile nav drawer */
.nav-links.mobile-open {
  display: flex;
  position: fixed;
  top: 78px; left: 0; right: 0;
  background: var(--ink);
  flex-direction: column;
  padding: 28px 24px;
  gap: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
