/* 
Theme: Lucky-Dog Premium
Description: Custom styles matching the DogWorks aesthetic
Author: Studio BGK
*/

/* --- Variables & Base --- */
:root {
    --scroll-offset: 116px;
    --primary: #96591b;
    /* Warm Yellow/Orange */
    --primary-dark: #6a5624;
    --secondary: #2b313b;
    /* Deep Navy Blue */
    --secondary-dark: #0F172A;
    --text-body: #64748B;
    --bg-light: #F0F9FF;
    /* Soft blue background */
    --bg-white: #FFFFFF;

    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-pill: 9999px;

    --shadow-soft: 0 20px 40px rgba(30, 41, 59, 0.08);
    --shadow-hover: 0 30px 60px rgba(30, 41, 59, 0.12);
    --transition: all 0.3s ease-in-out;

    --bp-md: 992px;
    --bp-sm: 768px;
    --bp-xs: 480px;
}

/* Alpine.js cloak - hide until Alpine initializes */
[x-cloak] {
    display: none !important;
}

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

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: var(--scroll-offset);
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-weight: 800;
    line-height: 1.2;
}

/* --- Layout Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 3rem;
}

.text-white {
    color: white !important;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn--pill {
    border-radius: var(--radius-pill);
}

.btn--large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

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

.btn--primary:hover {
    background-color: var(--secondary);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn--secondary {
    background-color: var(--secondary);
    color: var(--bg-white);
}

.btn--secondary:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    transform: translateY(-3px);
}

.btn--white {
    background-color: var(--bg-white);
    color: var(--secondary);
}

.btn--white:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
    transform: translateY(-3px);
}

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

.btn--outline:hover {
    background-color: var(--secondary);
    color: var(--bg-white);
    transform: translateY(-3px);
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--secondary);
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.top-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar__contact span {
    margin-right: 20px;
}

.top-bar__contact i {
    color: var(--primary);
    margin-right: 5px;
}

.top-bar__socials a {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 15px;
}

.top-bar__socials a:hover {
    color: var(--primary);
}

/* --- Header --- */
.site-header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: box-shadow 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.site-header.is-scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.10);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
    /* fixed height keeps everything perfectly centered */
    gap: 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Image logo variant */
.logo-link--img {
    padding: 4px 0;
}

.site-logo-img {
    display: block;
    height: 52px;
    /* header magassága arányos */
    width: auto;
    max-width: 180px;
    object-fit: contain;
    border-radius: 0 !important;
    /* globalis img radius felulirasa */
}

.site-header.is-scrolled .site-logo-img {
    height: 48px;
}

/* Footer-specifikus: a sötét háttéren is jól látható */
.site-logo-img--footer {
    height: 56px;
    max-width: 200px;
    /* Ha a kép sötét/átlátszó: brightness/invert filter csak szükség esetén */
    /* filter: brightness(0) invert(1); */
}

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

.logo-icon {
    color: var(--primary);
    font-size: 2rem;
    line-height: 1;
}

.logo-text-highlight {
    color: var(--primary);
}

/* Nav Desktop */
.header__nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.header__nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
    height: 100%;
    margin: 0;
    padding: 0;
}

.header__nav ul li {
    display: flex;
    align-items: center;
    height: 100%;
}

.header__nav a {
    display: flex;
    align-items: center;
    height: 100%;
    color: var(--secondary);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    position: relative;
    padding: 0 2px;
    white-space: nowrap;
}

.header__nav a::after {
    content: '';
    position: absolute;
    bottom: 18px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.25s ease;
}

.header__nav a:hover::after,
.header__nav a.is-active::after {
    width: 100%;
}

.header__nav a:hover {
    color: var(--primary);
}

/* Pill item (Panzió) — no underline, pill has its own style */
.header__nav .menu-item-highlight a::after {
    display: none;
}

.header__nav .menu-item-highlight a {
    height: auto;
    padding: 10px 22px;
    background-color: var(--primary);
    color: white !important;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 16px rgba(255, 184, 0, 0.35);
    transition: var(--transition);
}

.header__nav .menu-item-highlight a:hover {
    background-color: var(--secondary);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.2);
}

.header__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    color: var(--secondary);
    background: var(--bg-light);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.header__toggle:hover {
    background: var(--primary);
    color: white;
}

/* Mobile Nav */
.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    padding: 16px 20px 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    z-index: 9999;
    border-top: 2px solid var(--bg-light);
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.mobile-nav ul li {
    width: 100%;
    text-align: center;
}

