/* ============================================
   MERISMA — Psicologia Clínica e Organizacional
   v4 — refined layout, oval photo, icon badges
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;700&family=Mitr:wght@400;500;600&display=swap');

:root {
  --navy: #1B2A4A;
  --navy-deep: #111D35;
  --cream: #F4ECE1;
  --cream-light: #FAF7F2;
  --orange: #C65D2C;
  --orange-hover: #A84B22;
  --peach: #E8C4AD;
  --peach-light: #F3DFD2;
  --sand: #D9CBBA;
  --mustard: #D4A039;
  --blue-muted: #3D5A80;
  --blue-light: #E8EDF3;
  --warm-bg: #FBF5EF;
  --cool-bg: #F0F2F6;
  --text-dark: #1B2A4A;
  --text-light: #F4ECE1;
  --text-muted: #8A8278;
  --font-primary: 'Onest', sans-serif;
  --font-accent: 'Mitr', sans-serif;
  --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-primary); font-weight: 300;
  color: var(--text-dark); background-color: var(--cream-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.4s var(--transition); }
::selection { background: var(--orange); color: var(--cream-light); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 3px; }

/* ============================================
   LOGO
   ============================================ */
.logo-svg { height: 32px; width: auto; }
.nav .logo-svg { color: var(--cream-light); }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 4rem;
  transition: background 0.5s, padding 0.4s, box-shadow 0.4s;
}

.nav--scrolled {
  background: var(--navy); padding: 0.8rem 4rem;
  box-shadow: 0 2px 30px rgba(0,0,0,0.15);
}

.nav__logo { display: flex; align-items: center; gap: 0.5rem; }
.nav__links { display: flex; list-style: none; gap: 2.5rem; }
.nav__link {
  font-family: var(--font-accent); font-weight: 400; font-size: 0.9rem;
  color: var(--cream-light); letter-spacing: 0.08em;
  position: relative; padding-bottom: 2px;
}
.nav__link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--orange);
  transition: width 0.4s var(--transition);
}
.nav__link:hover::after, .nav__link--active::after { width: 100%; }

/* Hamburger */
.nav__hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1001; }
.nav__hamburger span { display: block; width: 24px; height: 2px; background: var(--cream-light); transition: all 0.3s; }
.nav__hamburger--active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger--active span:nth-child(2) { opacity: 0; }
.nav__hamburger--active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   LAYOUT
   ============================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 4rem; }
.container--narrow { max-width: 900px; }

/* ============================================
   SECTION GENERICS
   ============================================ */
.section { padding: 6rem 2rem; }
.section--warm { background: var(--warm-bg); }
.section--cool { background: var(--cool-bg); }
.section--navy { background: var(--navy); color: var(--cream-light); }
.section--cream { background: var(--cream); }
.section-label {
  font-family: var(--font-accent); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-accent); font-size: 2rem; font-weight: 500;
  line-height: 1.3; margin-bottom: 1.5rem;
}

.section-text {
  font-size: 1rem; line-height: 1.85; color: var(--text-dark);
  max-width: 800px;
}

.section--navy .section-text { color: var(--sand); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.hero--sub { min-height: 55vh; }

.hero__media {
  position: absolute; inset: 0;
}

.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
}

.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 29, 53, 0.55) 0%,
    rgba(17, 29, 53, 0.75) 100%
  );
}

.hero__content {
  position: relative; z-index: 2;
  text-align: center; padding: 2rem;
  max-width: 750px;
}

.hero__tagline {
  font-family: var(--font-accent); font-weight: 500;
  font-size: 2.6rem; color: var(--cream-light);
  line-height: 1.25; margin-bottom: 1rem;
}

.hero__subtitle {
  font-family: var(--font-accent); font-size: 0.82rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--peach); margin-bottom: 1.5rem;
}

.hero__key { margin-bottom: 1.2rem; }
.hero__key svg {
  width: 32px; height: 32px; fill: none; stroke: var(--peach);
  stroke-width: 1.5; stroke-linecap: round;
}

/* Hero CTA row */
.hero__ctas {
  display: flex; gap: 1.2rem;
  justify-content: center; flex-wrap: wrap;
  margin-top: 2rem;
}

.hero__cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 2.2rem; border: 1px solid var(--cream-light);
  color: var(--cream-light); font-family: var(--font-accent);
  font-size: 0.9rem; font-weight: 400; letter-spacing: 0.08em;
  border-radius: 4px; position: relative; overflow: hidden;
  transition: all 0.5s var(--transition); min-width: 180px;
}

