/* HUN-MED Kft. – a dokumentum mockupjai alapján */

:root {
    --navy: #1a4d8c;
    --navy-dark: #0f3460;
    --navy-footer: #1a3d6e;
    --blue-light: #e8f0fa;
    --white: #ffffff;
    --gray-bg: #f4f6f8;
    --gray-border: #d8dee6;
    --gray-text: #5a6573;
    --text: #2c3440;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container: 1140px;
    --header-h: 76px;
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy-dark); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- HEADER ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
    transition: box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: 0 4px 16px rgba(15, 52, 96, 0.08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.logo {
    display: inline-flex;
    align-items: center;
    color: var(--navy);
}

.logo:hover { color: var(--navy); }

.logo-img {
    height: 54px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-text);
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
}

.nav-link:hover { color: var(--navy); }

.nav-link.active {
    color: var(--navy);
    border-bottom-color: var(--navy);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    transform-origin: center;
    transition: transform var(--transition), opacity var(--transition);
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.btn-primary:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    color: var(--white);
}

.btn-outline {
    background: var(--white);
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline:hover {
    background: var(--blue-light);
    color: var(--navy);
}

.btn-full { width: 100%; }

/* ---- HERO (mockup: szöveg a képen, bal oldali fehér átmenet) ---- */
.hero {
    position: relative;
    margin-top: var(--header-h);
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--white);
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 255, 255, 0.94) 34%,
        rgba(255, 255, 255, 0.55) 48%,
        rgba(255, 255, 255, 0.08) 58%,
        transparent 72%
    );
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 80px 24px;
}

.hero-text {
    max-width: 540px;
}

.hero-title {
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.45;
}

.hero-desc {
    font-size: 0.98rem;
    color: var(--gray-text);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---- PAGE TITLE (aloldalak) ---- */
.page-title-section {
    margin-top: var(--header-h);
    padding: 56px 24px 40px;
    text-align: center;
    background: var(--white);
}

.page-title-section h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.page-title-section .title-accent {
    width: 48px;
    height: 3px;
    background: var(--navy);
    margin: 0 auto;
}

.page-title-section.page-title-partners {
    background: #edf1f6;
    padding-bottom: 24px;
}

/* ---- SECTION TITLES ---- */
.section {
    padding: 72px 0;
}

.section-gray {
    background: var(--gray-bg);
}

.section-heading {
    text-align: center;
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 16px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.section-intro {
    text-align: center;
    color: var(--gray-text);
    max-width: 760px;
    margin: 0 auto 48px;
    font-size: 1rem;
    line-height: 1.65;
}

.section-heading.left {
    text-align: left;
    margin-left: 0;
    margin-bottom: 28px;
}

.section-heading.left::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--navy);
    margin-top: 10px;
}

/* ---- EXPERTISE ---- */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px 16px;
    width: 100%;
    align-items: start;
}

.expertise-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
    width: 100%;
    padding: 0;
}

.expertise-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 0 14px;
    color: var(--navy);
    font-size: 1.85rem;
    line-height: 1;
    flex-shrink: 0;
}

.expertise-icon i {
    display: block;
    width: 1em;
    height: 1em;
    line-height: 1;
    text-align: center;
}

.expertise-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 8px;
    line-height: 1.3;
    max-width: 100%;
}

.expertise-card p {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-text);
    line-height: 1.4;
    margin: 0;
    max-width: 100%;
}

/* ---- CONTACT BLOCK (főoldal + kapcsolat) ---- */
.contact-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: stretch;
}

.contact-info-panel,
.form-panel {
    background: var(--white);
    border: 1px solid #d5dee8;
    padding: 28px;
    min-width: 0;
}

.contact-info-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--navy);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.95rem;
    color: var(--text);
}

.contact-list i {
    color: var(--navy);
    font-size: 1.1rem;
    margin-top: 3px;
    width: 20px;
    flex-shrink: 0;
    text-align: center;
}

.contact-list a {
    color: var(--text);
    font-weight: 500;
}

.contact-list a:hover { color: var(--navy); }

.company-meta {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e3e9f0;
    background: transparent;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding-left: 0;
    padding-right: 0;
    font-size: 0.9rem;
    color: var(--gray-text);
}

.company-meta p + p { margin-top: 6px; }

