/* ================================================
   Possible Solutions Kft. — Custom Styles
   Dark Blue / White / Black / Gray — Minimalist
   ================================================ */

:root {
    --ink:        #07101e;       /* darkest bg */
    --navy:       #0d1e3d;       /* dark blue sections */
    --navy-mid:   #1a3055;       /* medium dark blue */
    --navy-light: #2a4a72;       /* lighter blue */
    --blue-muted: #3b5998;       /* accent blue */
    --white:      #ffffff;
    --off-white:  #f5f7fa;
    --gray-100:   #e8ecf0;
    --gray-300:   #b0bac6;
    --gray-500:   #6b7a8d;
    --gray-700:   #374151;
    --black:      #0a0a0a;
    --shadow:     0 8px 32px rgba(7, 16, 30, 0.12);
    --shadow-lg:  0 20px 60px rgba(7, 16, 30, 0.18);
    --radius:     6px;
    --ease:       all 0.3s ease;
}

/* ── Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.75;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--navy-mid); border-radius: 3px; }

/* ── Navbar ───────────────────────────────────── */
#mainNav {
    background: transparent;
    padding: 24px 0;
    transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
    z-index: 1050;
}

#mainNav.scrolled {
    background: var(--ink);
    padding: 14px 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.brand-ps {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--white);
    color: var(--ink);
    font-family: 'Syne', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: 4px;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.brand-dot { display: none; }

.brand-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.3px;
}

.navbar-toggler { color: var(--white); font-size: 1.2rem; }

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 8px 14px !important;
    border-radius: var(--radius);
    transition: var(--ease);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
    background: var(--white) !important;
    color: var(--ink) !important;
    font-weight: 700 !important;
}

.nav-cta:hover {
    background: var(--gray-100) !important;
    color: var(--ink) !important;
}

@media (max-width: 991px) {
    #mainNav.scrolled .navbar-nav { padding: 12px 0; }
    .navbar-nav .nav-link { padding: 10px 0 !important; border-radius: 0; }
    .nav-cta { background: transparent !important; color: rgba(255,255,255,0.82) !important; }
    #mainNav { background: var(--ink); }
}

/* ── Hero ─────────────────────────────────────── */
#home { position: relative; }

#heroCarousel,
#heroCarousel .carousel-item {
    height: 100vh;
    min-height: 620px;
}

#heroCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(7, 16, 30, 0.88) 0%,
        rgba(13, 30, 61, 0.72) 60%,
        rgba(7, 16, 30, 0.55) 100%
    );
}

.hero-caption {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    padding: 0 12px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 20px;
}

.tag-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    opacity: 0.6;
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-sub {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: rgba(255, 255, 255, 0.72);
    font-weight: 300;
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    color: var(--ink) !important;
    padding: 14px 32px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--ease);
}

.btn-hero-primary:hover {
    background: var(--gray-100);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.85) !important;
    padding: 14px 32px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--ease);
}

.btn-hero-ghost:hover {
    border-color: var(--white);
    color: var(--white) !important;
    background: rgba(255,255,255,0.08);
}

/* Slide counter */
.carousel-counter {
    position: absolute;
    bottom: 40px;
    right: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Syne', sans-serif;
    z-index: 10;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    font-weight: 600;
}

.counter-current { color: var(--white); font-size: 1.1rem; }
.counter-sep { letter-spacing: 2px; }

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-decoration: none;
    z-index: 10;
}

.scroll-hint span {
    display: block;
    width: 1.5px;
    height: 52px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
    100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

@media (max-width: 767px) {
    .scroll-hint, .carousel-counter { display: none; }
}

/* ── Section commons ──────────────────────────── */
.section-light  { padding: 110px 0; background: var(--white); }
.section-dark   { padding: 110px 0; background: var(--navy); }
.section-dark-alt { padding: 110px 0; background: var(--ink); }

.section-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--navy-mid);
    margin-bottom: 10px;
}

.section-label-light {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--gray-300);
    margin-bottom: 10px;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
    line-height: 1.15;
}

.section-title-light {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
    line-height: 1.15;
}

.title-line {
    width: 40px;
    height: 3px;
    background: var(--navy-mid);
    margin-bottom: 28px;
}

.title-line-center {
    width: 40px;
    height: 3px;
    background: var(--white);
    margin: 0 auto 20px;
    opacity: 0.4;
}

.title-line-center-dark {
    width: 40px;
    height: 3px;
    background: var(--navy-mid);
    margin: 0 auto 20px;
}

.section-header-center {
    text-align: center;
    margin-bottom: 56px;
}

.section-desc {
    color: var(--gray-500);
    font-size: 0.95rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.85;
}

.section-desc-light {
    color: var(--gray-300);
    font-size: 0.95rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.85;
}

/* ── About section ────────────────────────────── */
.about-visual {
    position: relative;
}

.av-img-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.av-img {
    width: 100%;
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    filter: grayscale(20%);
    transition: filter 0.4s ease;
}

.av-img:hover { filter: grayscale(0%); }

