/*******************************************************
*
* Új, modern stíluslap a Sümeghi Magánrendelő számára
* Végleges, javított verzió: 2025.09.22
*
********************************************************/

/* === 1. DIZÁJN RENDSZER (SZÍNEK ÉS VÁLTOZÓK) === */
:root {
    --primary-color: #005A8D; /* Sötét, professzionális kék */
    --accent-color: #007BFF;  /* Élénk, kattintható kék */
    --text-color: #333333;    /* Sötétszürke a szövegeknek */
    --light-gray-bg: #f8f9fa; /* Világosszürke háttér */
    --white-color: #ffffff;
    --border-color: #dee2e6;
}

/* === 2. GLOBÁLIS RESET ÉS ALAPBEÁLLÍTÁSOK === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
    word-break: break-word; 
}

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

/* === 3. TIPOGRÁFIAI HIERARCHIA === */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 0.75em;
}
h1 { font-size: 3.2rem; }
h2 { font-size: 2.4rem; text-align: center; margin-bottom: 1.5em; }
h3 { font-size: 1.5rem; color: var(--text-color); }
h4 { font-size: 1.2rem; color: var(--text-color); }
p { margin-bottom: 1.5em; }
p:last-child { margin-bottom: 0; }
a { color: var(--primary-color); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; color: var(--primary-color); }

/* === 4. KOMPONENSEK ÉS SZEKCIÓK === */

