/* ============================================================
   Εύνοια — Mental Health Care
   Παλέτα: μπορντό λογότυπου + ζεστά κρεμ ουδέτερα
   ============================================================ */
:root {
  --wine: #7e2231;
  --wine-dark: #5f1a25;
  --wine-soft: #a8515e;
  --cream: #faf6f0;
  --sand: #f2e9df;
  --ink: #322a28;
  --muted: #7c6f69;
  --line: #e5d9cd;
  --radius: 14px;
  --font-head: "Literata", Georgia, serif;
  --font-body: "Commissioner", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1.0625rem;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.25; color: var(--wine-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: .5rem; }

a { color: var(--wine); }
img { max-width: 100%; display: block; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 240, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .8rem; padding-bottom: .8rem; }
.brand img { height: 44px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 400; font-size: .97rem; }
.site-nav a:hover { color: var(--wine); }
.site-nav a.is-current:not(.btn) { color: var(--wine); font-weight: 600; }
.site-nav a.is-current:not(.btn)::after {
  content: ""; display: block; height: 2px; margin-top: .2rem;
  border-radius: 999px; background: var(--wine);
}
.site-nav a.btn { color: #fff; font-weight: 500; }
.site-nav a.btn:hover { color: #fff; background: var(--wine-dark); }
.site-nav a.btn.is-current { background: var(--wine-dark); box-shadow: 0 0 0 3px rgba(126, 34, 49, .16); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--wine-dark); margin: 5px 0; transition: .25s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--wine);
  color: #fff;
  border: 1px solid var(--wine);
  border-radius: 999px;
  padding: .7rem 1.6rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn:hover { background: var(--wine-dark); transform: translateY(-1px); }
.btn-small { padding: .45rem 1.1rem; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--wine); }
.btn-ghost:hover { background: var(--wine); color: #fff; }
.text-link { color: var(--wine); font-weight: 500; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero { padding: 5.5rem 0 4.5rem; background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%); }
.hero-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.hero-logo { width: min(420px, 70vw); margin: 0 auto 2.2rem; }
.hero h1 { margin-bottom: .8rem; }
.hero-sub { font-size: 1.2rem; color: var(--muted); max-width: 560px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--sand); }
.page-head { padding: 3.5rem 0 1rem; background: linear-gradient(180deg, var(--cream), transparent); }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  text-decoration: none;
  color: var(--ink);
  display: flex; flex-direction: column; gap: .6rem;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(94, 26, 37, .1); }
.card-tagline { font-style: italic; color: var(--muted); font-size: .97rem; }
.card .text-link { margin-top: auto; }
.card-cover { border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; margin-bottom: .4rem; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 280px)); gap: 2rem; justify-content: center; margin-top: 2rem; }
.team-card { text-align: center; }
.team-card img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; margin-bottom: 1rem; }
.team-title { color: var(--muted); font-size: .95rem; }
.team-profile { display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; align-items: start; margin-bottom: 4rem; }
.team-profile.reverse { grid-template-columns: 1fr 300px; }
.team-profile.reverse .team-photo { order: 2; }
.team-photo img { border-radius: var(--radius); }
.team-bio .team-title { margin-bottom: 1rem; }