.av-badge {
    position: absolute;
    top: 24px;
    left: -18px;
    background: var(--ink);
    color: var(--white);
    padding: 18px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    min-width: 90px;
}

@media (max-width: 991px) { .av-badge { left: 0; } }

.av-year {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.av-since {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-300);
}

.av-tag-box {
    position: absolute;
    bottom: -18px;
    right: -12px;
    background: var(--white);
    border: 1.5px solid var(--gray-100);
    padding: 12px 18px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink);
    box-shadow: var(--shadow);
    white-space: nowrap;
}

.av-tag-box i { color: var(--navy-mid); }

@media (max-width: 991px) {
    .av-tag-box { right: 0; bottom: -14px; }
    .about-visual { margin-bottom: 40px; }
}

.about-lead {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-body {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.85;
    margin-bottom: 12px;
}

/* Stats mini */
.stat-mini {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    border: 1.5px solid var(--gray-100);
    transition: var(--ease);
}

.stat-mini:hover {
    border-color: var(--navy-mid);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.sm-num {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 6px;
}

.sm-lbl {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gray-500);
}

/* ── Modules Section ──────────────────────────── */
.col-xl-20 {
    /* 5 columns on XL */
    flex: 0 0 auto;
}

@media (min-width: 1200px) {
    .col-xl-20 { width: 20%; }
}

.mod-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 28px 20px 24px;
    height: 100%;
    transition: var(--ease);
    cursor: default;
}

.mod-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.mod-icon {
    width: 46px;
    height: 46px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--white);
    transition: var(--ease);
}

.mod-card:hover .mod-icon {
    background: var(--white);
    color: var(--navy);
}

.mod-card h6 {
    font-family: 'Syne', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.3;
}

.mod-card p {
    font-size: 0.78rem;
    color: var(--gray-300);
    line-height: 1.6;
    margin: 0;
}

.modules-footer {
    text-align: center;
    margin-top: 48px;
    padding: 20px 28px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    font-size: 0.82rem;
    color: var(--gray-300);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.modules-footer strong { color: var(--white); }
.modules-footer i { color: var(--gray-300); }

/* ── References ───────────────────────────────── */
.ref-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1.5px solid var(--gray-100);
    overflow: hidden;
    transition: var(--ease);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ref-card:hover {
    border-color: var(--navy-mid);
    transform: translateY(-7px);
    box-shadow: var(--shadow-lg);
}

.ref-logo-zone {
    padding: 36px 28px 24px;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    border-bottom: 1.5px solid var(--gray-100);
}

.ref-logo-zone img {
    max-height: 64px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
}

.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-300);
    border: 2px dashed var(--gray-100);
    border-radius: var(--radius);
    padding: 20px 40px;
}

.logo-placeholder i { font-size: 1.6rem; }

.logo-placeholder span {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ref-body {
    padding: 24px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ref-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0;
}

.ref-divider {
    width: 30px;
    height: 2px;
    background: var(--navy-mid);
    margin: 12px 0 14px;
}

.ref-desc {
    font-size: 0.83rem;
    color: var(--gray-500);
    line-height: 1.75;
    flex: 1;
    margin-bottom: 18px;
}

.ref-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.ref-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--off-white);
    color: var(--navy-mid);
    padding: 4px 10px;
    border-radius: 3px;
    border: 1px solid var(--gray-100);
}

/* ── Contact Section ──────────────────────────── */
.contact-intro {
    color: var(--gray-300);
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 575px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.ci-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--ease);
}

.ci-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.16);
}

.ci-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--white);
    flex-shrink: 0;
}

.ci-text { display: flex; flex-direction: column; }

.ci-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.ci-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

a.ci-value:hover { color: var(--gray-300); }

.contact-socials { display: flex; gap: 10px; }

.cs-link {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--ease);
}

.cs-link:hover {
    background: var(--white);
    color: var(--ink);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* ── Footer ───────────────────────────────────── */
.site-footer {
    background: var(--black);
    padding: 40px 0 28px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* Felső sor */
.footer-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.footer-brand-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-brand {
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.2px;
}

.fb-ps { color: var(--gray-500); }

.footer-tagline {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    margin: 0;
    line-height: 1.6;
}

.footer-back-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--ease);
    flex-shrink: 0;
}

.footer-back-top:hover {
    border-color: rgba(255,255,255,0.4);
    color: var(--white);
    background: rgba(255,255,255,0.06);
    transform: translateY(-3px);
}

/* Elválasztó vonal */
.footer-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin-bottom: 22px;
}

/* Alsó sor */
.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.28);
    margin: 0;
    line-height: 1.5;
}

.footer-aszf-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 6px 14px;
    transition: var(--ease);
    white-space: nowrap;
}

.footer-aszf-link i { font-size: 0.75rem; }

.footer-aszf-link:hover {
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.05);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 767px) {
    .section-light,
    .section-dark,
    .section-dark-alt { padding: 72px 0; }

    .hero-title { font-size: 1.9rem; }

    .contact-intro { margin-bottom: 32px; }
}
