/* A betűtípusokat az ih-fonts.css tölti be, helyben, minden oldalon
   (Divi → Integráció → fejléc). Ezért itt nincs Google Fonts @import. */

/* ==========================================================================
   INTEGRÁL HEALING — RÓLAM
   Minden szabály .ih- prefixet kap, hogy ne ütközzön a Divi CSS-ével.
   ========================================================================== */


.ih-rolam{
  /* --- színpaletta --- */
  --navy:#17475D;   /* a lábléccel egyező navy */
  --navy-soft:#17475D;
  --teal:#148F8A;
  --teal-pale:#DDF4F0;
  --gold:#C99A32;
  --gold-deep:#B87C2D;
  --ivory:#FBF8F1;
  --ink:#17475D;

  --serif:'Cormorant Garamond',Georgia,serif;
  --sans:'Manrope',system-ui,-apple-system,'Segoe UI',sans-serif;
  --script:'Allura',cursive;

  font-family:var(--sans);
  color:var(--ink);
  font-size:18px;      /* torzsszoveg minimum */
  font-weight:500;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
.ih-rolam *,.ih-rolam *::before,.ih-rolam *::after{box-sizing:border-box}
.ih-rolam p{margin:0 0 .82em}
.ih-rolam p:last-child{margin-bottom:0}

/* fluid belső margó — telefonon 20px, nagy képernyőn 64px */
.ih-sec{padding:clamp(26px,2.8vw,44px) clamp(20px,5vw,64px)}
.ih-wrap{max-width:1600px;margin:0 auto}

/* ---------- címsorok ---------- */
.ih-rolam h1,.ih-rolam h2,.ih-rolam h3{
  font-family:var(--serif);font-weight:500;
  color:var(--navy-soft);margin:0 0 .38em;line-height:1.18;
  letter-spacing:.01em;
}
.ih-rolam h1{font-size:clamp(34px,5vw,40px);font-weight:600}
.ih-rolam h2{font-size:clamp(27px,3.4vw,33px);font-weight:700}
.ih-rolam h3{font-size:20px;font-weight:600}

/* arany elválasztó pötty — a látványterv visszatérő motívuma */
.ih-rule{display:flex;align-items:center;gap:10px;margin:16px 0 20px}
.ih-rule::before,.ih-rule::after{content:"";height:1px;background:var(--gold);flex:0 0 46px;opacity:.75}
.ih-rule::after{flex:1 1 auto;max-width:120px}
.ih-rule i{width:7px;height:7px;border-radius:50%;background:var(--gold);flex:none}
.ih-rule--center{justify-content:center}
.ih-rule--center::before,.ih-rule--center::after{flex:0 0 46px;max-width:46px}

.ih-lead{
  font-family:var(--serif);font-style:italic;
  font-size:clamp(20px,2.2vw,26px);
  color:var(--gold-deep);line-height:1.4;margin:0 0 1.1em
}

/* ==========================================================================
   1 — HERO
   ========================================================================== */
.ih-hero{
  position:relative;
  container-type:inline-size;
  padding:clamp(18px,1.8vw,28px) clamp(16px,2vw,32px);
  background:
    radial-gradient(900px 520px at 88% 12%, rgba(221,244,240,.55), transparent 70%),
    var(--ivory);
  overflow:hidden;
}
.ih-hero-grid{
  display:grid;gap:0;align-items:stretch;
  grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);
}
/* fotó — a keretet a spirál vízjel adja, nem szükséges hozzá grafika */
.ih-photo{
  position:relative;border-radius:4px;overflow:hidden;background:var(--navy);
  align-self:stretch;min-height:clamp(260px,22vw,340px);
}
/* a kep abszolut, igy a sajat kepavanya nem tolja meg a sort */
.ih-photo>picture{position:absolute;inset:0}
.ih-photo::after{ /* lágy arany fényudvar, mint a terven */
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(420px 300px at 8% 88%, rgba(201,154,50,.28), transparent 62%);
}
.ih-photo picture{display:block;width:100%;height:100%}
.ih-hero-text{display:flex;flex-direction:column;justify-content:center}
/* object-position: Zoli a kép jobb oldalán van, ezért jobbra húzva vágunk.
   Így bármilyen panelalakban a fejénél vág, nem a válla mellett. */
.ih-photo img{
  display:block;width:100%;height:100%;
  object-fit:cover;object-position:68% 38%;
}
@media (max-width:900px){
  .ih-photo{min-height:0}
  .ih-photo img{aspect-ratio:3/2;object-position:64% 40%}
}

