/* iskolafejlesztes.hu – shared styles. Page-specific CSS lives in assets/css/<page>.css */

/* ===== Fonts (self-hosted, no CDN) ===== */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fira-sans-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fira-sans-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Tokens (named after the Figma styles) ===== */
:root {
  --c-primary: #3373df;     /* Elsődleges */
  --c-navy: #001b49;        /* Sötét */
  --c-ink: #011111;         /* Sötét (text-dark) */
  --c-text: #2c3e50;        /* Szöveg */
  --c-muted: #737675;       /* Világos szöveg */
  --c-light: #e8effb;       /* Világos */
  --c-border: #e9e9e9;      /* Szegély */
  --c-placeholder: #ebebeb; /* Képkitöltő */
  --c-white: #fff;          /* Fehér */

  --shadow-header: 8px 16px 40px rgba(0, 0, 0, .08); /* Árnyék */
  --shadow-1: 0 4px 14px rgba(44, 62, 80, .08);      /* Árnyék 1 */
  --shadow-2: 0 12px 32px rgba(44, 62, 80, .10);     /* Árnyék 2 */

  --radius-btn: 14px;
  --radius-card: 20px;

  --container: 1260px;
  --gutter: 20px; /* side padding: 20 mobile, 40 tablet, 90 desktop */

  /* Ideal Sans (Figma) replaced by free Fira Sans 600 — TRACKER D9 */
  --font-heading: "Fira Sans", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-alt: "Montserrat", "DM Sans", system-ui, sans-serif;
}
@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1024px) { :root { --gutter: 90px; } }

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-text);
  font: 400 17px/1.6 var(--font-body); /* Body M 17/27.2 */
  overflow-x: hidden; /* safety net; no layout may depend on it */
}
body.nav-open { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; }
[id] { scroll-margin-top: 24px; }
[hidden] { display: none !important; }
main:focus { outline: none; } /* skip-link target, not interactive */

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--c-navy);
  color: var(--c-white);
  font-weight: 700;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ===== Typography (Figma text styles) ===== */
/* Desktop value reached at >=1440, mobile value (TRACKER D8) at <=375, linear in between */
.t-h1, .t-h2, .t-h3, .t-h4 { font-family: var(--font-heading); font-weight: 600; }
.t-h1 { font-size: clamp(36px, 1.878vw + 28.96px, 56px); line-height: 1.1; }   /* 56/61.6 */
.t-h2 { font-size: clamp(30px, .939vw + 26.48px, 40px); line-height: 1.2; }    /* 40/48 */
.t-h3 { font-size: clamp(24px, .376vw + 22.59px, 28px); line-height: 1.2; }    /* 28/33.6 */
.t-h4 { font-size: clamp(20px, .376vw + 18.59px, 24px); line-height: 1.3; }    /* 24/31.2 */

.t-alcim-l, .t-alcim-s, .t-gomb { text-transform: uppercase; }
.t-alcim-l, .t-alcim-s { font-size: 17px; font-weight: 600; line-height: 1.3; } /* Mobil/Alcím 17/22.1 */
.t-alcim-l { font-weight: 600; }
@media (min-width: 768px) {
  .t-alcim-l { font-size: 22px; font-weight: 900; } /* 22/28.6 */
  .t-alcim-s { font-size: 18px; font-weight: 700; } /* 18/23.4 */
}

.t-body-l { font-size: 20px; line-height: 1.6; }   /* 20/32 */
.t-body-m { font-size: 17px; line-height: 1.6; }   /* 17/27.2 */
.t-body-s { font-size: 14px; line-height: 1.6; }   /* 14/22.4 */
.t-body-xs { font-size: 12px; line-height: 1.6; }  /* 12/19.2 */
.t-gomb { font-size: 15px; font-weight: 800; line-height: 1.3; letter-spacing: .024em; } /* 15/19.5, 0.36px */

/* ===== Layout ===== */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.section--white { background: var(--c-white); }
.section--primary { background: var(--c-primary); color: var(--c-white); }
.section--light { background: var(--c-light); }
.section--navy { background: var(--c-navy); color: var(--c-white); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--c-navy);
  color: var(--c-white);
  font: 800 15px/19px var(--font-body);
  letter-spacing: .024em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { background: var(--c-primary); }
.btn--primary { background: var(--c-primary); }
.btn--primary:hover { background: var(--c-navy); }
.btn--white { background: var(--c-white); color: var(--c-navy); }
.btn--white:hover { background: var(--c-light); } /* no Figma state: ~8% darker */
.btn--outline { background: transparent; color: var(--c-navy); box-shadow: inset 0 0 0 1px var(--c-navy); }
.btn--outline:hover { background: var(--c-navy); color: var(--c-white); }
.site-header .btn { background: var(--c-primary); }
.site-header .btn:hover { background: var(--c-navy); }

