/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #4a6741;
    --primary-dark: #3a5331;
    --secondary: #8fbc8f;
    --text: #333;
    --text-light: #666;
    --bg: #fff;
    --bg-alt: #f8f9fa;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --radius: 8px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

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

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 40px;
    color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

    .btn:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow);
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

    .nav-menu a {
        text-decoration: none;
        color: var(--text);
        font-weight: 500;
        transition: var(--transition);
    }

        .nav-menu a:hover {
            color: var(--primary);
        }

/* Hamburger Button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text);
    position: relative;
    transition: var(--transition);
}

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 3px;
        background: var(--text);
        transition: var(--transition);
    }

    .hamburger::before {
        top: -8px;
    }

    .hamburger::after {
        top: 8px;
    }

.nav-toggle.active .hamburger {
    background: transparent;
}

    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
    }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding-top: 70px;
}

    .hero h1 {
        font-size: clamp(2rem, 6vw, 3.5rem);
        margin-bottom: 20px;
    }

    .hero p {
        font-size: clamp(1rem, 3vw, 1.3rem);
        margin-bottom: 30px;
        opacity: 0.9;
    }

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

        .hero .btn:hover {
            background: var(--bg-alt);
        }

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.about-text .subtitle {
    color: var(--text-light);
    margin-bottom: 20px;
    font-style: italic;
}

.credentials {
    margin-top: 20px;
    padding-left: 20px;
}

    .credentials li {
        margin-bottom: 8px;
        color: var(--text-light);
    }

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }

.service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* ============================================
   INFO GRID
   ============================================ */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-card {
    background: var(--bg-alt);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    border-left: 4px solid var(--primary);
}

    .info-card h3 {
        color: var(--primary);
        margin-bottom: 15px;
        font-size: 1.2rem;
    }

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: var(--transition);
}

    .social-btn.facebook {
        background: #1877f2;
    }

        .social-btn.facebook:hover {
            background: #0d65d9;
        }

    .social-btn.mojpsycholog {
        background: var(--primary);
    }

        .social-btn.mojpsycholog:hover {
            background: var(--primary-dark);
        }

.map-container {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

    .map-container iframe {
        width: 100%;
        height: 400px;
        border: 0;
    }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text);
    color: white;
    text-align: center;
    padding: 25px 0;
}

/* ============================================
   RESPONSIVE - TABLET (768px)
   ============================================ */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        transition: var(--transition);
    }

        .nav-menu.active {
            transform: translateY(0);
        }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        order: -1;
        max-width: 300px;
        margin: 0 auto;
    }

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

    .map-container iframe {
        height: 300px;
    }

    .section {
        padding: 40px 0;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (480px)
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        min-height: 80vh;
    }

    .service-card,
    .info-card {
        padding: 20px;
    }

    .social-links {
        flex-direction: column;
    }

    .social-btn {
        justify-content: center;
    }

    .map-container iframe {
        height: 250px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   ACCESSIBILITY & PRINT
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .header, .hero .btn, .social-links, .nav-toggle {
        display: none;
    }

    .section {
        padding: 20px 0;
    }
}
