/* ===== CSS Változók ===== */
:root {
    --yellow: #E8D44D;
    --yellow-light: #F5EC8A;
    --yellow-dark: #C4B230;
    --gray-900: #1a1a1a;
    --gray-800: #2d2d2d;
    --gray-700: #3d3d3d;
    --gray-600: #555555;
    --gray-500: #777777;
    --gray-400: #999999;
    --gray-300: #bbbbbb;
    --gray-200: #e0e0e0;
    --gray-100: #f2f2f2;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== Közös elemek ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.highlight {
    color: var(--yellow);
}

.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--gray-900);
    color: var(--white);
}

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

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--yellow);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-desc {
    color: var(--gray-400);
}

/* ===== Gombok ===== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--yellow);
    color: var(--gray-900);
    border-color: var(--yellow);
}

.btn-primary:hover {
    background: var(--yellow-dark);
    border-color: var(--yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 212, 77, 0.4);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--gray-900);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

/* ===== Navigáció ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

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

.nav-menu a {
    color: var(--gray-300);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--yellow);
}

.nav-menu a.btn-primary,
.nav-menu a.btn-primary:hover {
    color: var(--gray-900);
}

/* Szöveges logó, ha a logó képfájl nem érhető el */
.logo-text {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    color: var(--white);
    white-space: nowrap;
}

.footer-brand .logo-text {
    margin-bottom: 16px;
}

.about-logo-badge .logo-text {
    font-size: 1.1rem;
}

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

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-900);
    overflow: hidden;
}

/* Slider */
.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--slide-bg) center/cover no-repeat;
    transform: scale(1.08);
    transition: transform 7s ease-out;
}

.hero-slide.active::before {
    transform: scale(1);
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,26,0.88) 0%, rgba(26,26,26,0.7) 50%, rgba(26,26,26,0.9) 100%);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(26,26,26,0.4);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
    border-color: var(--yellow);
    color: var(--yellow);
}

.hero-prev { left: 24px; }
.hero-next { right: 24px; }

.hero-dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    border-radius: 6px;
    border: none;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dots button[aria-current="true"] {
    width: 32px;
    background: var(--yellow);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    z-index: 2;
    padding: 120px 24px 80px;
}

.hero-logo {
    width: 180px;
    height: auto;
    margin: 0 auto 32px;
    filter: drop-shadow(0 4px 20px rgba(232, 212, 77, 0.3));
}

.hero h1,
.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-slide.active .hero-logo { animation: fadeInDown 0.8s ease both; }
.hero-slide.active h1,
.hero-slide.active .hero-title { animation: fadeInUp 0.8s ease 0.2s both; }
.hero-slide.active .hero-subtitle { animation: fadeInUp 0.8s ease 0.4s both; }
.hero-slide.active .hero-buttons { animation: fadeInUp 0.8s ease 0.6s both; }

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray-300);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 3;
}

.hero-scroll a {
    color: var(--yellow);
}

