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

:root {
    --bg-main: #020617;
    --bg-elevated: rgba(15, 23, 42, 0.98);
    --bg-elevated-soft: rgba(15, 23, 42, 0.93);
    --border-soft: rgba(51, 65, 85, 0.9);
    --border-strong: rgba(148, 163, 184, 0.5);
    --text-main: #e5e7eb;
    --text-soft: #9ca3af;
    --accent: #0ea5e9;
    --accent-strong: #2563eb;
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    --radius-pill: 999px;
    --shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.98);
    --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.9);
    --transition-fast: 0.18s ease;
    --transition-med: 0.28s ease;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background-color: #020617;
    background-image: url("section-bg-architecture-soft_optimized.png");
    background-size: cover;
    background-position: center top;
    background-attachment: scroll;
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    opacity: 0;
    transition: opacity 260ms cubic-bezier(0.33, 1, 0.68, 1);
}

body.page-mounted {
    opacity: 1;
}

body.page-fade-out {
    opacity: 0;
}

/* General */

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 1.5rem;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.75));
    border-bottom: 1px solid rgba(30, 64, 175, 0.5);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 0.75rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 1.1rem;
    background: url("logo.png") center/cover no-repeat;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: none;
}

.logo-mark span {
    display: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-size: 1.05rem;
    font-weight: 600;
}

.logo-tagline {
    font-size: 0.78rem;
    color: var(--text-soft);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    font-size: 0.95rem;
}

.main-nav a {
    position: relative;
    color: #e5e7eb;
}

.main-nav a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -0.25rem;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8, #2563eb);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-fast);
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 0.8rem;
    border: 1px solid rgba(75, 85, 99, 0.9);
    padding: 0.4rem 0.5rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #e5e7eb;
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    padding-block: 4.5rem 3.5rem;
    color: #f9fafb;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 72px);
}

.hero-media-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -2;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 1;
    transform: scale(1.04);
    filter: none;
}

.hero-bg-1 {
    background-image: url("hero-bg-house-blueprint.png");
}

.hero-bg-2 {
    background-image: url("https://images.pexels.com/photos/5483071/pexels-photo-5483071.jpeg?auto=format&fit=crop&w=1600&fm=webp");
    mix-blend-mode: screen;
    opacity: 0.15;
}


/* Hero háttér finom pan & zoom animáció */
.hero-bg-1 {
    animation: heroPanZoom 36s ease-in-out infinite alternate;
}

/* Lassú, enyhe mozgatás és zoom, hogy ne legyen zavaró */
@keyframes heroPanZoom {
    0% {
        transform: scale(1.06) translate3d(-2%, -1%, 0);
    }
    50% {
        transform: scale(1.09) translate3d(1.5%, 1%, 0);
    }
    100% {
        transform: scale(1.06) translate3d(-1%, 0, 0);
    }
}
.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(2, 6, 23, 0) 0%,
            rgba(2, 6, 23, 0.35) 55%,
            rgba(2, 6, 23, 0.65) 100%
        );
    z-index: -1;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    flex: 1;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(191, 219, 254, 0.8);
    background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.7), rgba(15, 23, 42, 0.9));
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.85rem;
}

.hero h1 {
    font-size: clamp(2.1rem, 4vw, 2.9rem);
    margin: 0 0 0.8rem;
    text-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.hero-subtitle {
    margin: 0 0 1.5rem;
    max-width: 32rem;
    color: #e5e7eb;
    font-size: 0.98rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1.4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-size: 0.94rem;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #f9fafb;
    box-shadow: 0 18px 45px rgba(37, 99, 235, 0.75);
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 60px rgba(37, 99, 235, 0.9);
}

.ghost-btn {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.8);
    color: #e5e7eb;
}

.ghost-btn:hover {
    background: rgba(15, 23, 42, 0.95);
    border-color: #38bdf8;
}

.hero-stats {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    justify-content: center;
    width: 100%;
}