.form-panel .contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-border);
    border-radius: 2px;
    font-family: var(--font);
    font-size: 0.95rem;
    background: var(--white);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ---- PARTNERS ---- */
.partners-section {
    background: #edf1f6;
}

.partners-featured {
    margin-bottom: 24px;
}

.partners-featured .partner-card {
    min-height: 180px;
    max-width: 520px;
    margin: 0 auto;
}

.partners-featured .partner-logo-wrap {
    height: 96px;
}

.partners-featured .partner-logo-wrap img {
    max-height: 80px;
    max-width: 360px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 28px 22px;
    background: #d8e0ea;
    border: 1px solid #c0ccd9;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.partner-card:hover {
    background: #cdd7e4;
    border-color: var(--navy);
    box-shadow: 0 6px 18px rgba(26, 77, 140, 0.12);
}

.partner-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 80px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(26, 77, 140, 0.08);
}

.partner-logo-wrap img {
    max-height: 58px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ---- STAFF ---- */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.staff-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.staff-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.staff-photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #e8edf3;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 12%;
}

.staff-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    aspect-ratio: 4 / 5;
}

.staff-body {
    padding: 18px 16px 22px;
    text-align: center;
    border-top: 1px solid #e8edf3;
}

.staff-note {
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-top: 8px;
}

/* ---- SERVICE CARDS (Szerviz) ---- */
.service-page {
    background: #edf1f6;
}

.service-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
    max-width: 960px;
    margin: 0 auto;
}

.service-block {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--white);
    border: 1px solid #d5dee8;
    border-top: 3px solid var(--navy);
    padding: 28px 28px 26px;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.service-block:hover {
    box-shadow: 0 10px 28px rgba(26, 77, 140, 0.1);
    border-color: #b8c7d8;
}

.service-block-review {
    align-self: start;
}

.service-card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 0;
}

.service-block > .service-card-head {
    margin-bottom: 0;
}

.service-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: #e8eef5;
    color: var(--navy);
    font-size: 1.15rem;
}

.service-block h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 8px;
    line-height: 1.2;
}

.service-lead {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

.service-people-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.service-person {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 16px;
    background: #f4f7fb;
    border: 1px solid #e3e9f0;
}

.service-person strong {
    color: var(--navy);
    font-size: 1rem;
}

.service-person-role {
    font-size: 0.88rem;
    color: var(--gray-text);
    line-height: 1.45;
}

.service-person a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-text);
    font-size: 0.86rem;
    margin-top: 4px;
    word-break: break-word;
}

.service-person a i {
    width: 1em;
    flex-shrink: 0;
    color: var(--navy);
    opacity: 0.75;
}

.service-person a:hover {
    color: var(--navy);
}

.service-card-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 16px;
    background: #f4f7fb;
    border: 1px solid #e3e9f0;
    font-size: 0.92rem;
    width: 100%;
    max-width: none;
}

.service-card-contact strong {
    color: var(--navy);
    font-size: 1rem;
    margin-bottom: 2px;
}

.service-card-contact a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-text);
}

.service-card-contact a i {
    width: 1em;
    color: var(--navy);
    opacity: 0.75;
}

.service-card-contact a:hover {
    color: var(--navy);
}

.staff-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.staff-role {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-bottom: 12px;
}

.staff-contact {
    font-size: 0.85rem;
    color: var(--text);
}

.staff-contact a {
    display: block;
    color: var(--text);
    margin-top: 4px;
    word-break: break-all;
}

.staff-contact a:hover {
    color: var(--navy);
}

/* ---- MAP ---- */
.map-section { padding-bottom: 72px; }

.map-container iframe {
    display: block;
    width: 100%;
    filter: grayscale(15%);
}

.company-meta p + p { margin-top: 6px; }

/* ---- FOOTER (mockup) ---- */
.footer {
    background: var(--navy-footer);
    color: rgba(255, 255, 255, 0.85);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 32px;
    padding: 48px 24px 36px;
    align-items: start;
}

.footer-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--white);
    text-transform: uppercase;
}

.footer-desc p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.88rem;
}

.footer-contact-col a,
.footer-contact-col span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact-col a:hover { color: var(--white); }

.footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
}

