/* ===========================
   RESET & TOKENS
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:            #000000;
  --text:          #ECECEC;
  --text-muted:    #666666;
  --accent:        #FFFFFF;
  --border:        rgba(255, 255, 255, 0.07);
  --font:          'Space Grotesk', sans-serif;

  /* Logo sizes */
  --logo-home-w:   min(480px, 40vw);
  --logo-page-w:   110px;

  /* Logo page position */
  --logo-page-top: 36px;
  --logo-page-left: 40px;

  /* Nav */
  --nav-right: 48px;

  /* Easing */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.72s;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

/* ===========================
   LOGO — HOME (grande, centro)
=========================== */
.logo-home {
  position: fixed;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  width: 32vw;
  max-width: 460px;
  min-width: 260px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.45s ease;
}

.logo-home.hidden {
  opacity: 0;
}

.logo-home video {
  display: block;
  width: 100%;
  height: auto;
}

/* ===========================
   LOGO — PAGE (pequeno, canto)
=========================== */
.logo-page {
  position: fixed;
  top: var(--logo-page-top);
  left: var(--logo-page-left);
  z-index: 100;
  width: 160px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.logo-page.visible {
  opacity: 1;
  pointer-events: auto;
}

.logo-page a {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.logo-page video {
  display: block;
  width: 100%;
  height: auto;
}

/* ===========================
   NAVIGATION
=========================== */
.main-nav {
  position: fixed;
  right: var(--nav-right);
  top: 50%;
  transform: translateY(-50%);
  z-index: 110;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
}

.nav-item::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--accent);
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 100%;
}

/* ===========================
   LANGUAGE SWITCHER
=========================== */
.lang-switcher {
  position: fixed;
  top: 40px;
  right: var(--nav-right);
  z-index: 111;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-sep {
  color: var(--text-muted);
  font-size: 0.7rem;
  opacity: 0.4;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0;
  transition: color 0.3s ease;
  line-height: 1;
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--accent);
}

/* ===========================
   MAIN CONTENT
=========================== */
#mainContent {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

/* ===========================
   PAGE SECTIONS
=========================== */
.page-section {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease 0.1s, visibility 0.45s ease 0.1s;
  overflow-y: auto;
  display: flex;
  align-items: center;
}

.page-section.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.section-inner {
  /* left padding to clear the logo at top-left, right for the nav */
  padding: 100px calc(var(--nav-right) + 140px) 80px 40px;
  padding-left: max(40px, calc(var(--logo-page-left) + var(--logo-page-w) + 40px));
  width: 100%;
  max-width: 1000px;
}

.section-inner h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-bottom: 48px;
}

/* ===========================
   BLOCK ELEMENTS
=========================== */
.section-inner p,
.section-inner .block-text {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 580px;
  line-height: 1.9;
}

.section-inner blockquote {
  margin-top: 48px;
  padding-left: 24px;
  border-left: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.8;
  max-width: 540px;
}

.section-inner h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 300;
  color: var(--accent);
  margin-bottom: 16px;
  margin-top: 32px;
}

.section-inner h3 {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 12px;
  margin-top: 24px;
}

.section-inner figure {
  margin: 24px 0;
}

.section-inner figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ===========================
   SERVIÇOS
=========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}

.service-card h2 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 20px;
}

.service-card ul {
  list-style: none;
}

.service-card li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}

.service-card li:first-child {
  border-top: 1px solid var(--border);
}

/* ===========================
   EQUIPE
=========================== */
.team-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.team-member h2 {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin-bottom: 6px;
}

.team-member p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ===========================
   CONTATO
=========================== */
.contact-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-style: italic;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  display: inline-block;
  position: relative;
  width: fit-content;
}

.contact-item::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.contact-item:hover {
  color: var(--accent);
}

.contact-item:hover::after {
  width: 100%;
}

/* ===========================
   SCROLLBAR
=========================== */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ===========================
   MOBILE
=========================== */
@media (max-width: 768px) {
  :root {
    --logo-home-w: 160px;
    --logo-page-w: 70px;
    --logo-page-top: 24px;
    --logo-page-left: 20px;
    --nav-right: 24px;
  }

  .main-nav {
    top: auto;
    bottom: 40px;
    transform: none;
    flex-direction: row;
    gap: 24px;
    right: 24px;
    left: 24px;
    justify-content: flex-end;
  }

  .lang-switcher {
    top: 24px;
    right: 24px;
  }

  .section-inner {
    padding: 120px 24px 120px 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