.stat {
    padding: 0.6rem 0.9rem;
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
    will-change: transform, box-shadow;
}

.stat:hover {
    transform: translateY(2px) scale(1.005);
    border-color: rgba(191, 219, 254, 0.8);
    background: rgba(15, 23, 42, 0.96);
    box-shadow:
        0 16px 36px rgba(15, 23, 42, 0.9),
        0 6px 18px rgba(56, 189, 248, 0.12),
        0 0 0 1px rgba(59, 130, 246, 0.45),
        0 0 12px rgba(59, 130, 246, 0.35);
}

.stat-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #9ca3af;
    margin-bottom: 0.15rem;
}

.stat-value {
    font-size: 0.9rem;
}

/* Hero card */

.hero-right {
    display: flex;
    justify-content: flex-end;
}

.hero-card {
    width: 100%;
    max-width: 550px;
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.4rem 1.2rem;
    background:
        radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.35), transparent 55%),
        radial-gradient(circle at 100% 0, rgba(59, 130, 246, 0.4), transparent 55%),
        rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.9);
    box-shadow: var(--shadow-strong);
    color: #e5e7eb;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset-inline: 30%;
    bottom: -40%;
    height: 160%;
    background: radial-gradient(circle at center, rgba(96, 165, 250, 0.2), transparent 70%);
    opacity: 0.9;
    pointer-events: none;
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
    position: relative;
    z-index: 1;
}

.hc-label {
    font-size: 0.8rem;
    color: #bfdbfe;
}

.hc-status {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.6);
    color: #bbf7d0;
}

.hc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.hc-title {
    font-size: 0.96rem;
    font-weight: 600;
}

.hc-badge {
    font-size: 0.72rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(251, 191, 36, 0.75);
    background: radial-gradient(circle at 0 0, rgba(251, 191, 36, 0.25), transparent 55%);
    color: #fbbf24;
}

.hc-list {
    list-style: none;
    padding: 0;
    margin: 0.6rem 0 0.7rem;
    font-size: 0.86rem;
    position: relative;
    z-index: 1;
}

.hc-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.hc-list li span:first-child {
    color: #9ca3af;
}

.hc-list li span:last-child {
    color: #e5e7eb;
}

.hero-card-footer {
    position: relative;
    z-index: 1;
    margin-top: 0.4rem;
    padding-top: 0.55rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.7);
    font-size: 0.8rem;
    color: #bfdbfe;
}

/* Sections */

.section {
    padding-block: 3.5rem;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.75));
}

.section-dark {
    padding-block: 3.5rem;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.65), rgba(2, 6, 23, 0.85));
}

.section-header {
    max-width: 640px;
    margin-bottom: 2rem;
}

.section-header h2 {
    margin: 0 0 0.4rem;
    font-size: 1.6rem;
}

.section-header p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.95rem;
}

/* Services */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.service-link {
    display: block;
}

.service-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), #020617);
    border: 1px solid rgba(55, 65, 81, 0.95);
    box-shadow: var(--shadow-strong);
    transform-origin: center;
    transition:
        transform 0.12s ease-out 0s,
        box-shadow 0.12s ease-out 0s,
        border-color 0.12s ease-out 0s,
        background 0.12s ease-out 0s;
    will-change: transform, box-shadow;
}

.service-link:hover .service-card,
.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.95), 0 10px 28px rgba(37, 99, 235, 0.14);
    border-color: rgba(96, 165, 250, 0.9);
}

.service-media {
    position: relative;
    height: 150px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.service-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.9));
}

.media-gepeszet {
    background-image: url("gepeszet-kivitelezes.jpg");
    background-position: 55% 45%;
    background-size: 100%;
}

.media-klima {
    background-image: url("lakossagi-klima.png");
    background-position: 50% 40%;
    background-size: 100%;
}

