@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

:root {
    --bg: #ffffff;
    --text: #2c2c2c;
    --muted: #6c757d;
    --brand-purple: #5a189a;
    --brand-purple-dark: #3a0f63;
    --brand-orange: #ff6600;
    --brand-yellow: #ffde00;
    
    /* Színátmenetek */
    --accent-gradient: linear-gradient(135deg, var(--brand-purple), var(--brand-orange));
    --accent-gradient-hover: linear-gradient(135deg, var(--brand-orange), var(--brand-purple));
    --text-gradient: linear-gradient(90deg, var(--brand-yellow), var(--brand-orange));

    /* Hátterek */
    --bg-light-purple: #f8f5fd; 
    
    /* Egyéb */
    --border: #e9ecef;
    --input-border: #dce0e4;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 24px rgba(90, 24, 154, 0.12);
    --shadow-lg: 0 15px 40px rgba(90, 24, 154, 0.2);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--body-font);
    margin: 0;
    padding: 0;
    padding-top: 100px;
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    font-weight: 400;
}

h1, h2, h3, h4 { color: var(--text); font-weight: 800; letter-spacing: -0.5px; }

/* === HEADER & NAV === */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%; z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100px;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.header .nav {
    display: flex; justify-content: space-between; align-items: center; height: 100%;
}

.header .logo img {
    height: 150px;
    transition: transform 0.3s ease;
}
.header .logo:hover img { transform: scale(1.05); }

.header .nav-links { display: flex; list-style: none; margin: 0; padding: 0; }
.header .nav-links a {
    color: var(--text); text-decoration: none; margin-left: 30px;
    font-weight: 600; font-size: 16px; transition: color 0.3s ease;
    position: relative;
}

.header .nav-links a:hover { color: var(--brand-purple); }
.header .nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background: var(--accent-gradient);
    transition: width 0.3s ease;
}
.header .nav-links a:hover::after { width: 100%; }

.header .nav-links .daytime-link { color: var(--brand-purple) !important; font-weight: 800; }

/* === HERO SECTION === */
.hero-section {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 140px 0 100px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)), url('images/hero_background.jpg');
    background-size: cover; background-position: center; background-repeat: no-repeat;
    color: #ffffff; position: relative;
}

.hero-section h1 {
    font-size: 48px; font-weight: 900; margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    color: white;
}

.hero-section .hero-subheading {
    font-size: 22px; font-weight: 500; color: rgba(255,255,255,0.95);
    margin: 0 auto 40px auto; max-width: 600px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* === GOMBOK === */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    background-image: var(--accent-gradient); color: #ffffff;
    padding: 16px 32px; text-decoration: none; border-radius: 50px;
    font-size: 18px; font-weight: 700; border: none; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-md);
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg);
    background-image: var(--accent-gradient-hover);
}

