/* ==========================================================================
   Thiago Garcia — site institucional
   ========================================================================== */

:root {
  --navy: #10233f;
  --navy-soft: #1c3457;
  --ink: #1a1f2b;
  --ink-light: #566072;
  --paper: #ffffff;
  --paper-alt: #f4f5f7;
  --accent: #b3873f;
  --accent-soft: #e7d9bf;
  --border: #e3e5ea;
  --radius: 6px;
  --max-width: 1140px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); margin: 0 0 0.5em; line-height: 1.15; }

p { margin: 0 0 1em; color: var(--ink-light); }

ul { margin: 0; padding: 0; list-style: none; }

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

.section-narrow { max-width: 780px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

/* -------------------- Buttons -------------------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #9c7434; }

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-small { padding: 10px 20px; font-size: 0.85rem; }
.btn-large { padding: 18px 36px; font-size: 1.05rem; }

/* -------------------- Header -------------------- */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

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

.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.logo span { color: var(--accent); }

.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}
.main-nav a:hover { color: var(--accent); }

.header-cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
}

/* -------------------- Hero -------------------- */

.hero {
  padding: 88px 0 96px;
  background: linear-gradient(180deg, var(--paper-alt) 0%, var(--paper) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.1rem;
  max-width: 560px;
}

.hero-quote {
  margin: 28px 0 32px;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--navy);
}

.hero-orgs {
  font-size: 0.88rem;
  color: var(--ink-light);
  margin-bottom: 28px;
}
.hero-orgs strong { color: var(--navy); }
.hero-orgs a { color: var(--accent); font-weight: 600; }
.hero-orgs a:hover { text-decoration: underline; }

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

.hero-media {
  justify-self: center;
}
.hero-media img {
  border-radius: var(--radius);
  box-shadow: 0 20px 45px rgba(16, 35, 63, 0.18);
  width: 100%;
  max-width: 340px;
  object-fit: cover;
}

/* -------------------- Sections -------------------- */

.section { padding: 96px 0; }
.section-alt { background: var(--paper-alt); }
.section-dark { background: var(--navy); }
.section-dark h2, .section-dark p { color: #fff; }
.section-dark .contact-lead { color: rgba(255,255,255,0.75); }

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.section h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 24px; }

/* -------------------- Stats -------------------- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat { text-align: left; }
.stat-number {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--ink-light);
}

/* -------------------- Timeline -------------------- */

.timeline {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: 1px solid var(--border); }

.timeline-year {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding-top: 2px;
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.timeline-content p { margin: 0; }
.timeline-content em { color: var(--ink); font-style: normal; font-weight: 500; }

.timeline-extra {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.timeline-extra h3 {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-light);
  margin-bottom: 10px;
}
.timeline-extra p {
  max-width: 780px;
  margin: 0;
}
.timeline-extra em { color: var(--ink); font-style: normal; font-weight: 500; }

/* -------------------- Brands -------------------- */

.brands-list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.brands-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 150px;
  padding: 20px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: center;
}

/* Fixed-size box so every logo occupies the same footprint,
   regardless of the original image's own proportions. */
.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
}
.brands-list img {
  display: block;
  max-width: 130px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-light);
  line-height: 1.3;
}

.brands-list li.text-only {
  justify-content: center;
}
.brands-list li.text-only .brand-name {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy);
}

/* -------------------- Cards -------------------- */

.cards-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.card h3 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.card p { font-size: 0.92rem; margin: 0; }

/* -------------------- Two column (Formação/Competências) -------------------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.simple-list li {
  padding: 18px 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.simple-list li:last-child { border-bottom: 1px solid var(--border); }
.simple-list strong { color: var(--navy); font-weight: 600; }
.simple-list span { color: var(--ink-light); font-size: 0.9rem; }

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.tags-list li {
  padding: 10px 16px;
  background: var(--paper-alt);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 500;
}

/* -------------------- Contact -------------------- */

.contact-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 48px;
  align-items: center;
}

.contact-lead { max-width: 480px; }

.contact-list {
  margin-top: 32px;
  display: grid;
  gap: 16px;
}
.contact-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 14px;
}
.contact-label {
  min-width: 110px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-soft);
}
.contact-list a, .contact-list span:last-child { color: #fff; font-weight: 500; }
.contact-list a:hover { color: var(--accent-soft); }

.contact-inner .btn-large { justify-self: center; }

/* -------------------- Footer -------------------- */

.site-footer {
  background: var(--navy-soft);
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
}
.footer-inner a { color: rgba(255,255,255,0.85); }
.footer-inner a:hover { color: #fff; }

/* -------------------- Reveal on scroll -------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------- Responsive -------------------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 280px; margin: 0 auto; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-list { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .contact-inner { grid-template-columns: 1fr; text-align: left; }
  .contact-inner .btn-large { justify-self: start; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 8px 24px 20px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }

  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .cards-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .brands-list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .brands-list li { height: 130px; padding: 16px 12px; }
  .brand-logo { height: 48px; }
  .brands-list img { max-height: 48px; max-width: 110px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
}

@media (max-width: 400px) {
  .brands-list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .brands-list li { height: 116px; padding: 14px 10px; }
  .brand-logo { height: 42px; }
  .brands-list img { max-height: 42px; max-width: 100px; }
  .brand-name { font-size: 0.72rem; }
}