.media-belteri {
    background-image: url("How-to-choose-right-Interior-Doors-for-your-home-decor-1.png");
    background-position: 50% 50%;
}

.media-villany {
    background-image: url("electric-g3bdf8b9b7_1920-1024x681.jpg");
    background-position: 50% 45%;
}

.media-nyilaszarok {
    background-image: url("Finstral glass tower.jpg");
    background-position: 50% 55%;
}

.media-garazskapu {
    background-image: url("automaticSwingingHero-scaled-1.webp");
    background-position: 50% 50%;
}

.media-arnyekolas {
    background-image: url("termek_kulso-tokos.webp");
    background-position: 50% 50%;
}

.media-pergola {
    background-image: url("1AC08BA3-3FA2-4B39-BC2D-1A2B470F5507.jpeg");
    background-position: 50% 50%;
}

.media-it {
    background-image: url("https://images.pexels.com/photos/2881232/pexels-photo-2881232.jpeg?auto=format&fit=crop&w=1600&fm=webp");
    background-position: 50% 40%;
}

.service-content {
    padding: 1.2rem 1.2rem 1.1rem;
}

.service-content h3 {
    margin: 0 0 0.3rem;
    font-size: 1.02rem;
}

.service-sub {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #93c5fd;
}

.profile-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.profile-logo-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    width: 200px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.profile-logo-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

.service-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: #d1d5db;
}

.service-content li {
    padding-block: 0.23rem;
}

.service-card-wide {
    grid-column: span 3;
}

/* Projects showcase */

.project-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.project-main-img {
    position: relative;
    border-radius: var(--radius-lg);
    min-height: 260px;
    background-image:
        linear-gradient(to top right, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.2)),
        url("https://images.pexels.com/photos/1546168/pexels-photo-1546168.jpeg?auto=compress&cs=tinysrgb&w=1600");
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(55, 65, 81, 0.95);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.project-main-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.4), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(37, 99, 235, 0.65), transparent 60%);
    mix-blend-mode: screen;
    opacity: 0.9;
}

.project-label,
.project-tag {
    position: relative;
    z-index: 1;
    color: #f9fafb;
    text-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
}

.project-label {
    margin: 1.2rem 1.3rem 0.25rem;
    font-weight: 600;
}

.project-tag {
    margin: 0 1.3rem 1.2rem;
    font-size: 0.86rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    display: inline-flex;
    border: 1px solid rgba(191, 219, 254, 0.7);
}

.project-side p {
    margin: 0 0 0.7rem;
    font-size: 0.94rem;
    color: #d1d5db;
}

.project-note {
    font-size: 0.86rem;
    color: #9ca3af;
}

.project-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.8rem;
}

.chip {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    background: rgba(15, 23, 42, 0.9);
}

/* About */

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.about-layout p {
    font-size: 0.95rem;
    color: #d1d5db;
}

.about-layout p + p {
    margin-top: 0.5rem;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    font-size: 0.92rem;
    color: #e5e7eb;
}

.about-list li {
    padding-block: 0.25rem;
    position: relative;
    padding-left: 1.2rem;
}

.about-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.68rem;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: radial-gradient(circle at 0 0, #38bdf8, #2563eb);
}

.about-card {
    border-radius: var(--radius-lg);
    padding: 1.3rem 1.3rem 1.1rem;
    background:
        radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.35), transparent 55%),
        rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(129, 140, 248, 0.7);
    box-shadow: var(--shadow-strong);
}

.about-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.about-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0.7rem;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.about-card li {
    padding-block: 0.25rem;
}

.about-card-note {
    font-size: 0.82rem;
    color: #bfdbfe;
}

/* Contact */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
    gap: 2.2rem;
    align-items: flex-start;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 1.1rem 0 1rem;
    font-size: 0.95rem;
}

.contact-details li {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 0.5rem;
    padding-block: 0.2rem;
}

.cd-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #9ca3af;
}

.contact-note {
    margin: 0;
    font-size: 0.86rem;
    color: #9ca3af;
}