/* halvány spirál vízjel a szövegblokk mögé */
.ih-hero-text{position:relative}
.ih-hero-text{
  position:static;            /* a diszites igy a HERO-hoz igazodik, nem ehhez */
  padding:clamp(22px,2.4vw,38px) clamp(24px,3vw,48px);
}
/* a szoveg a diszites FOLE kerul */
.ih-hero-text>*:not(picture){position:relative;z-index:1}
/* a diszites a jobb szelhez tapad, teljes magassagban, levagva */
/* csak az also jobb sarkot tolti ki, nem a teljes magassagot */
.ih-hero-text>picture{
  position:absolute;display:block;
  right:0;bottom:0;top:auto;
  height:66%;
  width:clamp(170px,24%,320px);
  opacity:.38;
  pointer-events:none;z-index:0
}
.ih-hero-text>picture img{
  width:100%;height:100%;
  object-fit:contain;object-position:right bottom
}
.ih-hero-text>h1,.ih-hero-text>p,.ih-hero-text>.ih-rule{position:relative;z-index:1}
@media (max-width:1100px){
  .ih-hero-text{padding-right:clamp(24px,3.6vw,60px)}
  .ih-hero-text>picture{display:none}
}

/* ==========================================================================
   2 — AMIT KÉPVISELEK  (az 5 ikon)
   Itt a lényeg: auto-fit grid. 5 -> 3 -> 2 -> 1 oszlop MAGÁTÓL,
   egyetlen media query nélkül.
   ========================================================================== */
.ih-values{background:#fff;padding-top:clamp(22px,2.2vw,34px)}
.ih-values-grid{
  display:grid;gap:clamp(26px,2.6vw,36px);
  grid-template-columns:repeat(5,1fr);
  margin-top:clamp(18px,2.2vw,30px);
}
/* 5 -> 3 -> 2 -> 1. Sosem marad árva egy elem a sor végén. */
@media (max-width:1080px){ .ih-values-grid{grid-template-columns:repeat(3,1fr)} }
@media (max-width:700px){  .ih-values-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:400px){  .ih-values-grid{grid-template-columns:1fr} }
.ih-value{text-align:center;padding:0 clamp(8px,1.4vw,18px);position:relative}
/* vékony arany választóvonal a kártyák közt, csak ha egymás mellett vannak */
.ih-value::before{
  content:"";position:absolute;left:0;top:14%;bottom:14%;width:1px;
  background:linear-gradient(transparent,rgba(201,154,50,.42) 22%,rgba(201,154,50,.42) 78%,transparent);
}
/* a sorok első elemén nincs vonal — oszlopszámonként más az "első" */
.ih-values-grid>.ih-value:nth-child(5n+1)::before{display:none}
@media (max-width:1080px){
  .ih-values-grid>.ih-value::before{display:block}
  .ih-values-grid>.ih-value:nth-child(3n+1)::before{display:none}
}
@media (max-width:700px){
  .ih-values-grid>.ih-value::before{display:block}
  .ih-values-grid>.ih-value:nth-child(2n+1)::before{display:none}
}
@media (max-width:400px){ .ih-values-grid>.ih-value::before{display:none} }

.ih-value-ico{
  width:clamp(80px,7.2vw,98px);height:auto;margin:0 auto 14px;display:block
}
.ih-value h3{
  font-family:var(--sans);font-weight:600;
  font-size:16px;
  letter-spacing:.11em;text-transform:uppercase;
  color:var(--navy-soft);margin:0 0 .7em;line-height:1.45
}
.ih-value p{
  font-size:18px;
  color:var(--ink);line-height:1.6;margin:0
}

/* ==========================================================================
   3 — AZ ÉN UTAM  (világos + sötétkék panel)
   ========================================================================== */
.ih-path{
  padding:0;background:var(--ivory);container-type:inline-size;
  border-top:1px solid var(--gold);
}
.ih-path-grid{display:grid;grid-template-columns:1fr 1fr}
.ih-path-left{
  position:relative;
  display:flex;flex-direction:column;justify-content:center;
  padding:clamp(22px,2.2vw,36px) clamp(20px,2.6vw,40px);
  padding-right:clamp(130px,15%,200px);
  background:
    linear-gradient(180deg,rgba(251,248,241,.93) 0%,rgba(251,248,241,.86) 45%,rgba(228,241,250,.80) 100%),
    url("https://tisztanegyszeruen.hu/wp-content/uploads/ih/utam-hatter-tiszta.webp") center/cover no-repeat,
    var(--ivory);
}
.ih-sign{
  font-family:var(--script);font-size:clamp(2.6rem,4.6vw,3.6rem);
  color:var(--gold);line-height:1;margin-top:12px
}

/* az öt szó az ívre fűzve */
/* az ot szo a hatteren ul, nem novelí a panel magassagat — mint a terven */
.ih-path-left>h2,
.ih-path-left>.ih-rule,
.ih-path-left>p{max-width:44ch}
.ih-path-left>p{margin-bottom:.3em;line-height:1.45}
.ih-path-left>.ih-arc{
  position:absolute;right:clamp(18px,2.4vw,40px);
  top:50%;transform:translateY(-50%);margin:0;z-index:1
}
.ih-arc{list-style:none;margin:0;padding:0;display:grid;gap:7px;max-width:none}
.ih-arc li{
  display:flex;align-items:center;gap:11px;
  font-family:var(--serif);font-size:19px;color:var(--navy-soft)
}
.ih-arc li::before{
  content:"";width:7px;height:7px;border-radius:50%;
  background:var(--gold);flex:none
}
/* finom lépcsős behúzás, ami az ív érzetét adja */
.ih-arc li:nth-child(2){padding-left:14px}
.ih-arc li:nth-child(3){padding-left:22px}
.ih-arc li:nth-child(4){padding-left:14px}

.ih-path-right{
  padding:clamp(22px,2.2vw,36px) clamp(20px,2.6vw,40px);
  background:var(--navy);color:#E8EEF2;position:relative;overflow:hidden;
  /* ket hasab: kepzettsegek | idezet — mint a latvanyterven */
  display:grid;align-content:center;
  grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);
  grid-template-areas:"head head" "creds quote";
  column-gap:clamp(22px,2.6vw,40px);row-gap:clamp(18px,2vw,26px);
}
.ih-path-right>h3{grid-area:head}
.ih-path-right>.ih-creds{grid-area:creds}
.ih-path-right>.ih-quote{grid-area:quote}
.ih-path-right>.ih-mark{
  position:absolute;right:-70px;bottom:-70px;width:300px;
  opacity:.1;color:#fff;pointer-events:none
}
.ih-path-right h3{
  color:#fff;font-family:var(--sans);font-weight:600;
  font-size:16px;letter-spacing:.14em;
  text-transform:uppercase;margin:0
}

