/* ========================================================================= */
/* CSS VARIABLES & RESET V2 (BREATHTAKING UPGRADE)                          */
/* ========================================================================= */
:root {
    /* Paleta: ciepłe karmelowo-kremowe barwy budzące zaufanie */
    --primary: #C07A3A;            /* Głęboki, dojrzały karmel */
    --primary-light: #E8A96A;      /* Jasny miodowo-piaskowy akcent */
    --primary-hover: #A3612A;      /* Ciemniejszy karmel przy hoverze */
    --primary-glow: rgba(192, 122, 58, 0.35);
    --dark: #2D2417;               /* Ciepły ciemnografitowy (z nutą brązu, nie zimny granat) */
    --text: #5C4A32;               /* Czytelny brązowoszary dla treści */
    --text-light: #9C8268;         /* Subtelny jasny brąz na podtytuły */
    --bg-light: #FAF7F2;           /* Kremowo-piaskowe tło, nie zimna biel */
    --bg-sand: #F2EBE0;            /* Piaskowa biel dla smug tła */
    --bg-card: rgba(255, 251, 245, 0.82);  /* Ciepłe szkło zamiast zimnego */
    --glass-border: rgba(192, 122, 58, 0.15);
    
    --transition: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 20px 40px rgba(45, 36, 23, 0.07);
    --shadow-hover: 0 30px 60px rgba(192, 122, 58, 0.2);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Scrollbar Customization */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-sand); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

h1, h2, h3, h4, .logo-icon {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    font-weight: 700;
}

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

/* ========================================================================= */
/* ANIMOWANE TŁO (GRADIENT MESH / BLOBS)                                     */
/* ========================================================================= */
.glow-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(192,122,58,0.18) 0%, rgba(192,122,58,0) 70%);
    top: -200px; left: -200px;
}

.blob-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(232,193,145,0.22) 0%, rgba(232,193,145,0) 70%);
    bottom: -100px; right: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* ========================================================================= */
/* SCROLL REVEAL (INTERSECTION OBSERVER LOGIC)                               */
/* ========================================================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--transition), transform 1s var(--transition);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tab content bazowe zrywanie się */
.tab-content {
    display: none;
    animation: tabFadeIn 0.6s var(--transition) forwards;
}

.tab-content.active { display: block; }

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(15px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========================================================================= */
/* NAWIGACJA GLASSMORPHISM                                                   */
/* ========================================================================= */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.logo-icon { filter: drop-shadow(0 2px 4px var(--primary-glow)); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.5);
    padding: 6px;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
}

.tab-btn {
    background: transparent;
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s var(--transition);
    position: relative;
    overflow: hidden;
}

.tab-btn:hover { color: var(--dark); }

.tab-btn.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* ========================================================================= */
/* HERO SECTION                                                              */
/* ========================================================================= */
.hero-section {
    position: relative;
    height: 65vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 0 5%;
    margin: 24px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.hero-bg {
    position: absolute;
    top: -5%; left: -5%; width: 110%; height: 110%; /* Parallax illusion room */
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(30,41,59,0.95) 0%, rgba(30,41,59,0.4) 50%, transparent 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 650px;
    color: white;
}

.hero-content h1 {
    color: white;
    font-size: 4rem;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.85;
    font-weight: 300;
}

.cta-button {
    background: var(--primary);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s var(--transition);
    box-shadow: 0 10px 30px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
}

.cta-button:hover::after {
    transform: translateX(100%);
    transition: transform 0.6s ease;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 167, 38, 0.6);
}

/* ========================================================================= */
/* KARTY (O MNIE / OPINIE) - Glassmorphism & Hover Magnetism                 */
/* ========================================================================= */
.about-details, .reviews-section, .gallery-section, .contact-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 70px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--dark) 30%, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services-grid, .reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card, .review-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    transition: all 0.5s var(--transition);
    transition-delay: calc(var(--d) * 1);
    position: relative;
    overflow: hidden;
}

.service-card::before, .review-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 100%);
    opacity: 0; transition: opacity 0.5s; z-index: 1; pointer-events: none;
}

.service-card:hover, .review-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 167, 38, 0.3);
}

.service-card:hover::before, .review-card:hover::before { opacity: 1; }

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 10px rgba(255,167,38,0.2));
}

.quote-icon {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 5rem;
    font-family: serif;
    color: rgba(255, 167, 38, 0.1);
    line-height: 1;
}

.review-text {
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    color: var(--dark);
}

.author-avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ========================================================================= */
/* ZDJĘCIA (GALLERY GRID)                                                    */
/* ========================================================================= */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition-delay: calc(var(--d) * 1);
}

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30,41,59,0.9) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex; align-items: flex-end; padding: 30px;
}

.gallery-item:hover img { transform: scale(1.1) rotate(1deg); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

.image-caption {
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    transform: translateY(20px);
    transition: all 0.5s var(--transition);
}

.image-caption span {
    font-size: 0.9rem; font-weight: 400; font-family: 'Inter', sans-serif;
    color: var(--primary);
}

.gallery-item:hover .image-caption { transform: translateY(0); }

/* ========================================================================= */
/* KONTAKT (GLOW FORM)                                                       */
/* ========================================================================= */
.contact-wrapper {
    display: flex;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.contact-info {
    flex: 1;
    background: var(--dark);
    position: relative;
    overflow: hidden;
    color: white;
    padding: 70px 50px;
}

.contact-info::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,167,38,0.15) 0%, transparent 70%);
    z-index: 1; pointer-events: none;
}

.contact-info h2 { color: white; font-size: 3rem; margin-bottom: 20px; position: relative; z-index: 2; }
.contact-info p { color: rgba(255,255,255,0.7); margin-bottom: 50px; font-size: 1.1rem; position: relative; z-index: 2; }
.contact-details { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 25px; }

