/* =============================================
   VARIÁVEIS
   ============================================= */
:root {
  --verde-escuro: #2d5a43;
  --lilas: #a6aacc;
  --verde-claro: #a8caba;
  --bege: #e8ddc9;
  --offwhite: #faf7f2;
  --preto: #2c2c2c;
  --font-serif: "Playfair Display", serif;
  --font-sans: "Lato", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  color: var(--preto);
  background-color: var(--offwhite);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* =============================================
   CONTAINER UTILITÁRIO
   ============================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   HEADER — BASE (MOBILE FIRST)
   ============================================= */
#main-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.brand-area {
  background-color: var(--offwhite);
  padding: 10px 16px;
  display: flex;
  justify-content: center;
}

.brand-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 36px;
  height: auto;
  flex-shrink: 0;
}

.logo-text {
  text-align: center;
}

.logo-text h1 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #2c3e50;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo-subtitle {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
}

.crp {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  color: #666;
  display: block;
}

/* Nav bar */
.nav-bar {
  background-color: var(--verde-claro);
  width: 100%;
  padding: 8px 0;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 16px;
  position: relative;
}

/* Mini logo: oculto no mobile, aparece no desktop ao rolar */
.mini-logo {
  display: none;
  align-items: center;
  gap: 10px;
}

.mini-logo img {
  width: 30px;
  height: auto;
  flex-shrink: 0;
}

.mini-text {
  font-family: var(--font-serif);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.mini-text strong {
  font-size: 1.05rem;
  color: #2c3e50;
}

.mini-text span {
  font-size: 0.78rem;
  color: #2c3e50;
  font-weight: 400;
}

.mini-text small {
  font-size: 0.62rem;
  color: #555;
}

/* Nav links */
.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.nav-links a {
  color: #2c3e50;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 0.55;
}

/* =============================================
   HERO — BASE (MOBILE FIRST)
   ============================================= */
.hero {
  background-color: var(--verde-escuro);
}

.hero-grid {
  display: flex;
  flex-direction: column;
}

/* Foto */
.hero-image-wrapper {
  width: 100%;
}

.profile-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center 8%;
  animation: heroReveal 0.9s ease-out forwards;
}

/* Área de texto mobile: gradiente + greeting + bio-box */
.hero-text {
  background: linear-gradient(
    90deg,
    var(--verde-escuro) 55%,
    var(--lilas) 55%,
    var(--lilas) 87%,
    var(--bege) 87%
  );
  padding: 28px 20px 40px;
}

.greeting {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.1;
  display: block;
  margin-bottom: 22px;
}

/* Bio card */
.bio-box {
  background-color: var(--offwhite);
  padding: 22px;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.bio-box p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--preto);
  margin-bottom: 14px;
}

.bio-box p:last-child {
  margin-bottom: 0;
}

/* =============================================
   WORK SECTION — BASE (MOBILE FIRST)
   ============================================= */
.work-section {
  background-color: var(--bege);
  padding: 60px 0;
  text-align: center;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #1a3c2e;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 40px;
}

.card-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.icon-box {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.icon-box img {
  max-height: 100%;
  width: auto;
  max-width: 160px;
}

.card-icon h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #1a3c2e;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 1px;
  font-weight: 700;
}

.card-icon p {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: #4a4a4a;
  line-height: 1.7;
  max-width: 300px;
}

.work-cta {
  margin-top: 8px;
}

.btn-lilac {
  background-color: var(--lilas);
  color: #2c3e50;
  padding: 12px 48px;
  border-radius: 50px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: background-color 0.3s, transform 0.3s;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-lilac:hover {
  background-color: #9397bb;
  transform: translateY(-2px);
}

/* =============================================
   SESSIONS SECTION — BASE (MOBILE FIRST)
   ============================================= */
.sessions-section {
  background-color: var(--offwhite);
  padding: 60px 0;
  text-align: center;
}

.session-cards-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.session-box {
  background-color: var(--verde-claro);
  padding: 32px 20px;
  border-radius: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.icon-session {
  font-size: 2.4rem;
  color: var(--verde-escuro);
  margin-bottom: 16px;
}

.session-box h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #1a2e22;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.session-box p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #1a2e22;
}

.quote-area {
  text-align: right;
}

.quote-area blockquote {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: #1a3c2e;
  line-height: 1.6;
}

.quote-area cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: bold;
  font-size: 0.9rem;
  color: #1a3c2e;
}

/* =============================================
   FOOTER — BASE (MOBILE FIRST)
   ============================================= */
footer {
  background-color: var(--lilas);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 48px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-intro {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.7;
  color: #1a2e22;
  margin-bottom: 24px;
}

.info-btn {
  background-color: var(--verde-escuro);
  color: #fff;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  transition: background-color 0.3s, transform 0.3s;
}

.info-btn:hover {
  background-color: #1a3528;
  transform: translateY(-2px);
}

.footer-image {
  width: 100%;
  max-width: 320px;
}

.footer-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center 8%;
  border-radius: 6px;
  box-shadow: 8px 8px 0 rgba(255, 255, 255, 0.12);
}

/* Footer bottom */
.footer-bottom {
  background-color: var(--bege);
  padding: 32px 0;
}

