@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary:     #c49a9a;
    --primary-dark:#a67c7c;
    --accent:      #d8b6b6;
    --accent-light:#e8d4d4;
    --secondary:   #f5e8e8;
    --gold:        #d4af87;
    --text:        #000000;
    --text-light:  #ffffff;
    --text-lighter:#ffffff;
    --gold-main:   #b67f07;

    --glass:       rgba(255, 255, 255, 0.28);
    --glass-border:rgba(196, 154, 154, 0.35);
    --blur:        blur(42px);
    --radius-xl:   36px;
    --radius-l:    24px;
    --radius-m:    16px;

    --shadow-soft: 0 10px 35px rgba(196, 154, 154, 0.18);
    --shadow-hover:0 20px 60px rgba(196, 154, 154, 0.28);

    --transition-slow: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-normal: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(145deg, #f9ecec 0%, #f5e6e6 50%, #f9f0f0 100%);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.65;
}

/* TYPOGRAFIA */

h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--gold-main);
    letter-spacing: -0.4px;
}

h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: -0.4px;
}

h1 { font-size: clamp(3.1rem, 6.5vw, 4.8rem); }
h2 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); }
h3 { font-size: clamp(1.55rem, 3.2vw, 2.1rem); }

p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 68ch;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    padding: 4rem 2.5rem;
    background: linear-gradient(to bottom, var(--glass), rgba(255,255,255,0.08));
    backdrop-filter: var(--blur);
    border-right: 1px solid var(--glass-border);
    z-index: 1000;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 3.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin: 1.6rem 0;
}

.sidebar a {
    color: var(--text-lighter);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    transition: var(--transition-normal);
    display: block;
}

.sidebar a:hover {
    color: var(--primary);
    transform: translateX(8px);
}

/* MAIN */
main {
    margin-left: 280px;
    padding: 2rem 3.5rem 6rem;
}

/* GLASS */
.glass {
    background: var(--glass);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 2.8rem;
    transition: var(--transition-slow);
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    min-height: 760px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('/assets/hero.jpg') top center / cover no-repeat;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
}

.falling-petals {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 860px;
}

.hero-img {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-hover);
    margin-top: 1.8rem;
}

/* ANIMACJE */
.animate-fade {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.animate-scale {
    opacity: 0;
    transform: scale(0.94);
    transition: all 1.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.animate-bloom {
    opacity: 0;
    transform: scale(0.92);
    transition: all 1.1s ease;
}

.animate-bloom.visible {
    opacity: 1;
    transform: scale(1);
}

.visible {
    opacity: 1 !important;
    transform: scale(1) !important;
}



/* USŁUGI */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.2rem;
    margin-top: 3rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.4rem;
    min-height: 480px;
    transition: var(--transition-slow);
}

.service-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-l);
    margin-top: 1.3rem;
}

/* Linki w kartach usług jak nagłówki h3 */
.service-card h3 a {
    color: inherit;          /* dziedziczy kolor h3 */
    text-decoration: none;   /* usuwa podkreślenie */
    font-weight: inherit;
}

.service-card h3 a:hover {
    color: inherit;
}


/* GALERIA */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.4rem;
    margin-top: 3rem;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-l);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.gallery-item:hover {
    transform: scale(1.06);
    box-shadow: var(--shadow-hover);
}

#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
}

/* Kontakt */

.contact-section {
    min-height: 50vh;              /* połowa ekranu */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
}

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 24px;
    max-width: 520px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-bottom: 1.2rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid #ddd;
    color: #000000;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form button {
    background: var(--primary-dark); /* ciemny róż */
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 16px;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.contact-form.blocked {
    pointer-events: none;     /* BLOKADA */
    opacity: 0.75;
}

.contact-form.blocked input,
.contact-form.blocked textarea {
    background: #f5f5f5;
}


/* ===== BUKIETY PAGE ===== */

.topbar {
    position: sticky;
    top: 0;
    z-index: 1200;
    padding: 1.4rem 3rem;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
}

.topbar-btn {
    text-decoration: none;
    padding: 0.7rem 1.4rem;
    border-radius: 14px;
    background: var(--primary-dark);
    color: #fff;
    font-weight: 500;
    transition: var(--transition-normal);
}

.topbar-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.bukiety-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 3rem 6rem;
}

.page-title {
    margin-bottom: 3rem;
}

.bukiety-list {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.bukiet-card {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
}

.bukiet-card img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-m);
    flex-shrink: 0;
}

.bukiet-info h3 {
    margin-bottom: 0.6rem;
}

.bukiet-info p {
    color: var(--text);
    margin-bottom: 0.8rem;
    max-width: 60ch;
}

.price {
    font-weight: 600;
    color: var(--primary-dark);
}

/* === POPUP PORTFOLIO === */

#portfolio-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4000;
}

.popup-content {
    max-width: 460px;
    padding: 2.4rem;
    text-align: center;
}

.popup-content p {
    color: var(--text);
    margin: 1.4rem 0 2rem;
}

.popup-content button {
    background: var(--primary-dark);
    color: #fff;
    border: none;
    padding: 0.9rem 1.8rem;
    border-radius: 14px;
    cursor: pointer;
}


/* Płatki */
.petal {
    position: absolute;
    font-size: 1.9rem;
    animation: fall linear forwards;
    user-select: none;
    filter: blur(0.2px);
}

@keyframes fall {
    0%   { transform: translateY(-120%) rotate(0deg); }
    100% { transform: translateY(120vh) rotate(720deg); }
}

.section {
    animation: breathe 4s ease-in-out infinite;
    margin-top: 7rem
}


footer {
    margin-left: 280px;
    margin-top: 6rem;

    border-top-left-radius: var(--radius-xl);
    border-bottom-left-radius: var(--radius-xl);

    padding: 2.5rem 3rem;
}


/* RESPONSIVE */
@media (max-width: 1024px) {
    .sidebar { width: 240px; }
    main { margin-left: 240px; }
}

@media (max-width: 768px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 2rem 1.8rem;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
    main {
        margin-left: 0;
        padding: 1.5rem 2rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        min-height: 520px;
    }

    footer {
    margin-left: 0;
    border-radius: var(--radius-xl);
    }
}