/* ==========================================================================
   Cabinet Individual de Psihologie — foaie de stil
   --------------------------------------------------------------------------
   Cuprins:
     1. PALETĂ  ← singurul bloc pe care îl schimbi ca să potrivești
                  site-ul cu identitatea vizuală (cartea de vizită)
     2. Reset & baze
     3. Layout & utilitare
     4. Componente (butoane, carduri, formular)
     5. Secțiuni
     6. Responsive
   ========================================================================== */


/* ==========================================================================
   1. PALETĂ  —  ÎNLOCUIEȘTE AICI CULORILE DE PE CARTEA DE VIZITĂ
   ========================================================================== */
:root {
  /* --- Culori de brand: preluate de pe cartea de vizită --- */
  --brand:            #35422F;   /* verde închis: butoane, accente          */
  --brand-dark:       #232C1F;   /* hover pe butoane                        */
  --brand-mid:        #6B7856;   /* verde salvie (frunzele de pe verso)     */
  --brand-soft:       #E5E8DE;   /* tentă foarte deschisă, fundaluri fine   */
  --green-deep:       #333D2F;   /* fundalul versoului cărții → footer      */

  /* --- Neutre --- */
  --bg:               #F2EFE9;   /* cremul cărții de vizită                 */
  --bg-alt:           #E8E4DA;   /* fundal secțiune alternativă             */
  --surface:          #FBFAF7;   /* carduri                                 */
  --ink:              #2B3126;   /* text principal                          */
  --ink-soft:         #5D6455;   /* text secundar                           */
  --line:             #DDD8CD;   /* borduri, separatoare                    */

  /* --- Semantice --- */
  --danger:           #A8443A;

  /* --- Tipografie: serif elegant + sans geometric, ca pe carte --- */
  --font-title: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body:  "Jost", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* --- Ritm & formă --- */
  --radius:      14px;
  --radius-sm:    8px;
  --shadow:      0 1px 2px rgba(44, 46, 43, .04), 0 8px 24px rgba(44, 46, 43, .06);
  --shadow-lg:   0 2px 4px rgba(44, 46, 43, .05), 0 18px 40px rgba(44, 46, 43, .10);
  --container:  1140px;
  --gutter:     clamp(1.25rem, 4vw, 2.5rem);
  --section-y:  clamp(4rem, 9vw, 7.5rem);
}


/* ==========================================================================
   2. Reset & baze
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}

/* Cormorant Garamond are literele mici și delicate → corpuri puțin mai mari */
h1 { font-size: clamp(2.45rem, 5.6vw, 3.9rem); }
h2 { font-size: clamp(1.95rem, 4vw, 2.8rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff;
  padding: .75rem 1.25rem; z-index: 200; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }


/* ==========================================================================
   3. Layout & utilitare
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: .75rem;
}

.section-title { max-width: 22ch; }

.section-intro {
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 1.09rem;
  margin-bottom: 3rem;
}

/* Secțiune cu antet și conținut centrate pe ecran */
.section-centered { text-align: center; }
.section-centered .section-title,
.section-centered .section-intro,
.section-centered .fineprint { margin-inline: auto; }
.section-centered .service,
.section-centered .fineprint { text-align: left; }

.sub-title {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 52ch; }
.muted { color: var(--ink-soft); }

.fineprint {
  margin-top: 2.5rem;
  font-size: .92rem;
  color: var(--ink-soft);
  max-width: 70ch;
}

/* ---------- Instrumente psihometrice ---------- */
.instruments {
  max-width: 780px;
  margin: 2rem auto 0;
  text-align: left;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.instruments-intro {
  font-size: .96rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.instruments-list {
  display: grid;
  gap: 1.1rem;
}
.instruments-list li {
  display: grid;
  gap: .3rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--brand-mid);
}
.instruments-list strong { font-size: 1rem; color: var(--ink); }
.instruments-list span { font-size: .93rem; color: var(--ink-soft); }

/* Rezervoare pentru pozele care vor veni */
.img-placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--brand-soft);
  border: 1px dashed var(--brand);
  border-radius: var(--radius);
  color: var(--brand-dark);
  font-size: .85rem;
  letter-spacing: .04em;
}
.img-placeholder small { opacity: .7; }
.img-portrait { aspect-ratio: 4 / 5; }
.img-square   { aspect-ratio: 1 / 1; }


