:root {
  --branco: #ffffff;
  --azul-marinho: #0b1e3a;
  --azul-marinho-deep: #06142a;
  --grafite: #2e3338;
  --grafite-suave: #5a6168;
  --terracota: #c9603f;
  --terracota-hover: #b14f30;
  --borda: #e6e8ec;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--grafite);
  background: var(--branco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 6%;
  background: transparent;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  padding: 14px 6%;
  box-shadow: 0 2px 16px rgba(11, 30, 58, 0.08);
}

.brand { display: flex; align-items: center; }
.brand-logo {
  height: 92px;
  width: auto;
}

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--grafite);
  transition: opacity 0.2s ease;
  opacity: 0.85;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--terracota);
  color: var(--branco) !important;
  padding: 9px 20px;
  border-radius: 6px;
  opacity: 1 !important;
}
.nav-cta:hover { background: var(--terracota-hover); }

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(120deg, var(--azul-marinho-deep) 0%, var(--azul-marinho) 45%, #142d52 75%, var(--azul-marinho-deep) 100%);
  background-size: 240% 240%;
  animation: gradientShift 14s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.hero-glow-1 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(201, 96, 63, 0.55) 0%, rgba(201, 96, 63, 0) 70%);
  top: -10%;
  right: -8%;
  animation: glowPulse 8s ease-in-out infinite;
}

.hero-glow-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(201, 96, 63, 0.35) 0%, rgba(201, 96, 63, 0) 70%);
  bottom: -15%;
  left: -6%;
  animation: glowPulse 10s ease-in-out infinite reverse;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.35); opacity: 1; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 20, 42, 0.55) 0%, rgba(11, 30, 58, 0.35) 55%, rgba(11, 30, 58, 0.2) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 6%;
  animation: heroIn 0.9s ease both;
}

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

.hero-eyebrow {
  color: var(--terracota);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  color: var(--branco);
  line-height: 1.18;
  margin-bottom: 22px;
}

.hero-title span { color: var(--terracota); font-style: italic; }

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--terracota);
  color: var(--branco);
  box-shadow: 0 8px 24px rgba(201, 96, 63, 0.35);
}
.btn-primary:hover { background: var(--terracota-hover); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--branco);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { border-color: var(--branco); background: rgba(255, 255, 255, 0.08); }
.btn-large { padding: 18px 38px; font-size: 1.05rem; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.4rem;
  z-index: 2;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Section shared */
section { padding: 110px 6%; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-eyebrow {
  color: var(--terracota);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  color: var(--azul-marinho);
  font-weight: 600;
}

/* Services */
.services { background: var(--branco); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.service-card {
  padding: 36px 28px;
  border: 1px solid var(--borda);
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(11, 30, 58, 0.08);
  border-color: transparent;
}
.service-number {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--terracota);
  font-style: italic;
}
.service-card h3 {
  font-size: 1.25rem;
  color: var(--azul-marinho);
  margin: 14px 0 10px;
}
.service-card p { color: var(--grafite-suave); font-size: 0.96rem; }

/* Portfolio */
.portfolio { background: #f7f8fa; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.portfolio-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--branco);
  box-shadow: 0 8px 28px rgba(11, 30, 58, 0.07);
  transition: transform 0.25s ease;
  display: block;
}
.portfolio-card:hover { transform: translateY(-6px); }
.portfolio-card img { width: 100%; height: 280px; object-fit: cover; }
.placeholder-fill {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--azul-marinho), var(--azul-marinho-deep));
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
}
.portfolio-info { padding: 20px 22px; }
.portfolio-info h3 { color: var(--azul-marinho); font-size: 1.1rem; margin-bottom: 6px; }
.portfolio-info p { color: var(--grafite-suave); font-size: 0.92rem; }

/* Process */
.process { background: var(--branco); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.process-step h3 { color: var(--azul-marinho); font-size: 1.15rem; margin: 14px 0 8px; }
.process-step p { color: var(--grafite-suave); font-size: 0.94rem; }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--azul-marinho) 0%, var(--azul-marinho-deep) 100%);
  text-align: center;
  padding: 120px 6%;
}
.cta h2 {
  font-family: var(--serif);
  color: var(--branco);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 16px;
  font-weight: 600;
}
.cta p { color: rgba(255, 255, 255, 0.78); margin-bottom: 32px; font-size: 1.05rem; }

/* Footer */
.footer {
  background: var(--azul-marinho-deep);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 36px 6%;
}
.footer-brand {
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
}
.footer-brand .footer-logo {
  height: 56px;
}
.footer p { font-size: 0.85rem; }

/* Responsive */
@media (max-width: 860px) {
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .services-grid, .portfolio-grid, .process-grid { grid-template-columns: 1fr; }
  section { padding: 80px 6%; }
}
