/*
Theme Name: Expressz Varroda Custom Theme
Theme URI: https://expresszvarrodaujpest.hu/
Author: Shopsegéd
Description: Könnyűsúlyú, Elementor-mentes, modern és reszponzív téma az Expressz Varroda részére globális szín- és betűtípus beállításokkal.
Version: 1.0.0
Text Domain: expressz-varroda
*/

/* Core Reset & Normalization */
*, *::before, *::after {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    font-family: var(--body-font, 'Inter', sans-serif);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color, #1e293b);
    background-color: var(--background-color, #ffffff);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font, 'Montserrat', sans-serif);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 0.5em;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
a {
    color: var(--primary-color, #3b82f6);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--secondary-color, #1d4ed8);
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Page Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header & Navigation Styles */
.site-header {
    background-color: var(--header-bg-color, #ffffff);
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.05);
}
/* Adjust sticky header position when WordPress admin bar is visible */
.admin-bar .site-header {
    top: 32px;
}
@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.site-branding img,
.custom-logo-link img,
.custom-logo {
    height: var(--logo-height, 50px) !important;
    width: auto;
    object-fit: contain;
}
.site-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-color, #1e293b);
    margin: 0;
}
.main-nav {
    display: flex;
    align-items: center;
}
.header-contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 25px;
    border-left: 1px solid #cbd5e1;
    padding-left: 20px;
}
.header-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
    white-space: nowrap;
}
.header-contact-item:hover {
    color: var(--primary-color, #3b82f6);
}
.contact-icon {
    color: var(--primary-color, #3b82f6);
    flex-shrink: 0;
}
.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 25px;
}
.nav-menu a {
    font-family: var(--heading-font, 'Montserrat', sans-serif);
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    transition: color 0.2s;
}
.nav-menu a:hover,
.nav-menu li.current-menu-item > a {
    color: var(--primary-color, #3b82f6);
}

/* Mobile Hamburger Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}
.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #1e293b;
    margin-bottom: 5px;
    transition: all 0.3s ease-in-out;
}
.menu-toggle span:last-child {
    margin-bottom: 0;
}

/* Main Site Content Wrapper */
.site-content {
    padding: 60px 0;
    min-height: calc(100vh - 280px);
}

/* Dynamic Page Elements & Gutenberg Styles */
.page-title {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}
.page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color, #3b82f6);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

/* Gutenberg alignment helpers */
.alignwide {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}
.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Standard Buttons */
.button, .wp-block-button__link {
    display: inline-block;
    background-color: var(--primary-color, #3b82f6);
    color: #ffffff !important;
    padding: 12px 24px;
    font-family: var(--heading-font, 'Montserrat', sans-serif);
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-align: center;
}
.button:hover, .wp-block-button__link:hover {
    background-color: var(--secondary-color, #1d4ed8);
}
.button:active, .wp-block-button__link:active {
    transform: scale(0.98);
}

/* Global Footer */
.site-footer {
    background-color: var(--footer-bg-color, #0f172a);
    color: #94a3b8;
    padding: 40px 0;
    border-top: 1px solid #1e293b;
    font-size: 14px;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links a {
    color: #94a3b8;
}
.footer-links a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .header-container {
        position: relative;
        justify-content: center;
    }
    .site-branding {
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--background-color, #ffffff);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px 80px 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        border-top: 1px solid #f1f5f9;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        box-sizing: border-box;
        overflow-y: auto;
    }
    .admin-bar .main-nav {
        top: calc(80px + 46px);
        height: calc(100vh - 80px - 46px);
    }
    .main-nav.active {
        transform: translateX(0);
    }
    .nav-menu {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 30px;
    }
    .nav-menu a {
        font-size: 18px;
    }
    .header-contact-info {
        margin-left: 0;
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #f1f5f9;
        padding-top: 25px;
        width: 100%;
        align-items: center;
        gap: 12px;
        margin-top: 45px;
    }
    .header-contact-item {
        font-size: 16px;
    }
    .footer-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 20px;
    }
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    .site-content {
        padding: 40px 0;
    }
}

/* Hamburger toggle active transformation */
.menu-toggle.active span:first-child {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:last-child {
    transform: translateY(-8px) rotate(-45deg);
}

/* Homepage Styles */
.site-content-homepage {
    width: 100%;
}
.hero-section {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 550px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #ffffff;
    padding: 80px 20px;
    box-sizing: border-box;
}
.hero-container-content {
    max-width: 800px;
    margin: 0 auto;
}
.hero-title {
    font-family: var(--heading-font, 'Montserrat', sans-serif);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 24px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
.hero-btn {
    padding: 14px 32px;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.homepage-section {
    padding: 80px 0;
    border-bottom: 1px solid #f1f5f9;
}
.homepage-section:last-of-type {
    border-bottom: none;
}
.section-title {
    font-family: var(--heading-font, 'Montserrat', sans-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color, #1e293b);
    text-align: center;
    margin-top: 0;
    margin-bottom: 45px;
}
.section-title.left-align {
    text-align: left;
    margin-bottom: 25px;
}

/* About Us Section Styles */
.about-section {
    background-color: #f8fafc;
}
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-text-body {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
}
.about-text-body p {
    margin: 0 0 15px 0;
}
.about-text-body p:last-child {
    margin-bottom: 0;
}
.about-featured-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.05);
    display: block;
}

/* FAQ Accordion Styles */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-item {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] {
    border-color: var(--primary-color, #3b82f6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.faq-question {
    padding: 20px;
    font-weight: 700;
    font-family: var(--heading-font, 'Montserrat', sans-serif);
    font-size: 16px;
    cursor: pointer;
    color: var(--text-color, #1e293b);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    user-select: none;
}
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-question::after {
    content: '+';
    font-size: 22px;
    font-weight: 400;
    color: var(--primary-color, #3b82f6);
    transition: transform 0.2s;
    line-height: 1;
}
.faq-item[open] .faq-question::after {
    content: '−';
}
.faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}
.faq-answer p {
    margin: 0;
}

/* Responsive Homepage Styles */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-img-col {
        order: -1; /* Display image on top of text on tablets/mobile */
        max-width: 600px;
        margin: 0 auto;
    }
    .section-title.left-align {
        text-align: center;
    }
}
@media (max-width: 768px) {
    .hero-section {
        min-height: 450px;
        padding: 60px 15px;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .homepage-section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 26px;
        margin-bottom: 35px;
    }
}
