/* ═══════════════════════════════════════════
   IDHP — Instituto de Desenvolvimento Humano e Psicanálise
   style.css
═══════════════════════════════════════════ */


/* ─── TOKENS ─────────────────────────────── */
:root {
  /* Cores — extraídas do logotipo (azul royal → ciano) */
  --sage:       #1B3E7A;
  --sage-light: #2E5AA8;
  --gold:       #0F6CFE;
  --gold-light: #3FC0FF;
  --cream:      #F5F8FC;
  --beige:      #E9EFF7;
  --warm-white: #FBFCFE;
  --dark:       #0E1A33;
  --text-dark:  #14213D;
  --text-mid:   #454F63;
  --text-muted: #838C9C;
  --border:     #D6DEE9;

  /* Tipografia */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Layout */
  --max-width: 1100px;
  --header-h:  76px;
}


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

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

address {
  font-style: normal;
}


/* ─── CONTAINER ──────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2.5rem;
}


/* ─── HEADER ─────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--warm-white);
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 1px 16px rgba(0,0,0,0.06);
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.header__logo-img {
  height: 40px;
  width: auto;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
}

.header__logo-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  color: var(--sage);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.3;
}

.header__logo-sub {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Nav */
.nav__list {
  display: flex;
  gap: 1.75rem;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-mid);
  letter-spacing: 0.02em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav__link:hover,
.nav__link.active {
  color: var(--sage);
  border-bottom-color: var(--gold);
}

/* Hamburger (mobile) */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-dark);
  transition: transform 0.25s, opacity 0.25s;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* ─── HERO ───────────────────────────────── */
.hero {
  background: var(--sage);
  padding: calc(var(--header-h) + 5rem) 2.5rem 5rem;
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero__content {
  position: relative;
  z-index: 1;
  flex: 1 1 480px;
  max-width: 560px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 300;
  line-height: 1.07;
  color: var(--cream);
  margin-bottom: 1.75rem;
}

.hero__title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero__sub {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  color: #B5B0A7;
  max-width: 420px;
  line-height: 1.85;
  margin-bottom: 2.5rem;
  text-align: justify;
  hyphens: auto;
}

.btn-outline {
  display: inline-block;
  border: 0.5px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7rem 1.6rem;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--sage);
}

/* Diagrama decorativo */
.hero__deco {
  position: absolute;
  left: -3rem;
  bottom: -3rem;
  width: 240px;
  height: 240px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}


/* ─── HERO: CARROSSEL DE FOTOS ───────────── */
.hero__carousel {
  position: relative;
  z-index: 1;
  flex: 1 1 640px;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 5 / 2;
  border-radius: 6px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45);
}

.hero__carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 0.6rem;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero__carousel-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero__carousel-photo {
  flex: 1 1 0;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
}

.hero__carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__carousel-slide--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, var(--sage-light), var(--sage) 60%, var(--dark));
}

.hero__carousel-slide--placeholder span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  font-weight: 300;
  color: rgba(251, 252, 254, 0.5);
}

.hero__carousel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 26, 51, 0.4), transparent 45%);
  pointer-events: none;
  z-index: 2;
}

.hero__carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(251, 252, 254, 0.15);
  backdrop-filter: blur(4px);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.hero__carousel-nav:hover {
  background: rgba(251, 252, 254, 0.3);
}

.hero__carousel-nav--prev {
  left: 0.75rem;
}

.hero__carousel-nav--next {
  right: 0.75rem;
}

.hero__carousel-dots {
  position: absolute;
  bottom: 0.9rem;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.hero__carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(251, 252, 254, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.hero__carousel-dot.is-active {
  background: var(--gold-light);
  transform: scale(1.3);
}


/* ─── SECTIONS (GENÉRICO) ────────────────── */
.section {
  padding: 5rem 0;
}

.section--white {
  background: var(--warm-white);
}

.section--beige {
  background: var(--beige);
}

.section__label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
}


/* ─── SOBRE ──────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about__pull {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-style: italic;
  font-weight: 300;
  color: var(--sage);
  line-height: 1.5;
  border-left: 1.5px solid var(--gold);
  padding-left: 1.5rem;
}

.about__text p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 1.1rem;
  text-align: justify;
  hyphens: auto;
}

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

.about__list {
  margin: 0 0 1.1rem;
  padding-left: 1.5rem;
}

.about__list li {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 0.6rem;
  position: relative;
  text-align: justify;
  hyphens: auto;
}

.about__list li::marker {
  color: var(--gold);
}

.about__list li strong {
  font-weight: 500;
  color: var(--sage);
}


/* ─── MISSÃO, VISÃO, VALORES ─────────────── */
.mvv__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 0.5px solid var(--border);
}

