/* ============================================================
   Nemzeti Inkubátorház Alapítvány — static rebuild
   ============================================================ */

:root {
  --blue: #0c71c3;
  --link: #2ea3f2;
  --ink: #333;
  --text: #666;
  --muted: #808080;
  --panel: #f2f2f2;
  --toggle: #f4f4f4;
  --footer: #252525;
  --white: #fff;
  --max: 1080px;
  --font: "Fira Sans", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  padding-bottom: 10px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1;
}

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

.container {
  width: 90%;
  margin: 0 auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(255, 255, 255, 0) 100%);
}

.site-header__inner {
  width: 90%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.site-header__logo img { height: 23px; width: auto; }

.site-header__right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
}

.main-nav a {
  display: block;
  padding: 31px 0;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  transition: opacity .3s;
}

.main-nav a:hover { opacity: .7; }

.mail-icon {
  display: inline-flex;
  color: var(--white);
  transition: opacity .3s;
}
.mail-icon:hover { opacity: .7; }
.mail-icon svg { width: 26px; height: 26px; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  margin-right: -8px;
  color: var(--white);
  cursor: pointer;
}
.menu-toggle svg { width: 28px; height: 28px; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 90px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .35) 100%),
    url("../img/hero.jpg") center top / cover no-repeat;
}

.hero__content { width: 80%; max-width: 800px; }

.hero h1 {
  color: var(--white);
  font-size: 65px;
  line-height: 1;
  text-transform: uppercase;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 5px 18px;
  border: 2px solid var(--white);
  border-radius: 0;
  color: var(--white);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  transition: background-color .3s, padding .3s;
  position: relative;
}

.btn::after {
  content: "→";
  position: absolute;
  right: 12px;
  opacity: 0;
  transition: opacity .3s;
}

.btn:hover {
  background: rgba(255, 255, 255, .2);
  border-color: transparent;
  padding-right: 2em;
  padding-left: .7em;
}
.btn:hover::after { opacity: 1; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .72);
  animation: bob 2s ease-in-out infinite;
}
.hero__scroll svg { width: 44px; height: 44px; }

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

/* ============================================================
   ABOUT
   ============================================================ */

.about { padding: 4% 0; }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5.5%;
  align-items: start;
}

.about h2 { font-size: 45px; }

.about__text {
  font-size: 16px;
  font-weight: 300;
  text-align: justify;
}

.about__text h2 { text-align: left; margin-bottom: 1em; }

/* ============================================================
   BAND
   ============================================================ */

.band {
  padding: 4% 0;
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .5) 100%),
    url("../img/beszamolok-bg.jpg") center / cover no-repeat;
  background-attachment: fixed;
}

.band__title {
  margin: 0;
  padding: 3vw 0;
  font-size: 45px;
  font-weight: 300;
  line-height: 1;
  color: var(--white);
}

/* ============================================================
   INFO / REPORTS / BOARD
   ============================================================ */

.info { padding: 4% 0; }

.info__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 5.5%;
  align-items: start;
}

.info__grid > * { min-width: 0; }

.info h3 { font-size: 35px; }

.info__text {
  font-size: 16px;
  font-weight: 300;
}

.info__text h3 { margin-bottom: .6em; }
.info__text a { font-weight: 600; text-decoration: underline; }
.info__text h4 { font-size: 22px; margin-top: .4em; }

.info__text ul {
  margin: 0;
  padding-left: 50px;
  line-height: 2em;
}