/* képzettségek listája */
.ih-creds{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ih-creds li{
  display:flex;align-items:flex-start;gap:15px;
  font-size:18px;line-height:1.32;color:#DCE6EC
}
.ih-creds svg{flex:none;width:26px;height:26px;color:var(--gold);margin-top:1px}

/* idézet */
.ih-quote{
  margin:0;position:relative;text-align:center;
  align-self:center;
  padding-left:clamp(20px,2.4vw,36px);
  border-left:1px solid rgba(201,154,50,.28);
}
/* nyito idezojel */
.ih-quote span{
  font-family:var(--serif);font-size:clamp(48px,4.6vw,64px);
  color:var(--gold);line-height:.62;display:block;margin:0 0 8px
}
/* zaro idezojel */
.ih-quote::after{
  content:"”";font-family:var(--serif);
  font-size:clamp(58px,6vw,78px);color:var(--gold);
  line-height:.2;display:block;margin-top:24px
}
.ih-quote p{
  font-family:var(--serif);font-size:clamp(20px,1.7vw,24px);
  line-height:1.5;color:#F2F5F7;font-style:italic;margin:0;
  max-width:22ch;margin-inline:auto
}

/* a jogi kitetel szekcio torolve — ha maradt volna a HTML-ben, elrejtve */
.ih-rolam .ih-note{display:none !important}


/* ==========================================================================
   KONTÉNER-LEKÉRDEZÉSEK
   A töréspontok a blokk TÉNYLEGES szélességét nézik, nem a böngészőablakét.
   Így mindegy, hogy a Divi sor 1268 vagy 1585 px — mindig helyesen tördel.
   ========================================================================== */

/* --- HERO --- */
@container (max-width:900px){
  .ih-hero-grid{grid-template-columns:1fr}
  .ih-photo{min-height:0}
  .ih-photo img{aspect-ratio:3/2;object-position:64% 40%}
}
@container (max-width:1050px){
  .ih-hero-text{padding-right:clamp(24px,3vw,48px)}
  .ih-hero-text>picture{display:none}
}

/* --- AZ ÉN UTAM --- */
/* a sötét panelben a képzettségek és az idézet egymás alá kerül,
   ha a szekció szűkebb, mint 1300px (vagyis félpanel < 650px) */
@container (max-width:1300px){
  .ih-path-right{
    grid-template-columns:1fr;
    grid-template-areas:"head" "creds" "quote";
  }
  .ih-quote{
    border-left:0;padding-left:0;
    padding-top:clamp(22px,2.4vw,30px);
    border-top:1px solid rgba(201,154,50,.28);
  }
  .ih-quote p{max-width:34ch}
}
/* a két fő panel egymás alá */
@container (max-width:900px){
  .ih-path-grid{grid-template-columns:1fr}
}
/* az öt szó visszaáll a szöveg alá, ha nincs mellette hely */
@container (max-width:760px){
  .ih-path-left{padding-right:clamp(20px,2.6vw,40px)}
  .ih-path-left>.ih-arc{position:static;transform:none;margin:16px 0 0}
  .ih-path-left>h2,.ih-path-left>.ih-rule,.ih-path-left>p{max-width:none}
}

/* ikonok ne nyúljanak meg soha */
.ih-rolam svg{display:block;max-width:100%}
/* ==========================================================================
   5 — MELLÉKLET: TANULMÁNYOK ÉS KÉPESÍTÉSEK
   ========================================================================== */
.ih-cv{
  background:var(--ivory);
  border-top:1px solid rgba(201,154,50,.35);
  container-type:inline-size;
}
.ih-cv-fej{text-align:center;max-width:70ch;margin:0 auto clamp(22px,2.4vw,32px)}
.ih-cv-fej p{color:var(--navy-soft)}
.ih-cv-cimke{
  font-family:var(--sans);font-weight:600;font-size:13px;
  letter-spacing:.16em;text-transform:uppercase;color:var(--gold-deep);
  margin:0 0 .5em
}

.ih-cv-grid{
  display:grid;gap:clamp(14px,1.6vw,22px);
  grid-template-columns:repeat(3,1fr);
  align-items:start
}
.ih-cv-dob{
  background:#fff;border:1px solid rgba(201,154,50,.28);
  border-radius:5px;border-top:3px solid var(--gold);
  padding:clamp(20px,2vw,28px);
  transition:border-color .2s ease,box-shadow .2s ease
}
.ih-cv-dob:hover{border-color:rgba(201,154,50,.7);box-shadow:0 6px 22px rgba(1,57,96,.07)}
.ih-cv-dob h3{
  font-family:var(--sans);font-weight:600;font-size:15px;
  letter-spacing:.11em;text-transform:uppercase;color:var(--navy);
  margin:0 0 14px;line-height:1.4
}
.ih-cv-lista{list-style:none;margin:0;padding:0;display:grid;gap:11px}
.ih-cv-lista li{
  position:relative;padding-left:22px;
  font-size:18px;line-height:1.45;color:var(--ink)
}
.ih-cv-lista li::before{
  content:"";position:absolute;left:2px;top:.6em;
  width:7px;height:7px;border-radius:50%;background:var(--gold)
}
.ih-cv-lista b{font-weight:600;display:block}
.ih-cv-lista i{
  display:block;font-style:normal;
  font-family:var(--sans);font-size:14px;font-weight:500;
  letter-spacing:.04em;color:var(--gold-deep);margin-top:2px
}

.ih-cv-zaras{
  margin-top:clamp(20px,2.2vw,30px);
  background:#fff;border:1px solid rgba(201,154,50,.28);border-radius:5px;
  padding:clamp(20px,2.2vw,30px);
  max-width:87ch;margin-inline:auto   /* a korábbi tényleges sorhossz */
}
.ih-cv-zaras p{font-size:18px;line-height:1.55}
.ih-cv-hatar{
  margin-top:1em;padding-top:14px;
  border-top:1px solid rgba(23,71,93,.12);
  font-size:18px;line-height:1.55;color:#62757C
}

@container (max-width:980px){ .ih-cv-grid{grid-template-columns:repeat(2,1fr)} }
@container (max-width:620px){ .ih-cv-grid{grid-template-columns:1fr} }