/* ==========================================================================
   4. Componente
   ========================================================================== */

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: .98rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .12s;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }

.btn-outline { background: transparent; color: var(--brand-dark); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

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

.btn-sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Carduri ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card-quiet { box-shadow: none; background: var(--surface); }

/* harta Google, încadrată în același card ca restul */
.card-map { padding: 0; overflow: hidden; }
.card-map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
}

/* ---------- Formular ---------- */
.form { display: grid; gap: 1.25rem; }

.field { display: grid; gap: .4rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}
.field .optional { font-weight: 400; color: var(--ink-soft); }
.req { color: var(--danger); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8rem .95rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .18s, background-color .18s;
}
.field textarea { resize: vertical; min-height: 8rem; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: var(--surface);
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--danger); }

.error { color: var(--danger); font-size: .85rem; margin: 0; min-height: 0; }
.error:empty { display: none; }

.field-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: .7rem;
}
.field-check input { width: 1.15rem; height: 1.15rem; margin-top: .35rem; accent-color: var(--brand); }
.field-check label { font-weight: 400; font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
.field-check .error { grid-column: 1 / -1; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 0; font-size: .95rem; font-weight: 600; }
.form-status.is-ok    { color: var(--brand-dark); }
.form-status.is-error { color: var(--danger); }


/* ==========================================================================
   5. Secțiuni
   ========================================================================== */

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(44, 46, 43, .05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }

/* Sigla are fundal transparent, deci stă pe orice culoare.
   Există în două variante: verde (logo.png) și crem (logo-light.png, pentru footer). */
.brand-mark {
  width: 46px;
  height: auto;
  flex: none;
}
.brand-mark-lg { width: 62px; }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  line-height: 1.2;
  padding-left: .9rem;
  border-left: 1px solid var(--line);   /* linia verticală de pe cartea de vizită */
}
.brand-name {
  font-family: var(--font-title);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand);
}
.brand-role {
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav ul { display: flex; align-items: center; gap: 2rem; }
.nav a { color: var(--ink); text-decoration: none; font-size: .97rem; font-weight: 500; }
.nav a:hover { color: var(--brand-dark); }
.nav .btn { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) var(--section-y); }

/* Textul primește mai multă lățime, poza se lipește de marginea din dreapta */
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hero h1 { max-width: 19ch; }

/* deviza de pe cartea de vizită */
.tagline {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: .14em;
  color: var(--brand);
}
.tagline::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero-note { margin-top: 1.5rem; font-size: .9rem; color: var(--ink-soft); }

.hero-media { justify-self: end; width: 100%; }
.hero-media img, .hero-media .img-placeholder { box-shadow: var(--shadow-lg); }
.hero .lead { max-width: 64ch; }

/* ---------- Despre ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: 2.5rem;
}
.about-text > p { max-width: 62ch; }
.about-text .sub-title { margin-top: 2.5rem; }

.credentials { display: grid; gap: .9rem; }
.credentials li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.credentials li:last-child { border-bottom: none; padding-bottom: 0; }
.cred-year { color: var(--brand-dark); font-weight: 600; font-size: .92rem; }
.cred-body { font-size: .97rem; color: var(--ink-soft); }
.cred-body strong { color: var(--ink); font-weight: 600; }

.about-side { display: grid; gap: 1.5rem; }

.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list li {
  padding: .4rem .85rem;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  font-size: .87rem;
  font-weight: 500;
}

.tag-note {
  margin: 1.1rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .89rem;
  color: var(--ink-soft);
}

/* ---------- Servicii ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
/* doar două servicii: nu le lăsăm să se întindă pe toată lățimea, le centrăm */
.services-two { max-width: 780px; margin-inline: auto; }

.service { display: flex; flex-direction: column; }
.service h3 { margin-bottom: .6rem; }
.service-desc { font-size: .96rem; color: var(--ink-soft); }