/* ---------- services / prose ---------- */
.service-block { margin-bottom: 3.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.service-block:last-of-type { border-bottom: 0; }
.service-tagline { font-style: italic; color: var(--muted); margin-bottom: 1rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.4rem; }
.prose li { margin-bottom: .3rem; }
.prose h2, .prose h3 { margin-top: 1.6rem; }
.article-cover { border-radius: var(--radius); margin-bottom: 1.6rem; }
.article-back { margin-bottom: 1.5rem; }
.article-back a { font-weight: 500; text-decoration: none; }
.article-back a:hover { text-decoration: underline; }

/* ---------- guided page navigation ---------- */
.page-journey {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.page-journey .container { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.journey-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.journey-link {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 88px; padding: .9rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--cream); color: var(--ink); text-decoration: none;
  transition: border-color .2s, background .2s, transform .15s;
}
.journey-link:hover {
  border-color: var(--wine-soft); background: var(--sand); transform: translateY(-1px);
}
.journey-link span { color: var(--muted); font-size: .83rem; }
.journey-link strong { color: var(--wine-dark); font-family: var(--font-head); font-weight: 500; }
.journey-next { text-align: right; }

/* ---------- steps ---------- */
.steps { list-style: none; counter-reset: step; margin: 2rem 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.6rem 3.4rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.3rem; height: 2.3rem;
  background: var(--wine); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.1rem;
}

/* ---------- faq ---------- */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .9rem; padding: 0; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 1.1rem 1.4rem;
  font-family: var(--font-head); font-size: 1.08rem; color: var(--wine-dark);
  list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1.3rem; color: var(--wine); font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .prose { padding: 0 1.4rem 1.2rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.contact-line { margin-bottom: .4rem; }
.form { display: flex; flex-direction: column; gap: 1rem; }
.form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 400; font-size: .95rem; }
.form input, .form textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: .7rem .9rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--wine-soft); border-color: var(--wine-soft); }
.form-note { font-size: .85rem; color: var(--muted); }
.hp-field { position: absolute !important; left: -9999px; height: 0; width: 0; opacity: 0; }
.notice { border-radius: 10px; padding: .9rem 1.2rem; margin-bottom: 1rem; }
.notice-ok { background: #e8f2e8; color: #22522b; border: 1px solid #bcd9bf; }
.notice-err { background: #f9e7e7; color: #7a1f1f; border: 1px solid #e6bcbc; }

/* ---------- footer ---------- */
.site-footer { background: var(--wine-dark); color: #f0e4e0; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1.1fr 1fr 1fr; gap: 2.2rem; padding: 3.2rem 24px 2rem; }
.footer-logo { height: 40px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .9; }
.footer-tag { font-size: .95rem; opacity: .85; max-width: 320px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: .8rem; }
.site-footer p { margin-bottom: .35rem; font-size: .95rem; }
.site-footer a { color: #f0e4e0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-top: 1px solid rgba(255,255,255,.15); padding: 1.2rem 24px;
}
.footer-bottom p { margin: 0; }
.footer-copyright { font-size: .85rem; opacity: .7; }
.footer-credit { font-size: .72rem; opacity: .52; letter-spacing: .025em; text-align: right; }

/* ---------- fade-in ---------- */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch;
    padding: 1rem 24px 1.4rem; gap: 1rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a.is-current:not(.btn) { padding-left: .75rem; border-left: 3px solid var(--wine); }
  .site-nav a.is-current:not(.btn)::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-profile, .team-profile.reverse { grid-template-columns: 1fr; }
  .team-profile.reverse .team-photo { order: 0; }
  .team-photo { max-width: 320px; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3rem 0; }
  .journey-links { grid-template-columns: 1fr; }
  .journey-next { text-align: left; }
}

@media (max-width: 480px) {
  .footer-bottom { flex-wrap: wrap; gap: .25rem; }
  .footer-credit { width: 100%; }
}

/* ---------- social icons ---------- */
.social-icons { display: flex; gap: .9rem; margin-top: .3rem; }
.social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  color: #f0e4e0;
  transition: background .2s, color .2s;
}
.social-icons a:hover { background: #fff; color: var(--wine-dark); text-decoration: none; }
.social-icons svg { width: 20px; height: 20px; }

/* ---------- «Ο χώρος μας» gallery ---------- */
.gallery-track {
  display: flex; gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.6rem .2rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--wine-soft) transparent;
}
.gallery-item { flex: 0 0 min(430px, 80vw); scroll-snap-align: center; margin: 0; }
.gallery-item img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(94, 26, 37, .12);
}
.gallery-item figcaption { font-size: .92rem; color: var(--muted); margin-top: .55rem; text-align: center; }

/* σελίδα «Ο χώρος μας» — grid */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; margin-top: 1.6rem; }
.gallery-cell { margin: 0; }
.gallery-cell img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(94, 26, 37, .1);
}
.gallery-cell figcaption { font-size: .92rem; color: var(--muted); margin-top: .5rem; text-align: center; }

/* ---------- lightbox ---------- */
.gallery-track img, .gallery-grid img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(35, 15, 18, .88);
  padding: 2rem;
}
.lightbox.on { display: flex; }
.lb-figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lb-figure img {
  max-width: 100%; max-height: 82vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  cursor: default;
}
.lb-figure figcaption { color: #f0e4e0; margin-top: .8rem; font-size: .95rem; }
.lightbox button {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  border-radius: 50%;
  width: 46px; height: 46px;
  font-size: 1.5rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { position: absolute; top: 1.2rem; right: 1.2rem; }
.lb-prev { position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox { padding: 1rem; }
  .lb-prev { left: .4rem; } .lb-next { right: .4rem; }
  .lb-figure img { max-height: 70vh; }
}

/* ---------- εικονογραφήσεις υπηρεσιών ---------- */
.card-illu {
  height: 96px; width: auto;
  align-self: center;
  margin-bottom: .4rem;
  object-fit: contain;
}
.service-block.has-illu {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}
.service-block.has-illu.illu-right { grid-template-columns: 1fr 200px; }
.service-block.has-illu.illu-right .service-illu { order: 2; }
.service-illu { position: sticky; top: 6rem; }
.service-illu img { width: 100%; max-width: 200px; object-fit: contain; }
@media (max-width: 700px) {
  .service-block.has-illu, .service-block.has-illu.illu-right { grid-template-columns: 1fr; }
  .service-block.has-illu.illu-right .service-illu { order: 0; }
  .service-illu { position: static; text-align: center; }
  .service-illu img { max-width: 150px; margin: 0 auto; }
}

/* ---------- hero με βίντεο ---------- */
.hero-video {
  position: relative;
  overflow: hidden;
  background: var(--wine-dark); /* fallback μέχρι να φορτώσει το βίντεο */
}
.hero-video .hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
}
.hero-video .hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(47, 13, 18, .48) 0%, rgba(47, 13, 18, .62) 100%);
}
.hero-video .hero-inner { position: relative; z-index: 2; }
.hero-video h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero-video .hero-sub { color: #f3e9e4; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.hero-video .hero-logo { filter: brightness(0) invert(1); opacity: .96; }
.hero-video .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .8); }
.hero-video .btn-ghost:hover { background: #fff; color: var(--wine-dark); }
/* Fallback: αν σε desktop παίζει η κάθετη πηγή, το upscale κρύβεται με blur.
   Όταν το JS φορτώσει την οριζόντια (hero-desktop.mp4), παίζει sharp χωρίς blur. */
@media (min-width: 821px) {
  .hero-video .hero-bg:not(.hero-bg--landscape) { filter: blur(9px) brightness(.92); transform: scale(1.12); }
}
