/* ============================================================
   Carvalho & Marcon — Main Stylesheet
   Canvas: 1920px | Grid: 12 cols, 16px gutter, 140px margins
   Colors: #000000 | #ffffff | #1a1818 | #4b4b4b
   Fonts: Roca Bold (headlines) | Raleway (body)
   NOTE: Roca is a commercial font (TypeType foundry).
         Add @font-face with the licensed Roca-Bold.woff2 file
         to the /assets/fonts/ directory to match the XD design.
   ============================================================ */

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a:visited { color: inherit; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', Georgia, sans-serif;
  font-size: 20px;
  line-height: 26px;
  color: #ffffff;
  background: #000000;
  overflow-x: hidden;
}

/* FONT — Roca Bold (commercial, add font file to enable) */
@font-face {
  font-family: 'Roca';
  src: url('../assets/fonts/RocaOne-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* LAYOUT
   On 1920px viewport: max-width 1364px + auto margins = 278px each side = XD col-2 guide.
   No extra padding — auto margin IS the 278px content margin.
   Sections add specific padding-left when text aligns to a column deeper than col 2. */
.container {
  max-width: 1364px;
  margin: 0 auto;
  padding: 0;
}

/* Offset anchor scroll for fixed header (88px desktop, 100px mobile) */
section[id] { scroll-margin-top: 88px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #000000;
  height: 88px;
}

.nav-inner {
  max-width: 1364px;
  margin: 0 auto;
  padding: 0;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 53px;
  width: auto;
  display: block;
}

/* Nav text links — centered between logo and contact icons */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-links li {
  display: flex;
  align-items: center;
}

/* Pipe separator between adjacent nav links */
.nav-links li + li::before {
  content: '';
  display: block;
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.45);
  margin: 0 20px;
  flex-shrink: 0;
}

.nav-links a {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.3s ease-out;
}

.nav-links a:hover { opacity: 0.65; }

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: #ffffff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* X state — offset = height(1px) + gap(12px) = 13px */
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(13px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-13px) rotate(-45deg);
}

/* Mobile menu dropdown — hidden on desktop always */
.mobile-menu {
  display: none;
  background: #000000;
  padding-bottom: 40px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
}

.mobile-menu-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 36px;
  margin-bottom: 32px;
}

.mobile-nav-links {
  list-style: none;
  padding: 0 36px;
}

.mobile-nav-links li + li {
  margin-top: 20px;
}

.mobile-nav-links a {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #ffffff;
  text-decoration: none;
}

.mobile-contact {
  display: flex;
  align-items: center;
  padding: 32px 36px 0;
}

/* Contact icons group */
.nav-contact {
  display: flex;
  align-items: center;
}

.nav-sep {
  display: block;
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.45);
  margin: 0 20px;
  flex-shrink: 0;
}

.nav-icon {
  display: flex;
  align-items: center;
  color: #ffffff;
  line-height: 1;
  transition: opacity 0.3s ease-out;
}

.nav-icon:hover { opacity: 0.65; }

/* ============================================================
   HERO — 1920×1080, image bg
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 1080px;
  background: url('../assets/hero-bg.webp') center center / cover no-repeat;
  display: flex;
  align-items: flex-start;
  padding-top: 220px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: #000000;
  mix-blend-mode: multiply;
  opacity: 0.5;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 159px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(79,79,79,0.06) 75%, rgba(84,84,84,0) 100%);
  opacity: 0.899;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1364px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  /* Hero text at x:416 = col 3. Container left edge at x:278 → offset 138px */
  padding-left: 138px;
}

/* 30 anos badge — SVG asset */
.anos-badge {
  display: block;
  width: 296px;
  height: auto;
  margin-bottom: 36px;
}

.hero-title {
  font-family: 'Roca', Georgia, serif;
  font-weight: 700;
  font-size: 50px;
  line-height: 1.15;
  color: #ffffff;
  max-width: 582px;
  margin-bottom: 36px;
}

.hero-sub {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 35px;
  color: #ffffff;
  max-width: 588px;
}

/* ============================================================
   SOBRE — Black, 365px
   ============================================================ */
.sobre {
  background: #000000;
  padding: 80px 0;
  min-height: 365px;
  display: flex;
  align-items: center;
}

.sobre-text {
  font-family: 'Raleway', sans-serif;
  font-size: 20px;
  line-height: 26px;
  color: #ffffff;
  max-width: 1088px;
  margin-left: auto;
  margin-right: auto;
}

.sobre-text + .sobre-text { margin-top: 24px; }

.sobre-text strong {
  font-weight: 700;
}

