/* =============================================
   NORBERTO DANTAS — PSICÓLOGO
   Paleta "Água Funda" — Azul Oceânico
   ============================================= */

:root {
  /* Color palette */
  --navy:      #001D39;
  --dark-blue: #0A4174;
  --mid-blue:  #49769F;
  --teal:      #4E8EA2;
  --steel:     #6EA2B3;
  --sky:       #7BBDE8;
  --mist:      #BDD8E9;

  /* Semantic tokens */
  --bg:        #F7FBFE;
  --bg-alt:    #EEF6FB;
  --surface:   #FFFFFF;
  --text:      #001D39;
  --text-mid:  #2A4B6B;
  --text-muted:#5A7A95;
  --border:    rgba(74, 118, 159, 0.18);
  --shadow:    0 4px 32px rgba(0, 29, 57, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 29, 57, 0.14);

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

  /* Spacing */
  --section-py: clamp(72px, 10vw, 120px);
  --container:  1200px;
  --gap:        clamp(16px, 3vw, 32px);

  /* Radius */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

/* =============================================
   UTILITIES
   ============================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-label--light { color: var(--sky); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-title--light { color: #EEF6FB; }

.section-sub {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: clamp(40px, 6vw, 64px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--dark-blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(10, 65, 116, 0.35);
}

.btn--primary:hover {
  background: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(10, 65, 116, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--dark-blue);
  border: 1.5px solid var(--mid-blue);
}

.btn--ghost:hover {
  background: rgba(73, 118, 159, 0.08);
  border-color: var(--dark-blue);
  transform: translateY(-2px);
}

.btn--full { width: 100%; }

/* Badges */
.badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(78, 142, 162, 0.1);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(78, 142, 162, 0.25);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-20px); }
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 15px) scale(0.97); }
}

.fade-in {
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--card-delay, 0s);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
  padding: 0;
}

.nav--scrolled {
  background: rgba(247, 251, 254, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin-inline: auto;
  padding: 20px clamp(20px, 5vw, 60px);
  gap: 24px;
}

.nav__brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav__brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.1;
}

.nav__brand-title {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-mid);
  padding: 8px 14px;
  border-radius: 50px;
  transition: all 0.25s var(--ease);
}

.nav__link:hover {
  color: var(--dark-blue);
  background: rgba(73, 118, 159, 0.08);
}

.nav__link--cta {
  background: var(--dark-blue);
  color: #fff;
  padding: 10px 20px;
  font-weight: 500;
}

.nav__link--cta:hover {
  background: var(--navy);
  color: #fff;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--r-sm);
  transition: background 0.2s;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.nav__toggle--open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle--open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 20px 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--bg) 0%, var(--mist) 40%, #d6ebf5 70%, var(--bg) 100%);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--sky) 0%, transparent 70%);
  top: -100px;
  right: -80px;
  animation: orb-drift 14s ease-in-out infinite;
}

.hero__orb--2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
  bottom: 0;
  left: -60px;
  animation: orb-drift 18s ease-in-out infinite reverse;
  opacity: 0.35;
}

.hero__orb--3 {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, var(--mid-blue) 0%, transparent 70%);
  top: 40%;
  left: 55%;
  animation: orb-drift 22s ease-in-out infinite;
  opacity: 0.25;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 28px;
}

.hero__title em {
  font-style: italic;
  color: var(--dark-blue);
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
  margin-inline: auto;
}

.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   SOBRE
   ============================================= */
.sobre {
  padding-block: var(--section-py);
  background: var(--surface);
}

.sobre__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: center;
}

.sobre__visual {
  display: flex;
  justify-content: center;
}

.sobre__portrait {
  position: relative;
  width: 320px;
  height: 420px;
}

.sobre__portrait-bg {
  position: absolute;
  inset: 0;
  border-radius: 60% 40% 50% 50% / 50% 50% 60% 40%;
  background: linear-gradient(145deg, var(--mist), var(--sky));
  opacity: 0.5;
}

.sobre__portrait-shape {
  position: absolute;
  top: 24px;
  left: 24px;
  right: -12px;
  bottom: -12px;
  border-radius: 40% 60% 55% 45% / 45% 55% 60% 40%;
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--teal) 100%);
  opacity: 0.15;
}

.sobre__portrait::before,
.sobre__portrait::after {
  content: none;
}

.sobre__portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 60% 40% 50% 50% / 50% 50% 60% 40%;
  z-index: 1;
}

.sobre__portrait-badge {
  position: absolute;
  bottom: 24px;
  right: -12px;
  z-index: 2;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-lg);
}

.sobre__content { }

.sobre__text {
  color: var(--text-mid);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.75;
}

.sobre__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

/* =============================================
   AREAS
   ============================================= */
