/* ==========================================================================
   BÉTx Pénzügyi Zrt. – Static site stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px; /* offset for sticky header */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #00a3c8;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1e2849;
}

ul {
    list-style: none;
}

/* --------------------------------------------------------------------------
   2. Layout helpers
   -------------------------------------------------------------------------- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 64px 24px;
}

.section--gray {
    background-color: #f9fafb;
}

.section--white {
    background-color: #ffffff;
}

/* --------------------------------------------------------------------------
   3. Header / Navigation (sticky)
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #1e2849;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.site-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.site-header__logo img {
    height: 48px;
    width: auto;
}

.site-nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.site-nav__list {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.site-nav__list a {
    color: #ffffff;
    font-size: 17px;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav__list a:hover {
    color: #00a3c8;
    border-bottom-color: #00a3c8;
}

/* Language switcher (pill-shaped buttons) */
.lang-switch {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 4px;
    gap: 2px;
}

.lang-switch a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.lang-switch a:hover {
    color: #00a3c8;
}

.lang-switch a.is-active {
    background-color: #00a3c8;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   4. Hero / Landing main
   -------------------------------------------------------------------------- */
.hero {
    background-color: #ffffff;
    padding: 96px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 0 auto;
}

.hero__logo {
    height: 128px;
    width: auto;
    margin: 0 auto 32px auto;
}

.hero__title {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 700;
    color: #1e2849;
    margin-bottom: 12px;
}

.hero__tagline {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 24px;
}

.hero__divider {
    width: 96px;
    height: 4px;
    background-color: #00a3c8;
    border: 0;
    margin: 24px auto 32px auto;
}

.hero__contact {
    font-size: 16px;
    color: #374151;
}

.hero__contact p {
    margin: 6px 0;
}

.hero__contact a {
    color: #00a3c8;
    font-weight: 500;
}

.hero__cta {
    margin-top: 40px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: #00a3c8;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #1e2849;
    color: #ffffff;
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   5. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background-color: #1e2849;
    color: #ffffff;
    padding: 48px 24px;
    text-align: center;
}

.site-footer__logo {
    height: 40px;
    width: auto;
    margin: 0 auto 16px auto;
}

.site-footer__tagline {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.site-footer__copyright {
    font-size: 13px;
    color: #94a3b8;
}

/* --------------------------------------------------------------------------
   6. Content page sections
   -------------------------------------------------------------------------- */
.section__title {
    font-size: 36px;
    font-weight: 700;
    color: #1e2849;
    padding-bottom: 12px;
    border-bottom: 4px solid #00a3c8;
    display: block;
    width: 100%;
    margin-bottom: 40px;
}

.subsection__title {
    font-size: 24px;
    font-weight: 600;
    color: #1e2849;
    margin: 40px 0 20px 0;
}

.subsection__title:first-child {
    margin-top: 0;
}

.lead {
    font-size: 16px;
    color: #374151;
    margin-bottom: 16px;
}

/* Generic grids */
.grid {
    display: grid;
    gap: 24px;
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--2x2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Custom bullet lists with cyan markers */
.bullet-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.bullet-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 10px;
    height: 10px;
    background-color: #00a3c8;
    border-radius: 50%;
}

/* --------------------------------------------------------------------------
   7. Cards (people, documents, generic)
   -------------------------------------------------------------------------- */
.card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 28px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card--center {
    text-align: center;
}

.person-card {
    text-align: center;
    padding: 32px 24px;
}

.person-card__name {
    font-size: 18px;
    font-weight: 600;
    color: #1e2849;
    margin-bottom: 6px;
}

.person-card__role {
    font-size: 14px;
    color: #00a3c8;
    font-weight: 500;
}

/* Document card */
.doc-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

.doc-card__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background-color: #1e2849;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
}

.doc-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.doc-card__title {
    font-size: 18px;
    font-weight: 600;
    color: #1e2849;
    margin-bottom: 8px;
}

.doc-card__desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

.doc-card__link {
    font-weight: 600;
    color: #00a3c8;
    font-size: 14px;
}

.doc-card__link:hover {
    color: #1e2849;
}

/* --------------------------------------------------------------------------
   8. Tables (ownership, registration etc.)
   -------------------------------------------------------------------------- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.data-table th,
.data-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
}

.data-table th {
    background-color: #1e2849;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

/* Definition-style two-column rows */
.data-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
    background-color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.data-list__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.data-list__label {
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.data-list__value {
    font-size: 16px;
    color: #1e2849;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   9. Contact section
   -------------------------------------------------------------------------- */
.contact-block {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 32px 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.contact-block--centered {
    max-width: 520px;
    margin: 0 auto;
}

.contact-block__title {
    font-size: 20px;
    font-weight: 600;
    color: #1e2849;
    margin-bottom: 18px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-list .icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: #1e2849;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
}

.contact-list .label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1e2849;
    margin-bottom: 4px;
}

.contact-list .value {
    color: #6b7280;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.contact-list .value a {
    color: #6b7280;
}

.contact-list .value a:hover {
    color: #00a3c8;
}

/* --------------------------------------------------------------------------
   10. Public-interest data (közérdekű adatok) page
   -------------------------------------------------------------------------- */
.kozadat-hero {
    text-align: center;
    margin-bottom: 56px;
}

.kozadat-hero img {
    display: block;
    margin: 0 auto;
    max-width: 220px;
    width: 100%;
    height: auto;
}

.page-intro {
    max-width: 880px;
    margin-bottom: 8px;
}

.page-intro__lead {
    font-size: 16px;
    color: #374151;
    margin-bottom: 16px;
}

.page-meta {
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
}

/* Section quick navigation (table of contents) */
.toc {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 8px;
}

.toc__card {
    display: block;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #00a3c8;
    border-radius: 8px;
    padding: 20px 22px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.toc__card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    color: inherit;
}

.toc__num {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #00a3c8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.toc__title {
    display: block;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #1e2849;
}

/* Accordion groups */
.accordion {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    overflow: hidden;
}

.accordion__summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #1e2849;
    transition: background-color 0.2s ease;
}

.accordion__summary::-webkit-details-marker {
    display: none;
}

.accordion__summary:hover {
    background-color: #f9fafb;
}

.accordion__summary::after {
    content: "+";
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #1e2849;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.accordion[open] > .accordion__summary::after {
    content: "\2212"; /* minus sign */
    background-color: #00a3c8;
}

.accordion__body {
    padding: 4px 24px 8px 24px;
    border-top: 1px solid #e5e7eb;
}

/* Nested sub-accordions */
.accordion--sub {
    border-radius: 6px;
    box-shadow: none;
    margin: 16px 0;
}

.accordion--sub .accordion__summary {
    padding: 14px 18px;
    font-size: 16px;
}

.accordion--sub .accordion__summary::after {
    width: 24px;
    height: 24px;
    font-size: 18px;
}

.accordion--sub .accordion__body {
    padding: 0 18px 4px 18px;
}

/* Individual data items inside an accordion */
.kozadat-item {
    padding: 18px 0;
    border-bottom: 1px solid #f1f3f5;
}

.kozadat-item:last-child {
    border-bottom: 0;
}

.kozadat-item__label {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 8px;
}

.kozadat-item__label strong {
    color: #00a3c8;
    font-weight: 700;
    margin-right: 4px;
}

.kozadat-item__value {
    font-size: 16px;
    color: #1e2849;
}

.kozadat-item__value p {
    margin-bottom: 6px;
}

.kozadat-item__value p:last-child {
    margin-bottom: 0;
}

.kozadat-item__value a {
    font-weight: 500;
}

.kozadat-item__value--muted {
    color: #9ca3af;
    font-style: italic;
}

.kozadat-item__value ul {
    list-style: none;
}

.kozadat-item__value .data-pair {
    display: block;
    margin-bottom: 2px;
}

.kozadat-item__value .data-pair span {
    color: #6b7280;
}

/* Organisation chart figure */
.org-chart {
    margin: 8px 0 4px 0;
}

.org-chart img {
    width: 100%;
    height: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #ffffff;
    padding: 12px;
}

.org-chart figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

/* "Not applicable" pill */
.pill-na {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background-color: #f3f4f6;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   11. Responsive design
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .site-header__inner {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .site-nav {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    .site-nav__list {
        gap: 6px 12px;
        font-size: 13px;
        justify-content: center;
    }

    .site-nav__list a {
        font-size: 13px;
        padding: 2px 0;
    }

    .grid--2,
    .grid--3,
    .grid--2x2 {
        grid-template-columns: 1fr;
    }

    .data-list {
        grid-template-columns: 1fr;
    }

    .toc {
        grid-template-columns: 1fr;
    }

    .accordion__summary {
        font-size: 16px;
        padding: 16px 18px;
    }

    .accordion__body {
        padding: 4px 18px 8px 18px;
    }

    .data-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .contact-block,
    .contact-block a {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .hero {
        padding: 64px 16px;
    }

    .hero__logo {
        height: 96px;
    }

    .hero__title {
        font-size: 32px;
    }

    .section {
        padding: 48px 16px;
    }

    .section__title {
        font-size: 28px;
    }

    .subsection__title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .site-header__inner {
        padding: 10px 14px;
        gap: 8px;
    }

    .site-header__logo img {
        height: 40px;
    }

    .site-nav {
        gap: 6px;
    }

    .site-nav__list {
        gap: 4px 10px;
        font-size: 12px;
    }

    .site-nav__list a {
        font-size: 12px;
        padding: 2px 0;
    }

    .lang-switch a {
        padding: 4px 10px;
        font-size: 12px;
    }
}
