/*
Theme Name: Szöllősi Autókozmetika
Theme URI: https://szollosi-auto.hu
Author: Szöllősi Autókozmetika
Description: Professzionális autókozmetika egyoldalas WordPress téma, teljes Customizer támogatással.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: szollosi
*/

/* === ALAP STÍLUSOK === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: #f9fafb;
    color: #111827;
    scroll-behavior: smooth;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* === NAVIGÁCIÓ === */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}
.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-branding .brand-name {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    display: block;
    line-height: 1;
}
.site-branding .brand-sub {
    font-size: 0.65rem;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #374151;
    transition: color 0.2s;
}
.nav-links a:hover { color: #dc2626; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; }
.mobile-menu {
    display: none;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 2rem;
}
.mobile-menu a {
    display: block;
    font-weight: 700;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.mobile-menu a:last-child { color: #dc2626; }

/* === HERO === */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
}
.hero-inner { max-width: 66%; }
.hero-title {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero-title span { color: #dc2626; }
.hero-desc {
    font-size: 1.2rem;
    color: #d1d5db;
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-red {
    background: #dc2626;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
    box-shadow: 0 8px 24px rgba(220,38,38,0.3);
}
.btn-red:hover { background: #b91c1c; }
.btn-white {
    background: #fff;
    color: #111;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}
.btn-white:hover { background: #f3f4f6; }

/* === SZEKCIÓ KÖZÖS === */
.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 1rem;
}
.red-bar {
    width: 6rem;
    height: 6px;
    background: #dc2626;
    border-radius: 3px;
    margin: 0 auto 4rem;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === SZOLGÁLTATÁSOK === */
.services-section { padding: 6rem 0; background: #fff; }

/*
 * ALAP sor: kép bal, szöveg jobb (1., 3., 5. … szolgáltatás)
 * A .service-row--reversed osztályú soroknál: szöveg bal, kép jobb (2., 4., 6. …)
 *
 * A DOM-ban mindig: <img class="service-img"> MAJD <div class="service-body">
 * A megfordításhoz CSS order-t használunk, hogy ne kelljen PHP-ban duplázni.
 */
.service-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 5rem;
}
.service-row:last-child { margin-bottom: 0; }

/* Alapból: img → bal (order:1), body → jobb (order:2) */
.service-row .service-img  { order: 1; }
.service-row .service-body { order: 2; }

/* Fordított sor: img → jobb (order:2), body → bal (order:1) */
.service-row--reversed .service-img  { order: 2; }
.service-row--reversed .service-body { order: 1; }

/* Méretek */
.service-img {
    width: 50%;
    flex-shrink: 0;
    height: 400px;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* Placeholder ha nincs kép */
.service-img--placeholder {
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    font-size: 4rem;
}

.service-body { width: 50%; }
.service-name {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.service-desc { font-size: 1.1rem; color: #6b7280; line-height: 1.7; margin-bottom: 1.5rem; }
.service-price { font-size: 1.8rem; font-weight: 900; color: #dc2626; margin-bottom: 2rem; }
.service-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-black {
    background: #111;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-black:hover { background: #374151; }
.btn-red-sq {
    background: #dc2626;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn-red-sq:hover { background: #b91c1c; }

/* === ELŐNYÖK === */
.benefits-section { padding: 6rem 0; background: #111827; color: #fff; }
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.benefits-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 2rem;
}
.benefits-title span { color: #dc2626; }
.benefit-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.benefit-icon {
    background: rgba(220,38,38,0.15);
    padding: 0.75rem;
    border-radius: 0.5rem;
    height: fit-content;
    color: #dc2626;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.benefit-item h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.benefit-item p { color: #9ca3af; font-size: 0.95rem; line-height: 1.6; }
.benefits-img { border-radius: 1rem; box-shadow: 0 20px 60px rgba(0,0,0,0.3); width: 100%; }

/* === REFERENCIÁK === */
.references-section { padding: 6rem 0; background: #fff; }
.refs-intro { text-align: center; color: #6b7280; margin-bottom: 3rem; }
.refs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.ref-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #e5e7eb;
}
.ref-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.ref-item:hover img { transform: scale(1.1); }

/* === VÉLEMÉNYEK === */
.reviews-section { padding: 6rem 0; background: #f9fafb; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.review-card {
    background: #fff;
    padding: 2rem;
    border-radius: 1.25rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
    font-style: italic;
}
.review-card .quote-icon {
    position: absolute;
    top: 1rem; left: 1rem;
    font-size: 2.5rem;
    color: rgba(220,38,38,0.15);
    line-height: 1;
}
.review-text { color: #6b7280; margin-bottom: 1.5rem; position: relative; z-index: 1; line-height: 1.6; }
.reviewer { display: flex; align-items: center; gap: 0.75rem; }
.reviewer-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.reviewer-name { font-weight: 700; font-style: normal; }

/* === GYIK === */
.faq-section { padding: 6rem 0; background: #fff; }
.faq-container { max-width: 768px; margin: 0 auto; padding: 0 2rem; }
.faq-item {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}
.faq-item[open] { background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.faq-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    list-style: none;
    cursor: pointer;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-chevron { color: #dc2626; transition: transform 0.2s; font-size: 0.9rem; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { margin-top: 1rem; color: #6b7280; line-height: 1.7; }

/* === TÉRKÉP === */
.map-section { width: 100%; height: 450px; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.map-section iframe { width: 100%; height: 100%; border: 0; display: block; }

/* === KAPCSOLAT === */
.contact-section { padding: 6rem 0; background: #f9fafb; }
.contact-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 960px;
    margin: 0 auto;
}
.contact-info { background: #111827; color: #fff; padding: 3rem; }
.contact-info h2 { font-size: 1.8rem; font-weight: 900; text-transform: uppercase; margin-bottom: 2rem; }
.contact-detail { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; font-size: 0.9rem; }
.contact-detail i { color: #dc2626; font-size: 1.1rem; }
.contact-detail a:hover { color: #f87171; }
.contact-form { padding: 3rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem 0;
    font-size: 1rem;
    background: transparent;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: #dc2626; }
.btn-submit {
    width: 100%;
    background: #dc2626;
    color: #fff;
    font-weight: 900;
    font-size: 1rem;
    padding: 1rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: background 0.2s;
    letter-spacing: 0.05em;
}
.btn-submit:hover { background: #b91c1c; }

/* === LÁBLÉC === */
.site-footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 3rem 2rem;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-copy { font-size: 0.75rem; color: #9ca3af; font-weight: 500; }

/* === RESZPONZÍV === */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .mobile-menu.open { display: block; }

    .hero-inner { max-width: 100%; text-align: center; }
    .hero-btns { justify-content: center; }

    /* Mobil: minden service sor oszlopos, kép felül – szöveg alul.
       Az order értékek felülírásával kép mindig 1. lesz. */
    .service-row,
    .service-row--reversed {
        flex-direction: column;
        gap: 2rem;
    }
    .service-row .service-img,
    .service-row--reversed .service-img {
        order: 1;   /* kép mindig felül */
        width: 100%;
        height: 260px;
    }
    .service-row .service-body,
    .service-row--reversed .service-body {
        order: 2;   /* szöveg mindig alul */
        width: 100%;
        text-align: center;
    }
    .service-btns { justify-content: center; }

    .benefits-grid { grid-template-columns: 1fr; }
    .refs-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: 1fr; }
    .contact-card { grid-template-columns: 1fr; }
    .footer-inner { justify-content: center; text-align: center; }
}

/* === REFERENCIA OVERLAY (hover) === */
.ref-item {
    position: relative;
    cursor: pointer;
}
.ref-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    transition: background 0.25s;
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.25s, background 0.25s;
}
.ref-item:hover .ref-overlay {
    opacity: 1;
    background: rgba(0,0,0,0.45);
}

/* === LIGHTBOX === */
.lb-wrap {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.lb-wrap.active { display: flex; }

.lb-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.lb-img {
    max-width: 90vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    display: block;
}
.lb-caption {
    color: #e5e7eb;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}
.lb-counter {
    color: #9ca3af;
    font-size: 0.8rem;
    margin: 0;
}

/* Lightbox gombok */
.lb-close,
.lb-prev,
.lb-next {
    position: fixed;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.2s;
    z-index: 10000;
}
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover { background: rgba(220,38,38,0.7); }

.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev  { left: 1.2rem;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1.2rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
    .lb-prev { left: 0.5rem; }
    .lb-next { right: 0.5rem; }
    .lb-close { top: 0.5rem; right: 0.5rem; }
    .lb-img { max-height: 65vh; }
}

/* === FOOTER LINKEK === */
.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-link-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.footer-link-btn:hover { color: #dc2626; }
.footer-link-sep { color: #d1d5db; font-size: 0.75rem; }

/* === MODAL === */
.sz-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(3px);
}
.sz-modal.active { display: flex; }

.sz-modal-box {
    background: #fff;
    border-radius: 1.25rem;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.5rem 2rem 2rem;
    position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25);
    scroll-behavior: smooth;
}
.sz-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.sz-modal-close:hover { background: #dc2626; color: #fff; }

.sz-modal-title {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
    border-bottom: 3px solid #dc2626;
    padding-bottom: 0.75rem;
}
.sz-modal-body { font-size: 0.95rem; line-height: 1.8; color: #374151; }
.sz-modal-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 1.5rem 0 0.4rem;
    color: #111;
}
.sz-modal-body p { margin-bottom: 0.75rem; }
.sz-modal-body strong { color: #111; }

@media (max-width: 600px) {
    .sz-modal-box { padding: 2rem 1.25rem 1.5rem; max-height: 90vh; }
    .sz-modal-title { font-size: 1.2rem; }
    .footer-inner { flex-direction: column; gap: 0.75rem; }
}


/* === KÖSZÖNJÜK OLDAL === */
.ty-section {
    min-height: 100vh;
    padding: calc(80px + 4rem) 1.5rem 4rem;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ty-card {
    background: #fff;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 620px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}
.ty-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.75rem;
    border-radius: 50%;
    background: rgba(220,38,38,0.1);
    color: #dc2626;
    font-size: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ty-pop 0.5s ease-out both;
}
.ty-title {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.ty-bar { margin: 0 auto 1.75rem; }
.ty-desc {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}
.ty-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.ty-btn-outline {
    border: 2px solid #111;
    color: #111;
    padding: calc(1rem - 2px) 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s, color 0.2s;
}
.ty-btn-outline:hover { background: #111; color: #fff; }

.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

@keyframes ty-pop {
    0%   { transform: scale(0.4); opacity: 0; }
    70%  { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .ty-icon { animation: none; }
}
@media (max-width: 600px) {
    .ty-card { padding: 2.5rem 1.5rem; }
    .ty-btns a { width: 100%; justify-content: center; }
}