/*
Theme Name: Miza Kárpittisztítás Téma (Animáció Nélkül)
Theme URI: https://www.mizakarpittisztitas.hu/ (Példa URL)
Author: [A Te Neved vagy Céged Neve]
Author URI: https://www.sajatweboldalad.hu/ (Példa URL)
Description: Egyedi WordPress téma a Miza Kárpittisztító cég számára. Letisztult, modern dizájnnal, animáció nélkül.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-logo, custom-menu, featured-images, theme-options, translation-ready
Text Domain: miza-theme
*/

/* --- Alapbeállítások és Változók --- */
:root {
    --primary-color: #3A8F36; /* Miza zöld (a logó alapján) */
    --secondary-color: #5cb85c; /* Világosabb zöld árnyalat */
    --text-color: #333333;
    --light-gray: #f4f4f4;
    --white-color: #FFFFFF;
    --bg-color: #FDFDFD;
    --font-family: 'Montserrat', sans-serif; /* Modern, letisztult betűtípus */
    --header-height: 80px;
}

/* --- Globális Stílusok --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Alap betűméret */
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1140px; /* Maximális szélesség nagyobb képernyőkön */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--secondary-color);
}

ul, ol {
    list-style: none;
    padding-left: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75em;
    color: var(--primary-color); /* Címsorok alapértelmezett színe */
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; text-align: center; margin-bottom: 1.5em; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }

/* --- Segédosztályok --- */
.section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
}

.bg-light {
    background-color: var(--light-gray);
}

.text-center {
    text-align: center;
}

/* --- Gombok --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--text-color);
    color: var(--white-color);
    border-color: var(--text-color);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #555;
    border-color: #555;
    color: var(--white-color);
    transform: translateY(-2px);
}


/* --- Fejléc (Header) --- */
.site-header {
    background-color: var(--white-color);
    padding: 0;
    position: fixed; /* Fix fejléc */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: var(--header-height);
}
/* Hely a fix fejlécnek és az admin barnak */
body {
    padding-top: var(--header-height);
}
body.admin-bar .site-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}


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

/* Logó */
.site-branding .custom-logo-link img {
    max-height: 50px; /* Logó magassága */
    width: auto;
}
.site-title a {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-color);
}
.site-description {
    font-size: 0.85em;
    color: #777;
}

/* Navigáció */
.main-navigation ul {
    display: flex;
    align-items: center;
}
.main-navigation ul li {
    margin-left: 25px;
}
.main-navigation ul li a {
    color: var(--text-color);
    font-weight: 600;
    padding: 10px 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}
