/* ── Brooks-inspired Portfolio — Luiz Honorato ── */

:root {
  --white: #ffffff;
  --black: #0a0a0a;
  --gray-900: #171717;
  --gray-700: #404040;
  --gray-500: #737373;
  --gray-300: #d4d4d4;
  --gray-100: #f5f5f5;
  --beige: #f0efeb;
  --beige-dark: #e8e6e1;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --container: 1200px;
  --header-h: 80px;
  --radius-pill: 999px;
  --radius: 12px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

/* ── Social rail ── */
.social-rail {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-rail a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gray-300);
  border-radius: 50%;
  color: var(--gray-700);
  background: var(--white);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.social-rail a:hover {
  border-color: var(--black);
  color: var(--black);
  transform: scale(1.05);
}

.social-rail svg {
  width: 18px;
  height: 18px;
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.header.scrolled {
  border-color: var(--gray-100);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--black);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.nav ul {
  display: flex;
  gap: 2.5rem;
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--black);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-location {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.4;
}

.header-time {
  font-weight: 600;
  color: var(--black);
  font-variant-numeric: tabular-nums;
}

.header-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}

.header-whatsapp svg {
  width: 22px;
  height: 22px;
}

.header-whatsapp:hover {
  transform: scale(1.08);
  background: #1ebe57;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.open span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.menu-toggle.open span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--gray-900);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--black);
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* ── Hero ── */
.hero {
  padding: 4rem 0 5rem;
  background: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
  min-height: calc(75vh - var(--header-h));
}

.hero-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 2rem;
  border: 2px solid var(--gray-100);
}

.hero-intro h1 {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 14ch;
}

.hero-side {
  padding-top: 5.5rem;
}

.hero-role {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 1rem;
  max-width: 22ch;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── Panel section (beige) ── */
.panel-section {
  background: var(--beige);
  padding: 4rem 0;
  border-top: 1px solid var(--beige-dark);
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.panel-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: 2rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.timeline-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-700);
}

.timeline-icon-accent {
  font-size: 0.875rem;
}

.timeline-icon svg {
  width: 18px;
  height: 18px;
  color: var(--gray-700);
}

.timeline-role {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 0.2rem;
}

.timeline-role strong {
  font-weight: 700;
}

.timeline-date {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* ── Sections ── */
.section {
  padding: 5rem 0;
}

.section-muted {
  background: var(--gray-100);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
}

.section-label {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  white-space: nowrap;
  transition: color 0.2s;
}

.section-link:hover {
  color: var(--black);
}

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--gray-300);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  transition: background 0.2s;
}

.service-card:hover {
  background: var(--gray-100);
}

.service-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ── Stats bar ── */
.stats-bar {
  padding: 3rem 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-suffix {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-name {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ── Works ── */
.works-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
}

.works-grid {
  display: grid;
  gap: 2rem;
}

.work-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.work-card:hover {
  border-color: var(--black);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.work-image {
  overflow: hidden;
  min-height: 280px;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover .work-image img {
  transform: scale(1.03);
}

.work-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.work-type {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.work-desc {
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.work-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--black);
}

/* ── About ── */
.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: center;
}

.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.0625rem;
  color: var(--gray-700);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ── CTA ── */
.cta-section {
  padding: 6rem 0;
  background: var(--black);
  color: var(--white);
}

.cta-inner {
  text-align: center;
}

.cta-eyebrow {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.cta-inner h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.cta-section .btn-dark {
  background: var(--white);
  color: var(--black);
}

.cta-section .btn-dark:hover {
  background: var(--gray-100);
}

/* ── Footer ── */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--gray-100);
}

.footer-inner {
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  font-size: 0.9375rem;
  color: var(--gray-700);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--black);
}

.footer-time {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.footer-time span {
  font-weight: 600;
  color: var(--black);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* ── Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .social-rail {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-side {
    padding-top: 0;
  }

  .panel-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .work-card {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-photo {
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .header-meta {
    display: none;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 1.5rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav ul {
    flex-direction: column;
    gap: 1.25rem;
  }

  .menu-toggle {
    display: flex;
  }

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

  .stats-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-intro h1 {
    max-width: none;
  }
}
