/* Import a modern, clean font from Google */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

/* Define our color palette */
:root {
    --primary-blue: #38bdf8;   /* Vibrant light blue */
    --light-blue: #1e293b;     /* Deep slate for hover states */
    --dark-text: #f8fafc;      /* Soft off-white */
    --bg-color: #0f172a;       /* Deep slate background */
    --white: #1e293b;          /* Lighter slate for cards/navbar */
    --border-color: #334155;   /* Divider color */
    --muted-text: #94a3b8;     /* Gray for secondary text */
}

html {
    scroll-behavior: smooth;
}

/* Reset basic spacing */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--dark-text);
    line-height: 1.6;
}

/* --- TOP NAVIGATION BAR (STICKY & SHRINK) --- */
.top-navbar {
    background-color: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    padding: 1.2rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--border-color);
}

/* Görgetéskor ez a stílus lép életbe */
.top-navbar.scrolled {
    padding: 0.6rem 1.5rem;
    background-color: rgba(15, 23, 42, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: 1px;
    transition: font-size 0.3s ease;
}

.top-navbar.scrolled .brand-name {
    font-size: 1.3rem;
}

.nav-row {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.nav-button {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-button:hover {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

.highlight-button {
    background-color: var(--primary-blue);
    color: #0f172a;
    font-weight: 700;
    padding: 0.6rem 1.4rem;
    box-shadow: 0 4px 10px rgba(56, 189, 248, 0.25);
}

.highlight-button:hover {
    background-color: #7dd3fc;
    color: #0f172a;
}

.top-navbar.scrolled .highlight-button {
    padding: 0.4rem 1.1rem;
    font-size: 0.88rem;
}

/* --- HEADER / HERO SECTION --- */
header {
    background-image: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)), url('hero_bg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    text-align: center;
    padding: 7rem 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

header p {
    font-size: 1.2rem;
    font-weight: 300;
}

/* Section spacing */
section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1rem;
    scroll-margin-top: 100px;
}

h2 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* --- FORM & INPUTS --- */
form {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
}

label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-block;
    color: var(--dark-text);
}

input {
    width: 100%;
    padding: 0.85rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--dark-text);
    background-color: var(--bg-color);
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

button {
    width: 100%;
    background-color: var(--primary-blue);
    color: #0f172a;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

button:hover {
    background-color: #7dd3fc;
}

/* --- MAP & CONTROLS --- */
#map {
    height: 300px;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    z-index: 1; 
}

.secondary-btn {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 0.6rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    margin-top: 0;
}

.secondary-btn:hover {
    background-color: var(--primary-blue);
    color: #0f172a;
}

.submit-btn {
    margin-top: 1.5rem;
}

.map-controls {
    display: flex;
    justify-content: flex-start;
}

.location-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.location-group input {
    width: 100%;
    margin-bottom: 0;
}

#open-map-btn, #open-calendar-btn {
    width: 100%;
    padding: 0.85rem;
    margin: 0;
    display: flex;
    align-items: center; 
    justify-content: center;
}

.hidden-map {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 1rem;
    border: 1px solid transparent;
    margin-bottom: 0;
    border-radius: 8px;
    background-color: var(--bg-color);
    transition: all 0.4s ease-in-out;
}

.show-map {
    max-height: 650px;
    opacity: 1;
    padding: 1rem; 
    border-color: var(--border-color); 
    margin-bottom: 1.5rem;
}

.confirm-btn {
    background-color: #10b981;
    color: white;
    margin-top: 0;
}

.confirm-btn:hover {
    background-color: #059669;
}

/* --- AUTOCOMPLETE DROPDOWN --- */
#location-group {
    position: relative;
}

.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin-top: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    display: none;
}

.suggestions-list li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    text-align: left;
    color: var(--dark-text);
    background-color: var(--white);
}

.suggestions-list li:last-child {
    border-bottom: none;
}