.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background var(--transition);
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* ---- NOTIFICATIONS ---- */
.notification {
    position: fixed;
    top: 90px;
    right: 20px;
    max-width: 380px;
    padding: 14px 44px 14px 18px;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    transform: translateX(120%);
    transition: transform var(--transition);
    color: var(--white);
    font-size: 0.9rem;
}

.notification.show { transform: translateX(0); }
.notification-success { background: #1a7a4a; }
.notification-error { background: #c53030; }

.notification-close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.8;
}

/* ---- ANIMATIONS ---- */
.animate-ready { opacity: 0; transform: translateY(20px); }
.animate-in { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease, transform 0.5s ease; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
    .expertise-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .partners-grid { grid-template-columns: repeat(3, 1fr); }
    .staff-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .service-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }

    .logo-img {
        height: 42px;
        max-width: min(240px, 72vw);
        object-fit: contain;
    }

    .hero { min-height: auto; }

    .hero-inner { padding: 40px 16px 48px; }

    .hero-text { max-width: 100%; }

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

    .hero-tagline { font-size: 1rem; }

    .hero-desc {
        font-size: 0.92rem;
        max-width: 100%;
        margin-bottom: 24px;
    }

    .hero {
        min-height: min(72vh, 560px);
    }

    .hero-overlay {
        background: linear-gradient(
            185deg,
            rgba(255, 255, 255, 0.88) 0%,
            rgba(255, 255, 255, 0.62) 42%,
            rgba(232, 240, 250, 0.28) 72%,
            rgba(232, 240, 250, 0.12) 100%
        );
    }

    .hero-media img {
        object-position: 32% 35%;
        opacity: 1;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn { width: 100%; }

    .section { padding: 48px 0; }

    .section-heading {
        margin-bottom: 12px;
        font-size: 1.25rem;
    }

    .section-intro {
        margin-bottom: 32px;
        font-size: 0.95rem;
        padding: 0 4px;
    }

    .page-title-section { padding: 40px 16px 28px; }
    .page-title-section h1 { font-size: 1.35rem; }

    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .expertise-card h3,
    .expertise-card p { white-space: normal; }

    .service-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-block,
    .contact-info-panel,
    .form-panel { padding: 22px 18px; }

    .contact-split {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-row { grid-template-columns: 1fr; }

    .partners-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .partners-featured .partner-card {
        min-height: 140px;
        max-width: none;
    }

    .partners-featured .partner-logo-wrap {
        height: 72px;
    }

    .partner-card {
        min-height: 120px;
        padding: 20px 16px;
    }

    .partner-logo-wrap { height: 64px; }

    .staff-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
        gap: 20px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
        padding: 36px 16px 28px;
    }

    .footer-contact-col a,
    .footer-contact-col span { justify-content: center; }

    .footer-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 16px;
    }

    .map-section { padding-bottom: 48px; }
    .map-container iframe { height: 280px; }

    .nav-menu {
        position: fixed;
        top: var(--header-h);
        left: 0;
        width: 100%;
        height: calc(100dvh - var(--header-h));
        z-index: 999;
        margin: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 8px 0 32px;
        border-top: 1px solid var(--gray-border);
        overflow-x: hidden;
        overflow-y: auto;
        box-sizing: border-box;
        visibility: hidden;
        pointer-events: none;
        opacity: 0;
        transform: none;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    body.nav-open .nav-menu,
    .nav-menu.active {
        visibility: visible;
        pointer-events: auto;
        opacity: 1;
        transform: none;
    }

    .nav-menu > li {
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
        flex: 0 0 auto;
        align-self: stretch;
    }

    .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        margin: 0;
        padding: 18px 20px;
        font-size: 0.95rem;
        letter-spacing: 0.06em;
        text-align: center;
        border: none !important;
        border-bottom: 1px solid var(--gray-border) !important;
        background: transparent;
    }

    .nav-link.active {
        color: var(--navy);
        background: #f0f4f9;
        box-shadow: inset 4px 0 0 var(--navy);
    }

    .nav-link:hover {
        color: var(--navy);
        background: #f7f9fc;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        z-index: 1001;
        flex-shrink: 0;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .contact-info-panel,
    .form-panel { padding: 20px 16px; }

    .staff-grid { max-width: 100%; }
}