/* ============================================================
   SENIORIDADE — Image bg, 538px
   ============================================================ */
.senioridade {
  position: relative;
  height: 538px;
  background: url('../assets/senioridade-bg.webp') center 9.9% / cover no-repeat;
  display: flex;
  align-items: center;
}

.senioridade-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.senioridade-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.senioridade-content .section-title {
  width: 470px;
  line-height: 64px;
}

.senioridade-content .section-body {
  width: 674px;
}

/* ============================================================
   NOSSA EQUIPE — Dark gray, 598px
   ============================================================ */
.nossa-equipe {
  background: #4b4b4b;
  min-height: 598px;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.nossa-equipe .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nossa-equipe .section-heading {
  text-align: center;
}

.nossa-equipe .section-heading::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: #ffffff;
  margin-top: 12px;
}

.section-heading {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 32px;
}

.team-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #ffffff;
  padding: 28px 48px;
  max-width: 680px;
  width: 100%;
}

.team-list li {
  font-family: 'Raleway', sans-serif;
  font-size: 20px;
  line-height: 45px;
  color: #ffffff;
}

.team-list li strong { font-weight: 700; }

/* ============================================================
   EXPERTISE — Image bg, 538px
   ============================================================ */
.expertise {
  position: relative;
  height: 538px;
  background: url('../assets/expertise-bg.webp') center 7.5% / cover no-repeat;
  display: flex;
  align-items: center;
}

.expertise-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.expertise-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.expertise-content .section-title {
  width: 576px;
  line-height: 64px;
}

.expertise-content .section-body {
  width: 674px;
}

/* Shared section typography */
.section-title {
  font-family: 'Roca', Georgia, serif;
  font-weight: 700;
  font-size: 50px;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 24px;
}

.section-body {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 26px;
  color: #ffffff;
}

/* ============================================================
   ÁREAS DE ATUAÇÃO + DIFERENCIAIS — Black, 1076px
   ============================================================ */
.areas-diferenciais {
  background: #000000;
  min-height: 1076px;
  padding: 80px 0;
}

.cards-grid {
  display: grid;
  gap: 0;
  margin-bottom: 80px;
}

.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.areas-diferenciais .section-heading {
  text-align: center;
  margin-bottom: 64px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.areas-diferenciais .section-heading::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: #ffffff;
  margin-top: 12px;
}

.card {
  padding: 0 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.45);
}

.card:first-child { padding-left: 0; }
.card:last-child { border-right: none; padding-right: 0; }

.card-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.card-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 25px;
  line-height: 30px;
  color: #ffffff;
  margin-bottom: 16px;
}

.card-body {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 26px;
  color: #ffffff;
}

.diferenciais-heading {
  margin-top: 0;
}

/* ============================================================
   CONSULTORIA — Image bg, 538px
   ============================================================ */
.consultoria {
  position: relative;
  height: 538px;
  background: url('../assets/consultoria-bg.webp') center 15% / cover no-repeat;
  display: flex;
  align-items: center;
}

.consultoria-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.60);
}

.consultoria-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.consultoria-content .section-title {
  width: 884px;
  line-height: 64px;
}

.consultoria-content .section-body {
  width: 812px;
  margin-top: 24px;
}

/* ============================================================
   DESTAQUE DE AUTORIDADE — Dark gray, 662px
   ============================================================ */
