/* ============================================
   GYŐR LOGOPÉDIA — Main Stylesheet
   Palette:
     1. Dark Teal      #104547 — Primary Text, Navigation
     2. Leaf Green      #88AA2A — CTAs, Active Highlights
     3. Sun Yellow      #F0EC57 — Hero Background, Accents
     4. Muted Purple    #734B5E — Secondary Accents, Icons
     5. Warm Taupe      #7A6563 — Secondary Text, Borders
   ============================================ */

:root {
    --color-text:          #104547;
    --color-text-secondary:#7A6563;
    --color-primary:       #88AA2A;
    --color-primary-dark:  #6a8521;
    --color-accent:        #734B5E;
    --color-hero-bg:       #F0EC57;
    --color-white:         #FFFFFF;
    --color-bg-alt:        #fcfcf7;
    
    --shadow-sm:           0 2px 8px rgba(16, 69, 71, 0.08);
    --shadow-md:           0 5px 18px rgba(16, 69, 71, 0.1);
    --shadow-lg:           0 10px 30px rgba(16, 69, 71, 0.12);
    
    --radius-sm:           6px;
    --radius-md:           12px;
    --radius-lg:           20px;
    --transition:          0.25s ease;
    --font-main:           system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ── Reset ───────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.65;
    overflow-x: hidden;
}

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

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--color-primary); }

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

.section {
    padding: 5.5rem 0;
    scroll-margin-top: 70px;
}

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

/* ── Typography ──────────────────────────── */
h1, h2, h3, h4 {
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 3.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* ── Buttons ─────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background var(--transition), color var(--transition),
                transform var(--transition), box-shadow var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-text);
    color: var(--color-white);
    border-color: var(--color-text);
}
.btn-primary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 69, 71, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
    opacity: 0.8;
}
.btn-ghost:hover {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-white);
    transform: translateY(-2px);
    opacity: 1;
}

/* ── Header ──────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(16, 69, 71, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    transition: height var(--transition);
}

.header.scrolled .header-inner {
    height: 60px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.3px;
}
.logo:hover { color: var(--color-text); }

/* Small dot accent on logo */
.logo::after {
    content: '.';
    color: var(--color-primary);
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    position: relative;
    padding-bottom: 4px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition);
}
.nav-link:hover { color: var(--color-primary); }
.nav-link.active { color: var(--color-text); }
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ── Hero ────────────────────────────────── */
.hero {
    position: relative;
    background-color: var(--color-hero-bg);
    padding: 150px 0 80px;
    text-align: center;
    overflow: hidden;
}

/* Subtle dot pattern */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(16, 69, 71, 0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    max-width: 820px;
    margin: 0 auto 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(16, 69, 71, 0.7);
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-badges {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.5);
    color: var(--color-text);
    border: 1px solid rgba(16, 69, 71, 0.1);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}
.hero-badge svg { color: var(--color-primary); }

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}
.hero-wave svg {
    display: block;
    width: 100%;
}

/* ── Team ────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.team-card {
    background: var(--color-white);
    padding: 2.25rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    max-width: 340px;
    width: 100%;
    border-top: 4px solid #f0f0f0;
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--color-primary);
}

.team-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--color-hero-bg);
    outline: 2px solid #f0f0f0;
}

.team-name {
    color: var(--color-text);
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
}

.team-role {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.team-desc {
    color: var(--color-text-secondary);
    font-size: 0.93rem;
    line-height: 1.6;
}

/* ── Services ────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.75rem;
}

.service-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid #f0f0f0;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--color-primary);
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(115, 75, 94, 0.1);
    color: var(--color-accent);
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    transition: background var(--transition), color var(--transition);
}
.service-card:hover .service-icon {
    background: rgba(136, 170, 42, 0.15);
    color: var(--color-primary);
}
.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-title {
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}

.service-sub {
    font-size: 0.82rem;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 0.85rem;
}

.service-desc {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
}

/* ── Why Us ──────────────────────────────── */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--color-white);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid #f0f0f0;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.feature-item:hover {
    border-left-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    margin-top: 2px;
}
.feature-icon svg {
    width: 18px;
    height: 18px;
}

.feature-body { flex: 1; }

.feature-title {
    color: var(--color-text);
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.feature-desc {
    color: var(--color-text-secondary);
    font-size: 0.93rem;
}

/* ── Contact ─────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-lead {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.contact-list {
    list-style: none;
    margin-bottom: 2rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    font-size: 0.97rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(115, 75, 94, 0.08);
    color: var(--color-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.contact-icon svg {
    width: 18px;
    height: 18px;
}

.hours {
    background: var(--color-hero-bg);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}
.hours h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-text);
    margin-bottom: 0.85rem;
}

.hours-list {
    list-style: none;
    margin-bottom: 0.75rem;
}
.hours-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(16, 69, 71, 0.1);
    gap: 1rem;
}
.hours-list li span:first-child { font-weight: 600; }

.hours-note {
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(16, 69, 71, 0.6);
    margin-top: 0.5rem;
}

/* ── Map card ────────────────────────────── */
.map-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--color-white);
}

.map-visual svg {
    display: block;
    width: 100%;
    height: auto;
}

.map-cta {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.map-address {
    font-size: 0.93rem;
    color: var(--color-text-secondary);
    flex: 1;
}

.map-btn { flex-shrink: 0; }

/* ── Footer ──────────────────────────────── */
.footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 1.75rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-hero-bg);
    margin-bottom: 0.4rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.footer-nav a {
    color: rgba(255,255,255,0.7);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color var(--transition);
}
.footer-nav a:hover { color: var(--color-hero-bg); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

.footer-privacy { font-style: italic; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-white);
        box-shadow: 4px 0 20px rgba(16, 69, 71, 0.1);
        padding: 90px 2rem 2rem;
        transition: left var(--transition);
        z-index: 999;
    }
    .nav.active { left: 0; }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    .nav-link {
        display: block;
        font-size: 1.1rem;
        padding: 0.9rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    .nav-link::after { display: none; }

    .menu-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.3);
        z-index: 998;
    }
    .nav-overlay.active { display: block; }

    .hero { padding: 120px 0 70px; }
    .hero-cta-group { flex-direction: column; align-items: center; }

    .contact-grid { grid-template-columns: 1fr; }

    .footer-inner { flex-direction: column; gap: 1.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-badges { flex-direction: column; align-items: center; }
    .map-cta { flex-direction: column; }
    .map-address { text-align: center; }
}
