:root {
  --teal: #68ccd1;
  --teal-dark: #4eb8be;
  --teal-darker: #3a9ea4;
  --brown: #463939;
  --text: #333333;
  --text-muted: #666666;
  --text-light: #999999;
  --bg: #ffffff;
  --bg-gray: #f7f7f7;
  --line: #e8e8e8;
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  --radius: 6px;
  --container: 1120px;
  --section-py: clamp(60px, 9vw, 110px);
}

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

html { scroll-behavior: smooth; }

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

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

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 600;
  color: var(--brown);
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a {
  color: var(--teal-darker);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--brown); }

.container {
  width: min(var(--container), 100% - 40px);
  margin-inline: auto;
}
.narrow { max-width: 780px; }
.center { text-align: center; }

/* HEADER */
.header {
  background: var(--teal);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}
.header-inner {
  width: min(var(--container), 100% - 40px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
.brand { display: flex; flex-direction: column; line-height: 1.2; color: #fff; }
.brand:hover { color: #fff; }
.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.9;
  letter-spacing: 0.02em;
}

.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.nav a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.85); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

/* HERO */
.hero {
  background: var(--bg);
  padding: clamp(50px, 7vw, 90px) 0 clamp(40px, 6vw, 70px);
}
.hero-inner {
  width: min(var(--container), 100% - 40px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}
.hero-photo {
  margin: 0;
  width: clamp(220px, 30vw, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
  outline: 1px solid var(--line);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-text h1 {
  margin: 0 0 8px;
  color: var(--brown);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 400;
  color: var(--teal-darker);
  margin: 0;
  letter-spacing: 0.01em;
}

/* SECTIONS */
.section { padding: var(--section-py) 0; }
.section-white { background: var(--bg); }
.section-gray { background: var(--bg-gray); }
.section-cta { background: var(--teal); color: #fff; }
.section-title {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  padding-bottom: 18px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
}
.section-title.light { color: #fff; }
.section-title.light::after { background: rgba(255, 255, 255, 0.7); }

/* SOBRE */
#sobre h2 { text-align: center; margin-bottom: 32px; }
#sobre p { color: var(--text-muted); font-size: 1.02rem; }
.credentials {
  text-align: center;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
  color: var(--brown);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.credentials span { color: var(--teal); font-weight: 700; }

/* FORMAÇÃO */
.education {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
}
.education li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  align-items: baseline;
  background: #fff;
  padding: 20px 26px;
  border-radius: var(--radius);
  border-left: 4px solid var(--teal);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.education li:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow);
}
.year {
  font-weight: 700;
  color: var(--teal-darker);
  font-size: 1.15rem;
}
.degree {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.55;
}

/* PESQUISA */
.research-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.research-link {
  text-align: center;
  margin-bottom: 32px;
}
.research-link a {
  font-weight: 500;
  color: var(--teal-darker);
  word-break: break-all;
}
.research-link a:hover { color: var(--brown); }
.research-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  background: var(--teal);
  color: #fff;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid var(--teal);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}
.btn:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--teal-darker);
}
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-light {
  background: #fff;
  color: var(--teal-darker);
  border-color: #fff;
}
.btn-light:hover { background: var(--brown); border-color: var(--brown); color: #fff; }

/* LOCAIS */
.places {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin-inline: auto;
}
.place {
  background: #fff;
  padding: 36px 32px;
  border-radius: var(--radius);
  border-top: 4px solid var(--teal);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.place:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.place h3 { color: var(--brown); margin-bottom: 8px; font-size: 1.18rem; }
.place-role {
  color: var(--teal-darker);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.place-address { color: var(--text-muted); margin-bottom: 16px; font-size: 0.97rem; }
.place-phone {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 22px;
}
.place-phone:hover { color: var(--teal-darker); }
.place-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.place-actions .btn { padding: 10px 20px; font-size: 0.82rem; }

/* CTA */
.section-cta { text-align: center; }
.section-cta .section-title { color: #fff; }
.cta-sub { color: rgba(255, 255, 255, 0.92); font-size: 1.05rem; margin-bottom: 28px; }
.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* FOOTER */
.footer {
  background: var(--brown);
  color: rgba(255, 255, 255, 0.85);
  padding: 36px 0;
}
.footer-inner {
  width: min(var(--container), 100% - 40px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer strong { color: #fff; font-size: 1rem; }
.footer p { margin: 4px 0 0; font-size: 0.85rem; opacity: 0.85; }
.footer-copy { font-size: 0.82rem !important; opacity: 0.7; }

/* RESPONSIVE */
@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
    background: var(--teal);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: flex; }
  .header-inner { position: relative; }
  .education li { grid-template-columns: 1fr; gap: 4px; padding: 16px 20px; }
  .year { font-size: 1rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ANIMATIONS */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo,
  .hero-text,
  .section-title,
  .education li,
  .place,
  .research-buttons {
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUp 0.6s ease forwards;
  }
  .hero-text { animation-delay: 0.1s; }
  .education li:nth-child(n+2) { animation-delay: 0.05s; }
  .education li:nth-child(n+3) { animation-delay: 0.1s; }
  .education li:nth-child(n+4) { animation-delay: 0.15s; }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