.contact-form {
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.3rem 1.3rem;
    background:
        radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.5), transparent 55%),
        rgba(15, 23, 42, 0.97);
    border: 1px solid rgba(59, 130, 246, 0.7);
    box-shadow: var(--shadow-strong);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.9rem;
}

.form-row label {
    font-size: 0.85rem;
}

input,
textarea,
select {
    border-radius: 0.9rem;
    border: 1px solid rgba(75, 85, 99, 0.9);
    padding: 0.55rem 0.75rem;
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.6);
}

/* Footer */

.site-footer {
    border-top: 1px solid rgba(51, 65, 85, 0.95);
    background: #020617;
    color: #9ca3af;
    font-size: 0.8rem;
}

.footer-inner {
    padding-block: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-note {
    color: #6b7280;
}

/* Reveal animations */

.reveal {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.12s;
}

.delay-2 {
    transition-delay: 0.24s;
}

/* Responsive */

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card-wide {
        grid-column: span 2;
    }

    .project-layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    }

    .about-layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .header-inner {
        padding-block: 0.6rem;
    }

    .main-nav {
        position: absolute;
        inset-inline: 0;
        top: 100%;
        background: rgba(15, 23, 42, 0.98);
        border-bottom: 1px solid rgba(51, 65, 85, 0.95);
        flex-direction: column;
        align-items: flex-start;
        padding: 0.7rem 1.5rem 0.9rem;
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition-fast), opacity var(--transition-fast);
    }

    .main-nav.open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }

    .hero-right {
        justify-content: flex-start;
    }

    .services-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-card-wide {
        grid-column: span 1;
    }

    .project-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Hero stats row spanning under both columns */
.hero-stats-row {
    margin-top: 1.1rem;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-stats {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-block: 3.5rem 2.8rem;
    }

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

    .section {
        padding-block: 3rem;
    }

    .contact-details li {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.2rem;
    }
}




/* --- Szolgáltatások dropdown – kompakt, ikonos, hover + fix állapot --- */

.nav-item.nav-has-dropdown {
    position: relative;
}

/* Gomb – olyan, mint a többi menüpont, nincs fehér háttér */
.nav-services-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #e5e7eb;
    font-weight: 500;
}

/* Kis nyíl */
.nav-caret {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid #9ca3af;
    border-bottom: 2px solid #9ca3af;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 160ms ease, border-color 160ms ease;
}

/* A lebegő doboz */
.services-dropdown {
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    min-width: 260px;
    max-width: 320px;
    padding: 0.5rem 0.4rem;
    border-radius: 1rem;
    background:
        radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.35), transparent 60%),
        radial-gradient(circle at 100% 0, rgba(37, 99, 235, 0.4), transparent 60%),
        rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(59, 130, 246, 0.7);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.95);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 160ms ease,
        visibility 160ms ease,
        transform 160ms ease;
    z-index: 40;
}

/* Csak akkor látszik, ha a JS felrakja a dropdown-open osztályt */
.nav-item.nav-has-dropdown.dropdown-open .services-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Nyíl animáció nyitott állapotban */
.nav-item.nav-has-dropdown.dropdown-open .nav-caret {
    transform: rotate(225deg) translateY(1px);
    border-color: #e5e7eb;
}

/* Sorok a dropdownban */
.services-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.36rem 0.8rem;
    border-radius: 0.9rem;
    text-decoration: none;
    color: #e5e7eb;
    overflow: hidden;
    transform: translateY(0);
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease;
}

.services-item::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.55), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(45, 212, 191, 0.45), transparent 55%);
    opacity: 0;
    mix-blend-mode: screen;
    transition: opacity 160ms ease;
}

.services-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.9);
    background-color: rgba(15, 23, 42, 0.96);
}

.services-item:hover::before {
    opacity: 1;
}

