/* ============================================================
   Gabriel Alasmar — Psicologia
   Light, warm, serene palette pulled from the brand logo.
   Mobile-first. Single page.
   ============================================================ */

:root {
  /* Brand palette — warm/cream with gold accent + deep navy from logo */
  --bg:         #faf6ef;   /* page cream */
  --bg-soft:    #f3ece0;   /* soft beige for alt sections */
  --surface:    #ffffff;
  --surface-2:  #fbf7f0;
  --ink:        #221c14;   /* near-black warm */
  --ink-soft:   #4a4036;   /* body text */
  --muted:      #786a5b;   /* secondary text */
  --line:       #e4dccd;   /* hairlines */
  --gold:       #c2954b;   /* primary accent — from logo G */
  --gold-deep:  #a87a30;   /* hover */
  --gold-soft:  #ead9b3;   /* tints */
  --navy:       #1d2940;   /* deep accent — from logo bg */
  --navy-soft:  #2c3a55;
  --wa:         #25d366;   /* WhatsApp brand */
  --wa-deep:    #1ebe5a;

  --radius:     14px;
  --radius-lg:  22px;
  --shadow-sm:  0 1px 2px rgba(34, 28, 20, 0.05), 0 2px 8px rgba(34, 28, 20, 0.04);
  --shadow-md:  0 6px 20px rgba(34, 28, 20, 0.08);
  --shadow-lg:  0 20px 50px rgba(34, 28, 20, 0.12);

  --font-serif: "Spectral", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container:  1180px;
  --gutter:     clamp(20px, 4vw, 40px);

  --header-h:   76px;
}

/* ---------- Reset / base ---------- */

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

html { scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold-deep); }

button { font: inherit; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 600; }

p  { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1rem;
}

.eyebrow-on-accent { color: var(--gold-soft); }

.eyebrow > span { white-space: nowrap; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--wa);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--wa-deep);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--ink);
  background: var(--surface);
}

.btn-lg { padding: 18px 32px; font-size: 1.08rem; }

.icon-wa {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.btn-lg .icon-wa { width: 22px; height: 22px; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #1a2036; /* match the logo background exactly */
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand:hover { color: #fff; }

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 2px;
}
.brand-name {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.brand-role {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.primary-nav a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}
.primary-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.primary-nav .nav-cta {
  margin-left: 8px;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 18px;
}
.primary-nav .nav-cta:hover {
  background: var(--gold-deep);
  color: var(--navy);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  border-radius: 10px;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }

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

/* ---------- Hero ---------- */

.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% -5% auto auto;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(194, 149, 75, 0.16), transparent 65%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero-text h1 { margin-bottom: 0.4em; }

.hero-accent {
  display: inline-block;
  color: var(--gold-deep);
  font-style: italic;
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 1.8em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-image {
  position: relative;
  justify-self: center;
}

.hero-image-frame {
  width: clamp(260px, 32vw, 380px);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  background: var(--surface);
}
.hero-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: inherit;
  pointer-events: none;
}
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.hero-badge strong {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--gold-soft);
  margin-bottom: 2px;
}
.hero-badge span {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Generic sections ---------- */

.section {
  padding: clamp(60px, 8vw, 110px) 0;
}

.section-header {
  max-width: 700px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}
.section-header .eyebrow { margin-bottom: 0.8rem; }
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.two-col-reverse { grid-template-columns: 0.9fr 1.3fr; }
.two-col-reverse > :first-child { order: 2; }
.two-col-reverse > :last-child  { order: 1; }

.prose p { color: var(--ink-soft); }
.prose p + p { margin-top: 0.9em; }
.prose-highlight {
  margin-top: 1.4em !important;
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
}

/* ---------- Bio section ---------- */

.section-bio { background: var(--surface); }

.quick-facts {
  list-style: none;
  margin: 0;
  padding: 28px;
  display: grid;
  gap: 18px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.quick-facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}
.quick-facts li:last-child { padding-bottom: 0; border-bottom: 0; }

.qf-label {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}
.qf-value {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Especialidades ---------- */

.section-especialidades { background: var(--bg); }

.specialties {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.spec-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.spec-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-soft);
}
.spec-num {
  font-family: var(--font-serif);
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  margin-right: 10px;
}
.spec-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Metodologia ---------- */

.section-metodologia { background: var(--surface); }

.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.pillars li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pillar-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pillar-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 10px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
  box-shadow: 0 0 0 6px rgba(194, 149, 75, 0.12);
}
.pillars h3 { margin: 0; }
.pillars p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin: 0;
}

/* ---------- Contato ---------- */

.section-contato {
  background:
    radial-gradient(circle at 80% 10%, rgba(194, 149, 75, 0.18), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(194, 149, 75, 0.10), transparent 45%),
    var(--navy);
  color: #f3ede0;
  text-align: center;
  position: relative;
}
.section-contato h2 { color: #f8f1e2; }
.section-contato .eyebrow { color: var(--gold-soft); }

.contato-inner {
  max-width: 940px;
  margin: 0 auto;
}

.contato-sub {
  color: rgba(243, 237, 224, 0.78);
  font-size: 1.08rem;
  max-width: 50ch;
  margin: 0 auto 2em;
}

.contato-info {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
  text-align: left;
}
.contato-info li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ci-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ci-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  padding: 8px;
  border-radius: 8px;
  background: rgba(234, 217, 179, 0.1);
  color: var(--gold-soft);
}
.ci-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
}
.contato-info a {
  color: #fff;
  font-weight: 500;
  word-break: break-word;
}
.contato-info a:hover { color: var(--gold-soft); }
.contato-info li > span:not(.ci-label) { color: #fff; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #d9cfbe;
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}
.footer-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #fff;
  font-weight: 600;
}
.footer-role {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: rgba(217, 207, 190, 0.75);
  letter-spacing: 0.04em;
}

