/* =========================================================
   FGK Incorporadora: estilos do site
   Escrito "mobile first": as regras base valem para o celular;
   os blocos @media (min-width: ...) ajustam para tablet e computador.
   Cores e fonte seguem o FGK_Guidebook.
   ========================================================= */

:root {
  /* Cores da marca */
  --gesso: #FCFAFB;
  --preto: #000000;
  --cinza: #4D4D4D;        /* texto corrido (guidebook) */
  --cinza-suave: #6B6B6B;  /* rótulos e detalhes */
  --linha: rgba(0, 0, 0, 0.12);

  /* Medidas */
  --header-h: 64px;
  --gutter: 20px;
  --max: 1120px;
  --section-pad: 72px;

  --fonte: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--gesso);
  color: var(--preto);
  font-family: var(--fonte);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--preto);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 200;
  padding: 8px 14px;
  background: var(--preto);
  color: var(--gesso);
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(252, 250, 251, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--linha); }

.header-inner {
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo simplificado: mínimo de 120 px de largura (guidebook) */
.brand img { width: 120px; height: auto; }

.header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Seletor de idioma */
.lang {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-btn {
  background: none;
  border: 0;
  padding: 8px 2px;
  cursor: pointer;
  font-family: var(--fonte);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--cinza-suave);
  transition: color 0.2s ease;
}
.lang-btn:hover { color: var(--preto); }
.lang-btn[aria-pressed="true"] { color: var(--preto); }
.lang-sep { color: var(--linha); font-size: 12px; }

/* Botão de menu (celular) */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  padding: 0 8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--preto);
  transition: transform 0.3s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

/* Menu no celular: painel que desce abaixo do header */
.nav-links {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: 8px var(--gutter) 32px;
  background: var(--gesso);
  border-bottom: 1px solid var(--linha);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.nav-links.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-links a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--linha);
  font-size: 24px;
  font-weight: 500;
  text-decoration: none;
}
.nav-links li:last-child a { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(88svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 64px 0 80px;
}

.hero-title {
  font-size: clamp(2.5rem, 1.1rem + 5.6vw, 5rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.hero-title > span { display: block; }
.hero-title-light {
  font-weight: 400;
  color: var(--cinza);
}

.hero-sub {
  max-width: 34em;
  margin-top: 28px;
  font-size: clamp(1rem, 0.92rem + 0.45vw, 1.25rem);
  line-height: 1.7;
  color: var(--cinza);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--linha);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.3s ease;
}
.cta:hover { border-bottom-color: var(--preto); }
.cta-arrow { transition: transform 0.3s ease; }
.cta:hover .cta-arrow { transform: translateY(3px); }

/* ---------- Seções ---------- */
.section {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--linha);
  scroll-margin-top: var(--header-h);
}

.section-label {
  margin-bottom: 40px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cinza-suave);
}

/* ---------- Modelo (princípios) ---------- */
.principles {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 64px;
}

.principle {
  padding: 28px 0 32px;
  border-top: 1px solid var(--linha);
}

.principle-num {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--cinza-suave);
}

.principle-title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.principle-text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--cinza);
}

/* ---------- Sócios ---------- */
.partners {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}

.partner { max-width: 400px; }

.partner-photo {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #ECEAEB;
  margin-bottom: 24px;
}

.partner-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.partner-name {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

.partner-linkedin {
  display: inline-flex;
  padding: 6px;
  color: var(--cinza-suave);
  transition: color 0.2s ease;
}
.partner-linkedin:hover { color: var(--preto); }

.partner-role {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cinza-suave);
}

.partner-bio {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--cinza);
}

.partner-projects-label {
  margin-top: 24px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cinza-suave);
}

.partner-projects {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- Contato ---------- */
.contact { border-bottom: 1px solid var(--linha); }

.contact-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 24px 0;
  border-top: 1px solid var(--linha);
}

.contact-item dt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cinza-suave);
}

.contact-link {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--linha);
  font-size: clamp(1.0625rem, 0.95rem + 0.8vw, 1.625rem);
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: break-word;
  transition: border-color 0.3s ease;
}
.contact-link:hover { border-bottom-color: var(--preto); }

/* ---------- Rodapé ---------- */
.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--linha);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

/* Logo primário: mínimo de 250 px de largura (guidebook) */
.footer-logo {
  width: 260px;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.footer-copy {
  font-size: 13px;
  color: var(--cinza-suave);
}

/* ---------- Easter egg ---------- */
.thanks {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 300;
  padding: 10px 20px;
  background: var(--preto);
  color: var(--gesso);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.thanks.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- PLACEHOLDER (textos provisórios) ----------
   Destaque amarelo proposital para nada ir ao ar sem revisão.
   Para aprovar um texto, basta remover a classe "placeholder" no index.html. */
.placeholder {
  background: #FFF4B8;
  outline: 1px dashed #B39200;
  outline-offset: 3px;
}
.placeholder::before {
  content: "PLACEHOLDER";
  display: inline-block;
  margin-right: 8px;
  padding: 1px 6px;
  background: #B39200;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.6;
  vertical-align: 0.2em;
}

/* ---------- Animação de entrada (só com JavaScript ativo) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .thanks, .nav-links, .menu-toggle span { transition: none; }
}

/* =========================================================
   TABLET (a partir de 768 px)
   ========================================================= */
@media (min-width: 768px) {
  :root {
    --header-h: 72px;
    --gutter: 40px;
    --section-pad: 96px;
  }

  /* Menu volta a ficar em linha no header */
  .menu-toggle { display: none; }

  .nav { margin-left: auto; }
  .nav-links {
    position: static;
    display: flex;
    gap: 32px;
    padding: 0;
    background: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav-links a {
    padding: 8px 0;
    border: 0;
    font-size: 14px;
    color: var(--cinza);
    transition: color 0.2s ease;
  }
  .nav-links a:hover { color: var(--preto); }

  .header-tools { margin-left: 16px; }

  .section-label { margin-bottom: 56px; }

  .principles { grid-template-columns: 1fr 1fr; column-gap: 48px; }

  .partners { grid-template-columns: 1fr 1fr; gap: 48px; }

  .contact-item {
    grid-template-columns: 200px 1fr;
    align-items: baseline;
    padding: 28px 0;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

/* =========================================================
   COMPUTADOR (a partir de 1024 px)
   ========================================================= */
@media (min-width: 1024px) {
  :root {
    --gutter: 56px;
    --section-pad: 128px;
  }

  .hero { padding: 96px 0 120px; }

  .principles { column-gap: 80px; }
  .principle-title { font-size: 20px; }
  .principle-text { font-size: 16px; }

  .partners { gap: 80px; }

  .contact-item { grid-template-columns: 280px 1fr; }
}