.suggestions-list li:hover {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

/* --- CALENDAR & TIME SELECTOR --- */
.calendar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.calendar-wrapper .confirm-btn {
    width: 100%;
    margin-top: 1rem;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.time-inputs select {
    padding: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--dark-text);
    background-color: var(--bg-color);
    cursor: pointer;
    flex-grow: 1;
    transition: all 0.3s ease;
}

.time-inputs select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.time-inputs span {
    font-weight: 600;
    color: var(--dark-text);
}

/* --- HOGYAN DOLGOZUNK? TILES --- */
.section-title {
    color: var(--dark-text);
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
}

.service-tiles {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 1.5rem; 
}

.service-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 650px;
    width: 100%;
    background-color: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    text-align: center; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.tile-icon {
    font-size: 3.5rem;
    line-height: 1;
    margin: 0 auto 1rem auto; 
    text-align: center;
    display: block;
}

.tile-title {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem auto; 
    text-align: center;
    display: block;
}

.tile-text {
    color: var(--muted-text); 
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 auto; 
    text-align: center;
    display: block;
}

/* --- VESZÉLYEK STYLES --- */
.hazard-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    margin: 0 auto 2rem auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.hazard-intro {
    color: var(--muted-text);
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 2rem;
}

.hazard-box {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hazard-item {
    color: var(--muted-text);
    font-size: 1.05rem;
    line-height: 1.6;
}

.hazard-red {
    color: #ef4444;
    font-weight: 700;
}

/* --- SEO ACCORDION / DETAILS SECTION --- */
.seo-section {
    max-width: 800px;
    margin: 4rem auto;
}

.seo-lead {
    text-align: center;
    color: var(--muted-text);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.seo-details {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 1.2rem;
    padding: 1.2rem;
    transition: all 0.3s ease;
}

.seo-details[open] {
    border-color: var(--primary-blue);
}

.seo-summary {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-text);
    cursor: pointer;
    outline: none;
    user-select: none;
}

.seo-summary:hover {
    color: var(--primary-blue);
}

.seo-content {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--muted-text);
}

.seo-content p {
    margin-bottom: 1rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag-cloud span {
    background-color: var(--bg-color);
    color: var(--primary-blue);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- MODAL POP-UP --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    border: 1px solid var(--border-color);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-modal-btn:hover {
    color: #ef4444;
}

.modal-content h2 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    text-align: left;
}

.modal-content h3 {
    font-size: 1.1rem;
    color: var(--dark-text);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-content p {
    color: var(--muted-text);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- FOOTER & CONTACT CARDS --- */
.direct-contact-wrapper {
    text-align: center;
    margin-bottom: 2.5rem;
}

.direct-contact-wrapper h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.direct-contact-wrapper p {
    color: var(--muted-text);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-card {
    background-color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 230px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.contact-card .icon {
    font-size: 1.8rem;
}

.contact-card a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #7dd3fc;
}

.contact-divider {
    border: none;
    height: 1px;
    background-color: var(--border-color);
    margin: 2.5rem auto;
    width: 60%;
}

.site-footer {
    background-color: #0b1120;
    color: var(--dark-text);
    text-align: center;
    padding: 2.5rem 1rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.site-footer p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted-text);
}

/* --- PRICE BADGE --- */
.price-badge {
    display: inline-block;
    background-color: #10b981;
    color: #ffffff;
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    border: 2px solid #10b981;
    cursor: pointer;
    transition: all 0.2s ease;
}

.price-badge:hover {
    background-color: #059669;
    border-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: #ffffff;
}

.price-badge strong {
    font-size: 1.25rem;
}

/* --- MEDIA & PROMO BOX --- */
.media-promo-box {
    text-align: center;
    margin: 3rem auto 0 auto;
    max-width: 650px;
    width: 100%;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.media-promo-box > p {
    color: var(--dark-text);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.demo-video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background-color: #000000;
    margin-bottom: 1.5rem;
}

.tiktok-sublink-wrapper {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.tiktok-subtext {
    color: var(--muted-text);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.tiktok-btn {
    display: inline-block;
    background-color: #ff0050;
    color: #ffffff;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.tiktok-btn:hover {
    background-color: #d40042;
    transform: translateY(-3px);
}

/* --- MOBIL NÉZET (RESPONSIVE) --- */
@media (max-width: 768px) {
    .top-navbar {
        padding: 0.8rem 1rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 0.8rem;
    }

    .brand-name {
        font-size: 1.4rem;
    }

    .nav-row {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 0.3rem;
    }

    .nav-button {
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
    }

    .highlight-button {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }

    .contact-cards {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-card {
        width: 100%;
        min-width: auto;
        padding: 1.2rem;
    }
}