/* ==========================================================================
   Glauco Rocha — Executive Institutional Site
   Design tokens: white-dominant, light gray, deep petrol blue, hairline gold
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --white: #ffffff;
  --gray-50: #f7f7f8;
  --gray-100: #eef0f1;
  --gray-300: #c7ccd1;
  --gray-500: #8a929a;
  --text-body: #43494e;
  --text-dark: #1a2023;
  --petrol: #12333b;
  --petrol-deep: #0b2126;
  --gold: #ab8a53;
  --gold-soft: #ab8a5355;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w: 1160px;
  --section-pad: 120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--petrol);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1.08; font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.2; }
h3 { font-size: 1.35rem; font-weight: 500; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: inline-block;
  margin-bottom: 22px;
}

.lede {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-body);
  max-width: 620px;
}

/* Signature hairline — the recurring "alignment line" motif */
.rule {
  width: 64px;
  height: 1px;
  background: var(--gold);
  border: none;
  margin: 26px 0;
}
.rule--center { margin-left: auto; margin-right: auto; }

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

.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--petrol);
  letter-spacing: 0.03em;
}
.nav-brand span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-body);
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--petrol); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--petrol); font-weight: 600; }

.nav-right { display: flex; align-items: center; gap: 26px; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  padding: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.lang-toggle a {
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--gray-500);
  transition: all 0.25s ease;
}
.lang-toggle a.is-active {
  background: var(--petrol);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 1px;
  background: var(--petrol);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 15px 32px;
  border: 1px solid var(--petrol);
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn--primary { background: var(--petrol); color: var(--white); }
.btn--primary:hover { background: var(--petrol-deep); border-color: var(--petrol-deep); }
.btn--ghost { background: transparent; color: var(--petrol); }
.btn--ghost:hover { background: var(--petrol); color: var(--white); }

.btn-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 40px; }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 var(--section-pad);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: center;
}
.hero-photo {
  position: relative;
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(15%);
}
.hero-photo::before {
  content: '';
  position: absolute;
  top: 18px; left: 18px;
  width: 100%; height: 100%;
  border: 1px solid var(--gold-soft);
  z-index: -1;
}

/* ---------- Sections ---------- */
section { padding: var(--section-pad) 0; }
.section--tight { padding: 70px 0; }
.section--gray { background: var(--gray-50); }
.section--petrol { background: var(--petrol); color: rgba(255,255,255,0.82); }
.section--petrol h2 { color: var(--white); }

.section-head { max-width: 640px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Brand strip ---------- */
.brand-strip {
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  padding: 34px 0;
}
.brand-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.brand-strip span {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--gray-500);
  letter-spacing: 0.02em;
}

/* ---------- Philosophy quote block ---------- */
.quote-block {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.quote-block .mark {
  font-family: var(--serif);
  font-size: 3.5rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}
.quote-block p {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 400;
  color: var(--petrol);
  line-height: 1.5;
}

/* ---------- Grid cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px; }

.card-plain h3 { margin-bottom: 14px; }
.card-plain p { font-size: 0.96rem; }

/* ---------- Tag pills (core expertise) ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 12px; }
.tag {
  border: 1px solid var(--gray-300);
  padding: 9px 20px;
  font-size: 0.82rem;
  color: var(--text-body);
  letter-spacing: 0.02em;
}

/* ---------- Timeline (experience) ---------- */
.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  padding: 38px 0;
  border-top: 1px solid var(--gray-100);
}
.timeline-item:last-child { border-bottom: 1px solid var(--gray-100); }
.timeline-years {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  padding-top: 4px;
}
.timeline-role {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--petrol);
  margin-bottom: 6px;
}
.timeline-org {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 14px;
}
.timeline-desc { font-size: 0.98rem; max-width: 640px; }

/* ---------- Education ---------- */
.edu-item { padding: 26px 0; border-top: 1px solid var(--gray-100); }
.edu-item:last-child { border-bottom: 1px solid var(--gray-100); }
.edu-item h3 { margin-bottom: 4px; }
.edu-item .edu-meta { font-size: 0.85rem; color: var(--gray-500); }

/* ---------- Contact cards ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.contact-card {
  border: 1px solid var(--gray-100);
  padding: 44px 34px;
  text-align: left;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.contact-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.contact-card .icon {
  width: 34px; height: 34px;
  margin-bottom: 24px;
  color: var(--petrol);
}
.contact-card h3 { margin-bottom: 8px; }
.contact-card p { font-size: 0.9rem; margin-bottom: 22px; }
.contact-card .cta-link {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 3px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--petrol-deep);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 34px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--white);
}
.footer-nav { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.82rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.65); }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --section-pad: 80px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-photo { max-width: 340px; margin: 0 auto; order: -1; }
  .grid-3, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .footer-top, .footer-bottom { flex-direction: column; }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    padding: 30px 40px;
    border-bottom: 1px solid var(--gray-100);
    gap: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
