/* =========================================
   INDEX.CSS - Tylko dla Strony Głównej
   ========================================= */

/* HERO SECTION - Z poprawką dla iPada */
.hero {
    /* Ścieżka wychodzi z folderu CSS (../) */
    background-image: url('../images/background.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 75vh;
    display: flex; align-items: center;
    margin-bottom: 60px;
    
    /* FIX NA iPHONE/iPAD */
    background-attachment: scroll; 
}

/* Paralaksę włączamy tylko na dużych ekranach (gdzie nie ma dotyku) */
@media (min-width: 1024px) {
    .hero { background-attachment: fixed; }
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.4); z-index: 1;
}
.h-center { height: 100%; display: flex; align-items: center; z-index: 2; position: relative; }
.hero-text { color: #ffffff; max-width: 650px; }
.hero-text h1 { color: #ffffff; font-size: 4rem; margin-bottom: 25px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-desc { font-size: 1.25rem; margin-bottom: 40px; opacity: 0.95; color: #f0f0f0; }
.btn-hero { background-color: var(--accent-color); color: #1a1a1a; padding: 16px 38px; }
.btn-hero:hover { background-color: #fff; color: #1a1a1a; }

/* Sekcja Udogodnienia (Ikony) */
.amenities-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 30px; text-align: center; margin-top: 40px;
}
.amenity-item i { font-size: 2rem; color: #8a7a66; margin-bottom: 15px; }

/* O nas & Mapa */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-map iframe { width: 100%; height: 400px; border-radius: 8px; }

/* Kontakt (Duży formularz) */
.contact-wrapper {
    background-color: #F0EBE5; border-radius: 24px; padding: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
    max-width: 1200px; margin: 0 auto; align-items: center;
}
.contact-details { text-align: center; }
.contact-links a { color: #BFA67A; text-decoration: none; font-weight: 700; }
.input-field {
    width: 100%; padding: 16px 20px; margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #d1d1d1; border-radius: 12px;
    font-family: inherit; font-size: 0.95rem; outline: none;
}
.input-with-icon { position: relative; width: 100%; }
.input-icon { position: absolute; right: 20px; top: 50%; transform: translateY(-65%); color: #888; pointer-events: none; }
.form-row-split { display: flex; gap: 15px; margin-bottom: 15px; }
.textarea-field { resize: vertical; min-height: 120px; }
.submit-btn {
    width: 100%; padding: 18px; background-color: #8C7B60; color: #fff;
    font-weight: 700; border-radius: 12px; font-size: 1rem;
    border: none; cursor: pointer; transition: background 0.3s;
}
.submit-btn:hover { background-color: #75654C; }

/* Responsywność Index */
@media (max-width: 900px) {
    .grid-2, .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .contact-wrapper { width: 100%; padding: 40px; }
}
@media (max-width: 768px) {
    .hero { min-height: 60vh; }
    .hero-text h1 { font-size: 2.8rem; }
    .contact-wrapper { padding: 20px; border-radius: 16px; }
    .form-row-split { flex-direction: column; gap: 15px; }
}