/* --- HERO SZEKCIÓ --- */
.hero {
    padding: 160px 20px 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 70vh;
    background-color: #ffffff;
}

.hero-content { max-width: 900px; }

.hero h1 {
    font-family: 'Playfair Display', serif;
    /* Folyékony tipográfia: Min: 2.5rem, Skálázás: 6vw, Max: 5rem */
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #000000;
    margin-bottom: 20px;
}

.hero p {
    font-family: 'Playfair Display', serif;
    /* Finomabb skálázás a bevezető szöveghez */
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #333333;
    margin-bottom: 50px;
}

/* --- KIKÉNYSZERÍTETT PRÉMIUM GOMB --- */
.btn-primary, .submit-btn {
    display: inline-block;
    background-color: #1c3b2b !important; 
    color: #d1d6b6 !important; 
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(0.9rem, 1.5vw, 1rem); /* Gombok finom méretezése */
    padding: 16px 40px;
    border: 2px solid #1c3b2b !important;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary:hover, .submit-btn:hover {
    background-color: #d1d6b6 !important; 
    color: #1c3b2b !important; 
    border-color: #1c3b2b !important;
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(28, 59, 43, 0.15); 
}

/* --- MIKRÓ-ANIMÁCIÓK --- */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpAnim 0.8s ease forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUpAnim {
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .fade-up {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* --- TERMÉKEK SZEKCIÓ (TÖKÉLETESÍTETT) --- */
.products { padding: 80px 20px; background-color: #ffffff; }
.products-hero { padding-top: 140px !important; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { 
    /* Fix 2.5rem helyett rugalmas méretezés */
    font-size: clamp(2rem, 5vw, 3rem); 
    margin-bottom: 15px; 
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.product-image-placeholder {
    width: 100%;
    height: 260px; 
    background-color: #ffffff;
    border: none !important; 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px; 
    padding: 10px; 
}

.product-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image-placeholder img { 
    transform: scale(1.03); 
}

.product-card h3 {
    /* 1.15rem helyett fluid skálázás a termékneveknek */
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-align: center;
    color: #000000;
    line-height: 1.4; 
    max-width: 220px; 
    margin: 0 auto;
}

@media (min-width: 768px) { 
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; } 
}

@media (min-width: 1024px) { 
    .product-grid { 
        grid-template-columns: repeat(4, 1fr) !important; 
        gap: 20px !important; 
    } 
}

/* --- RÓLUNK ÉS KAPCSOLAT --- */
.about-hero { padding: 160px 20px 60px; text-align: center; }
.about-hero h1 { 
    /* Fix 3.5rem helyett dinamikus címsor */
    font-size: clamp(2.5rem, 6vw, 4.5rem); 
    margin-bottom: 20px; 
}

.about-grid, .contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-section { padding: 80px 20px 100px; }
.contact-grid { padding: 50px; border: 1px solid #d1d6b6 !important; }
.about-card { padding: 50px 40px; border: 1px solid #d1d6b6 !important; text-align: left; }

.info-item { margin-bottom: 30px; }
.info-item strong { 
    display: block; 
    color: #000000; 
    font-size: clamp(0.85rem, 1.5vw, 0.95rem); 
    text-transform: uppercase; 
    margin-bottom: 8px; 
}
.info-item p, .info-item a { 
    color: #1c3b2b !important; 
    font-size: clamp(1rem, 2vw, 1.15rem); 
    font-weight: 700; 
}

.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label { 
    font-weight: 700; 
    font-family: 'Playfair Display', serif; 
    font-size: clamp(0.95rem, 1.5vw, 1.1rem); 
}

.form-group input, .form-group textarea {
    font-family: 'Inter', sans-serif;
    width: 100%;
    padding: 15px;
    border: 1px solid #d1d6b6 !important; 
    background-color: #ffffff;
    /* BIZTONSÁGI SZABÁLY: A form elemeknek minimum 16px (1rem) méretűnek KELL lenniük, különben az iOS eszközök automatikusan ráközelítenek (zoomolnak) a kijelzőre fókuszáláskor! */
    font-size: max(16px, 1rem); 
    transition: border-color 0.3s ease, box-shadow 0.3s ease; 
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus, .form-group textarea:focus { 
    outline: none; 
    border-color: #1c3b2b !important; 
    box-shadow: 0 0 0 3px rgba(28, 59, 43, 0.15);
}

@media (min-width: 768px) { 
    .about-grid { grid-template-columns: repeat(2, 1fr); } 
    .contact-grid { grid-template-columns: 1fr 1.5fr; }
}

/* --- RÓLUNK KÁRTYÁK 3D MEGFORDULÓ ÉS ELEMELKEDŐ ANIMÁCIÓJA --- */

/* Létrehozzuk a 3D teret a kártyák szülő elemének */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    perspective: 1000px; /* Ez adja a 3D mélységérzetet a pördüléshez */
}

@media (min-width: 768px) { 
    .about-grid { grid-template-columns: repeat(2, 1fr); } 
}

/* Alap kártya stílus és a simító animáció beállítása */
.about-card {
    position: relative;
    padding: 50px 40px;
    border: 1px solid #d1d6b6 !important;
    background-color: #ffffff; /* Kezdetben fehér háttér */
    text-align: left;
    border-radius: 6px;
    
    /* 3D és transzformációs alapok */
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), 
                background-color 0.6s ease, 
                box-shadow 0.6s ease, 
                border-color 0.6s ease;
    
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

/* Szövegek és címsorok alap színe (fekete/sötét) */
.about-card h3,
.about-card p {
    transition: color 0.4s ease;
}

.about-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1c3b2b; /* Kezdetben Sabai zöld a cím */
}

.about-card p {
    color: #333333; /* Kezdetben sötétszürke a szöveg */
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- RÓLUNK KÁRTYÁK VAJSIMA 3D ANIMÁCIÓJA --- */

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    perspective: 1200px;
}

@media (min-width: 768px) { 
    .about-grid { grid-template-columns: repeat(2, 1fr); } 
}

.about-card {
    position: relative;
    padding: 50px 40px;
    border: 1px solid #d1d6b6 !important;
    background-color: #ffffff;
    text-align: left;
    border-radius: 6px;
    
    /* 1. HARDVERES GYORSÍTÁS KÉNYSZERÍTÉSE A BÖNGÉSZŐNEK */
    transform: translateZ(0);
    will-change: transform, background-color, box-shadow;
    backface-visibility: hidden;
    
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), 
                background-color 0.4s ease, 
                box-shadow 0.4s ease, 
                border-color 0.4s ease;
    
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.about-card h3,
.about-card p {
    transition: color 0.3s ease;
}

.about-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1c3b2b;
}

.about-card p {
    color: #333333;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- HOVER ÁLLAPOT (A 360 fok helyett elegáns, stabil dőlés + emelkedés) --- */
.about-card:hover {
    /* Enyhe Y tengelyes forgatás (pl. 8-10 fok vagy tiszta emelkedés scale-nel) 
       A 360 fok helyett a megdőlés sokkal simább és prémiumabb hatást kelt! */
    transform: translateY(-12px) scale(1.02) rotateY(6deg);
    
    background-color: #1c3b2b !important;
    border-color: #d1d6b6 !important;
    box-shadow: 0 25px 50px rgba(28, 59, 43, 0.35);
}

.about-card:hover h3 {
    color: #d1d6b6 !important;
}

.about-card:hover p {
    color: #d1d6b6 !important;
    opacity: 0.95;
}