/* Lock hover effect */
.hero__cta--lock .hero__cta-text { transition: opacity 0.3s; }
.hero__cta--lock .hero__cta-lock-icon {
  position: absolute; opacity: 0; transition: opacity 0.4s;
}
.hero__cta--lock .hero__cta-lock-icon svg {
  width: 22px; height: 22px;
}
.hero__cta--lock:hover {
  background: var(--cream-light); border-color: var(--cream-light);
}
.hero__cta--lock:hover .hero__cta-text { opacity: 0; }
.hero__cta--lock:hover .hero__cta-lock-icon { opacity: 1; }
.hero__cta-lock-icon .lock-shackle-cta {
  transition: transform 0.4s var(--transition) 0.2s;
  transform-origin: 17px 10px;
}
.hero__cta--lock:hover .lock-shackle-cta {
  transform: rotate(-30deg) translateY(-1px);
}

/* ============================================
   ABOUT / MERISMA SECTION
   ============================================ */
.about { text-align: center; }
.about__lead {
  font-size: 1.1rem; line-height: 1.9; max-width: 800px; margin: 0 auto;
  color: var(--text-dark);
}

/* ============================================
   PHILOSOPHY / QUOTE
   ============================================ */
.philosophy { text-align: center; padding: 5rem 4rem; background: var(--cream); }
.philosophy__text {
  font-family: var(--font-primary); font-weight: 300;
  font-size: 1.15rem; line-height: 1.9; font-style: italic;
  color: var(--navy); max-width: 780px; margin: 0 auto;
}

.philosophy__divider { width: 40px; height: 1px; background: var(--orange); margin: 2rem auto 0; }

/* ============================================
   PILARES
   ============================================ */
.pilares { padding: 6rem 2rem; }
.pilares__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; max-width: 1280px; margin: 2rem auto 0;
}

.pilar {
  text-align: center; padding: 2.5rem 1.5rem;
  border-radius: 48% 52% 45% 55% / 50% 47% 53% 50%;
  background: var(--cream); transition: transform 0.5s var(--transition);
  min-height: 160px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.pilar:nth-child(2) { border-radius: 52% 48% 55% 45% / 47% 53% 47% 53%; }
.pilar:nth-child(3) { border-radius: 50% 50% 48% 52% / 53% 47% 53% 50%; }
.pilar:nth-child(4) { border-radius: 47% 53% 52% 48% / 50% 50% 50% 50%; }
.pilar:hover { transform: translateY(-6px); }

.pilar__title {
  font-family: var(--font-accent); font-weight: 500;
  font-size: 1rem; color: var(--navy); margin-bottom: 0.6rem;
}

.pilar__desc {
  font-size: 0.88rem; color: var(--text-muted); line-height: 1.6;
}

/* ============================================
   SERVICES
   ============================================ */
.services { padding: 6rem 2rem; }
.services__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; max-width: 1280px; margin: 0 auto;
}

.service {
  padding: 2.5rem; background: white;
  border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  border-left: 3px solid var(--orange);
}

.service__title {
  font-family: var(--font-accent); font-weight: 500;
  font-size: 1.1rem; margin-bottom: 1rem; color: var(--navy);
}

.service__text {
  font-size: 0.95rem; line-height: 1.8; color: var(--text-dark);
}

/* ============================================
   BIO
   ============================================ */
.bio {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 3.5rem; align-items: start;
  max-width: 1100px; margin: 0 auto;
}

.bio__image { position: relative; }
.bio__image img {
  width: 260px; height: 320px; object-fit: cover;
  filter: grayscale(100%);
  border-radius: 45% 55% 40% 60% / 50% 45% 55% 50%;
}

