/* ============================================
   SZOLGÁLTATÁS ALOLDALAK STÍLUSAI
   services.css - Vásári Ferenc Tuskómarás
   ============================================ */

/* --- DROPDOWN MENÜ JAVÍTÁS --- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-inner {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    min-width: 200px;
    overflow: hidden;
}

.nav-dropdown-inner a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-dropdown-inner a:hover {
    background: rgba(31, 96, 64, 0.05);
    color: #1f6040;
}

/* --- BREADCRUMB NAVIGÁCIÓ --- */
.service-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.service-breadcrumb a {
    color: #1f6040;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-breadcrumb a:hover {
    color: #e67e22;
    text-decoration: underline;
}

.service-breadcrumb .separator {
    color: #cbd5e1;
    font-size: 0.75rem;
}

.service-breadcrumb .current {
    color: #1e293b;
    font-weight: 600;
}

/* --- ALOLDAL HERO SZEKCIÓ --- */
.service-hero {
    background: linear-gradient(135deg, rgba(248,250,252,0.92) 0%, rgba(226,232,240,0.92) 100%);
    background-size: cover;
    background-position: center;
    padding: 3rem 0 4rem 0;
    position: relative;
}

/* Egyedi háttérképek az aloldalakhoz */
.service-hero.hero-tuskomaras {
    background: linear-gradient(135deg, rgba(248,250,252,0.88) 0%, rgba(226,232,240,0.88) 100%), 
                url('images/hero-tuskomaras.webp') center/cover no-repeat;
}

.service-hero.hero-gyokermaras {
    background: linear-gradient(135deg, rgba(248,250,252,0.88) 0%, rgba(226,232,240,0.88) 100%), 
                url('images/hero-gyokermaras.webp') center/cover no-repeat;
}

.service-hero.hero-gepi {
    background: linear-gradient(135deg, rgba(248,250,252,0.88) 0%, rgba(226,232,240,0.88) 100%), 
                url('images/hero-gepi-tuskomaras.webp') center/cover no-repeat;
}

.service-hero.hero-fakivagas {
    background: linear-gradient(135deg, rgba(248,250,252,0.88) 0%, rgba(226,232,240,0.88) 100%), 
                url('images/hero-fakivagas.jpg') center/cover no-repeat;
}

.service-hero-content {
    max-width: 800px;
}

.service-hero h1 {
    font-size: 2.25rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .service-hero h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .service-hero h1 {
        font-size: 3.5rem;
    }
}

.service-hero-intro {
    font-size: 1.125rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* --- TARTALOMJEGYZÉK (TOC) --- */
.service-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    /* Nincs sticky itt - a .service-sidebar már sticky */
}

.service-toc-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #1f6040;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-toc li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.service-toc li:last-child {
    border-bottom: none;
}

.service-toc a {
    color: #475569;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: block;
}

.service-toc a:hover {
    color: #1f6040;
    padding-left: 0.5rem;
}

/* --- FŐ TARTALOM --- */
.service-content {
    max-width: 800px;
    margin: 0 auto;
}

.service-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    color: #1e293b;
    line-height: 1.3;
    scroll-margin-top: 100px;
}

.service-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #334155;
    line-height: 1.4;
}

.service-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #475569;
}

.service-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #475569;
    font-size: 1rem;
}

.service-content ul,
.service-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.service-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: #475569;
}

.service-content ol li {
    padding-left: 0.5rem;
}

.service-content strong {
    color: #1e293b;
    font-weight: 600;
}