.contact-card {
    display: flex; align-items: center; gap: 20px; font-size: 1.15rem;
    transition: transform 0.3s; cursor: default;
}

.contact-card:hover { transform: translateX(10px); color: var(--primary); }

.icon-circle {
    width: 45px; height: 45px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}

.contact-form-container { 
    flex: 1.2; 
    padding: 70px 50px; 
    background: #FAF4EB;  /* Ciepła kremowa herbata zamiast zimnej bieli */
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group { position: relative; margin-bottom: 22px; }

.form-group label {
    display: block; 
    font-family: 'Outfit', sans-serif; 
    font-weight: 600;
    color: var(--dark); 
    margin-bottom: 8px; 
    font-size: 0.85rem;
    text-transform: uppercase; 
    letter-spacing: 0.8px;
}

.form-group input, .form-group textarea {
    width: 100%; 
    padding: 15px 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(192, 122, 58, 0.15);
    border-radius: 14px;
    font-family: 'Inter', sans-serif; 
    font-size: 1rem;
    color: var(--dark);
    transition: all 0.3s;
    box-shadow: inset 0 1px 4px rgba(45, 36, 23, 0.04);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none; 
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(192, 122, 58, 0.12);
}

.mail-info {
    margin-top: 14px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

.mail-info strong { color: var(--primary); }

.submit-btn {
    width: 100%; 
    background: var(--dark); 
    color: white;
    font-family: 'Outfit', sans-serif; 
    font-size: 1.15rem; 
    font-weight: 600;
    padding: 18px; 
    border: none; 
    border-radius: 14px;
    cursor: pointer; 
    transition: all 0.4s var(--transition);
    letter-spacing: 0.5px;
}

.submit-btn:hover { 
    background: var(--primary); 
    transform: translateY(-3px); 
    box-shadow: 0 15px 30px var(--primary-glow); 
}

.form-success-msg {
    margin-top: 25px; padding: 18px;
    background: rgba(39, 174, 96, 0.1); color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.2);
    border-radius: 16px; text-align: center;
    font-weight: 600; font-size: 1.1rem;
    animation: tabFadeIn 0.5s ease;
}

.hidden { display: none; }

footer {
    text-align: center; padding: 40px; color: var(--text);
    border-top: 1px solid var(--glass-border);
}

.form-success-msg {
    margin-top: 20px; padding: 16px;
    background: rgba(39, 174, 96, 0.08); color: #1e8449;
    border: 1.5px solid rgba(39, 174, 96, 0.3);
    border-radius: 14px; text-align: center;
    font-weight: 600; font-size: 1rem;
    animation: tabFadeIn 0.5s ease;
}

.form-error-msg {
    margin-top: 20px; padding: 16px;
    background: rgba(192, 57, 43, 0.07); color: #c0392b;
    border: 1.5px solid rgba(192, 57, 43, 0.25);
    border-radius: 14px; text-align: center;
    font-weight: 600; font-size: 1rem;
    animation: tabFadeIn 0.5s ease;
}

/* Input validation states */
.form-group input.input-error,
.form-group textarea.input-error,
.form-group .date-picker.input-error {
    border-color: #e74c3c !important;
    background: rgba(231, 76, 60, 0.04) !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12) !important;
    animation: shake 0.4s ease;
}

.form-group input.input-ok,
.form-group textarea.input-ok {
    border-color: #27ae60 !important;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1) !important;
}

.err-msg {
    display: block;
    color: #e74c3c;
    font-size: 0.82rem;
    margin-top: 6px;
    font-weight: 500;
    padding-left: 4px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ========================================================================= */
/* FLATPICKR CALENDAR - CUSTOM THEME (WARM CARAMEL)                         */
/* ========================================================================= */
.date-input-wrapper {
    position: relative;
}

.date-input-wrapper .date-picker {
    cursor: pointer;
    padding-right: 48px; /* przestrzeń na ikonę */
}

.calendar-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
}

/* Flatpickr popup overrides */
.flatpickr-calendar {
    border-radius: 20px !important;
    box-shadow: 0 30px 60px rgba(45, 36, 23, 0.15) !important;
    border: 1px solid var(--glass-border) !important;
    font-family: 'Inter', sans-serif !important;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    background: var(--dark) !important;
    color: #FAF7F2 !important;
}

.flatpickr-weekdays { background: var(--dark) !important; }
span.flatpickr-weekday { background: var(--dark) !important; color: var(--primary-light) !important; }

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

.flatpickr-day.inRange {
    background: rgba(192, 122, 58, 0.15) !important;
    border-color: transparent !important;
    color: var(--dark) !important;
}

.flatpickr-day:hover {
    background: rgba(192, 122, 58, 0.25) !important;
}

.flatpickr-day.today {
    border-color: var(--primary-light) !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
}

/* ========================================================================= */
/* RWD                                                                       */
/* ========================================================================= */
@media (max-width: 900px) {
    .contact-wrapper { flex-direction: column; }
    .hero-content h1 { font-size: 3rem; }
    .navbar { padding: 10px 0; }
    .nav-links { background: transparent; border: none; }
}

@media (max-width: 600px) {
    .nav-container { flex-direction: column; gap: 15px; }
    .nav-links { width: 100%; justify-content: space-between; overflow-x: auto; padding-bottom: 5px; }
    .hero-section { height: 75vh; margin: 10px; border-radius: 20px; padding: 0 5%; text-align: center; }
    .hero-bg { background-position: 70% center; }
    .hero-overlay { background: rgba(30,41,59,0.7); }
    .contact-info, .contact-form-container { padding: 40px 30px; }
    .section-header h2 { font-size: 2.2rem; }
}