/* Icon badge on photo — overlaps border */
.bio__badge {
  position: absolute; top: -8px; right: -8px;
  width: 52px; height: 52px;
  background: var(--orange); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 2;
}
.bio__badge svg {
  width: 24px; height: 24px;
  stroke: var(--cream-light); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.bio__badge--cool { background: var(--blue-muted); }

.bio__name {
  font-family: var(--font-accent); font-weight: 500;
  font-size: 1.4rem; color: var(--navy); margin-bottom: 0.2rem;
}

.bio__role {
  font-size: 0.85rem; color: var(--text-muted);
  letter-spacing: 0.06em; margin-bottom: 1.5rem;
}

.bio__text p {
  font-size: 0.95rem; line-height: 1.85; margin-bottom: 1rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 2.4rem;
  border: 1px solid var(--orange); color: var(--orange);
  font-family: var(--font-accent); font-size: 0.9rem; font-weight: 400;
  letter-spacing: 0.08em; border-radius: 4px;
  transition: all 0.4s var(--transition);
}
.btn:hover { background: var(--orange); color: var(--cream-light); }

.btn--solid {
  background: var(--orange); color: var(--cream-light);
  border-color: var(--orange);
}
.btn--solid:hover { background: var(--orange-hover); border-color: var(--orange-hover); }

.btn--light {
  border-color: var(--cream-light); color: var(--cream-light);
}
.btn--light:hover { background: var(--cream-light); color: var(--navy); }

/* CTA Section (standalone) */
.cta-section {
  padding: 5rem 2rem; text-align: center;
  background: var(--cream);
}
.cta-section__title {
  font-family: var(--font-accent); font-size: 1.4rem;
  font-weight: 500; margin-bottom: 1.5rem;
}

/* ============================================
   TOPICS LIST (for consultoria courses)
   ============================================ */
.topics-list {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
}
.topics-list li {
  font-size: 1rem; line-height: 2.2; color: var(--cream-light);
  padding-left: 1.5rem; position: relative;
}
.topics-list li::before {
  content: '—'; position: absolute; left: 0; color: var(--peach);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-hero {
  padding: 10rem 2rem 4rem;
  background: var(--navy); color: var(--cream-light);
  text-align: center;
}
.contact-hero__title {
  font-family: var(--font-accent); font-size: 2.4rem;
  font-weight: 500; margin-bottom: 0.8rem;
}
.contact-hero__sub {
  font-size: 1rem; color: var(--sand);
}

.contact-options { padding: 4rem 2rem 3rem; background: var(--cream-light); }
.contact-options__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2.5rem; max-width: 1000px; margin: 0 auto;
}

.contact-card {
  background: white; border-radius: 16px; padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  transition: transform 0.4s var(--transition);
  display: flex; flex-direction: column;
}
.contact-card:hover { transform: translateY(-4px); }

.contact-card__icon { margin-bottom: 1.5rem; }
.contact-card__icon svg {
  width: 40px; height: 40px; fill: none;
  stroke: var(--navy); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

.contact-card__title {
  font-family: var(--font-accent); font-size: 1.15rem;
  font-weight: 500; color: var(--navy); margin-bottom: 0.8rem;
}

.contact-card__desc {
  font-size: 0.92rem; line-height: 1.7; color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.contact-card__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.8rem; border-radius: 6px;
  font-family: var(--font-accent); font-size: 0.88rem;
  font-weight: 400; letter-spacing: 0.05em;
  border: none; cursor: pointer; transition: all 0.3s;
  margin-top: auto; align-self: flex-start;
  min-width: 260px;
}

.contact-card__btn--whatsapp {
  background: #25D366; color: white;
}
.contact-card__btn--whatsapp:hover { background: #1DA851; }

.contact-card__btn--form {
  background: var(--navy); color: var(--cream-light);
}
.contact-card__btn--form:hover { background: var(--navy-deep); }

.contact-info {
  padding: 3rem 2rem; background: var(--cream-light);
  border-top: 1px solid var(--sand);
}
.contact-info__grid {
  display: flex; justify-content: center; gap: 4rem;
  max-width: 800px; margin: 0 auto; flex-wrap: wrap;
}
.contact-info__item { text-align: center; }
.contact-info__heading {
  font-family: var(--font-accent); font-size: 0.82rem;
  font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 0.4rem;
}
.contact-info__text { font-size: 0.95rem; color: var(--text-dark); }
.contact-info__text a { border-bottom: 1px solid transparent; }
.contact-info__text a:hover { border-bottom-color: var(--orange); color: var(--orange); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-deep); color: var(--sand);
  padding: 5rem 4rem 2rem;
}

.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem; max-width: 1280px; margin: 0 auto;
}

.footer__logo-wrap { margin-bottom: 1.2rem; }
.footer__logo-wrap img { height: auto; width: 180px; }

.footer__desc { font-size: 0.88rem; color: var(--sand); line-height: 1.6; }

.footer__heading {
  font-family: var(--font-accent); font-size: 0.82rem;
  font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 1.5rem;
}

.footer__link { display: block; font-size: 0.9rem; color: var(--sand); margin-bottom: 0.8rem; transition: color 0.3s; }
.footer__link:hover { color: var(--cream-light); }

.footer__legal {
  text-align: center; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 3rem; max-width: 1280px; margin-left: auto; margin-right: auto;
}
.footer__legal p {
  font-size: 0.78rem; color: var(--sand); line-height: 1.8;
  letter-spacing: 0.02em;
}

.footer__bottom {
  text-align: center; padding-top: 1.5rem; font-size: 0.75rem;
  color: var(--text-muted); letter-spacing: 0.1em;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes scrollPulse { 0%, 100% { opacity: 0.4; transform: scaleY(1); } 50% { opacity: 1; transform: scaleY(1.2); } }

.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

.reveal--visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 0.15s; }
.reveal--delay-2 { transition-delay: 0.3s; }
.reveal--delay-3 { transition-delay: 0.45s; }

/* ============================================
   RESPONSIVE — Tablet (max 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .container { padding: 0 3rem; }
  .nav { padding: 1.2rem 2rem; }
  .nav--scrolled { padding: 0.8rem 2rem; }

  .section { padding: 5rem 2rem; }
  .philosophy { padding: 4rem 3rem; }

  .hero__tagline { font-size: 2.2rem; }
  .hero__content { max-width: 620px; }

  /* Pilares: 2 cols on tablet */
  .pilares__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .pilar { aspect-ratio: auto; min-height: 130px; padding: 2rem 1.2rem; }

  .services__grid { gap: 2rem; }

  .bio { gap: 2.5rem; }

  .footer { padding: 3rem 2rem 2rem; }
  .footer__grid { gap: 2rem; }
}