/* --- KÉPEK A TARTALOMBAN --- */
.service-content img {
    width: 100%;
    border-radius: 1rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-image-caption {
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
}

/* --- IDÉZET/BLOCKQUOTE --- */
.service-content blockquote,
.service-quote {
    background: #f0fdf4;
    border-left: 4px solid #1f6040;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: #166534;
}

.service-quote-author {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
    color: #1f6040;
}

/* --- INFO DOBOZOK --- */
.service-info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.service-info-box.warning {
    background: #fefce8;
    border-color: #fde047;
}

.service-info-box.success {
    background: #f0fdf4;
    border-color: #86efac;
}

.service-info-box.primary {
    background: rgba(31, 96, 64, 0.05);
    border-color: rgba(31, 96, 64, 0.2);
}

.service-info-box-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- DEFINÍCIÓS DOBOZ --- */
.service-definition {
    background: #f8fafc;
    border-left: 4px solid #64748b;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 0.75rem 0.75rem 0;
}

.service-definition strong {
    color: #1f6040;
}

/* --- ÁR KIEMELŐ DOBOZ --- */
.service-price-box {
    background: linear-gradient(135deg, #1f6040 0%, #174832 100%);
    color: white;
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(31, 96, 64, 0.3);
    margin: 2rem 0;
}

.service-price-box .price {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.service-price-box .price-unit {
    font-size: 1.25rem;
    opacity: 0.9;
}

.service-price-box .price-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* --- ELŐNYÖK LISTA --- */
.service-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

@media (min-width: 640px) {
    .service-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(31, 96, 64, 0.05);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.service-benefit-item:hover {
    background: rgba(31, 96, 64, 0.1);
    transform: translateY(-2px);
}

.service-benefit-icon {
    color: #1f6040;
    flex-shrink: 0;
    margin-top: 2px;
}

.service-benefit-text strong {
    display: block;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.service-benefit-text span {
    font-size: 0.875rem;
    color: #64748b;
}

/* --- LÉPÉSEK/FOLYAMAT --- */
.service-steps {
    margin: 2rem 0;
}

.service-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.service-step:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.service-step-number {
    width: 40px;
    height: 40px;
    background: #1f6040;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.service-step-content h4 {
    margin: 0 0 0.5rem 0;
    color: #1e293b;
    font-size: 1.125rem;
}

.service-step-content p {
    margin: 0;
    color: #64748b;
    font-size: 0.9375rem;
}

/* --- ÖSSZEHASONLÍTÓ TÁBLÁZAT --- */
.service-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9375rem;
    overflow-x: auto;
    display: block;
}

@media (min-width: 768px) {
    .service-comparison-table {
        display: table;
    }
}

.service-comparison-table th,
.service-comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.service-comparison-table th {
    background: #f8fafc;
    font-weight: 700;
    color: #1e293b;
}

.service-comparison-table th.highlight {
    background: #1f6040;
    color: white;
}

.service-comparison-table td.highlight {
    background: rgba(31, 96, 64, 0.05);
    font-weight: 600;
    color: #1f6040;
}

.service-comparison-table tbody tr:hover {
    background: rgba(31, 96, 64, 0.03);
}

/* --- FAQ SZEKCIÓ --- */
.service-faq {
    margin: 2rem 0;
}

.service-faq-item {
    background: #f8fafc;
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    /* Magasság animáció - ugyanaz mint a főoldali FAQ-nál */
    transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
    height: auto;
    will-change: height;
    transform: translateZ(0);
}

.service-faq-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    color: #1e293b;
    user-select: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.service-faq-item:hover summary {
    color: #1f6040;
}

.service-faq-item summary::-webkit-details-marker {
    display: none;
}

.service-faq-item summary .icon {
    transition: transform 0.3s ease;
    color: #1f6040;
}

.service-faq-item[open] summary .icon {
    transform: rotate(180deg);
}

.service-faq-item p {
    padding: 0 1.5rem 1.25rem 1.5rem;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    color: #475569;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-faq-item[open] p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

/* --- CTA SZEKCIÓ --- */
.service-cta {
    background: linear-gradient(135deg, #1f6040 0%, #174832 100%);
    border-radius: 2rem;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    margin: 4rem 0 2rem 0;
}

.service-cta h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.service-cta p {
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

.service-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.service-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-cta-btn.primary {
    background: white;
    color: #1f6040;
}

.service-cta-btn.primary:hover {
    background: #f0fdf4;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-cta-btn.secondary {
    background: #e67e22;
    color: white;
}

.service-cta-btn.secondary:hover {
    background: #d35400;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* --- KAPCSOLÓDÓ SZOLGÁLTATÁSOK --- */
.service-related {
    margin: 4rem 0 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.service-related h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.service-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .service-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .service-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-related-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.service-related-card:hover {
    border-color: #1f6040;
    box-shadow: 0 10px 30px rgba(31, 96, 64, 0.1);
    transform: translateY(-5px);
}

.service-related-card h4 {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-related-card p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.6;
}

.service-related-card .arrow {
    color: #1f6040;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* --- KÉT OSZLOPOS LAYOUT --- */
.service-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
    align-items: start; /* Fontos a sticky megfelelő működéséhez */
}

@media (min-width: 1024px) {
    .service-two-col {
        grid-template-columns: 2fr 1fr;
    }
}

.service-sidebar {
    position: sticky;
    top: 100px;
    align-self: start; /* Ez biztosítja, hogy ne nyúljon túl a tartalmon */
}

/* --- ÁR KALKULÁCIÓ DOBOZ --- */
.service-price-calc {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.service-price-calc-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-price-calc-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.service-price-calc-row:last-child {
    border-bottom: none;
}

.service-price-calc-row.total {
    font-weight: 700;
    color: #1f6040;
    font-size: 1.125rem;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid #1f6040;
}

/* --- KIEMELÉS DOBOZ --- */
.service-highlight-box {
    background: linear-gradient(135deg, rgba(31, 96, 64, 0.05) 0%, rgba(31, 96, 64, 0.1) 100%);
    border: 1px solid rgba(31, 96, 64, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.service-highlight-box h4 {
    color: #1f6040;
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

/* --- LISTA IKONOKKAL --- */
.service-icon-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.service-icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.service-icon-list li:last-child {
    border-bottom: none;
}

.service-icon-list .icon {
    color: #1f6040;
    flex-shrink: 0;
    margin-top: 2px;
}

/* --- TAPASZTALAT IDÉZET --- */
.service-experience {
    background: #fffbeb;
    border-left: 4px solid #e67e22;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 1rem 1rem 0;
}

.service-experience p {
    margin: 0;
    color: #92400e;
    font-style: italic;
}

.service-experience strong {
    color: #78350f;
}

/* --- RESPONSIVE FIXES --- */
@media (max-width: 640px) {
    .service-hero {
        padding: 2rem 0 3rem 0;
    }
    
    .service-content h2 {
        font-size: 1.5rem;
    }
    
    .service-content h3 {
        font-size: 1.125rem;
    }
    
    .service-cta {
        padding: 2rem 1.5rem;
    }
    
    .service-step {
        flex-direction: column;
        gap: 1rem;
    }
    
    .service-price-box .price {
        font-size: 2.5rem;
    }
}

/* --- PRINT STÍLUSOK --- */
@media print {
    .service-toc,
    .service-cta,
    .service-related {
        display: none;
    }
    
    .service-content {
        max-width: 100%;
    }
}
