/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --midnight:    #0b1724;
  --navy:        #112240;
  --teal:        #1a7a6e;
  --teal-light:  #2cb5a5;
  --cream:       #f4efe6;
  --warm-white:  #faf8f4;
  --gold:        #c8a96e;
  --text:        #1c2b3a;
  --muted:       #6e7f8d;
  --border:      rgba(26,122,110,.18);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --nav-h: 72px;
  --max-w: 1160px;
  --gap:   clamp(2rem, 5vw, 4rem);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--text);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── UTILITY ────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding-block: clamp(4rem, 10vw, 7rem); }
.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
}
.tag::before { content: '—  '; }

/* ─── NEURAL SVG BACKGROUND ──────────────────────────────── */
.neural-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.neural-bg svg {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* ─── NAV ────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background .4s ease, box-shadow .4s ease;
}
#nav.scrolled {
  background: rgba(11, 23, 36, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .88;
  transition: opacity .25s;
}
.nav-logo:hover img { opacity: 1; }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(244,239,230,.7);
  transition: color .25s;
}
.nav-links a:hover { color: var(--teal-light); }
.nav-cta {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--teal);
  border: none;
  padding: .55rem 1.4rem;
  cursor: pointer;
  transition: background .25s;
}
.nav-cta:hover { background: var(--teal-light); }

/* hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--cream);
  transition: transform .3s;
}

/* ─── HERO ───────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--midnight);
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-h);
  max-width: 760px;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp .8s .3s forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp .9s .5s forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--teal-light);
}
.hero-desc {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(244,239,230,.65);
  max-width: 520px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp .9s .7s forwards;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .9s .9s forwards;
}
.btn-primary {
  display: inline-block;
  padding: .85rem 2.2rem;
  background: var(--teal);
  color: var(--cream);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .25s, transform .2s;
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-2px); }
.btn-outline {
  display: inline-block;
  padding: .85rem 2.2rem;
  border: 1px solid rgba(244,239,230,.3);
  color: rgba(244,239,230,.8);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: border-color .25s, color .25s;
}
.btn-outline:hover { border-color: var(--teal-light); color: var(--teal-light); }

/* Hero logo */
.hero-logo {
  display: block;
  width: clamp(140px, 18vw, 220px);
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0;
  animation: fadeUp .8s .1s forwards;
  margin-bottom: 2.5rem;
}

/* Hero logo position variants */
.hero-content.logo-left,
.hero-content.logo-right {
  display: grid;
  max-width: none;
  align-items: center;
  gap: 0 clamp(2rem, 4vw, 4rem);
}
.hero-content.logo-left {
  grid-template-columns: clamp(120px, 15vw, 200px) 1fr;
}
.hero-content.logo-right {
  grid-template-columns: 1fr clamp(120px, 15vw, 200px);
}
.hero-content.logo-left .hero-logo,
.hero-content.logo-right .hero-logo {
  grid-row: 1 / 5;
  width: 100%;
  margin-bottom: 0;
  align-self: center;
}
.hero-content.logo-left .hero-logo  { grid-column: 1; }
.hero-content.logo-right .hero-logo { grid-column: 2; }

.hero-content.logo-left .hero-eyebrow,
.hero-content.logo-left .hero-title,
.hero-content.logo-left .hero-desc,
.hero-content.logo-left .hero-actions { grid-column: 2; }

.hero-content.logo-right .hero-eyebrow,
.hero-content.logo-right .hero-title,
.hero-content.logo-right .hero-desc,
.hero-content.logo-right .hero-actions { grid-column: 1; }

@media (max-width: 640px) {
  .hero-content.logo-left,
  .hero-content.logo-right {
    grid-template-columns: 1fr;
  }
  .hero-content.logo-left .hero-logo,
  .hero-content.logo-right .hero-logo {
    grid-column: 1;
    grid-row: 1;
    width: clamp(100px, 28vw, 160px);
    margin-bottom: 1.5rem;
  }
  .hero-content.logo-left .hero-eyebrow,
  .hero-content.logo-right .hero-eyebrow,
  .hero-content.logo-left .hero-title,
  .hero-content.logo-right .hero-title,
  .hero-content.logo-left .hero-desc,
  .hero-content.logo-right .hero-desc,
  .hero-content.logo-left .hero-actions,
  .hero-content.logo-right .hero-actions { grid-column: 1; }
}

/* Hero name watermark */
.hero-watermark {
  position: absolute;
  bottom: 0;
  right: -2%;
  width: clamp(280px, 38vw, 560px);
  pointer-events: none;
  z-index: 0;
  opacity: .06;
  filter: brightness(0) invert(1);
  transform: translateY(18%);
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(244,239,230,.35);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s 1.4s forwards;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(244,239,230,.35));
  animation: scrollPulse 2s 1.4s infinite;
}

/* ─── NUMBERS STRIP ──────────────────────────────────────── */
#numbers {
  background: var(--navy);
  padding-block: 3rem;
  position: relative;
  z-index: 1;
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}
.num-item {}
.num-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--cream);
  line-height: 1;
}
.num-value span { color: var(--teal-light); }
.num-label {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(244,239,230,.45);
  margin-top: .5rem;
}

