/*
    (C) Dovalovszki Tamás - info@alvasi-apnoe.hu
*/

:root {
    --bg: #071b32;
    --bg-deep: #041224;
    --panel: #0e2a49;
    --panel-hover: #12385f;
    --line: #2d75ae;
    --line-soft: rgba(96, 190, 255, 0.28);
    --text: #f5f9ff;
    --muted: #d3e3f3;
    --accent: #1497ff;
    --accent-light: #63d0ff;
    --hero-dark: #06182c;
}

html {
    scroll-behavior: smooth;
}


h1,
h2,
h3,
.brand-title,
.faq-title {
    font-family: "Poppins", "Montserrat", system-ui, sans-serif;
}

h1,
h2,
h3,
.brand-title,
.brand-subtitle,
.nav-link,
.card-content h2,
.section-heading h2,
.faq-title,
.faq-category-header,
.content-page h1,
.content-page h2 {
    font-family: "Poppins", "Montserrat", system-ui, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 10%, rgba(24, 94, 150, 0.18), transparent 28%),
        linear-gradient(180deg, #06172b 0%, #0a2542 100%);
    color: var(--text);
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    font-weight: 400;
}

.site-shell {
    width: min(1500px, calc(100% - 28px));
    margin: 10px auto 22px;
}

.site-header {
    min-height: 90px;
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: rgba(3, 17, 35, 0.94);
    border: 1px solid rgba(86, 174, 239, 0.18);
    border-radius: 15px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}

.brand-title {
    font-size: clamp(1.8rem, 2.5vw, 2.55rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
}

.brand-subtitle {
    margin-top: 7px;
    color: var(--muted);
    font-size: 1.02rem;
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.91rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: linear-gradient(180deg, #117ccf, #0963ae);
}

.hero-section {
    min-height: 500px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--hero-dark);
    border-radius: 15px;
    border: 1px solid rgba(86, 174, 239, 0.12);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(3, 16, 32, 0.96) 0%,
        rgba(4, 22, 42, 0.78) 34%,
        rgba(4, 22, 42, 0.18) 64%,
        rgba(4, 22, 42, 0.00) 82%
    );
    z-index: 1;
}

.hero-copy {
    width: 45%;
    padding: 38px 30px 38px 46px;
    position: relative;
    z-index: 3;
}

.hero-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(2.8rem, 5vw, 4.15rem);
    font-weight: 400;
    letter-spacing: -0.055em;
}

.hero-copy p {
    max-width: 570px;
    margin: 0;
    color: #edf6ff;
    font-size: clamp(1.05rem, 1.7vw, 1.34rem);
    line-height: 1.5;
}

.hero-image-wrap {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(4, 18, 35, 0.82) 0%,
        rgba(4, 18, 35, 0.38) 34%,
        rgba(4, 18, 35, 0.06) 65%,
        transparent 84%
    );
}

.hero-image-wrap img {
    width: auto;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: right center;
    margin-left: auto;
    display: block;
    opacity: 0.94;
}

