/* 
    Hagyatékos Landing Page - Design System
    Retro-Modern Elegancia
*/

:root {
    --bg-color: #F5F1E6;
    /* Antik krém papír */
    --primary-green: #1B3022;
    /* Mély antik zöld */
    --accent-mustard: #E3B04B;
    /* Mustársárga */
    --accent-orange: #FF6B35;
    /* Retro narancs (CTA) */
    --text-dark: #333333;
    /* Antracit */
    --text-light: #F5F1E6;
    --border-thick: 4px solid #333333;
    --glass-bg: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.3);
}

/* Alapok */
body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* Szemcsézettség effekt */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3Tag filter='url(%23noiseFilter)'/%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

h1,
h2,
h3,
h4,
.serif {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Navigáció */
.navbar {
    background-color: rgba(245, 241, 230, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-green);
    padding: 1rem 0;
}

.navbar-brand .logo-seal {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
    color: var(--primary-green);
    margin-right: 10px;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    margin: 0 15px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent-mustard) !important;
}

.btn-call {
    background-color: var(--accent-orange);
    color: white;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: bold;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-call:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: white;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--primary-green);
}

.hero-subline {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

.btn-cta {
    background-color: var(--primary-green);
    color: var(--text-light);
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: 8px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(27, 48, 34, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(27, 48, 34, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(27, 48, 34, 0);
    }
}

.hero-image-container {
    border: var(--border-thick);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 20px 20px 0px var(--accent-mustard);
}

/* Kategória Kártyák */
.category-card {
    background: white;
    border: 3px solid #333;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 10px 10px 0px var(--primary-green);
}

.category-img-wrapper {
    height: 250px;
    overflow: hidden;
    border-bottom: 3px solid #333;
}

.category-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover img {
    transform: scale(1.1);
}

/* "Miért mi?" Ikonok */
.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-mustard);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: var(--primary-green);
    border: 2px solid #333;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--primary-green);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 60px;
    position: relative;
    width: 50%;
    padding: 0 40px;
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    text-align: left;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    background: var(--accent-orange);
    border: 3px solid #333;
    border-radius: 50%;
    position: absolute;
    top: 5px;
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -14px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -14px;
}

/* Contact Form - Glassmorphism */
.contact-section {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 12, 0.62);
    pointer-events: none;
    z-index: 0;
}

.contact-section>.container {
    position: relative;
    z-index: 1;
}

.glass-form {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    color: white;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    border-color: var(--accent-mustard);
    color: white;
}

/* Footer */
footer {
    background: var(--primary-green);
    color: var(--text-light);
    padding: 80px 0 20px;
}

.social-icons a {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-right: 20px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent-mustard);
}

/* Reszponzivitás */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 50px !important;
        padding-right: 20px !important;
        text-align: left !important;
        float: none !important;
    }

    .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot,
    .timeline-item:nth-child(odd) .timeline-dot {
        left: 8px !important;
        right: auto !important;
    }
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-green);
    color: white;
    padding: 20px 0;
    z-index: 10000;
    border-top: 3px solid var(--accent-mustard);
    display: none;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Custom Modal Scrollbar */
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.privacy-link {
    color: var(--accent-mustard);
    text-decoration: underline;
    cursor: pointer;
}

/* Team Kártyák (Kapcsolat szekció) */
.team-card {
    background: rgba(15, 30, 18, 0.55);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.team-img-wrapper {
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s;
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.06);
}

.team-info {
    padding: 18px 20px 20px;
    color: white;
    background: rgba(10, 22, 14, 0.55);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.team-info h5 {
    font-size: 1.1rem;
    color: white;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.team-contact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-mustard);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.team-contact:hover {
    opacity: 0.8;
    color: var(--accent-mustard);
}

/* Contact Badge-ek */
.contact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 8px 16px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.contact-badge i {
    color: var(--accent-mustard);
    font-size: 1rem;
}

/* ============================================
   Uploadcare Widget stílusok
   ============================================ */
.uploadcare--widget__button {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 10px !important;
    color: white !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    padding: 10px 18px !important;
    transition: background 0.2s !important;
}

.uploadcare--widget__button:hover {
    background: rgba(227, 176, 75, 0.25) !important;
    border-color: var(--accent-mustard) !important;
}

.uploadcare--widget__text {
    color: rgba(255, 255, 255, 0.7) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.82rem !important;
}

/* ============================================
   Köszönő Modal (Thank You)
   ============================================ */
.ty-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 12, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.ty-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.ty-modal {
    background: #fff;
    border-radius: 24px;
    padding: 56px 48px 48px;
    text-align: center;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    transform: translateY(40px) scale(0.95);
    transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s ease;
    opacity: 0;
}

.ty-overlay.active .ty-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Animated checkmark */
.ty-icon-wrapper {
    margin-bottom: 28px;
}

.ty-checkmark {
    width: 80px;
    height: 80px;
}

.ty-checkmark-circle {
    stroke: var(--primary-green);
    stroke-width: 2.5;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: ty-circle 0.7s ease-in-out 0.2s forwards;
}

.ty-checkmark-check {
    stroke: var(--accent-mustard);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: ty-check 0.45s ease-in-out 0.8s forwards;
}

@keyframes ty-circle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes ty-check {
    to {
        stroke-dashoffset: 0;
    }
}

.ty-title {
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 14px;
}

.ty-msg {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.ty-close-btn {
    background: linear-gradient(135deg, var(--primary-green), #2d5240);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 6px 20px rgba(27, 48, 34, 0.3);
}

.ty-close-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(27, 48, 34, 0.4);
}