/*
Theme Name: LoczikaHome
Theme URI: https://loczikahome.hu/
Author: EkkaPixels
Author URI: https://ekkapixels.hu/
Description: Basic Block Theme by Erika Molnar
Tags: one-column, custom-colors, custom-menu
Version: 1.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: loczikahome
*/

/* ============================================================
   ALAP HTML / BODY
   ============================================================ */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
    font-optical-sizing: auto;
    background: var(--wp--preset--color--light);
}

footer,
main {
    margin-top: 0;
}

/* ============================================================
   KÉPEK – RESZPONZÍV ALAP
   ============================================================ */

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

/* ============================================================
   LINKEK – ALAP
   ============================================================ */

a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* ============================================================
   TIPOGRÁFIA – RESZPONZÍV ALAP
   ============================================================ */

@media screen and (max-width: 1199px) {
    body {
        font-size: 18px;
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 16px;
    }
}

/* ============================================================
   BACK TO TOP GOMB
   ============================================================ */

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--wp--preset--color--strong-yellow, #E6BC77);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 0;
    margin: 0;
}

#back-to-top:hover {
    background-color: var(--wp--preset--color--text-primary, #513f32);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

#back-to-top.show {
    display: flex;
}

#back-to-top svg {
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

#back-to-top:hover svg {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    #back-to-top {
        width: 42px;
        height: 42px;
        bottom: 20px;
        right: 15px;
    }

    #back-to-top svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================================
   CONTACT FORM 7 – ALAP STÍLUS RESET
   ============================================================ */

.wpcf7 form,
.wpcf7 form p {
    margin: 0;
}

.wpcf7 form p label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6b6152;
}

.wpcf7 .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--wp--preset--color--borders);
    border-radius: 5px;
    background-color: #fff;
    color: var(--wp--preset--color--text-primary, #513f32);
    font-family: var(--wp--preset--font-family--body, sans-serif);
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--wp--preset--color--strong-yellow, #E6BC77);
    box-shadow: 0 0 0 3px rgba(230, 188, 119, 0.2);
}

.wpcf7 textarea {
    min-height: 140px;
    resize: vertical;
}

.wpcf7 input[type="submit"] {
    cursor: pointer;
    background-color: var(--wp--preset--color--accent);
    color: #fff;
    border: none;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-family: var(--wp--preset--font-family--body, sans-serif);
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.wpcf7 input[type="submit"]:hover {
    background-color: var(--wp--preset--color--primary, #513f32);
    transform: translateY(-1px);
}

.wpcf7 .wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.wpcf7 .wpcf7-response-output {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.wpcf7 .wpcf7-mail-sent-ok {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-mail-sent-ng {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/*===== 3.gomb variáció =====*/
.wp-block-button.is-style-underline .wp-block-button__link {
    background: transparent !important;
    border-bottom: 2px solid var(--wp--preset--color--accent);
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
    box-shadow: none;
    color: var(--wp--preset--color--accent);
}

.wp-block-button.is-style-underline .wp-block-button__link:hover {
    background: transparent !important;
    border-bottom-color: transparent;
    opacity: 0.7;
}