.mobile-nav a {
    display: block;
    text-align: center;
    padding: 12px 20px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-nav a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.mobile-nav .menu-item-highlight {
    margin-top: 8px;
}

.mobile-nav .menu-item-highlight a {
    background-color: var(--primary);
    color: white !important;
    border-radius: var(--radius-pill);
    padding: 12px 24px;
}

.mobile-nav .menu-item-highlight a:hover {
    background-color: var(--secondary);
    color: white !important;
}

.mobile-nav__cta {
    margin-top: 18px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.mobile-nav__cta .btn {
    width: 100%;
    max-width: 400px;
    justify-content: center;
}

@media (min-width: 992px) {
    /* Desktop: logo a kicsit nagyobb, mobil változatlan */
    .site-logo-img {
        height: 58px;
        max-width: 210px;
    }
    .site-header.is-scrolled .site-logo-img {
        height: 52px;
    }

    /* ensure mobile nav never shows on desktop even without Alpine */
    .mobile-nav {
        display: none !important;
    }
}

@media (max-width: 992px) {

    .desktop-nav,
    .desktop-only {
        display: none !important;
    }

    .header__toggle {
        display: flex;
    }

    .header__inner {
        height: 68px;
    }

    /* Logo kép kisebb mobil nézeten */
    .site-logo-img {
        height: 42px;
        max-width: 150px;
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: calc(100vh - 116px);
    display: flex;
    align-items: center;
    background-image: url('../images/herobg.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect for premium feel */
    padding: 80px 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.96) 0%, rgba(240, 249, 255, 0.85) 50%, rgba(240, 249, 255, 0.4) 100%);
    z-index: 1;
}

/* Ensure content stays above overlay */
.hero__inner {
    z-index: 5;
    width: 100%;
}

.hero__shape-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero__shape-bottom svg {
    width: 100%;
    height: 80px;
}

.hero__inner {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
}

.hero__content {
    flex: 1;
}

.hero__badge {
    display: inline-block;
    background: rgba(255, 184, 0, 0.15);
    color: var(--primary-dark);
    font-weight: 700;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    margin-bottom: 25px;
}

.hero__badge i {
    margin-right: 8px;
}

.hero__title {
    font-size: clamp(2rem, 8vw + 0.5rem, 4.5rem);
    margin-bottom: 30px;
    color: var(--secondary);
    max-width: 100%;
    overflow-wrap: break-word;
}

.hero__title span {
    color: var(--primary);
}

.hero__text {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero__actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.hero__image-wrapper {
    flex: 1;
    position: relative;
}

.hero__blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background-color: var(--primary);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: -1;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {

    0%,
    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    34% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    }

    67% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
    }
}

.hero__image {
    border-radius: 40px;
    box-shadow: var(--shadow-hover);
    position: relative;
    z-index: 5;
}

.hero__floating-card {
    position: absolute;
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
    bottom: -30px;
    left: -40px;
    animation: float 4s ease-in-out infinite;
}

.hero__floating-card .icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@media (max-width: 992px) {
    .hero {
        min-height: auto;
        padding: 60px 0 100px;
        background-attachment: scroll;
        /* Disable parallax on mobile for performance */
    }

    .hero__inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero__title {
        font-size: 2.8rem;
        margin-bottom: 20px;
    }

    .hero__text {
        font-size: 1.1rem;
        margin: 0 auto 30px;
    }

    .hero__actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero__actions .btn {
        width: 100%;
        margin: 0;
        padding: 16px 20px;
    }

    .hero__image-wrapper {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* --- Section Headers --- */
.section-badge {
    display: inline-block;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(1.75rem, 5vw + 0.5rem, 3rem);
    margin-bottom: 20px;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw + 0.5rem, 1.2rem);
    max-width: 600px;
    margin: 0 auto 50px;
    padding: 0 4px;
}

/* --- Services --- */
.services {
    padding: 100px 0;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 40px;
}

.service-card {
    background: var(--bg-white);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card__icon-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--secondary);
}

.service-card__icon-wrapper .luckydog-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
}

.service-card__blob {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover .service-card__blob {
    background: var(--primary);
    transform: scale(1.1) rotate(15deg);
}

.service-card:hover .service-card__icon-wrapper {
    color: white;
}

.service-card__title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.service-card__text {
    margin-bottom: 30px;
}

.service-card__list {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
}

.service-card__list li {
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--secondary);
}

.service-card__list i {
    margin-right: 10px;
}

.service-card__btn {
    margin-top: auto;
    width: fit-content;
    align-self: center;
}

@media (max-width: 768px) {
    .service-card__btn {
        width: 100%;
        display: flex;
    }
}

/* Featured Service Card */
.service-card--featured {
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.8);
}