.dotted { border: 0; border-top: 1px dotted #000; margin: 23px 0; }

/* side panels */
.panel {
  background: var(--panel);
  padding: 30px 8% 50px;
}

.panel h3 { margin-bottom: 23px; overflow-wrap: anywhere; }
.panel__rule { margin-top: 0; }

.panel__list { list-style: none; margin: 0; padding: 0; }

.panel__list > li + li { border-top: 1px dotted #000; margin-top: 23px; padding-top: 23px; }

.report {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink);
}

.report__icon { flex: none; color: var(--blue); width: 32px; height: 32px; }

.report__title {
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
  transition: color .3s;
}

.report:hover .report__title { color: var(--blue); }

/* toggles */
.toggle {
  background: var(--toggle);
  margin: 0 20px 23px;
  padding: 0;
}

.panel .toggle { margin: 0; background: transparent; }

.toggle summary {
  list-style: none;
  position: relative;
  cursor: pointer;
  padding: 30px 80px 30px 30px;
  color: #000;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.panel .toggle summary { padding: 0 40px 0 0; }

.toggle summary::-webkit-details-marker { display: none; }

.toggle summary::after {
  content: "";
  position: absolute;
  right: 30px;
  top: 50%;
  width: 14px;
  height: 18px;
  margin-top: -9px;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 18'%3E%3Cpath d='M6 0h2v14l4.5-4.5L14 11l-7 7-7-7 1.5-1.5L6 14z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 18'%3E%3Cpath d='M6 0h2v14l4.5-4.5L14 11l-7 7-7-7 1.5-1.5L6 14z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s;
}

.panel .toggle summary::after { right: 0; }

.toggle[open] summary::after { transform: rotate(180deg); }

.toggle__body {
  padding: 0 30px 30px;
  font-size: 14px;
}

.panel .toggle__body { padding: 16px 0 0; }

.toggle__body ul { list-style: none; margin: 0; padding: 0; }
.toggle__body li + li { margin-top: .5em; }
.toggle__body a { color: var(--link); }
.toggle__body a:hover { text-decoration: underline; }

/* grant tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.grants {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid #eee;
}

.grants th,
.grants td {
  padding: 6px 24px;
  border-top: 1px solid #eee;
  text-align: left;
  vertical-align: top;
}

.grants thead th {
  color: var(--ink);
  font-weight: 700;
  vertical-align: bottom;
}

.grants td p { padding-bottom: .6em; }
.grants td p:last-child { padding-bottom: 0; }

.grants .amount { white-space: nowrap; }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--footer);
  color: var(--text);
  padding-top: 4%;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5.5%;
  align-items: start;
}

.footer__logo img { width: 160px; }

.footer__mail {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.footer__mail svg { flex: none; width: 32px; height: 32px; }
.footer__mail:hover { color: var(--white); }

.footer__data {
  width: 100%;
  max-width: 520px;
  border-collapse: collapse;
  font-size: 16px;
  font-weight: 300;
}

.footer__data th,
.footer__data td {
  border: 1px solid #444;
  padding: 6px 12px;
  text-align: left;
  vertical-align: top;
  width: 50%;
}

.footer__data th { font-weight: 700; }
.footer__data td { overflow-wrap: anywhere; }
.footer__data a { color: var(--text); font-weight: 700; }
.footer__data a:hover { color: var(--white); }

.footer__bottom {
  margin-top: 4%;
  padding: 20px 0;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 16px;
  font-weight: 300;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {
  .info__grid { grid-template-columns: 1fr 1fr; }
  .info__text-col { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .hero h1 { font-size: 48px; }
  .about__grid { grid-template-columns: 1fr; gap: 30px; }
  .about h2 { font-size: 36px; }
  .band__title { font-size: 36px; padding: 30px 0; }
  .band { background-attachment: scroll; }
  .info h3 { font-size: 30px; }
}

@media (max-width: 767px) {
  .menu-toggle { display: inline-flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 5%;
    right: 5%;
    background: var(--white);
    border-top: 3px solid var(--blue);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 5% ; }
  .main-nav a { color: var(--ink); padding: 10px 5%; line-height: 1.4; border-bottom: 1px solid rgba(0, 0, 0, .03); }

  .site-header__right { gap: 16px; }

  .hero h1 { font-size: 36px; }
  .hero__content { width: 100%; padding: 0 16px; }

  .info__grid { grid-template-columns: 1fr; gap: 30px; }
  .toggle { margin: 0 0 23px; }
  .toggle summary { padding: 22px 56px 22px 20px; font-size: 16px; line-height: 1.3; }
  .toggle summary::after { right: 20px; }
  .toggle__body { padding: 0 12px 20px; }

  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__logo img { width: 120px; }
  .footer__data { font-size: 14px; }
  .footer__mail { font-size: 15px; }
}