/* Ikonok – kör + emoji */
.services-icon {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: radial-gradient(circle at 0 0, #38bdf8, #1d4ed8);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.08rem;
    font-size: 0.9rem;
}

.si-klima       { background: radial-gradient(circle at 0 0, #22d3ee, #0284c7); }
.si-gepeszet    { background: radial-gradient(circle at 0 0, #4ade80, #16a34a); }
.si-villany     { background: radial-gradient(circle at 0 0, #fbbf24, #f97316); }
.si-homlokzat   { background: radial-gradient(circle at 0 0, #60a5fa, #1d4ed8); }
.si-belteri     { background: radial-gradient(circle at 0 0, #f97316, #db2777); }
.si-kapu        { background: radial-gradient(circle at 0 0, #a855f7, #7c3aed); }
.si-arnyekolas  { background: radial-gradient(circle at 0 0, #22c55e, #15803d); }
.si-pergola     { background: radial-gradient(circle at 0 0, #0ea5e9, #0369a1); }
.si-it          { background: radial-gradient(circle at 0 0, #6366f1, #4f46e5); }

.services-text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.services-label {
    font-size: 0.86rem;
    font-weight: 500;
}

.services-sub {
    font-size: 0.72rem;
    color: #cbd5f5;
}

/* Mobilon: a menü szélességben lenyúljon a gomb alatt */
@media (max-width: 960px) {
    .services-dropdown {
        left: 0;
        transform: translateX(0);
        min-width: 100%;
        max-width: none;
    }
}


/* Egységes szolgáltatás kártya magasság */
.services-grid {
    align-items: stretch;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Globális háttér a szekciókhoz a hero alatt */
.section {
    padding-block: 3.5rem;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.75));
}

.section-dark {
    padding-block: 3.5rem;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.65), rgba(2, 6, 23, 0.85));
}


/* OVERRIDE: szekció háttér – csak a képes háttér fusson a hero alatt */
.section {
    padding-block: 3.5rem;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.75));
}

.section-dark {
    padding-block: 3.5rem;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.65), rgba(2, 6, 23, 0.85));
}


/* HERO – prémium 3D keret + glow */
.hero {
    position: relative;
    box-shadow:
        0 28px 70px rgba(15, 23, 42, 0.85),
        0 0 0 1px rgba(148, 163, 184, 0.32);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

/* Finom belső fény a keret körül */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow:
        0 0 45px rgba(59, 130, 246, 0.18),
        0 16px 55px rgba(15, 23, 42, 0.85);
    opacity: 1;
}

/* Alsó perem – mintha kiemelkedne */
.hero::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 22px;
    background: linear-gradient(to bottom,
        rgba(59, 130, 246, 0.05),
        rgba(2, 6, 23, 0.0)
    );
    pointer-events: none;
}

/* Subpage hero */
.sub-hero {
    position: relative;
    overflow: hidden;
    padding: 3rem 0 1.4rem;
    color: #f9fafb;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.92));
}

.sub-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(56, 189, 248, 0.16), transparent 50%),
        radial-gradient(circle at 78% 8%, rgba(37, 99, 235, 0.18), transparent 55%),
        linear-gradient(to bottom, rgba(2, 6, 23, 0.3), rgba(2, 6, 23, 0.94));
    pointer-events: none;
}

.sub-hero-inner {
    position: relative;
    z-index: 1;
}

.sub-hero-text {
    max-width: 860px;
    display: grid;
    gap: 0.55rem;
    justify-items: start;
    align-items: start;
}

.sub-hero-kicker {
    margin: 0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #93c5fd;
    font-size: 0.78rem;
}

.sub-hero-text h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.7rem);
}

.sub-hero-sub {
    margin: 0;
    color: var(--text-soft);
    font-size: 1.02rem;
}

.sub-hero .primary-btn {
    margin-top: 0.5rem;
    align-self: flex-start;
    justify-self: start;
    padding: 0.6rem 1.25rem;
}
