/* style.css - Motyw: Willa pod Skocznią (Elegancki, natura, duże fonty) */

:root {
    --primary-color: #2F4858; /* Głęboki, elegancki niebieski (granat/grafit) */
    --secondary-color: #556B2F; /* Ciemna oliwka / zieleń natury */
    --accent-color: #D4AF37; /* Złoty akcent */
    --text-dark: #333333;
    --text-light: #F8F9FA;
    --bg-light: #F4F6F6;
    --bg-white: #FFFFFF;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;
    
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    font-size: 18px; /* Duży font podstawowy dla seniorów */
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.3;
}

h1 { font-size: 3rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

.text-center { text-align: center; }
.text-large { font-size: 1.25rem; }

/* Layout & Components */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.divider {
    height: 3px;
    width: 80px;
    background-color: var(--accent-color);
    margin: 15px auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #3f521f;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.25rem;
}

/* Header & Nav */
.header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    min-height: 55px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    max-height: 48px;
    width: 48px;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .header-container {
        padding: 5px 0;
    }
    .logo-img {
        height: 42px;
        max-height: 42px;
        width: 42px;
    }
}

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

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 5px; /* Lepszy cel dla dotyku (tap target) */
    display: inline-block;
    transition: var(--transition);
}

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

.btn-nav {
    background-color: var(--accent-color);
    color: var(--text-dark) !important;
    padding: 8px 16px;
    border-radius: var(--border-radius);
}

.btn-nav:hover {
    background-color: #b8972e;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 72, 88, 0.6); /* Ciemnoniebieski overlay */
    z-index: -1;
}

.hero-content h1 {
    color: var(--bg-white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Timeline (Plan Turnusu) */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 860px;
    margin: 0 auto;
}

.timeline-day {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.timeline-day:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.09);
    border-color: #cbd5e1;
}

.timeline-day-header {
    background: var(--primary);
    color: #fff;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.day-badge {
    background: var(--secondary-color, #c8963e);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.day-info h3 {
    font-size: 1.25rem;
    color: #fff;
    margin: 0;
    font-family: var(--font-heading);
}

.timeline-day-body {
    padding: 20px 24px;
}

.schedule-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.schedule-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.schedule-time {
    background: #f8fafc;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    width: 130px;
    flex: 0 0 130px;
    box-sizing: border-box;
    text-align: center;
}

.schedule-text {
    flex: 1;
}

.schedule-text strong {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.schedule-text p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0;
}

@media (max-width: 650px) {
    .timeline-day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 12px 18px;
    }
    .timeline-day-body {
        padding: 15px 18px;
    }
    .schedule-list li {
        flex-direction: column;
        gap: 6px;
        padding: 8px 0;
    }
    .schedule-time {
        align-self: flex-start;
    }
}

/* Dates & Pricing */
.dates-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.dates-list ul {
    list-style: none;
}

.dates-list li {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-badge {
    background-color: var(--secondary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.dates-note {
    margin-top: 20px;
    padding: 12px 16px;
    background-color: #f0f7f6;
    border-left: 4px solid var(--primary);
    border-radius: var(--border-radius);
    font-size: 1rem;
    color: var(--text-dark);
}

.payment-rules {
    list-style: none;
    margin: 20px 0;
}

.payment-rules li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.payment-rules li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.alert {
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.base-price-info {
    font-size: 1.2rem;
    margin-top: 20px;
    padding: 15px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.testimonial-card::before {
    content: "“";
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: 20px;
}

.quote {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.author {
    font-weight: bold;
    color: var(--primary-color);
}

/* Booking Form */
.booking-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(85, 107, 47, 0.2);
}

.options-group {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-top: 30px;
}

.help-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

/* Custom Checkbox */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 45px;
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 1.1rem;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 5px;
    left: 0;
    height: 30px;
    width: 30px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--secondary-color);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 10px;
    top: 3px;
    width: 7px;
    height: 15px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.checkbox-content {
    display: flex;
    flex-direction: column;
}

.checkbox-content span {
    font-size: 0.95rem;
    color: #555;
    margin-top: 5px;
}

.price-summary {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background-color: #e8f0e8;
    border-radius: var(--border-radius);
    border: 2px solid var(--secondary-color);
}

.price-summary h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.small-text {
    font-size: 0.9rem;
    color: #666;
}

.btn-submit {
    width: 100%;
    font-size: 1.3rem;
    padding: 20px;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: bold;
}

.hidden {
    display: none;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

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

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsive */
@media (max-width: 992px) {
    .dates-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 20px; /* Zwiększony font na urządzeniach mobilnych */
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    
    .section {
        padding: 50px 0; /* Mniejsze marginesy na komórce, żeby szybciej przewijać */
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 5px;
    }
    
    .nav a {
        padding: 15px; /* Duże przyciski w menu na telefonie */
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .btn-nav {
        margin-top: 10px;
    }

    .organizer-content {
        flex-direction: column;
        text-align: center;
    }
    .organizer-text .divider {
        margin: 15px auto;
    }
    
    .hero {
        height: 60vh;
        min-height: 500px;
    }
}

.organizer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}
.organizer-image {
    flex: 0 0 auto; /* nie rozciągaj, nie kurč */
    text-align: center;
}
.organizer-image img {
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 160px;
    height: 160px;
    object-fit: cover;
    object-position: top;
}
.organizer-text {
    flex: 1;
}
.organizer-text .divider {
    margin-left: 0;
}
/* Na małych ekranach zachowujemy układ poziomy, tylko trochę mniejsze zdjęcie */
@media (max-width: 480px) {
    .organizer-image img {
        width: 100px;
        height: 100px;
    }
    .organizer-content {
        gap: 18px;
    }
}