/* --- FEJLÉC --- */
.site-header { background-color: var(--white-color); padding: 10px 0; box-shadow: 0 2px 5px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.main-nav { display: flex; justify-content: space-between; align-items: center; }
.header-logo img { max-height: 60px; }
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { color: var(--text-color); font-weight: 600; font-size: 16px; padding: 5px 0; position: relative; transition: color 0.3s ease; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -2px; left: 0; background-color: var(--primary-color); transition: width 0.3s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.cta-button { background-color: var(--accent-color); color: var(--white-color); padding: 10px 20px; border-radius: 5px; font-weight: 700; transition: background-color 0.3s ease; border: none; cursor: pointer; white-space: nowrap; }
.cta-button:hover { background-color: var(--primary-color); color: var(--white-color); text-decoration: none; }
.mobile-menu-toggle { display: none; cursor: pointer; width: 30px; height: 22px; flex-direction: column; justify-content: space-between; }
.mobile-menu-toggle .bar { width: 100%; height: 3px; background-color: var(--text-color); border-radius: 2px; transition: all 0.3s ease; }
.mobile-nav-menu { display: none; flex-direction: column; background-color: #f9f9f9; position: fixed; top: 80px; left: 0; width: 100%; box-shadow: 0 4px 6px rgba(0,0,0,0.1); z-index: 999; }
.mobile-nav-menu a { padding: 15px 20px; color: var(--text-color); border-bottom: 1px solid #eee; }
.cta-button-mobile { text-align: center; margin: 10px 20px; background-color: var(--accent-color); color: var(--white-color) !important; border-radius: 5px; }

/* --- HERO SZEKCIÓ --- */
.hero { padding: 60px 20px; min-height: 60vh; background-image: url('../img/slide-five.webp'); background-size: cover; background-position: center; background-attachment: fixed; position: relative; display: flex; align-items: center; justify-content: center; }
.hero-content { background-color: rgba(0, 42, 72, 0.75); padding: 40px; border-radius: 10px; max-width: 850px; text-align: center; color: var(--white-color); box-shadow: 0 5px 25px rgba(0,0,0,0.2); }
.hero-content h1 { color: var(--white-color); }
.hero-content p { font-size: 1.3rem; font-weight: 300; margin-bottom: 1.5em; }
.hero-cta-button { background-color: var(--accent-color); color: var(--white-color); padding: 15px 30px; border-radius: 5px; font-size: 1.1rem; text-transform: uppercase; white-space: nowrap; }
.hero-cta-button:hover { background-color: #0069d9; transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,0.3); text-decoration: none; }

/* --- TARTALMI SZEKCIÓK --- */
.intro-section, .services-section, .team-section, .contact-section, .content-section { padding: 80px 0; }
.intro-section p, .intro-section .section-subtitle { max-width: 800px; margin-left: auto; margin-right: auto; }
.intro-section .section-subtitle { font-size: 1.2rem; color: #555; margin-top: -1.5em; margin-bottom: 2em; font-weight: 400; }

/* --- SZOLGÁLTATÁSOK --- */
.services-section { background-color: var(--light-gray-bg); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.service-card { background-color: var(--white-color); border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: all 0.3s ease; text-align: center; overflow: hidden; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.service-card-image img { width: 100%; height: auto; display: block; }
.service-card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.service-card-content p { flex-grow: 1; font-size: 1rem; color: #555; }
.service-card-content .card-link { font-size: 1rem; }

/* --- RÓLUNK --- */
.team-members-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.team-member-card { text-align: center; }
.team-member-photo { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; margin-bottom: 25px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.team-member-info h3 { margin-bottom: 0.25em; }
.team-member-info h4 { color: #555; font-weight: 400; margin-bottom: 1em; font-size: 1.1rem; }

/* --- KAPCSOLAT --- */
.contact-section { background-color: var(--light-gray-bg); border-top: 1px solid var(--border-color); }
.contact-page-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: flex-start; }
.info-block { border-bottom: 1px solid var(--border-color); padding-bottom: 30px; margin-bottom: 30px; }
.info-block:last-child { border-bottom: none; margin-bottom: 0; }
.info-block h3 { margin-bottom: 15px; }
.info-block p { margin-bottom: 10px; line-height: 1.8; }
.contact-page-visuals .building-photo { margin-top: 30px; }
.contact-page-visuals .building-photo img { width: 100%; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.contact-page-visuals .building-photo .caption { text-align: center; font-size: 0.9rem; color: #666; margin-top: 15px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; border-radius: 8px; }

/* --- ALOLDAL ELEMEK --- */
.page-header { background-color: var(--light-gray-bg); padding: 50px 0; border-bottom: 1px solid var(--border-color); text-align: center; }
.page-header h1 { margin: 0; }
.details-card { background-color: var(--white-color); border: 1px solid var(--border-color); border-radius: 8px; padding: 40px; margin-bottom: 40px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.details-card:last-child { margin-bottom: 0; }
.details-card h2 { text-align: left; margin-top: 0; }
.details-card .card-subtitle { font-style: italic; color: #555; margin-top: -1em; margin-bottom: 2em; font-size: 1.1rem; font-weight: 400; }
.details-card h3 { margin-top: 2em; margin-bottom: 1em; border-top: 1px solid var(--border-color); padding-top: 1.5em; }
.details-card ul { list-style-position: outside; margin-left: 20px; margin-bottom: 1.5em; }
.details-card ul li { margin-bottom: 0.5em; }
.inline-details-link { font-size: 0.85rem; padding: 3px 8px; background-color: var(--light-gray-bg); border: 1px solid var(--border-color); border-radius: 12px; color: var(--primary-color); transition: all 0.2s ease; }
.inline-details-link:hover { background-color: var(--primary-color); color: var(--white-color); border-color: var(--primary-color); text-decoration: none; }
.preparation-notice { background-color: #e7f5ff; border: 1px solid #b3e0ff; border-left: 5px solid var(--accent-color); border-radius: 8px; padding: 25px; margin-top: 40px; }
.preparation-notice h4 { color: var(--primary-color); margin-top: 0; margin-bottom: 15px; }
.content-with-image-layout { display: flex; gap: 40px; align-items: flex-start; }
.content-with-image-layout .text-column { flex: 1; }
.content-with-image-layout .image-column { flex-basis: 400px; flex-shrink: 0; position: sticky; top: 120px; }
.content-with-image-layout .image-column img { width: 100%; border-radius: 8px; box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.page-intro-image { max-width: 900px; margin: 30px auto 60px auto; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.page-intro-image img { width: 100%; display: block; }
blockquote.formula { background: var(--light-gray-bg); border-left: 5px solid var(--primary-color); padding: 20px; margin: 1em 0; font-family: monospace; font-size: 1.1rem; }

/* --- EGYÉB KOMPONENSEK --- */
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 3em; }
.testimonial-card { background-color: var(--white-color); border: 1px solid var(--border-color); border-left: 5px solid var(--primary-color); border-radius: 8px; padding: 30px; margin: 0; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.testimonial-card p { font-style: italic; color: #555; font-size: 1.05rem; }
.testimonial-card p::before { content: '“'; font-size: 3rem; color: var(--primary-color); opacity: 0.2; float: left; margin-right: 10px; line-height: 1; }
.testimonial-card footer { font-style: normal; font-weight: 700; color: var(--primary-color); text-align: right; }
.cta-section { background-color: var(--primary-color); color: var(--white-color); padding: 60px 20px; text-align: center; margin-top: 80px; }
.cta-section h2 { color: var(--white-color); }
.cta-section p { max-width: 600px; margin: 0 auto 2em auto; opacity: 0.9; }
.cta-button-large { background-color: var(--white-color); color: var(--primary-color); padding: 15px 35px; border-radius: 5px; font-size: 1.2rem; display: inline-block; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.cta-button-large:hover { background-color: #e9ecef; color: var(--primary-color); text-decoration: none; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.highlight-banner { background-color: var(--primary-color); color: var(--white-color); padding: 30px 20px; text-align: center; }
.highlight-banner .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 20px; }
.highlight-banner span { text-align: center; }
.highlight-banner a { color: var(--white-color); text-decoration: underline; white-space: nowrap; }
.highlight-banner a:hover { color: #e9ecef; text-decoration: none; }
.error-page-content { text-align: center; padding: 60px 0; }
.error-page-content .error-code { font-size: 8rem; opacity: 0.1; line-height: 1; }
.error-page-content h1 { margin-top: -40px; }
.error-page-content p { max-width: 500px; margin: 1em auto; }
.error-page-content .cta-button { margin-top: 20px; }

/* --- ÚJ SÜTI BANNER --- */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background-color: #222; color: var(--white-color); padding: 20px; display: flex; justify-content: center; align-items: center; gap: 20px; z-index: 2000; transform: translateY(100%); transition: transform 0.5s ease-in-out; }
.cookie-banner.active { transform: translateY(0); }
.cookie-banner p { margin: 0; font-size: 0.9rem; color: #ddd; }
.cookie-banner a { color: var(--white-color); text-decoration: underline; }

/* === LÁBLÉC --- */
.site-footer { padding: 40px 0; background-color: #222; color: #aaa; text-align: center; border-top: 5px solid var(--primary-color); }
.site-footer p { color: #aaa; font-size: 0.9rem; margin: 0; }
.site-footer a { color: var(--white-color); }


/* ====================================================
   RESZPONZÍV SZABÁLYOK - MINDEN MÉDIA LEKÉRDEZÉS ITT VAN
==================================================== */

/* Tabletek és kisebb laptopok */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 1.8rem; }
    .nav-links, .nav-actions .cta-button { display: none; }
    .mobile-menu-toggle { display: flex; }
    .mobile-nav-menu.open { display: flex; }
    .mobile-menu-toggle.open .bar:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
    .mobile-menu-toggle.open .bar:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.open .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
    
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-page-grid { grid-template-columns: 1fr; }
    .team-members-grid { grid-template-columns: 1fr; gap: 50px; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .pricing-table .price { width: auto; }
    
    .content-with-image-layout { flex-direction: column; }
    .content-with-image-layout .image-column { position: static; margin-top: 30px; }

    .mobile-nav-menu {
        padding-top: 15px;
        padding-bottom: 15px;
    }
}
/* === IKONOK FORMÁZÁSA A GOMBOKBAN === */
.cta-button .fa,
.cta-button-large .fa,
.cta-button-mobile .fa {
    margin-right: 10px; /* Térköz az ikon és a szöveg között */
}
/* === LENYÍLÓ MENÜ (DROPDOWN) STÍLUSAI === */
.nav-links .dropdown {
    position: relative;
}

.nav-links .dropdown .fa-caret-down {
    margin-left: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white-color);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    list-style: none;
    padding: 10px 0;
    border-radius: 0 0 5px 5px;
    border-top: 3px solid var(--primary-color);
}

.dropdown-content li a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 15px;
}
.dropdown-content li a:hover {
    background-color: #f1f1f1;
}

/* Megjelenítés, ha a szülő fölé visszük az egeret */
.dropdown:hover .dropdown-content {
    display: block;
}
/* === ÁRTÁBLÁZAT STÍLUSAI === */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2em;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden; /* Fontos a kerekített sarkokhoz */
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.pricing-table th, .pricing-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.pricing-table tbody tr:last-child td {
    border-bottom: none; /* Az utolsó sornak ne legyen alsó vonala */
}

.pricing-table thead th {
    background-color: var(--light-gray-bg);
    font-size: 1.3rem;
    color: var(--primary-color);
}

.pricing-table .service-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
}

.pricing-table .service-description {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
    margin-bottom: 0;
}

.pricing-table .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
    white-space: nowrap;
    width: 150px;
}
/* === TOVÁBBI VIZSGÁLATOK GOMB A FŐOLDALON === */
.all-services-link {
    text-align: center;
    margin-top: 50px;
}

/* === VÉGSŐ MOBIL JAVÍTÁSOK (2025.10.06) === */

/* KÖZEPES KÉPERNYŐ (TABLETEK) */
@media (max-width: 992px) {
    /* Hamburger menü "Főoldal" gomb láthatóságának javítása */
    .mobile-nav-menu {
        padding-top: 15px;
        padding-bottom: 15px;
    }
}

/* KIS KÉPERNYŐ (MOBILOK) */
@media (max-width: 767px) {
    body { font-size: 16px; }
    h1 { font-size: 2.0rem; } /* Kisebb H1 a jobb olvashatóságért */
    h2 { font-size: 1.8rem; }
    .header-logo img { max-height: 50px; }
    .mobile-nav-menu { top: 70px; }
    
    .services-grid { grid-template-columns: 1fr; }
    .hero-content { padding: 25px; }

    /* A süti banner elemei egymás alá kerülnek */
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
        gap: 15px;
    }
    .cookie-banner p {
        margin-bottom: 0;
    }
    .cookie-banner .cta-button {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* KIFEJEZETTEN KESKENY MOBILOKRA (pl. régebbi telefonok) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    /* A nagy CTA gomb méretének csökkentése, hogy elférjen */
    .cta-button-large {
        font-size: 1rem;
        padding: 12px 20px;
        white-space: nowrap; /* Itt már elfér, mert kisebb a betűméret */
    }
}