/* ==============================
   VARIÁVEIS E RESET
============================== */
:root {
  --primary:    #1a2744;
  --secondary:  #1a8fd1;
  --bg:         #ffffff;
  --muted:      #f1f5f9;
  --muted-fg:   #64748b;
  --border:     #e2e8f0;
  --white:      #ffffff;
  --font-sans:  'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --radius:     0px;
  --container:  1200px;
  --header-h:   80px;
}

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

html { scroll-behavior: smooth; }

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

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

h1,h2,h3,h4,h5,h6 { font-family: var(--font-serif); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==============================
   BOTÕES
============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  height: 56px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  transition: background .25s, color .25s, border-color .25s, transform .2s;
  white-space: nowrap;
}

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

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

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  color: var(--white);
  backdrop-filter: blur(4px);
}
.btn-outline:hover { background: rgba(255,255,255,.12); }

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  height: 56px;
  transition: background .25s;
}
.btn-submit:hover { background: var(--secondary); }

/* ==============================
   HEADER
============================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .4s, padding .4s, box-shadow .4s, border-color .4s;
  border-bottom: 1px solid transparent;
  padding: 20px 0;
}

#header.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-color: var(--border);
  padding: 12px 0;
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}

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

.logo-img { height: 64px; width: auto; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(255,255,255,.9);
  transition: color .2s;
}
.nav-link:hover { color: var(--secondary); }

#header.scrolled .nav-link { color: rgba(26,39,68,.8); }
#header.scrolled .nav-link:hover { color: var(--secondary); }

.nav-cta {
  background: var(--white);
  color: var(--primary);
  padding: 0 24px;
  height: 44px;
  font-size: .875rem;
  font-weight: 600;
  transition: background .25s, color .25s;
}
.nav-cta:hover { background: var(--secondary); color: var(--white); }
#header.scrolled .nav-cta { background: var(--primary); color: var(--white); }
#header.scrolled .nav-cta:hover { background: var(--secondary); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: background .3s, transform .3s, opacity .3s;
}
#header.scrolled .hamburger span { background: var(--primary); }

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
  gap: 4px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.nav-mobile a {
  padding: 12px 0;
  font-weight: 500;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile.open { display: flex; }

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(26,39,68,.85);
  mix-blend-mode: multiply;
}
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, #ffffff 0%, transparent 40%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(26,143,209,.35);
  background: rgba(26,143,209,.12);
  color: var(--secondary);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform: scale(1); }
  50%      { opacity:.5; transform: scale(1.3); }
}

.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-text h1 em {
  color: var(--secondary);
  font-style: italic;
}

.hero-text > p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  max-width: 520px;
  font-weight: 300;
  margin-bottom: 40px;
}

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

/* Hero photo */
.hero-photo { display: flex; justify-content: flex-end; }
.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4/5;
  padding: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(4px);
}
.hero-photo-border {
  position: absolute;
  inset: -16px;
  border: 1px solid rgba(26,143,209,.3);
  transform: translate(16px, 16px);
  z-index: -1;
}
.hero-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.15);
}
.hero-badge-float {
  position: absolute;
  bottom: 24px;
  left: -48px;
  background: var(--white);
  color: var(--primary);
  padding: 20px 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  border-left: 4px solid var(--secondary);
  max-width: 220px;
}
.badge-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}
.badge-label {
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(26,39,68,.7);
}

/* ==============================
   SOBRE NÓS
============================== */
.about { padding: 120px 0; background: var(--bg); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text .section-tag {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.tag-line {
  display: inline-block;
  width: 48px; height: 1px;
  background: var(--secondary);
  flex-shrink: 0;
}

.about-text h3 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 32px;
}

.about-paragraphs { display: flex; flex-direction: column; gap: 20px; }
.about-paragraphs p {
  font-size: 1.05rem;
  color: var(--muted-fg);
  font-weight: 300;
  line-height: 1.75;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.about-pillars h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.about-pillars p {
  font-size: .875rem;
  color: var(--muted-fg);
}

.about-photo-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--muted);
  padding: 16px;
}
.about-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-photo-accent {
  position: absolute;
  top: 50%; left: -32px;
  transform: translateY(-50%);
  width: 64px; height: 128px;
  background: var(--secondary);
}

/* ==============================
   SERVIÇOS
============================== */
.services {
  padding: 120px 0;
  background: var(--primary);
  color: var(--white);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}
.section-tag-white {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 16px;
  display: block;
}
.section-header h3 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}

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

.service-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: background .4s, transform .4s;
}
.service-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-8px);
}

.service-icon {
  width: 56px; height: 56px;
  background: rgba(26,143,209,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--secondary);
}