.footer-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
}
.footer-nav a {
  color: rgba(217, 207, 190, 0.85);
  font-size: 0.92rem;
  white-space: nowrap;
}
.footer-nav a:hover { color: var(--gold-soft); }

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(217, 207, 190, 0.55);
  text-align: right;
}

/* ---------- Floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 40;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.03);
  background: var(--wa-deep);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
  color: #fff;
}
.wa-float svg { width: 28px; height: 28px; }

/* ============================================================
   Responsive — tablets
   ============================================================ */
@media (max-width: 960px) {

  .two-col,
  .two-col-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .two-col-reverse > :first-child { order: 1; }
  .two-col-reverse > :last-child  { order: 2; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-image { order: -1; width: max-content; margin: 0 auto 12px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .footer-copy { text-align: center; }
  .footer-brand { justify-content: center; }
}

/* ============================================================
   Responsive — mobile nav + tightening
   ============================================================ */
@media (max-width: 760px) {

  :root { --header-h: 68px; }

  body { font-size: 16px; }

  .nav-toggle { display: block; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .primary-nav.is-open { max-height: 400px; }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 22px;
  }
  .primary-nav a {
    display: block;
    padding: 14px 12px;
    border-radius: 10px;
    font-size: 1rem;
  }
  .primary-nav .nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }

  .hero { padding-top: 40px; }
  .hero-image-frame { width: min(80vw, 320px); }
  .hero-badge { left: 0; }

  .eyebrow-sep { display: none; }

  .footer-nav { flex-direction: column; gap: 14px; }

  .hero-actions .btn { flex: 1 1 100%; }

  .section { padding: 64px 0; }

  .specialties { gap: 16px; }
  .spec-card { padding: 28px 22px; }

  .prose-highlight {
    font-size: 1.06rem;
    padding: 16px 18px;
  }

  .contato-info { text-align: left; }

  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .wa-float svg { width: 26px; height: 26px; }
}

@media (max-width: 420px) {
  .hero-badge { padding: 12px 16px; }
}

/* ---------- Focus / accessibility ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