.destaque {
  background: #4b4b4b;
  min-height: 662px;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.destaque-inner {
  display: grid;
  grid-template-columns: 1fr;
}

.destaque .section-heading {
  text-align: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.destaque .section-heading::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: #ffffff;
  margin-top: 12px;
}

.destaque-nome {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  color: #ffffff;
  margin-top: 56px;
  margin-bottom: 16px;
}

.destaque-titulo {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 26px;
  color: #ffffff;
  margin-bottom: 32px;
}

.destaque-bio {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1242px;
}

.destaque-bio p {
  font-family: 'Raleway', sans-serif;
  font-size: 20px;
  line-height: 26px;
  color: #ffffff;
}

.destaque-bio strong { font-weight: 700; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1a1818;
}

.footer-main {
  padding: 60px 0;
}

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

.footer-logo-link {
  display: block;
  flex-shrink: 0;
}

.footer-logo-img {
  width: 200px;
  height: auto;
  display: block;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-nav a {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease-out;
}

.footer-nav a:hover { opacity: 0.65; }

.footer-contact {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-sep {
  display: block;
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.45);
  margin: 0 16px;
}

.footer-icon {
  display: flex;
  align-items: center;
  color: #ffffff;
  transition: opacity 0.3s ease-out;
}

.footer-icon:hover { opacity: 0.65; }

.footer-bottom {
  background: #2d2d2d;
  padding: 20px 0;
}

.footer-copy {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: #ffffff;
  text-align: center;
}

/* ============================================================
   RESPONSIVE — Mobile-first pending XD mobile spec
   Breakpoints scaffolded, to be completed when layout arrives
   ============================================================ */
@media (max-width: 1440px) {
  .senioridade-content { align-items: center; }
  .expertise-content { align-items: center; }
  .consultoria-content { align-items: center; }
  .destaque-text { padding-left: 0; }
  .sobre-text { margin-left: auto; margin-right: auto; }
  .hero-content { padding-left: 140px; }
}

@media (max-width: 768px) {
  /* Base layout — XD mobile grid: 36px margins, 430px canvas */
  .container { padding: 0 36px; }
  section[id] { scroll-margin-top: 100px; }

  /* Nav — 100px height, logo left, hamburger right */
  .site-header { height: 100px; }
  .nav-inner { height: 100px; padding: 0 36px; }
  .nav-links { display: none; }
  .nav-contact { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu { display: block; }
  .logo-img { height: auto; width: 179px; }

  /* ---- Section overrides (will be refined per section in next steps) ---- */
  .hero { height: 931px; padding-top: 232px; }
  .hero-content { padding-left: 36px; padding-right: 36px; max-width: 100%; }
  .anos-badge { width: 296px; margin-bottom: 24px; }
  .hero-title { font-size: 40px; line-height: 1.2; max-width: 100%; margin-bottom: 24px; }
  .hero-sub { font-size: 20px; line-height: 26px; max-width: 100%; }

  /* Sobre — h:606px, texto a 53px do topo */
  .sobre { min-height: 606px; padding: 53px 0 48px; display: flex; align-items: flex-start; }
  .sobre-text { max-width: 100%; margin-left: 0; margin-right: 0; }

  /* Senioridade — h:536px, conteúdo centralizado */
  .senioridade { height: 536px; min-height: unset; padding: 0; }
  .senioridade-content .section-title { width: 100%; font-size: 40px; line-height: 1.2; }
  .senioridade-content .section-body { width: 100%; }

  .nossa-equipe { min-height: 774px; padding: 48px 0 60px; }
  .nossa-equipe .section-heading { font-size: 25px; margin-bottom: 55px; }
  .team-list { max-width: 100%; width: 100%; padding: 37px 27px; }
  .team-list li { line-height: 26px; }

  /* Expertise — h:482px, conteúdo centralizado */
  .expertise { height: 482px; min-height: unset; padding: 0; }
  .expertise-content .section-title { width: 100%; font-size: 40px; line-height: 1.2; }
  .expertise-content .section-body { width: 100%; }

  /* Áreas + Diferenciais — coluna única, separadores horizontais */
  .areas-diferenciais { padding: 48px 0; min-height: auto; }
  .areas-diferenciais .section-heading { font-size: 25px; margin-bottom: 40px; }
  .cards-4 { grid-template-columns: 1fr; margin-bottom: 48px; }
  .cards-3 { grid-template-columns: 1fr; margin-bottom: 0; }
  .card {
    padding: 40px 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  }
  .card:first-child { padding-left: 0; }
  .card:last-child { border-bottom: none; padding-right: 0; }

  /* Consultoria — h:580px, conteúdo centralizado */
  .consultoria { height: 580px; min-height: unset; padding: 0; align-items: flex-start; padding-top: 37px; }
  .consultoria-content .section-title { width: 100%; font-size: 40px; line-height: 1.2; }
  .consultoria-content .section-body { width: 100%; }

  /* Destaque de Autoridade — h:776px, heading 25px, nome 30px */
  .destaque { min-height: 776px; padding: 27px 0 48px; align-items: flex-start; }
  .destaque .section-heading { font-size: 25px; }
  .destaque-nome { font-size: 30px; margin-top: 51px; }
  .destaque-bio { max-width: 100%; }
  .destaque-text { padding-left: 0; }

  /* Footer — stack vertical conforme XD mobile */
  .site-footer { background: #000000; }
  .footer-main { padding: 49px 0 40px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0; }
  .footer-logo-img { width: 179px; height: auto; }
  .footer-nav { margin-top: 76px; }
  .footer-nav ul { gap: 52px; }
  .footer-contact { margin-top: 59px; }
  .footer-bottom { background: #4b4b4b; height: 49px; display: flex; align-items: center; padding: 0; }
  .footer-bottom .container { padding-left: 17px; padding-right: 17px; width: 100%; }
  .footer-copy { font-size: 10px; text-align: left; }
}