.service-card--featured .service-card__title {
    color: white;
}

.service-card--featured .service-card__list li {
    color: white;
}

.service-card--featured .service-card__icon-wrapper {
    color: white;
}

.service-card--featured .service-card__blob {
    background: var(--primary);
}

.service-card--featured:hover .service-card__blob {
    background: rgba(255, 255, 255, 0.2);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--secondary);
    color: rgba(255, 255, 255, 0.7);
    padding: 120px 0 30px;
    position: relative;
    margin-top: 100px;
}

.footer__shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(-99%);
    line-height: 0;
}

.footer__shape svg {
    width: 100%;
    height: 80px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
}

/* Image logo variant in footer */
.footer__logo--img {
    display: inline-block;
    margin-bottom: 20px;
}

.footer__logo--img .site-logo-img--footer {
    /* Ha a logo PNG sötét betükkel készült: fehérre szinezzuk */
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

/* Custom footer logo image: show as-is, larger */
.footer__logo--img .site-logo-img--footer-custom {
    filter: none;
    opacity: 1;
    height: 112px;
    max-width: 420px;
}

@media (max-width: 992px) {
    .footer__logo--img .site-logo-img--footer-custom {
        height: 86px;
        max-width: 320px;
    }
}

.footer__desc {
    margin-bottom: 30px;
}

.footer__socials {
    display: flex;
    gap: 15px;
}

.footer__socials a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.footer__socials a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer__title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: 15px;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer__links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer__contact {
    list-style: none;
}

.footer__contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.footer__contact i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 5px;
}

.footer__hours .hour-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__hours strong {
    color: white;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__legal a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 20px;
}

.footer__legal a:hover {
    color: white;
}

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

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .footer__col {
        width: 100%;
        max-width: 420px;
        text-align: center;
    }

    .footer__logo,
    .footer__logo--img {
        display: flex;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .footer__socials {
        justify-content: center;
    }

    .footer__title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer__links a:hover {
        padding-left: 0;
    }

    .footer__contact li {
        justify-content: center;
        align-items: flex-start;
    }

    .footer__hours .hour-row {
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
        text-align: center;
    }

    .footer__cta {
        display: flex;
        justify-content: center;
    }

    .footer__cta-btn {
        width: auto;
        min-width: min(100%, 280px);
    }

    .footer__bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer__legal {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 20px;
    }

    .footer__legal a {
        margin-left: 0;
    }
}

/* Form Styles for DogWorks Theme */
.form-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    position: relative;
}

.form-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 50px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.form-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.1;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.progress-container {
    margin-bottom: 50px;
}

.progressbar {
    display: flex;
    justify-content: space-between;
    list-style: none;
    position: relative;
    padding: 0;
}

.progressbar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 4px;
    background-color: #E2E8F0;
    z-index: 1;
    border-radius: 2px;
}

.progressbar li {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #94A3B8;
    transition: var(--transition);
}

.progressbar li .step-circle {
    width: 40px;
    height: 40px;
    background-color: #E2E8F0;
    color: #94A3B8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.1rem;
    border: 4px solid var(--bg-white);
    transition: var(--transition);
}

.progressbar li.active {
    color: var(--secondary);
}

.progressbar li.active .step-circle {
    background-color: var(--primary);
    color: var(--bg-white);
    border-color: rgba(255, 184, 0, 0.2);
    box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.1);
}

.progressbar li.completed .step-circle {
    background-color: var(--secondary);
    color: var(--bg-white);
}

/* Form Groups */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--secondary);
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 15px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary);
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-body);
    transition: var(--transition);
    background-color: #F8FAFC;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.1);
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748B' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--bg-light);
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-sm);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 4px;
    accent-color: var(--primary);
}

.badge-ovi {
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.badge-kikepzes {
    background-color: var(--secondary);
    color: var(--bg-white);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.error-input {
    border-color: #EF4444 !important;
    background-color: #FEF2F2 !important;
}

/* Subpage Utilities */
.prose-premium {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-body);
}

.prose-premium p {
    margin-bottom: 1.5rem;
}

.prose-premium h2,
.prose-premium h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    font-family: var(--font-heading);
}

.prose-premium ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.prose-premium ul li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
}

.prose-premium ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
    background: rgba(255, 184, 0, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

@media (max-width: 768px) {
    .progressbar li span.text-hidden {
        display: none;
    }
}


/* Top bar links */

.top-bar__contact a {
    color: rgba(255, 255, 255, 0.8);
    margin-right: 20px;
}

.top-bar__contact a:hover {
    color: var(--primary);
}

/* About section classes (replacing inline styles) */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__image-wrapper {
    position: relative;
}

.about__blob {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 1;
}

.about__image-wrapper img {
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 5;
    box-shadow: var(--shadow-hover);
    width: 100%;
}

.about__text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-body);
}