/* ===== Rólunk ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.8;
}

.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 32px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--yellow);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    background: var(--about-bg) center/cover no-repeat, var(--gray-200);
    box-shadow: var(--shadow-lg);
}

.about-logo-badge {
    position: absolute;
    left: -24px;
    bottom: -24px;
    background: var(--gray-900);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-md);
    border-bottom: 4px solid var(--yellow);
}

.about-logo-badge img {
    height: 70px;
    width: auto;
}

.about-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    border-radius: var(--radius);
    color: var(--gray-400);
}

/* ===== Szolgáltatások ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--gray-800);
    border-radius: var(--radius);
    padding: 40px 30px;
    transition: var(--transition);
    border: 1px solid var(--gray-700);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--yellow);
    box-shadow: 0 12px 40px rgba(232, 212, 77, 0.15);
}

.service-icon {
    width: 72px;
    height: 72px;
    background: rgba(232, 212, 77, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--yellow);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--yellow);
    color: var(--gray-900);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== Projektek ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    overflow: hidden;
}

.project-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    color: var(--gray-400);
}

.project-info {
    padding: 24px;
}

.project-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(232, 212, 77, 0.15);
    color: var(--yellow-dark);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.project-info p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ===== Csapat ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-card {
    background: var(--gray-800);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--gray-700);
    transition: var(--transition);
}

.team-card:hover {
    border-color: var(--yellow);
    transform: translateY(-4px);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(232, 212, 77, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--yellow);
}

.team-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.team-role {
    color: var(--yellow);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.team-desc {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== Kapcsolat ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.contact-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 12px;
    background: rgba(232, 212, 77, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow);
}

.contact-item h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 2px;
}

.contact-item p {
    color: var(--gray-500);
}

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

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 4px rgba(232, 212, 77, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.form-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
    cursor: pointer;
}

.form-check input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--yellow-dark);
}

.form-status {
    font-size: 0.95rem;
    font-weight: 600;
    min-height: 1.5em;
}

.form-status.is-success { color: #2e7d32; }
.form-status.is-error { color: #c62828; }

.contact-form button[disabled],
.newsletter-form button[disabled] {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.contact-item a:hover {
    color: var(--yellow-dark);
}

.contact-map {
    margin-top: 60px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    line-height: 0;
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

.newsletter {
    margin-top: 60px;
    padding: 40px;
    border-radius: var(--radius);
    background: var(--gray-900);
    color: var(--white);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
    border-left: 6px solid var(--yellow);
}

.newsletter-text h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.newsletter-text p {
    color: var(--gray-400);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.newsletter-row {
    display: flex;
    gap: 12px;
}

.newsletter-row input {
    flex: 1;
    min-width: 0;
    padding: 14px 20px;
    border: 2px solid var(--gray-700);
    border-radius: 50px;
    background: var(--gray-800);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
}

.newsletter-row input:focus {
    outline: none;
    border-color: var(--yellow);
}

.newsletter .form-check {
    color: var(--gray-400);
}

.newsletter .form-status.is-success { color: #81c784; }
.newsletter .form-status.is-error { color: #ef9a9a; }

/* ===== Lábléc ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 60px 0 0;
}

/* Demján Sándor Program infoblokk – arculati irányelvek szerint
   Minimum méret: 141px magas blokk, X = 5mm ≈ 14px biztonsági eltartás,
   a két logó között 10X ≈ 141px távolság */
.footer-dsp {
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--gray-700);
}

.footer-dsp-text {
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 24px;
}

.footer-dsp-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 141px;
    row-gap: 28px;
}

.footer-dsp-logos img,
.footer-dsp-logos a {
    display: block;
}

.footer-dsp-logos .dsp-logo,
.footer-dsp-logos .neum-logo {
    width: auto;
    padding: 14px;
    box-sizing: content-box;
}

.footer-dsp-logos .dsp-logo {
    height: 113px;
}

.footer-dsp-logos .neum-logo {
    height: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-700);
}

.footer-logo {
    height: 50px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-company {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-company strong {
    color: var(--white);
}

.footer-company a:hover {
    color: var(--yellow);
}

.footer-links h4 {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--yellow);
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 0.85rem;
}

/* ===== Animációk ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== Scroll animáció ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Reszponzív ===== */
@media (max-width: 1024px) {
    .services-grid,
    .projects-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.6rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-logo {
        width: 120px;
    }

    .section {
        padding: 70px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        padding: 30px 24px;
        gap: 20px;
        transform: translateY(-120%);
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .projects-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .about-logo-badge {
        left: 16px;
        bottom: -20px;
        padding: 14px 18px;
    }

    .about-logo-badge img {
        height: 50px;
    }

    .hero-arrow {
        display: none;
    }

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

    .newsletter {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 24px;
    }

    .contact-map iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero h1,
    .hero-title {
        font-size: 2rem;
    }

    .newsletter-row {
        flex-direction: column;
    }

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

    .stats-row {
        flex-direction: column;
        gap: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide::before {
        transition: none;
    }

    .hero-slide.active * {
        animation: none !important;
    }
}