.mvv__card {
  padding: 2.25rem 1.75rem;
  border-right: 0.5px solid var(--border);
}

.mvv__card:last-child {
  border-right: none;
}

.mvv__bar {
  height: 1.5px;
  width: 2rem;
  background: var(--gold);
  margin-bottom: 1.25rem;
}

.mvv__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--sage);
  margin-bottom: 0.85rem;
}

.mvv__text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.85;
  text-align: justify;
  hyphens: auto;
}


/* ─── CITAÇÃO (ELEMENTO ASSINATURA) ──────── */
.quote-banner {
  background: var(--sage);
  padding: 4.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.quote-banner__mark {
  position: absolute;
  font-family: var(--font-display);
  font-size: 220px;
  font-weight: 600;
  color: var(--sage-light);
  top: -2rem;
  left: 1.5rem;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.quote-banner__text {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-style: italic;
  font-weight: 300;
  color: var(--cream);
  line-height: 1.25;
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.quote-banner__attr {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}


/* ─── ASSOCIADOS ─────────────────────────── */
.associates__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.associate {
  background: var(--warm-white);
  padding: 1.75rem 1.5rem;
}

.associate__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--gold-light);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

/* Quando tiver foto real, use esta classe no <img> */
.associate__photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.associate__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.associate__title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.associate__crp {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
}


/* ─── FOOTER ─────────────────────────────── */
.footer {
  background: var(--dark);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footer__tagline {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 300;
  color: #9BA8C2;
  line-height: 1.75;
  max-width: 260px;
  margin-bottom: 1.25rem;
  text-align: justify;
  hyphens: auto;
}

.footer__bar {
  height: 1px;
  width: 2.5rem;
  background: var(--gold);
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.footer__links li {
  margin-bottom: 0.45rem;
}

.footer__links a {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 300;
  color: #8593AD;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--cream);
}

.footer__info {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 300;
  color: #9BA8C2;
  line-height: 1.85;
  text-align: justify;
  hyphens: auto;
}

.footer__info a {
  transition: color 0.2s;
}

.footer__info a:hover {
  color: var(--cream);
}

.footer__bottom {
  border-top: 0.5px solid #223055;
  padding-top: 1.5rem;
}

.footer__copy {
  font-family: var(--font-body);
  font-size: 10px;
  color: #6B79A0;
}


/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .mvv__card {
    border-right: none;
    border-bottom: 0.5px solid var(--border);
  }

  .mvv__card:last-child {
    border-bottom: none;
  }

  .associates__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer__brand {
    grid-column: 1 / -1;
  }

  .hero {
    justify-content: center;
  }

  .hero__content {
    flex-basis: 100%;
    max-width: 560px;
  }

  .hero__carousel {
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  .header {
    padding: 0 1.25rem;
  }

  .header__logo-img {
    height: 32px;
  }

  .header__logo-name {
    font-size: 11px;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Mobile nav */
  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--warm-white);
    border-bottom: 0.5px solid var(--border);
    padding: 1.5rem 1.25rem;
  }

  .nav.open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 0.5px solid var(--border);
    border-left: none;
    font-size: 15px;
  }

  .nav__link.active,
  .nav__link:hover {
    border-bottom-color: var(--border);
    color: var(--sage);
  }

  .nav__toggle {
    display: flex;
  }

  .hero {
    padding-bottom: 4rem;
    min-height: auto;
  }

  .hero__deco {
    width: 140px;
    height: 140px;
    left: -1rem;
    bottom: -1rem;
  }

  .hero__carousel {
    max-width: 280px;
    aspect-ratio: 2 / 3;
    margin: 0 auto;
  }

  .hero__carousel-slide {
    flex-direction: column;
  }

  .section {
    padding: 3.5rem 0;
  }

  .quote-banner {
    padding: 3rem 1.25rem;
  }

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

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