/* ============================================================
   Egyéni szakember profiloldalak – saját elrendezés.
   Gombok, toggle, kapcsolat-sáv: lásd css/style.css.

   Két elrendezés él itt:
   - sp-  : a korábbi, egyszerű elrendezés. Jelenleg egyetlen oldal
            sem használja (a renderSpecialistProfile() tartalék).
   - spx- : a jelenlegi, hero-fejléces profildizájn – ezt kapja az
            összes szakember-oldal és a szakember.html sablon is.
   ============================================================ */

.sp-page main {
  padding: clamp(96px, 12vw, 140px) 0 0;
  background:
    radial-gradient(circle at 30% 20%, #f3f7ef 0%, #dceace 55%, transparent 100%) top center / 100% clamp(320px, 38vw, 460px) no-repeat,
    var(--bg);
}

.sp-breadcrumb {
  max-width: 1080px;
  margin: 0 auto 10px;
  padding-inline: 24px;
  font-size: 0.82rem;
  color: var(--muted);
}
.sp-breadcrumb a { color: var(--muted); }
.sp-breadcrumb a:hover { color: var(--coral); }

.sp-top {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px clamp(30px, 4vw, 46px);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(28px, 4vw, 50px);
  align-items: start;
}

.sp-name { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 10px; }
.sp-quote { font-style: italic; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }

.sp-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  text-align: center;
}
.sp-card img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.sp-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.sp-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.4; margin-bottom: 16px; }
.sp-card .btn { width: 100%; }

.sp-toggles .tb-toggle { margin-bottom: 14px; }

/* ---------- [Név] foglalkozásai ---------- */
.sp-services {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 34px) 24px clamp(40px, 5vw, 60px);
}
.sp-services-title { font-size: 1.4rem; margin-bottom: 20px; }
.sp-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.sp-service-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.sp-service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sp-service-card h4 { font-size: 0.95rem; margin-bottom: 6px; }
.sp-service-card p { font-size: 0.82rem; color: var(--muted); }

.sp-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }
.sp-actions .btn { flex: 1; min-width: 200px; }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .sp-top { grid-template-columns: 1fr; }
  .sp-card { max-width: 280px; margin-inline: auto; }
}

/* ============================================================
   „HERO” ELRENDEZÉSŰ PROFILOLDAL (spx-)
   ------------------------------------------------------------
   Ugyanaz a felépítés, mint a többi aloldalé (fejlesztőház,
   szakemberek, fejlesztési területek): fotós .fh-hero fejléc →
   fehér tartalmi szekciók → .fh-idopont CTA → elhalványuló
   lábléc. A tartalmat ugyanaz a Firestore-adat adja, csak a
   renderSpecialistHeroProfile() rajzolja ki (lásd
   js/szakember-profil-render.js).
   Ezt használja mind a 27 profiloldal és a szakember.html sablon.
   A fenti klasszikus (sp-) elrendezést ez nem érinti.
   ============================================================ */

/* ---------- Hero (a .fh-hero fotó + felhő + fehér kifutás fölé) ---------- */
.spx-hero { padding-bottom: clamp(10px, 1.6vw, 20px); }

.spx-breadcrumb {
  font-size: 0.8rem;
  color: #6f5d44;
  margin-bottom: 10px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}
.spx-breadcrumb a { color: #6f5d44; }
.spx-breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.spx-breadcrumb span[aria-current] { font-weight: 700; }

.spx-hero-role {
  font-family: "Baloo Bhai 2", sans-serif;
  font-weight: 600;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: #5c5148;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

/* ---------- Bemutatkozás: szöveg + ragadós fotókártya ---------- */
.spx-profile { padding: clamp(18px, 2.6vw, 36px) 0 clamp(34px, 4.5vw, 56px); }

.spx-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(250px, 0.85fr);
  gap: clamp(26px, 3.6vw, 52px);
  align-items: start;
  max-width: 1120px;
  margin-inline: auto;
}

/* Az idézet a lap első tartalmi eleme: arany vonallal kiemelt, dőlt mottó. */
.spx-quote {
  margin: 0 0 clamp(20px, 2.6vw, 30px);
  padding: 2px 0 2px clamp(16px, 2vw, 24px);
  border-left: 4px solid var(--sand);
  font-style: italic;
  color: var(--muted);
  line-height: 1.9;
  font-size: clamp(0.96rem, 1.15vw, 1.06rem);
}

/* A lenyílók zöld +/– jelvényt kapnak (a --coral itt világosszürke lenne). */
.spx-toggles { --accent: var(--green); }
.spx-toggles .tb-toggle { margin-bottom: 14px; }
.spx-toggles .tb-toggle:last-child { margin-bottom: 0; }
.spx-toggles .tb-toggle summary { font-size: 1.02rem; }

.spx-aside { position: sticky; top: calc(var(--header-h) + 14px); }
.spx-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.spx-card-photo {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: top;
}
.spx-card-body { padding: 18px 20px 22px; text-align: center; }
.spx-card-name { font-size: 1.1rem; color: var(--green-dark); margin-bottom: 4px; }
.spx-card-role { font-size: 0.83rem; color: var(--muted); line-height: 1.5; }
.spx-card-role a { color: var(--sand-dark); font-weight: 600; }
.spx-card-role a:hover { text-decoration: underline; }
.spx-card .btn { width: 100%; margin-top: 16px; }
.spx-card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-dark);
}
.spx-card-link:hover { color: var(--sand-dark); text-decoration: underline; }

/* ---------- Foglalkozások ---------- */
.spx-services { padding: 0 0 clamp(30px, 4vw, 52px); }
.spx-services .section-head { margin-bottom: clamp(24px, 3vw, 36px); }

.spx-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1120px;
  margin-inline: auto;
}
/* Kártyánként váltakozó kiemelőszín (a fejlesztési területek palettájából). */
.spx-service {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--accent);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.spx-service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.spx-service h3 { font-size: 1.02rem; color: var(--ink); line-height: 1.35; }
.spx-service p { font-size: 0.86rem; color: var(--muted); line-height: 1.6; }
.spx-service-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  font-family: "Baloo Bhai 2", sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--accent);
}
.spx-service-more svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.spx-service:hover .spx-service-more svg { transform: translateX(3px); }

.spx-actions { text-align: center; margin-top: clamp(26px, 3vw, 38px); }
.spx-actions .btn { margin: 6px; }

/* Betöltés / hibaüzenet (adat nélküli állapot) */
.spx-status {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  color: var(--muted);
}
.spx-status h2 { font-size: 1.2rem; color: var(--green-dark); margin-bottom: 10px; }
.spx-status .btn { margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .spx-layout { grid-template-columns: 1fr; }
  /* Mobilon a fotó a hero alá, közvetlenül a név mellé kerül. */
  .spx-aside { position: static; order: -1; max-width: 300px; margin-inline: auto; }
}