/* ============================================
   RESPONSIVE — Small tablet / large phone (max 900px)
   ============================================ */
@media (max-width: 900px) {
  .container { padding: 0 2rem; }
  .nav__hamburger { display: flex; }
  .nav__links {
    position: fixed; top: 0; right: -100%; width: 70%;
    height: 100vh; background: var(--navy-deep);
    flex-direction: column; justify-content: center;
    align-items: center; gap: 2rem;
    transition: right 0.4s var(--transition);
  }
  .nav__links--open { right: 0; }

  .hero__tagline { font-size: 1.8rem; }
  .hero__ctas { flex-direction: column; align-items: center; }

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

  .bio { grid-template-columns: 1fr; text-align: center; max-width: 600px; }
  .bio__image { display: flex; justify-content: center; position: relative; }
  .bio__badge { right: auto; left: 50%; transform: translateX(90px); }

  .contact-options__grid { grid-template-columns: 1fr; max-width: 500px; }
  .contact-info__grid { gap: 2.5rem; }

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

/* ============================================
   RESPONSIVE — Phone (max 600px)
   ============================================ */
@media (max-width: 600px) {
  .container { padding: 0 1.5rem; }
  .section { padding: 3.5rem 1.5rem; }

  .hero { min-height: 85vh; }
  .hero--sub { min-height: 45vh; }
  .hero__tagline { font-size: 1.4rem; }
  .hero__subtitle { font-size: 0.72rem; letter-spacing: 0.18em; }
  .hero__key svg { width: 26px; height: 26px; }
  .hero__content { padding: 1.5rem; }
  .hero__cta { padding: 0.7rem 1.6rem; font-size: 0.82rem; min-width: 150px; }

  .section-label { font-size: 0.7rem; }
  .section-title { font-size: 1.3rem; }
  .section-text { font-size: 0.92rem; }

  .philosophy { padding: 3rem 1.5rem; }
  .philosophy__text { font-size: 1rem; }

  /* Pilares: 2 cols on phone, compact */
  .pilares__grid { grid-template-columns: 1fr 1fr; gap: 1rem; max-width: none; }
  .pilar { min-height: 110px; padding: 1.5rem 1rem; aspect-ratio: auto; }
  .pilar__title { font-size: 0.88rem; margin-bottom: 0.3rem; }
  .pilar__desc { font-size: 0.8rem; }

  .service { padding: 1.8rem; }
  .service__title { font-size: 1rem; }
  .service__text { font-size: 0.88rem; }

  .bio__image img { width: 200px; height: 260px; }
  .bio__badge { width: 44px; height: 44px; transform: translateX(68px); }
  .bio__badge svg { width: 20px; height: 20px; }
  .bio__name { font-size: 1.2rem; }
  .bio__text p { font-size: 0.88rem; }

  .cta-section { padding: 3rem 1.5rem; }
  .btn { padding: 0.75rem 1.8rem; font-size: 0.82rem; }

  .topics-list li { font-size: 0.92rem; line-height: 2; }

  .contact-hero { padding: 8rem 1.5rem 3rem; }
  .contact-hero__title { font-size: 1.8rem; }
  .contact-card { padding: 2rem; }
  .contact-card__title { font-size: 1rem; }
  .contact-card__desc { font-size: 0.85rem; }
  .contact-info { padding: 2rem 1.5rem; }
  .contact-info__grid { gap: 1.5rem; flex-direction: column; align-items: center; }

  .footer { padding: 2.5rem 1.5rem 1.5rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer__logo-wrap img { width: 150px; }
  .footer__heading { margin-bottom: 0.8rem; }
  .footer__link { margin-bottom: 0.5rem; font-size: 0.85rem; }
  .footer__legal { padding-top: 1.5rem; margin-top: 1.5rem; }
  .footer__legal p { font-size: 0.7rem; }
}

/* ============================================
   RESPONSIVE — Very small phone (max 380px)
   ============================================ */
@media (max-width: 380px) {
  .container { padding: 0 1rem; }
  .hero__tagline { font-size: 1.2rem; }
  .section-title { font-size: 1.15rem; }
  .pilares__grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .pilar { min-height: 90px; }
}