.service-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
}
.service-card > p {
  font-size: .95rem;
  color: rgba(255,255,255,.7);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-list {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  font-weight: 300;
}
.list-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  margin-top: 6px;
  flex-shrink: 0;
}

.service-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 20px;
  opacity: .8;
  transition: opacity .3s;
}
.service-card:hover .service-img { opacity: 1; }

.service-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--secondary);
  margin-top: auto;
}

/* ==============================
   DIFERENCIAIS
============================== */
.differentials { padding: 120px 0; background: var(--muted); }

.differentials-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.diff-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  padding: 8px;
  background: var(--bg);
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}

.diff-content h2 { margin-bottom: 16px; }
.diff-content h3 {
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 48px;
}

.diff-items { display: flex; flex-direction: column; gap: 32px; }
.diff-item  { display: flex; gap: 24px; }

.diff-icon {
  width: 48px; height: 48px;
  min-width: 48px;
  background: var(--bg);
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  margin-top: 4px;
}

.diff-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.diff-item p {
  font-size: .95rem;
  color: var(--muted-fg);
  font-weight: 300;
  line-height: 1.7;
}

/* ==============================
   CONTATO
============================== */
.contact { padding: 120px 0; background: var(--bg); }

.contact-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 64px;
}

.contact-info .section-tag { margin-bottom: 16px; }
.contact-info h3 {
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 24px;
}
.contact-info > p {
  font-size: 1.05rem;
  color: var(--muted-fg);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 48px;
}

.contact-items { display: flex; flex-direction: column; gap: 28px; }
.contact-item  { display: flex; align-items: flex-start; gap: 16px; }
.contact-item svg { color: var(--secondary); flex-shrink: 0; margin-top: 2px; }
.contact-item strong {
  display: block;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  font-family: var(--font-sans);
  font-size: .95rem;
}
.contact-item span,
.contact-item a {
  font-size: .9rem;
  color: var(--muted-fg);
  font-weight: 300;
  line-height: 1.6;
}
.contact-item a:hover { color: var(--secondary); }

/* Form */
.contact-form-wrap {
  background: var(--white);
  padding: 48px;
  box-shadow: 0 4px 32px rgba(0,0,0,.08);
  border: 1px solid rgba(226,232,240,.6);
}
.contact-form-wrap h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
}
.form-group input,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: .95rem;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--muted);
  color: var(--primary);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(26,143,209,.15);
}
.form-error {
  font-size: .8rem;
  color: #e53e3e;
  min-height: 18px;
}
.form-success {
  margin-top: 16px;
  padding: 16px 20px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: .95rem;
  border-radius: 4px;
}

/* ==============================
   FOOTER
============================== */
.footer {
  background: var(--primary);
  color: var(--white);
  padding-top: 80px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 48px;
  padding-bottom: 64px;
}

.footer-logo { height: 56px; width: auto; margin-bottom: 20px; }
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.75);
  transition: color .2s, border-color .2s;
}
.footer-social a:hover {
  color: var(--secondary);
  border-color: var(--secondary);
}

.footer-brand p {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  font-weight: 300;
  line-height: 1.7;
  max-width: 280px;
}

.footer-nav h4,
.footer-contact h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 24px;
  font-family: var(--font-serif);
}

.footer-nav ul { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  font-weight: 300;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--secondary); }

.footer-contact ul { display: flex; flex-direction: column; gap: 16px; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  font-weight: 300;
  line-height: 1.5;
}
.footer-contact svg { color: var(--secondary); flex-shrink: 0; margin-top: 2px; }
.footer-contact a { color: rgba(255,255,255,.65); }
.footer-contact a:hover { color: var(--secondary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p {
  font-size: .85rem;
  color: rgba(255,255,255,.35);
  font-weight: 300;
}

/* ==============================
   FADE-IN ANIMATIONS
============================== */
.fade-in {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.fade-in-left {
  transform: translateX(36px);
}
.fade-in.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ==============================
   RESPONSIVO
============================== */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-inner    { grid-template-columns: 1fr; }
  .hero-photo    { display: none; }
  .about-inner   { grid-template-columns: 1fr; }
  .about-photo   { order: -1; }
  .about-photo-accent { display: none; }
  .differentials-inner { grid-template-columns: 1fr; }
  .diff-photo    { order: -1; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .hamburger   { display: flex; }
  .hero-inner  { padding-bottom: 60px; }
  .hero-text h1 { font-size: 2.4rem; }
  .contact-form-wrap { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .about-pillars { grid-template-columns: 1fr; }
  .footer-inner  { grid-template-columns: 1fr; }
  .hero-buttons  { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}