/* ─── SOBRE ──────────────────────────────────────────────── */
#sobre {
  background: var(--warm-white);
  position: relative;
}
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}
.sobre-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.sobre-text h2 em { font-style: italic; color: var(--teal); }
.sobre-text p {
  font-size: .97rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.sobre-text .btn-primary {
  background: var(--teal);
  margin-top: .75rem;
  display: inline-block;
}
.sobre-visual {
  position: relative;
}
.sobre-img-placeholder {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
}
.sobre-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.sobre-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 60%;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  z-index: -1;
}

/* ─── SERVIÇOS ───────────────────────────────────────────── */
#servicos {
  background: var(--cream);
  position: relative;
}
.section-header {
  text-align: center;
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
}
.section-header h2 em { font-style: italic; color: var(--teal); }
.section-header p {
  margin-top: 1rem;
  font-size: .95rem;
  line-height: 1.75;
  color: var(--muted);
}
/* ─── SERVICES CAROUSEL ──────────────────────────────────── */
.services-carousel { position: relative; }
.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex;
  will-change: transform;
  /* transition applied via JS so we can suppress it on resize */
}
.service-card {
  flex: 0 0 calc(100% / 3);   /* overridden by JS on mobile */
  background: var(--cream);
  padding: 2.5rem 2rem;
  transition: background .3s;
  position: relative;
  overflow: hidden;
  border-right: 1.5px solid var(--border);
}
.service-card:last-child { border-right: none; }
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px; width: 0;
  background: var(--teal);
  transition: width .4s ease;
}
.service-card:hover { background: var(--warm-white); }
.service-card:hover::before { width: 100%; }
.service-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--teal);
}
.service-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 500;
  color: var(--text); margin-bottom: .75rem;
}
.service-card p { font-size: .88rem; line-height: 1.7; color: var(--muted); }
.service-num {
  position: absolute;
  top: 1.5rem; right: 1.75rem;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(26,122,110,.18);
  line-height: 1;
  pointer-events: none;
}

/* Carousel nav */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.carousel-arrow {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, border-color .25s, color .25s, opacity .25s;
  flex-shrink: 0;
}
.carousel-arrow:hover:not(:disabled) {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
.carousel-arrow:disabled { opacity: .25; cursor: default; }
.carousel-arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.carousel-dots {
  display: flex; gap: .5rem; align-items: center;
}
.carousel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: none; padding: 0; cursor: pointer;
  transition: background .3s, transform .3s;
}
.carousel-dot.active {
  background: var(--teal);
  transform: scale(1.5);
}

/* ─── EQUIPE ─────────────────────────────────────────────── */
#equipe {
  background: var(--warm-white);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
@media (max-width: 620px) {
  .team-grid { grid-template-columns: 1fr; }
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem;
}
.team-card-top {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.team-photo {
  width: 130px;
  flex-shrink: 0;
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(15%);
  transition: filter .4s, transform .5s;
}
.team-card:hover .team-photo img {
  filter: grayscale(0%);
  transform: scale(1.03);
}
.team-bio-title {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .4rem;
}
.team-bio {
  font-size: .88rem;
  font-weight: 300;
  line-height: 1.72;
  color: var(--muted);
}
.team-meta {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.team-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
}
.team-role {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: .3rem;
}
.team-crp {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .2rem;
}

/* ─── DEPOIMENTOS ────────────────────────────────────────── */
#depoimentos {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
#depoimentos .tag { color: var(--teal-light); }
#depoimentos .section-header h2 { color: var(--cream); }
#depoimentos .section-header p { color: rgba(244,239,230,.5); }
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  padding: 2.25rem;
  position: relative;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: .8;
  color: var(--teal);
  opacity: .5;
  margin-bottom: .75rem;
}
.testimonial-text {
  font-size: .93rem;
  line-height: 1.75;
  color: rgba(244,239,230,.7);
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 300;
}
.testimonial-author {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--teal);
  opacity: .4;
}
.author-name {
  font-size: .82rem;
  font-weight: 500;
  color: rgba(244,239,230,.6);
  letter-spacing: .05em;
}
.author-detail {
  font-size: .73rem;
  color: rgba(244,239,230,.3);
  margin-top: .1rem;
}

/* ─── CONTATO ────────────────────────────────────────────── */
#contato {
  background: var(--warm-white);
}
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}
.contato-info h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.contato-info h2 em { font-style: italic; color: var(--teal); }
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-item-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}
.contact-item-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.contact-item-text strong {
  display: block;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .2rem;
}
.contact-item-text span {
  font-size: .92rem;
  color: var(--text);
}
.map-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e8f0ef 0%, #d0e6e3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: .9rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
}

/* Form */
.contato-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.field label {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: .75rem 1rem;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  outline: none;
  transition: border-color .25s;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--teal); }
.field textarea { resize: vertical; min-height: 100px; }
.form-submit {
  align-self: flex-start;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--midnight);
  padding-block: 3rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .6;
}
.footer-credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  opacity: .6;
}
.footer-copy {
  font-size: .75rem;
  color: rgba(244,239,230,.3);
  letter-spacing: .06em;
}
.footer-brand {
  height: 22px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(62%) sepia(41%) saturate(546%) hue-rotate(130deg) brightness(92%);
  opacity: .7;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(244,239,230,.35);
  transition: color .25s;
}
.footer-links a:hover { color: var(--teal-light); }

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: .35; }
  50%       { opacity: .7; }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .sobre-grid,
  .contato-grid { grid-template-columns: 1fr; }
  .sobre-visual { order: -1; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