.btn-success {
    background-image: linear-gradient(to right, #1aa260, #2ecc71);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    color: white; border: none; width: 100%;
}
.btn-success:hover { transform: translateY(-2px); }
.btn-block { width: 100%; display: block; }

/* === SZEKCIÓK === */
.section { padding: 80px 0; position: relative; }
.section h2 { font-size: 36px; text-align: center; margin-bottom: 40px; color: var(--brand-purple-dark); }
.section-light-bg {
    background-color: var(--bg-light-purple);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* === EGYSZERŰSÍTETT KALKULÁTOR (JAVÍTVA) === */
.calculator-form {
    max-width: 650px; margin: 0 auto;
    background: white; padding: 40px; border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--muted); }

/* JAVÍTÁS: Font-size 16px a zoom elkerülése miatt, és fix box-sizing */
.calculator-form input, .calculator-form select {
    width: 100%; 
    padding: 14px;
    border: 1px solid var(--input-border); 
    border-radius: 10px;
    background-color: #fcfcfd; 
    color: var(--text);
    font-size: 16px; /* Fontos: iOS zoom fix */
    font-family: var(--body-font);
    transition: all 0.3s;
    box-sizing: border-box; /* Fontos: padding ne nyomja szét */
    appearance: none; /* iOS alapértelmezett stílus törlése */
    -webkit-appearance: none;
}

.calculator-form input:focus {
    border-color: var(--brand-purple); outline: none;
    background-color: #fff; box-shadow: 0 0 0 4px rgba(90, 24, 154, 0.1);
}

.input-wrapper { position: relative; }
#origin { padding-right: 50px; }

.gps-btn {
    position: absolute; right: 10px; top: 42px;
    background: none; border: none; color: var(--brand-purple);
    cursor: pointer; font-size: 20px; padding: 5px;
    transition: transform 0.2s; z-index: 10;
}
.gps-btn:hover { transform: scale(1.2); color: var(--brand-orange); }

/* Eredmény doboz */
.calculator-result {
    margin-top: 30px; padding: 25px;
    border-radius: 16px; background-color: #f8f9fa;
    text-align: center; border: 1px solid var(--border);
    animation: fadeIn 0.5s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.result-price-label { font-size: 14px; font-weight: 600; margin: 0; text-transform: uppercase; color: var(--muted); }
.result-price {
    font-family: var(--heading-font); font-size: 42px; font-weight: 800;
    margin-top: 5px; margin-bottom: 15px; color: var(--brand-purple);
    background-image: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.route-info { font-size: 15px; font-weight: 600; margin-bottom: 15px; text-align: left; }
#map { height: 350px; width: 100%; margin-top: 15px; border-radius: 12px; border: 1px solid var(--border); }

/* === SZÖVEGES RÉSZ === */
.intro-lead { font-size: 1.3em; font-weight: 500; text-align: center; max-width: 800px; margin: 0 auto 40px; color: var(--text); }

.text-gradient { background-image: var(--text-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }

.highlight-box-purple {
    background-color: white; border-left: 5px solid var(--brand-purple);
    padding: 25px; margin: 35px 0; border-radius: 0 16px 16px 0;
    box-shadow: var(--shadow-sm);
}
.highlight-badge { background-color: var(--brand-orange); color: white; padding: 4px 10px; border-radius: 6px; font-weight: 800; }

.cta-phone-large {
    display: inline-block; font-size: 2.2em; font-weight: 900;
    color: var(--brand-purple); text-decoration: none; transition: all 0.3s;
}
.cta-phone-large:hover { color: var(--brand-orange); transform: scale(1.05); }

/* === NAVIGÁCIÓS CSEMPÉK === */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.nav-tile {
    background-color: white;
    border-radius: 20px; padding: 35px 25px;
    text-align: center; text-decoration: none; color: var(--text);
    transition: all 0.3s ease; border: 1px solid rgba(0,0,0,0.05);
    display: flex; flex-direction: column; align-items: center;
    box-shadow: var(--shadow-md);
}
.nav-tile:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.nav-tile .icon { font-size: 40px; margin-bottom: 20px; display: block; background: none; -webkit-text-fill-color: initial; color: var(--brand-yellow); }
.nav-tile:hover .icon { color: var(--brand-purple); transform: scale(1.1); transition: 0.3s; }
.nav-tile h3 { color: var(--brand-purple-dark); font-size: 22px; margin-bottom: 10px; }
.nav-tile p { color: var(--muted); margin-bottom: 25px; }
.nav-tile .btn {
    padding: 10px 25px; font-size: 14px;
    background-image: none; background-color: #f0f2f5; color: var(--brand-purple-dark);
    box-shadow: none;
}
.nav-tile:hover .btn { background-image: var(--accent-gradient); color: white; }

/* === KAPCSOLAT KÁRTYÁK === */
.contact-wrapper { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.contact-card, .social-card {
    background: #fff; border-radius: 20px; padding: 35px;
    box-shadow: var(--shadow-md); flex: 1; min-width: 300px; max-width: 500px;
    border: none; transition: all 0.3s ease;
}
.contact-card:hover, .social-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.contact-item { display: flex; align-items: center; margin-bottom: 25px; }
.contact-icon-circle {
    width: 60px; height: 60px; background-image: var(--accent-gradient);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-right: 20px; color: #fff; font-size: 24px; flex-shrink: 0;
}
.contact-text .label { font-size: 14px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.contact-text a { text-decoration: none; color: var(--brand-purple-dark); font-weight: 800; font-size: 20px; }
.contact-text a:hover { color: var(--brand-orange); }

.social-card h3 { color: var(--brand-purple); }
.social-icons { display: flex; gap: 15px; justify-content: center; margin-top: 20px; }
.social-btn {
    width: 55px; height: 55px; background-color: #f0f2f5; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    font-size: 24px; transition: all 0.3s ease; color: var(--brand-purple-dark);
}
.social-btn:hover { background-image: var(--accent-gradient); color: white; transform: scale(1.1) rotate(5deg); box-shadow: var(--shadow-md); }

/* === FOOTER === */
.footer { background-color: #1a1a1a; padding: 50px 0; text-align: center; font-size: 14px; color: #aaa; }
.footer strong { color: white; font-size: 16px; }
.footer a { color: #aaa; text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: var(--brand-yellow); }
.barion-logos img { height: 25px; margin-top: 20px; opacity: 0.7; }

/* === MOBIL & EGYÉB === */
.hamburger-menu { display: none; cursor: pointer; z-index: 1002; }
.hamburger-menu span { display: block; width: 30px; height: 3px; margin: 6px auto; background-color: var(--brand-purple-dark); transition: all 0.3s; }
.hamburger-menu.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.sticky-mobile-call {
    display: none; position: fixed; bottom: 0; left: 0; width: 100%;
    background-color: #ffffff; padding: 15px; box-shadow: 0 -5px 20px rgba(0,0,0,0.1); z-index: 9999;
}
.sticky-mobile-call .btn { width: 100%; padding: 18px; font-size: 20px; box-shadow: var(--shadow-md); }
.mobile-break { display: none; }

@media (max-width: 768px) {
    body { padding-top: 80px; padding-bottom: 80px; }
    .header { height: 80px; }
    .header .logo img { height: 90px; }
    .header .nav-links {
        display: none; flex-direction: column; position: fixed; top: 80px; left: 0; width: 100%;
        background-color: white; padding: 30px 0; box-shadow: var(--shadow-md);
    }
    .header .nav-links.active { display: flex; }
    .header .nav-links a { margin: 0; padding: 15px; justify-content: center; display: flex; font-size: 18px; }
    .hamburger-menu { display: block; }
    
    .hero-section { padding: 60px 0 80px; }
    .hero-section h1 { font-size: 36px; }
    .hero-section .hero-subheading { font-size: 18px; }
    
    .section h2 { font-size: 28px; }
    .calculator-form { padding: 25px; }
    #origin { padding-right: 45px; }
    
    .cta-phone-large { font-size: 1.8em; }
    .sticky-mobile-call { display: block; }
    .mobile-break { display: inline; }
}

/* === MODAL JAVÍTÁSA (ZOOM és UGRÁLÁS ELLEN) === */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 10001; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow-y: auto; /* Görgetés engedélyezése */
    -webkit-overflow-scrolling: touch; /* Sima görgetés iOS-en */
    background-color: rgba(0,0,0,0.5); 
    backdrop-filter: blur(5px); 
}

.modal-content { 
    background-color: #fff; 
    margin: 5% auto 10% auto; /* Több hely alul a billentyűzetnek */
    padding: 30px; 
    border-radius: 20px; 
    width: 90%; 
    max-width: 500px; 
    box-shadow: var(--shadow-lg); 
}

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.modal-header h3 { margin: 0; color: var(--brand-purple-dark); }
.close { color: var(--muted); font-size: 30px; cursor: pointer; }

/* JAVÍTÁS: 16px font méret a modal inputokon is */
.modal input, .modal select { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid var(--input-border); 
    border-radius: 10px; 
    margin-bottom: 15px; 
    font-size: 16px; /* ZOOM fix */
    font-family: var(--body-font);
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.modal .btn-group { display: flex; gap: 15px; margin-top: 20px; }
.modal .btn-secondary { background: #f0f2f5; color: var(--text); box-shadow: none; width: 100%; border: 1px solid #ddd; padding: 16px; border-radius: 50px; font-weight: 700; cursor: pointer;}
.modal .btn-secondary:hover { background: #e2e6ea; }
.modal-checkbox { display: flex; align-items: flex-start; margin-bottom: 15px; font-size: 14px; }
.modal-checkbox input { width: auto; margin-right: 10px; margin-top: 5px; }
.modal-checkbox a { color: var(--brand-purple); font-weight: 600; }
/* === TRUSTINDEX WIDGET HELYE === */
.trustindex-container {
    margin-top: 30px;
    margin-bottom: 20px;
    width: 100%;
    display: block;
    clear: both;
}