.quick-links {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.info-card {
    min-height: 135px;
    display: grid;
    grid-template-columns: 68px 1fr 42px;
    align-items: center;
    gap: 8px;
    padding: 20px 14px 20px 18px;
    color: var(--text);
    text-decoration: none;
    background: linear-gradient(145deg, rgba(14, 45, 76, 0.96), rgba(8, 31, 55, 0.96));
    border: 1px solid var(--line);
    border-radius: 13px;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.info-card:hover {
    color: #fff;
    transform: translateY(-2px);
    background: linear-gradient(145deg, #123a63, #0a2949);
    border-color: #50b9ff;
}

.card-icon {
    color: #42c7ff;
    font-size: 3.1rem;
    text-align: center;
    line-height: 1;
}

.card-content h2 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    line-height: 1.22;
    font-weight: 400;
}

.card-content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.91rem;
    line-height: 1.43;
}

.card-arrow {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #0789f4;
    color: white;
    font-size: 1.25rem;
}

.faq-section {
    margin-top: 22px;
    padding: 25px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: rgba(9, 37, 64, 0.72);
}

.section-heading h2 {
    margin: 0 0 18px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 400;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 22px;
}

.faq-category {
    overflow: hidden;
    border: 1px solid rgba(66, 177, 244, 0.35);
    border-radius: 12px;
    background: rgba(9, 39, 67, 0.76);
}

.faq-category-header {
    width: 100%;
    min-height: 55px;
    border: 0;
    padding: 8px 17px;
    display: grid;
    grid-template-columns: 54px 1fr 26px;
    align-items: center;
    gap: 9px;
    color: var(--text);
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.faq-category-header:hover {
    background: rgba(28, 91, 140, 0.22);
}

.faq-icon {
    color: var(--accent-light);
    font-size: 1.95rem;
    text-align: center;
}

.faq-title {
    font-size: 1.03rem;
    font-weight: 400;
}

.faq-chevron {
    color: var(--accent-light);
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}

.faq-category.open .faq-chevron {
    transform: rotate(90deg);
}

.faq-questions {
    display: none;
    padding: 0 14px 12px 68px;
}

.faq-category.open .faq-questions {
    display: block;
}

.question-item {
    border-top: 1px solid rgba(99, 208, 255, 0.16);
}

.question-button {
    width: 100%;
    padding: 11px 4px;
    border: 0;
    color: #e7f5ff;
    text-align: left;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 0.89rem;
}

.question-button:hover {
    color: var(--accent-light);
}

.question-answer {
    display: none;
    padding: 0 4px 13px;
    color: #c9deef;
    line-height: 1.55;
    font-size: 0.88rem;
}

.question-item.open .question-answer {
    display: block;
}

.loading-message,
.error-message {
    grid-column: 1 / -1;
    padding: 18px;
    color: var(--muted);
    text-align: center;
}

.site-footer {
    margin-top: 14px;
    padding: 20px 24px;
    display: flex;
    justify-content: center;
    color: #d8e8f7;
    font-size: 0.84rem;
    font-weight: 500;
}

.content-page {
    margin-top: 12px;
    padding: 34px 40px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: rgba(9, 37, 64, 0.78);
}

.content-page h1 {
    margin: 0 0 24px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
}

.content-page h2 {
    margin: 28px 0 12px;
    font-size: 1.35rem;
    font-weight: 400;
}

.content-page p,
.content-page li {
    color: var(--muted);
    line-height: 1.7;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    padding: 10px 15px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--text);
    text-decoration: none;
}

.back-link:hover {
    background: rgba(30, 119, 181, 0.24);
    color: #fff;
}

@media (max-width: 1250px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-link {
        padding: 10px 12px;
    }
}

@media (max-width: 1100px) {
    .quick-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-copy {
        width: 52%;
    }

    .hero-image-wrap {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .site-shell {
        width: min(100% - 14px, 1500px);
        margin-top: 7px;
    }

    .site-header {
        padding: 16px;
    }

    .main-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-link {
        text-align: center;
        font-size: 0.82rem;
    }

    .hero-section {
        min-height: 500px;
        align-items: flex-start;
    }

    .hero-copy {
        width: 100%;
        padding: 30px 22px;
        position: relative;
    }

    .hero-copy p {
        max-width: 450px;
    }

    .hero-image-wrap {
        width: 100%;
        height: 100%;
        inset: 0;
    }

    .hero-image-wrap::after {
        background: linear-gradient(
            180deg,
            rgba(4, 18, 35, 0.96) 0%,
            rgba(4, 18, 35, 0.56) 34%,
            rgba(4, 18, 35, 0.08) 74%,
            transparent 100%
        );
    }

    .quick-links,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        min-height: 120px;
    }

    .content-page {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 1.75rem;
    }

    .brand-subtitle {
        font-size: 0.86rem;
    }

    .hero-section {
        min-height: 500px;
    }

    .hero-copy h1 {
        font-size: 2.6rem;
    }

    .hero-copy p {
        font-size: 1rem;
    }

    .info-card {
        grid-template-columns: 56px 1fr 40px;
        padding: 16px 12px;
    }

    .card-icon {
        font-size: 2.55rem;
    }
}

/*
    Közös linkmegjelenés:
    alapállapotban enyhén fehér, rámutatáskor teljesen fehér.
*/
.content-page a:not(.back-link),
.site-footer a {
    color: rgba(255, 255, 255, 0.86);
    transition: color 0.2s ease;
}

.content-page a:not(.back-link):hover,
.content-page a:not(.back-link):focus,
.site-footer a:hover,
.site-footer a:focus {
    color: #ffffff;
}

.site-footer a {
    text-decoration: none;
}

/* Visszafogott címsorok, a Bootstrap alapértékeinek felülírásával. */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

/* Az intézményi kártyák két oszlopban, mobilon egy oszlopban. */
.center-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.content-page .info-card {
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: start;
}

.center-grid > .info-card {
    margin-top: 0 !important;
}

.content-page .card-content {
    min-width: 0;
    overflow-wrap: anywhere;
}

.content-page .card-content h2 {
    margin: 0 0 12px;
}

@media (max-width: 760px) {
    .center-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .content-page .info-card {
        grid-template-columns: 56px minmax(0, 1fr);
    }
}

/* Szöveges kiemelések mérsékelt betűvastagsággal. */
strong,
b {
    font-weight: 600;
}

/* Közvetlenül megosztható GYIK-válaszok. */
.question-item { scroll-margin-top: 24px; }
.faq-share-tools { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.faq-share-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: #55c9ff; border: 1px solid rgba(85, 201, 255, .35); border-radius: 8px; text-decoration: none; font-size: 1.35rem; }
.faq-share-link:hover { color: #fff; background: rgba(85, 201, 255, .12); }
.faq-share-link:focus-visible { outline: 2px solid #55c9ff; outline-offset: 3px; }
.faq-share-status { font-size: .85rem; color: #b9e5ff; }

/* GYIK: a hivatkozasok minden allapotban feherek. */
.question-answer a, .question-answer a:visited, .question-answer a:hover, .question-answer a:focus, .question-answer a:active { color: #FFFFFF; }