.main-navigation ul li a:hover,
.main-navigation ul li a:focus,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current-page-ancestor > a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Mobil menü gomb */
.menu-toggle {
    display: none; /* Alapból rejtett, mobilon jelenik meg */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* --- Hero Szekció (Főoldal teteje) --- */
.hero-section {
    background-color: var(--light-gray); /* Helyettesítsd egy jó háttérképpel, ha van */
    /* background-image: url('images/hero-background.jpg'); */ /* WordPressben a Testreszabóból vagy egyedi mezőből jöhet */
    /* background-size: cover; */
    /* background-position: center center; */
    color: var(--text-color); /* Ha sötét a háttérkép, ez lehet var(--white-color) */
    padding: 80px 0;
    text-align: center;
    min-height: calc(70vh - var(--header-height)); /* Kisebb magasság, hogy ne legyen túl nagy */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 0.5em;
    color: var(--primary-color);
}
.hero-section .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Szolgáltatások Szekció --- */
.services-grid, .packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.service-item, .package-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover, .package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.service-item img { /* Szolgáltatás ikon/kép helye */
    max-width: 80px; /* Ikon mérete */
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    /* Példa placeholder, ha nincs kép:
    background-color: var(--primary-color);
    padding: 15px;
    border-radius: 50%;
    */
}
.service-item h3, .package-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* --- Csomagok Szekció --- */
.package-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0;
}
.package-card ul {
    margin-bottom: 25px;
    text-align: left;
    padding-left: 20px; /* Behúzás a listajelnek */
}
.package-card ul li {
    margin-bottom: 10px;
    list-style-type: '✓'; /* Stílusos pipa */
    padding-left: 10px;
}
.package-card ul li::marker {
    color: var(--primary-color);
    font-weight: bold;
}
.package-card.popular {
    border: 2px solid var(--primary-color);
    position: relative;
}
.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* --- Elérhetőségek Szekció --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr; /* Alapból egy oszlop */
    gap: 40px;
    align-items: flex-start;
}
@media (min-width: 768px) { /* Nagyobb képernyőn két oszlop */
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.contact-info p {
    font-size: 1.1em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.contact-info .contact-icon { /* SVG ikonokhoz vagy font ikonokhoz */
    width: 20px;
    height: 20px;
    margin-right: 12px;
    fill: var(--primary-color); /* SVG esetén */
    color: var(--primary-color); /* Font ikon esetén */
}
.contact-map iframe {
    border-radius: 8px;
    width: 100%;
    min-height: 300px;
    border: 0;
}

/* --- Időpontfoglaló Űrlap (Bővítmény stílusaihoz placeholder) --- */
/* Ezek a szabályok a Contact Form 7 bővítményhez igazodnak, más bővítménynél eltérőek lehetnek. */
.booking-form-section .wpcf7-form input[type="text"],
.booking-form-section .wpcf7-form input[type="email"],
.booking-form-section .wpcf7-form input[type="tel"],
.booking-form-section .wpcf7-form input[type="date"],
.booking-form-section .wpcf7-form select,
.booking-form-section .wpcf7-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
    background-color: #f9f9f9; /* Enyhe háttér az input mezőknek */
}
.booking-form-section .wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
}
.booking-form-section .wpcf7-form .wpcf7-submit {
    /* A .btn és .btn-primary stílusokat alkalmazzuk rá */
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--white-color);
    width: auto; /* Ne legyen teljes szélességű, hacsak nem akarod */
}
.booking-form-section .wpcf7-form .wpcf7-submit:hover,
.booking-form-section .wpcf7-form .wpcf7-submit:focus {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.booking-form-placeholder { /* Ha a shortcode-ot egy div-be tesszük */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
}


/* --- Lábléc (Footer) --- */
.site-footer {
    background-color: #333;
    color: #f1f1f1;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px; /* Térköz a tartalom és a lábléc között */
}
.site-footer p {
    margin-bottom: 0.5em;
}
.site-footer a {
    color: var(--secondary-color);
}
.site-footer a:hover {
    color: var(--white-color);
}

/* --- WordPress Specifikus Stílusok --- */
/* Képek igazítása a szerkesztőben */
.alignleft { float: left; margin: 0.5em 1em 0.5em 0; }
.alignright { float: right; margin: 0.5em 0 0.5em 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; margin-top: 0.5em; margin-bottom: 0.5em; }
img.alignleft, img.alignright, img.aligncenter { max-width: 100%; height: auto; }

/* Galéria alapstílusok (WordPress alapértelmezett galéria) */
.gallery { margin-bottom: 1.5em; }
.gallery-item { display: inline-block; text-align: center; vertical-align: top; margin: 0 0 1.5em; }
.gallery-columns-1 .gallery-item { width: 100%; }
.gallery-columns-2 .gallery-item { max-width: 50%; }
.gallery-columns-3 .gallery-item { max-width: 33.33%; }
.gallery-columns-4 .gallery-item { max-width: 25%; }
/* ...és így tovább, ha több oszlopot használsz */
.gallery-caption { display: block; text-align: center; padding: 0.5em 0; font-size: 0.9em; color: #777; }

/* --- Reszponzivitás --- */
@media (max-width: 768px) {
    html { font-size: 15px; } /* Kisebb alap betűméret mobilon */
    .site-header {
        position: relative; /* Mobilon ne legyen fix, egyszerűbb a menükezelés */
        height: auto;
    }
    body { padding-top: 0; } /* Ha a header nem fix, nincs szükség paddingra */

    .site-header .container {
        flex-direction: column; /* Logó és menü egymás alá kerül */
        align-items: flex-start; /* Balra igazítás */
        padding-top: 15px;
        padding-bottom: 15px;
    }
    .site-branding {
        margin-bottom: 15px; /* Térköz a logó és a menügomb/menü között */
        width: 100%; /* Teljes szélesség, hogy a menügomb jobbra kerülhessen */
        display: flex;
        justify-content: space-between; /* Logó balra, menügomb jobbra */
        align-items: center;
    }

    .menu-toggle {
        display: block; /* Menügomb megjelenítése mobilon */
        /* position: absolute; top: 15px; right: 15px; - Ezt kivettem, mert a flexbox elrendezi */
        order: 1; /* Menügomb a .site-branding végére kerüljön a flexboxban */
    }
    .main-navigation {
        display: none; /* Alapból rejtett a lenyíló menü */
        width: 100%;
        order: 2; /* Menü a .site-branding alá kerül */
    }
    .main-navigation.toggled {
        display: block; /* JS adja hozzá ezt az osztályt a menügombra kattintva */
    }
    .main-navigation ul {
        flex-direction: column; /* Menüpontok egymás alatt */
        align-items: flex-start; /* Balra igazítás */
        width: 100%;
    }
    .main-navigation ul li {
        margin-left: 0;
        width: 100%;
        border-top: 1px solid var(--light-gray); /* Elválasztó vonalak a menüpontok között */
    }
    .main-navigation ul li:first-child {
        border-top: none; /* Az első menüpont felett nincs vonal */
    }
    .main-navigation ul li a {
        display: block;
        padding: 12px 15px; /* Nagyobb kattintható felület */
        width: 100%;
        border-bottom: none; /* Nincs alsó vonal a menüpontokon */
    }
    .main-navigation ul li a:hover,
    .main-navigation ul li.current-menu-item > a {
        background-color: var(--light-gray); /* Kijelölés színe hover esetén */
        border-bottom: none;
    }

    .hero-section h1 { font-size: 2.2rem; }
    .hero-section .hero-subtitle { font-size: 1.1rem; }

    .services-grid, .packages-grid {
        grid-template-columns: 1fr; /* Egy oszlop mobilon */
    }
}