.areas {
  padding-block: var(--section-py);
  background: var(--bg-alt);
}

.areas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.area-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  transition: all 0.35s var(--ease);
}

.area-card:hover {
  border-color: var(--mid-blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.area-card__icon {
  width: 48px;
  height: 48px;
  color: var(--teal);
  margin-bottom: 20px;
}

.area-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
}

.area-card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   ABORDAGEM
   ============================================= */
.abordagem {
  position: relative;
  padding-block: var(--section-py);
  overflow: hidden;
}

.abordagem__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--dark-blue) 0%, var(--navy) 100%);
}

.abordagem__wave {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(78,142,162,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(123,189,232,0.15) 0%, transparent 50%);
}

.abordagem__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: center;
}

.abordagem__quote-mark {
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 0.7;
  color: var(--sky);
  opacity: 0.3;
  margin-bottom: 16px;
}

.abordagem__blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  font-style: italic;
  color: #EEF6FB;
  line-height: 1.5;
}

.abordagem__text {
  color: var(--mist);
  opacity: 0.85;
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.75;
}

.abordagem__pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(123,189,232,0.2);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(4px);
}

.pillar__num {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--sky);
  letter-spacing: 0.15em;
}

.pillar__text {
  font-size: 0.875rem;
  color: var(--mist);
  line-height: 1.4;
}

/* =============================================
   ATENDIMENTO
   ============================================= */
.atendimento {
  padding-block: var(--section-py);
  background: var(--surface);
}

.atendimento__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}

.atendimento__card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  transition: all 0.35s var(--ease);
  background: var(--bg-alt);
}

.atendimento__card:hover {
  border-color: var(--mid-blue);
  box-shadow: var(--shadow);
}

.atendimento__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.atendimento__icon--presencial {
  background: rgba(10, 65, 116, 0.08);
  color: var(--dark-blue);
}

.atendimento__icon--online {
  background: rgba(78, 142, 162, 0.1);
  color: var(--teal);
}

.atendimento__icon svg {
  width: 40px;
  height: 40px;
}

.atendimento__type {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
}

.atendimento__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.atendimento__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.atendimento__list li {
  font-size: 0.875rem;
  color: var(--text-mid);
  padding-left: 18px;
  position: relative;
}

.atendimento__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.atendimento__steps {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  background: var(--surface);
}

.atendimento__steps-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 28px;
}

.step {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.step:last-child { margin-bottom: 0; }

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: var(--dark-blue);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
}

.step__body {
  padding-top: 4px;
}

.step__body strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 4px;
}

.step__body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   CONTATO
   ============================================= */
.contato {
  padding-block: var(--section-py);
  background: var(--bg-alt);
}

.contato__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 8vw, 80px);
  align-items: start;
}

.contato__text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 36px;
  margin-top: 8px;
}

.contato__methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contato__method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.3s var(--ease);
}

.contato__method:not(.contato__method--static):hover {
  border-color: var(--mid-blue);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.contato__method-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--r-sm);
  background: rgba(10, 65, 116, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-blue);
}

.contato__method-icon svg {
  width: 20px;
  height: 20px;
}

.contato__method-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contato__method-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contato__method-value {
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 400;
}


/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--navy);
  padding-block: 48px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--mist);
}

.footer__subtitle {
  font-size: 0.75rem;
  color: var(--steel);
  letter-spacing: 0.1em;
}

.footer__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__nav a {
  font-size: 0.85rem;
  color: var(--steel);
  transition: color 0.2s;
}

.footer__nav a:hover { color: var(--mist); }

.footer__legal {
  font-size: 0.75rem;
  color: var(--mid-blue);
  line-height: 1.6;
  text-align: right;
}

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 1024px) {
  .areas__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 860px) {
  .sobre__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sobre__visual {
    order: -1;
  }

  .sobre__portrait {
    width: 260px;
    height: 340px;
    margin-inline: auto;
  }

  .sobre__badges {
    justify-content: center;
  }

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

  .abordagem__quote {
    text-align: center;
  }

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

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 640px) {
  .nav__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(247, 251, 254, 0.97);
    backdrop-filter: blur(16px);
    padding: 20px clamp(20px, 5vw, 60px) 28px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s var(--ease);
  }

  .nav__links--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__link {
    padding: 12px 16px;
    border-radius: var(--r-sm);
    text-align: center;
  }

  .nav__link--cta {
    margin-top: 8px;
    text-align: center;
  }

  .nav__toggle {
    display: flex;
  }

  .hero__title {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .br-desktop { display: none; }

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

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

  .atendimento__steps {
    grid-column: auto;
  }

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

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .footer__legal {
    text-align: center;
  }

  .footer__nav {
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }
}