.footer-bottom-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.contact-list-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-list-bottom li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #1a2e22;
}

.contact-list-bottom a {
  color: #1a2e22;
  transition: opacity 0.2s;
}

.contact-list-bottom a:hover {
  opacity: 0.7;
}

.social-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.icon {
  color: var(--verde-escuro);
}

.copyright-text {
  font-size: 0.8rem;
  color: rgba(26, 46, 34, 0.7);
  margin-top: 16px;
}

/* =============================================
   TABLET — 768px+
   ============================================= */
@media (min-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }

  /* Cards de trabalho em linha */
  .cards-grid {
    flex-direction: row;
    align-items: flex-start;
  }

  .card-icon {
    flex: 1;
  }

  /* Cards de sessões lado a lado */
  .session-cards-container {
    flex-direction: row;
  }

  .session-box {
    flex: 1;
  }

  /* Footer: foto e texto lado a lado */
  .footer-content {
    flex-direction: row;
    align-items: flex-start;
  }

  .contact-info {
    flex: 1;
    align-items: flex-start;
    text-align: left;
  }

  .footer-image {
    flex-shrink: 0;
  }
}

/* =============================================
   DESKTOP — 1024px+
   ============================================= */
@media (min-width: 1024px) {
  /* Header: fixo no desktop */
  #main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: all 0.3s ease;
  }

  .brand-area {
    padding: 14px 0;
  }

  .logo-img {
    width: 40px;
  }

  .logo-text h1 {
    font-size: 1.4rem;
  }

  .logo-subtitle {
    font-size: 0.95rem;
  }

  .crp {
    font-size: 0.85rem;
  }

  .nav-bar {
    padding: 12px 0;
  }

  .nav-container {
    padding: 0 40px;
  }

  .nav-links {
    gap: 60px;
    flex-wrap: nowrap;
  }

  .nav-links a {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  /* Scrolled: header compactado */
  #main-header.scrolled .brand-area {
    display: none;
  }

  #main-header.scrolled .nav-bar {
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  #main-header.scrolled .nav-container {
    justify-content: flex-start;
  }

  #main-header.scrolled .mini-logo {
    display: flex;
    margin-right: auto;
  }

  #main-header.scrolled .nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Hero: layout em grid de 3 colunas para sobreposição limpa */
  .hero {
    background: linear-gradient(
      90deg,
      var(--verde-escuro) 55%,
      var(--lilas) 55%,
      var(--lilas) 87%,
      var(--bege) 87%
    );
    padding-top: 130px; /* espaço para o header fixo */
    overflow: hidden;
  }

  .hero-grid {
    display: grid;
    /* Coluna central (80px) é a zona de sobreposição:
       foto ocupa col 1+2, texto ocupa col 2+3 */
    grid-template-columns: 38% 80px 1fr;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 60px 80px;
  }

  .hero-image-wrapper {
    grid-column: 1 / 3;
    grid-row: 1;
    z-index: 2;
  }

  .profile-img {
    width: 100%;
    max-width: 420px;
    height: 530px;
    object-fit: cover;
    object-position: center 10%;
    border-radius: 5px;
  }

  .hero-text {
    grid-column: 2 / 4;
    grid-row: 1;
    background: transparent;
    padding: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .greeting {
    font-size: 2.1rem;
    margin-bottom: 20px;
    color: #fff;
  }

  .bio-box {
    border-radius: 45px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    width: 100%;
  }

  .bio-box p {
    font-size: 1.05rem;
  }

  /* Work section */
  .work-section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
  }

  .cards-grid {
    gap: 40px;
  }

  .icon-box {
    height: 150px;
  }

  .icon-box img {
    max-height: 130px;
    max-width: 220px;
  }

  .card-icon h3 {
    font-size: 1.5rem;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .card-icon p {
    font-size: 1.05rem;
  }

  /* Sessions section */
  .sessions-section {
    padding: 80px 0;
  }

  .session-cards-container {
    max-width: 900px;
    margin: 0 auto 40px;
  }

  /* Footer */
  .footer-content {
    padding: 80px 40px;
    gap: 50px;
  }

  .footer-image {
    flex: 0 0 350px;
    max-width: 350px;
  }

  .footer-image img {
    height: 450px;
    object-position: center 10%;
    box-shadow: 15px 15px 0 rgba(255, 255, 255, 0.1);
  }

  .footer-bottom-wrapper {
    padding: 0 60px;
  }
}

/* =============================================
   ANIMAÇÕES
   ============================================= */

/* Keyframes */
@keyframes heroReveal {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Greeting e bio-box: animam no carregamento da página */
.anim-hero-text {
  opacity: 0;
  animation: slideUp 0.55s ease-out var(--delay, 0s) forwards;
}

/* Scroll-reveal: elementos aguardam entrar no viewport */
.animate {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s ease var(--delay, 0s),
    transform 0.55s ease var(--delay, 0s);
}

.animate.visible {
  opacity: 1;
  transform: none;
}

/* Respeita a preferência do sistema por menos movimento */
@media (prefers-reduced-motion: reduce) {
  .profile-img       { animation: none; }
  .anim-hero-text    { animation: none; opacity: 1; }
  .animate           { opacity: 1; transform: none; transition: none; }
}
