/* CSS Reset és alapértelmezések */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mobile-first: Alapértelmezett nagy, olvasható fontok */
:root {
    --primary-color: #2c5f2d;
    --secondary-color: #97bc62;
    --accent-color: #ff6b35;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 1.125rem;
}

/* Typography - Nagy, olvasható fontok */
h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

p {
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
}

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
.site-header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo a {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation - Mobile First */
.main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--bg-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding-top: 5rem;
    overflow-y: auto;
}

.main-nav.active {
    right: 0;
}

.main-nav ul {
    list-style: none;
    padding: 0;
}

.main-nav ul li {
    border-bottom: 1px solid var(--border-color);
}

.main-nav ul li a {
    display: block;
    padding: 1.25rem 1.5rem;
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    background-color: var(--secondary-color);
    color: var(--bg-color);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 400px);
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-color);
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    color: var(--bg-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: silver;
    border: 2px solid var(--bg-color);
}

.btn-secondary:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background-color: var(--bg-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.75rem;
}

.card-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Section Styles */
.section {
    padding: 0.5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* Blog Styles */
.blog-post {
    background-color: var(--bg-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.blog-post-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.blog-post-content {
    padding: 2rem;
}

.blog-post-meta {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.blog-post-title {
    margin-bottom: 1rem;
}

.blog-post-excerpt {
    margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--bg-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section ul {
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--bg-color);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Tablet Styles */
@media (min-width: 768px) {
    html {
        font-size: 17px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.5rem;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .main-nav {
        position: static;
        width: auto;
        height: auto;
        max-width: none;
        background-color: transparent;
        box-shadow: none;
        padding-top: 0;
        overflow-y: visible;
    }

    .main-nav ul {
        display: flex;
        gap: 0.5rem;
    }

    .main-nav ul li {
        border-bottom: none;
    }

    .main-nav ul li a {
        padding: 0.75rem 1.25rem;
        border-radius: 8px;
        font-size: 1.125rem;
    }

    .main-nav ul li a:hover,
    .main-nav ul li a.active {
        background-color: var(--secondary-color);
        color: var(--bg-color);
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    html {
        font-size: 18px;
    }

    h1 {
        font-size: 3.5rem;
    }

    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero {
        padding: 5rem 0;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

/* Dropdown Menu - Mobil és Desktop */
.has-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.8em;
    margin-left: 0.3rem;
}

/* Mobil nézet - dropdown menü */
@media (max-width: 991px) {
    .has-dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown-menu {
        display: none;
        list-style: none;
        padding-left: 1.5rem;
        background-color: #f5f5f5;
    }

    .dropdown-menu.active {
        display: block;
    }

    .dropdown-menu li {
        border-bottom: 1px solid #e0e0e0;
    }

    .dropdown-menu li:last-child {
        border-bottom: none;
    }

    .dropdown-menu li a {
        padding: 1rem 1rem;
        font-size: 1.1rem;
        font-weight: 400;
    }

    .dropdown-menu li a:hover {
        background-color: #e0e0e0;
        color: var(--primary-color);
    }

    .has-dropdown > a.dropdown-open .dropdown-arrow {
        transform: rotate(180deg);
    }
}

/* Desktop nézet - hover dropdown */
@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none;
    }

    .main-nav {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        box-shadow: none;
        overflow: visible;
    }

    /* Csak a top-level nav-ra vonatkozzon a flex */
    .main-nav > ul {
        display: flex;
        gap: 1rem;
    }

    .main-nav > ul > li {
        border-bottom: none;
    }

    .main-nav > ul > li > a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    /* Dropdown menü rejtett alapállapotban */
    .dropdown-menu {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border-radius: 8px;
        min-width: 250px;
        padding: 0.5rem 0;
        z-index: 1000;
        list-style: none;
    }

    /* Hover esetén megjelenítés */
    .has-dropdown:hover .dropdown-menu {
        display: block !important;
    }

    .dropdown-menu li {
        border: none;
    }

    .dropdown-menu li a {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        color: var(--text-color);
        display: block;
        transition: background-color 0.2s ease;
    }

    .dropdown-menu li a:hover {
        background-color: var(--bg-light);
        color: var(--primary-color);
    }
}