.about__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.about__features li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about__feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 184, 0, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.about__features h4 {
    font-size: 1.15rem;
    margin-bottom: 5px;
    color: var(--secondary);
}

.about__features p {
    color: var(--text-body);
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .about-section {
        padding: 60px 0;
    }

    .about__grid {
        display: flex;
        flex-direction: column-reverse;
        gap: 40px;
        text-align: center;
    }

    .about__image-wrapper {
        display: block;
        max-width: 500px;
        margin: 0 auto;
    }

    .about__content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about__features {
        align-items: center;
    }

    .about__features li {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .about__features p {
        max-width: 300px;
    }

    .about__content .btn {
        width: 100%;
        max-width: 400px;
    }
}

/* --- Accessibility & utilities --- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus,
.skip-link:focus {
    background: var(--secondary);
    clip: auto;
    clip-path: none;
    color: #fff;
    display: block;
    font-size: 1rem;
    height: auto;
    left: 10px;
    line-height: normal;
    padding: 12px 20px;
    top: 10px;
    width: auto;
    z-index: 100000;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.lucky-hp-field {
    position: absolute !important;
    left: -9999px !important;
    height: 0 !important;
    overflow: hidden !important;
}

.site-logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--secondary);
}

/* --- Gallery pagination --- */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 24px 0 26px;
}

.gallery-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    border: 2px solid rgba(43, 49, 59, 0.12);
    background: var(--bg-white);
    color: var(--secondary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1;
    transition: var(--transition);
}

.gallery-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(30, 41, 59, 0.08);
}

.gallery-filter-btn.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 10px 26px rgba(150, 89, 27, 0.22);
}

.gallery-grid.is-filtering {
    opacity: 0.98;
}

#galeria.gallery-section {
    width: 100%;
}

#galeria .gallery-grid {
    position: relative;
    z-index: 1;
    width: 100%;
}

.gallery-pagination {
    position: relative;
    z-index: 30;
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid rgba(43, 49, 59, 0.08);
    isolation: isolate;
}

.gallery-pagination a {
    position: relative;
    z-index: 31;
    pointer-events: auto;
}

/* GLightbox: csak a site header (z-index ~1000) fölé.
   A .goverlay magas z-indexe korábban a kép és gombok FÖLÉ került → sötét filter + minden kattintás bezárt. */
.glightbox-container {
    z-index: 99990 !important;
}

.gallery-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gallery-pagination .page-numbers li {
    margin: 0;
    padding: 0;
}

.gallery-pagination .page-numbers a,
.gallery-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    color: var(--secondary);
    background: var(--bg-white);
    border: 2px solid rgba(43, 49, 59, 0.1);
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.04);
}

.gallery-pagination .page-numbers a:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.gallery-pagination .page-numbers .current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(150, 89, 27, 0.35);
}

.gallery-pagination .page-numbers .dots {
    border: none;
    background: transparent;
    box-shadow: none;
    min-width: auto;
    padding: 0 4px;
    color: var(--text-body);
}

.gallery-pagination .page-numbers .prev,
.gallery-pagination .page-numbers .next {
    padding: 0 22px;
}

.gallery-pagination .page-numbers .prev span,
.gallery-pagination .page-numbers .next span {
    border: none;
    background: transparent;
    box-shadow: none;
    min-width: auto;
    height: auto;
    padding: 0;
    color: inherit;
}

@media (max-width: 480px) {
    .gallery-pagination .page-numbers .prev span,
    .gallery-pagination .page-numbers .next span {
        display: none;
    }

    .gallery-pagination .page-numbers .prev,
    .gallery-pagination .page-numbers .next {
        min-width: 44px;
        padding: 0;
    }
}

.gallery-empty--compact {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-body);
}

.gallery-preview-cta {
    margin-top: 50px;
}

/* --- Forms --- */
.form-privacy-label a {
    text-decoration: underline;
    color: var(--primary);
}

.pension-form__privacy {
    margin: 20px 0;
}

.pension-form__submit {
    width: 100%;
}

.form-messages {
    margin-bottom: 20px;
}

/* --- Footer --- */
.footer__cta {
    margin-top: 30px;
}

.footer__cta-btn {
    width: 100%;
    justify-content: center;
}

/* --- Static pages & 404 --- */
.page-content__body {
    padding: 40px 0 80px;
    max-width: 800px;
    line-height: 1.75;
    color: var(--text-body);
}