/* ===== Icons (masked SVG, take the text colour) ===== */
.ico {
  flex: none;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.ico--pin { width: 15px; margin-inline: 2.5px; --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M215.7 499.2C267 435 384 279.4 384 192 384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2 12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z'/%3E%3C/svg%3E"); }
.ico--mail { height: 15px; margin-block: 2.5px; --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 384'%3E%3Cpath d='M48 0C21.5 0 0 21.5 0 48c0 15.1 7.1 29.3 19.2 38.4L236.8 249.6c11.4 8.5 27 8.5 38.4 0L492.8 86.4C504.900 77.300 512 63.100 512 48c0-26.500-21.500-48-48-48H48zM0 112v208c0 35.300 28.700 64 64 64h384c35.300 0 64-28.700 64-64V112L294.400 275.200c-22.800 17.100-54 17.100-76.800 0L0 112z'/%3E%3C/svg%3E"); }
.ico--phone { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M164.900 24.600c-7.700-18.600-28-28.500-47.400-23.200l-88 24C12.100 30.200 0 46 0 64c0 247.400 200.600 448 448 448 18 0 33.800-12.100 38.600-29.500l24-88c5.300-19.400-4.600-39.700-23.200-47.400l-96-40c-16.300-6.800-35.200-2.100-46.300 11.600L304.700 368C234.300 334.700 177.300 277.700 144 207.300L193.300 167c13.700-11.200 18.400-30 11.600-46.300l-40-96z'/%3E%3C/svg%3E"); }

/* ===== Scroll reveal (content stays visible without JS) ===== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* ===== Header ===== */
.site-header { position: relative; z-index: 50; background: var(--c-white); box-shadow: var(--shadow-header); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-block: 20px; }
.site-logo { display: block; }
.site-logo img { width: 179px; height: 37px; object-fit: contain; object-position: left center; } /* mobile 179x37 */

.nav-toggle { display: none; position: relative; width: 36px; height: 36px; padding: 0; border: 0; background: none; color: var(--c-navy); }
.js .nav-toggle { display: block; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  position: absolute;
  left: 6px;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s, top .2s, opacity .2s;
}
.nav-toggle__bars { top: 16.5px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; left: 0; }
.nav-toggle__bars::before { top: -8.5px; }
.nav-toggle__bars::after { top: 8.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* Mobile/tablet menu: full-width panel under the header (without JS it just wraps below the logo) */
.site-nav { flex: 1 0 100%; display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding-top: 16px; }
.site-nav__list { display: flex; flex-direction: column; }
.site-nav__list a { display: block; padding: 12px 0; color: var(--c-navy); text-decoration: none; }
.site-nav__list a:hover { color: var(--c-primary); }
.js .site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px var(--gutter) 24px;
  background: var(--c-white);
  box-shadow: var(--shadow-header);
}
.js .site-header.is-open .site-nav { display: flex; }

@media (min-width: 1024px) {
  .site-logo img { width: 270px; height: 51px; }
  .nav-toggle, .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav {
    position: static;
    display: flex;
    flex: none;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 0;
    box-shadow: none;
    background: none;
  }
  .site-nav__list { flex-direction: row; gap: 24px; }
  .site-nav__list a { padding: 0; }
}

/* ===== Footer ===== */
.site-footer { background: var(--c-navy); color: var(--c-light); font-size: 14px; line-height: 1.6; }
.site-footer__inner { display: flex; flex-direction: column; gap: 24px; padding-block: 40px; }
.site-footer__grid { display: flex; flex-direction: column; gap: 24px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 20px; }
.site-footer__brand img { width: 160px; height: 30px; object-fit: contain; object-position: left center; }
.site-footer__brand p + p { margin-top: 6.4px; }
.site-footer__brand p { color: var(--c-white); } /* white on mobile, light blue on desktop */
.site-footer__title { margin-bottom: 10px; color: var(--c-white); text-transform: none; } /* mobile: sentence case (Lábléc - Mobil 2) */
.site-footer__contact ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer__contact li { display: flex; align-items: center; gap: 10px; }
.site-footer__contact a, .site-footer__pages a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__pages { display: flex; flex-direction: column; gap: 7.5px; }
.site-footer__copy { font: 400 12px/1.6 var(--font-alt); }
.site-footer__copy a { font-weight: 600; text-decoration: none; color: var(--c-white); }

@media (min-width: 768px) {
  .site-footer__inner { padding-block: 80px 40px; }
  .site-footer__title { text-transform: uppercase; }
  .site-footer__grid { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 40px 24px; }
  .site-footer__brand { flex: 0 0 100%; max-width: 360px; }
  .site-footer__brand img { width: 180px; height: 35px; }
  .site-footer__brand p { color: var(--c-light); }
  .site-footer__contact, .site-footer__nav { flex: 0 0 280px; }
  .site-footer__copy { text-align: center; }
}
@media (min-width: 1024px) {
  .site-footer__brand { flex: 0 1 360px; min-width: 0; }
  .site-footer__contact, .site-footer__nav { flex: 0 1 280px; min-width: 0; } /* fluid below 1260 content width */
  .site-footer__grid { flex-wrap: nowrap; }
}