/* Serviciul principal, scos discret în evidență prin bordură și buton plin */
.service-featured { border-color: var(--brand); box-shadow: var(--shadow-lg); }

.service-meta {
  margin: 1.25rem 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .5rem;
  font-size: .9rem;
}
.service-meta li { display: flex; justify-content: space-between; gap: 1rem; }
.service-meta span { color: var(--ink-soft); }

.price {
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  color: var(--ink);
}
.price span { font-family: var(--font-body); font-size: .9rem; font-weight: 400; color: var(--ink-soft); }

.service .btn { margin-top: auto; }

/* ---------- Programare online ---------- */
.booking {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding: 1.75rem clamp(1.5rem, 3vw, 2.5rem);
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.booking h3 { color: #fff; margin-bottom: .25rem; }
.booking p { margin: 0; color: #D6DCCE; font-size: .96rem; max-width: 48ch; }
.booking .btn-primary { background: var(--bg); color: var(--brand); flex: none; }
.booking .btn-primary:hover { background: #fff; color: var(--brand-dark); }

.booking-note {
  margin: -.75rem 0 1.75rem;
  font-size: .9rem;
  color: var(--ink-soft);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.contact-form-card { padding: clamp(1.5rem, 3vw, 2.5rem); }
.contact-info { display: grid; gap: 1.5rem; }

.info-list { display: grid; gap: 1.1rem; margin-bottom: 1.75rem; }
.info-list li { display: grid; gap: .15rem; }
.info-label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.info-list a { font-weight: 600; text-decoration: none; }
.info-list a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-deep);   /* exact fundalul de pe versoul cărții */
  color: #D8DDCE;
  padding-block: 3.5rem;
  margin-top: var(--section-y);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand .brand-mark { color: #E7EADF; }
.footer-name {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}
.footer-role {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #A3AC95;
  margin: 0;
}
.footer-tagline {
  margin: .5rem 0 0;
  font-size: .85rem;
  letter-spacing: .1em;
  color: #C2CAB2;
}

.footer-legal p { font-size: .87rem; margin-bottom: .8rem; }
.footer-legal .muted { color: #A3AC95; max-width: 75ch; }
.site-footer a { color: #fff; }


/* ==========================================================================
   6. Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-inner,
  .about-grid,
  .contact-grid,
  .footer-inner { grid-template-columns: 1fr; }

  .hero-media { order: -1; justify-self: center; max-width: 340px; }
  .about-side { grid-template-columns: 1fr; }
  .booking { text-align: center; justify-content: center; }
  .booking p { margin-inline: auto; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  /* siglă + nume mai compacte, ca să încapă lângă buton */
  .brand-mark { width: 38px; height: 38px; }
  .brand-text { padding-left: .7rem; }
  .brand-name { font-size: 1.02rem; letter-spacing: .04em; }
  .brand-role { font-size: .62rem; letter-spacing: .18em; }

  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
  }
  .nav li + li { border-top: 1px solid var(--line); }
  .nav a { display: block; padding: .95rem 0; }
  .nav .btn { margin-top: 1rem; justify-content: center; }
  .nav li:has(.btn) { border-top: none; }

  .field-row { grid-template-columns: 1fr; }
  .credentials li { grid-template-columns: 1fr; gap: .15rem; }
  .hero-actions .btn { flex: 1 1 auto; }

  /* pe telefon citim mai confortabil cu rândurile puțin mai scurte */
  .hero .lead, .section-intro { font-size: 1.02rem; }
  .booking { padding: 1.5rem 1.25rem; }
  .card { padding: 1.35rem; }
  .contact-form-card { padding: 1.35rem; }
  .card-map iframe { aspect-ratio: 3 / 2; }
  .tagline { font-size: .92rem; letter-spacing: .1em; }
  .footer-inner { gap: 2rem; }

  /* telefonul și e-mailul devin ținte comode de atins cu degetul */
  .info-list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* telefoane înguste: butoanele rămân comod de atins, textul nu se strânge */
@media (max-width: 420px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .price { font-size: 1.55rem; }
  .tag-list li { font-size: .82rem; }
  .info-list a { word-break: break-word; }
}
