/* CSS Variables */
:root {
    --primary-color: #009696;
    /* Teal - Matching Logo */
    --secondary-color: #A3B18A;
    /* Natural Green - Plants/Nature */
    --wood-warm: #D4A373;
    /* Warm Wood Tone */
    --white: #FFFFFF;
    --light-grey: #F4F4F9;
    --text-color: #333333;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Lato', sans-serif;
    --transition-speed: 0.3s;
    --header-height: 80px;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background var(--transition-speed);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--heading-font);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo img {
    height: 50px;
    /* Fitting within 80px header */
    width: auto;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-color);
}

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

.btn-cta-nav {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    transition: background-color var(--transition-speed);
}

.btn-cta-nav:hover {
    background-color: #4a5d66;
    color: var(--white);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-phone-header {
    padding: 8px 18px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 5px;
    font-weight: 600;
    transition: all var(--transition-speed);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.btn-phone-header:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

@media (max-width: 450px) {
    .btn-phone-header {
        padding: 6px 12px;
    }
    .phone-text {
        display: none;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all var(--transition-speed);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('media/gabinet1.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    /* Slight white tint for airy feel */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-family: var(--heading-font);
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.hero p {
    font-size: 1.3rem;
    color: #34495e;
    font-weight: 400;
    margin-bottom: 2rem;
    background-color: rgba(255, 255, 255, 0.6);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    font-family: var(--heading-font);
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 50px;
    transition: transform var(--transition-speed), background-color var(--transition-speed);
}

.btn:hover {
    background-color: #4a5d66;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Reusable Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--heading-font);
    font-size: 2.2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--wood-warm);
    margin: 15px auto 0;
}

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

/* Offer Section */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.offer-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform var(--transition-speed);
    border-top: 4px solid var(--secondary-color);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    transform: translateY(-5px);
}

/* Training Card specific styling */
.offer-card.card-training {
    border-top-color: #800020; /* Bordowy kolor zlecany przez użytkownika */
}

.offer-card h3 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-member {
    background: var(--white);
    padding: 0 0 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.member-photo {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: top;
    margin-bottom: 20px;
}

.member-photo-placeholder {
    width: 100%;
    height: 250px;
    background-color: #e0e0e0;
    background-image: linear-gradient(45deg, #e0e0e0 25%, #f5f5f5 25%, #f5f5f5 50%, #e0e0e0 50%, #e0e0e0 75%, #f5f5f5 75%, #f5f5f5 100%);
    background-size: 40px 40px;
    margin-bottom: 20px;
}

.team-member h3 {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding: 0 20px;
}

.team-member .bio {
    padding: 0 20px;
    font-size: 0.95rem;
    color: #666;
    text-align: justify;
    -webkit-hyphens: auto;
    hyphens: auto;
}

a.team-member {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-speed);
}

a.team-member:hover {
    transform: translateY(-10px);
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.footer h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: var(--white);
    opacity: 0.8;
}

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

.footer-copyright {
    margin-top: 30px;
    font-size: 0.8rem;
    opacity: 0.6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    padding-top: 20px;
}

/* Booking Section */
.booking-container {
    max-width: 1000px;
    margin: 0 auto;
}

.booking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.booking-column {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.booking-column h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: var(--heading-font);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        padding-top: 40px;
    }

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

    .section-title {
        font-size: 1.8rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

#modal-title {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-right: 30px;
}

#modal-description {
    line-height: 1.8;
    color: #444;
}

body.modal-open {
    overflow: hidden;
}

/* Utilities */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.small-text { font-size: 0.8rem; opacity: 0.8; display: block; margin-top: 5px; font-weight: normal; }

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 13px 28px; /* Slightly less padding to account for border */
}

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

/* Offer Cards */
.offer-subtitle {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.offer-desc {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 25px;
    text-align: left;
}

.click-hint {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
    margin-top: auto;
    font-style: italic;
    opacity: 0.8;
}

.btn-card {
    display: inline-block;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition-speed);
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: 1rem;
    width: 100%;
}

.offer-card:hover .btn-card {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.process-step {
    padding: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 15px;
    font-family: var(--heading-font);
}

.process-step h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Education Note in Modal */
.education-note {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.education-note h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: var(--heading-font);
    font-size: 1.1rem;
}

.education-note p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* Contact Info */
.phone-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.phone-link {
    color: var(--primary-color);
    text-decoration: none;
}

.phone-link:hover {
    text-decoration: underline;
}

/* Modal CTA */
.modal-cta {
    border-top: 1px solid #eee;
    padding-top: 20px;
}