.page-content__body h2,
.page-content__body h3 {
    color: var(--secondary);
    font-family: var(--font-heading);
    margin: 1.5em 0 0.5em;
}

.error-404 {
    padding: 100px 0;
}

.error-404__code {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}

.error-404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.hero__image--placeholder {
    width: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, var(--bg-light), #e2e8f0);
    border-radius: var(--radius-lg);
}

@media (max-width: 992px) {
    .hero {
        background-attachment: scroll;
    }
}

/* ===== MOBILE RESPONSIVE (global + layout safety) ===== */
/* Ne legyen overflow-x a site-wrapper/body/html-en: megszakítja a sticky headert */
html,
body,
.site-wrapper {
    max-width: 100%;
}

#primary.site-main {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.page-banner__title {
    font-size: clamp(1.85rem, 6vw + 0.5rem, 3.5rem);
    max-width: 100%;
    overflow-wrap: break-word;
    padding: 0 8px;
}

.page-banner__subtitle {
    font-size: clamp(1rem, 2.5vw + 0.5rem, 1.2rem);
    padding: 0 12px;
}

.section-title--form {
    font-size: clamp(1.5rem, 4.5vw + 0.5rem, 2.5rem) !important;
    margin-bottom: 10px !important;
}

.section-title--subpage {
    font-size: clamp(1.5rem, 4vw + 0.5rem, 2.2rem) !important;
}

@media (max-width: 480px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-subtitle {
        margin-bottom: 36px;
    }

    .services,
    .about-section,
    .form-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .service-card {
        padding: 36px 24px;
    }

    .service-card__title {
        font-size: clamp(1.35rem, 4vw, 2rem);
    }

    .top-bar__contact a {
        white-space: normal;
        font-size: 0.85rem;
        margin-right: 10px;
    }

    .footer__logo--img .site-logo-img--footer-custom {
        height: auto;
        max-height: 96px;
        max-width: 100%;
        width: auto;
    }

    .hero__floating-card {
        max-width: calc(100vw - 48px);
    }

    .gallery-filter-btn {
        padding: 10px 14px;
        font-size: 0.88rem;
    }

    .gallery-filters {
        gap: 8px;
        margin-left: -4px;
        margin-right: -4px;
    }

    .section-header {
        padding: 0 4px;
    }

    .training-section,
    .instructors-section,
    .pricing-section,
    .news-preview-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .testimonial-card {
        padding: 32px 20px;
    }

    .stats-grid {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
        margin: 0 !important;
    }

    .form-actions[style*="justify-content: flex-end"] {
        justify-content: stretch !important;
    }

    .progress-container {
        margin-bottom: 32px;
        margin-left: -4px;
        margin-right: -4px;
    }

    .progressbar {
        gap: 4px;
        padding: 0 2px;
    }

    .progressbar li .step-circle {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
        border-width: 3px;
        margin-bottom: 6px;
    }

    .progressbar::before {
        height: 3px;
    }

    /* Jelentkezési űrlap: mobilon lapos fehér (nincs kártya/árnyék/dekor háttér) */
    #jelentkezes.form-section {
        background: #fff;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    #jelentkezes .form-wrapper {
        background: #fff;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 20px 0 !important;
        max-width: 100%;
    }

    #jelentkezes .form-wrapper::before {
        display: none;
    }

    #jelentkezes .form-control {
        padding: 14px 16px;
        font-size: 16px;
        background: #fff;
        border: 1px solid #e2e8f0;
        box-shadow: none;
    }

    #jelentkezes .form-control:focus {
        box-shadow: 0 0 0 3px rgba(150, 89, 27, 0.12);
    }

    #jelentkezes .service-option__card {
        padding: 24px 20px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: none;
    }

    #jelentkezes .service-option input:checked + .service-option__card {
        box-shadow: none;
        border-color: var(--primary);
    }

    #jelentkezes .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
        background: #fff;
        border: 1px solid #e2e8f0;
    }

    #jelentkezes .form-actions {
        border-top: 1px solid #eee;
    }

    #jelentkezes .form-step h3,
    #jelentkezes .step-heading {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom-color: #eee;
    }

    #jelentkezes .summary-item {
        border-color: #e2e8f0;
    }

    .form-step h3,
    .step-heading {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .form-control {
        padding: 14px 16px;
        font-size: 16px;
    }

    .service-option__card {
        padding: 24px 20px;
    }

    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .radio-label.ml-6 {
        margin-left: 0 !important;
    }
}

@media (max-width: 380px) {
    .progressbar li .step-circle {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
}