/* ================================================
   Blush Pilates – main.css  (minimalist, no gradients)
   ================================================ */

/* ---- Base ---- */
html { scroll-behavior: smooth; }
::selection { background-color: #eacab8; color: #2d2420; }
:target { scroll-margin-top: 88px; }
body { background-color: #ffffff; color: #1a1410; }
/* ---- Scrollbar ---- */
::-webkit-scrollbar         { width: 5px; }
::-webkit-scrollbar-track   { background: #f8f2ed; }
::-webkit-scrollbar-thumb   { background: #d4bfaf; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #c98b73; }

/* ================================================
   NAVBAR – transparent start → white + blur on scroll
   ================================================ */
/* Navbar bar height – animates on scroll */
.nav-bar {
    height: 6rem;      /* 96px – duże logo */
    transition: height 0.35s ease;
}
@media (min-width: 1024px) {
    .nav-bar { height: 7rem; } /* 112px desktop */
}
#site-header.scrolled .nav-bar {
    height: 4rem;      /* 64px – sticky */
}
@media (min-width: 1024px) {
    #site-header.scrolled .nav-bar { height: 4.5rem; } /* 72px desktop sticky */
}

/* Logo image – animates with bar */
.nav-logo {
    height: 4rem;      /* 64px mobile */
    width: auto;
    object-fit: contain;
    transition: height 0.35s ease;
}
@media (min-width: 1024px) {
    .nav-logo { height: 5rem; } /* 80px desktop */
}
#site-header.scrolled .nav-logo {
    height: 2.25rem;   /* 36px sticky mobile */
}
@media (min-width: 1024px) {
    #site-header.scrolled .nav-logo { height: 2.75rem; } /* 44px sticky desktop */
}

#site-header {
    background: transparent;
    border-bottom: 1px solid transparent;
    transition:
        background-color 0.35s ease,
        backdrop-filter  0.35s ease,
        -webkit-backdrop-filter 0.35s ease,
        border-color     0.35s ease,
        box-shadow       0.35s ease;
}
#site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.90);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    backdrop-filter: blur(20px) saturate(1.6);
    border-bottom: 1px solid rgba(26, 20, 16, 0.07);
    box-shadow: 0 2px 24px rgba(26, 20, 16, 0.05);
}
/* Mobile menu bg always white when open */
#mobile-menu {
    background: rgba(255,255,255,0.98);
}

/* ================================================
   SCROLL BLUR – fixed overlay at viewport bottom
   ================================================ */
#scroll-blur-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    pointer-events: none;
    z-index: 9;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}
#scroll-blur-bottom.visible {
    opacity: 1;
}

/* ================================================
   HERO – entrance animations (fire on load, no observer)
   ================================================ */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.hero-anim {
    opacity: 0;
    animation: heroFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-anim-1 { animation-delay: 0.05s; }
.hero-anim-2 { animation-delay: 0.20s; }
.hero-anim-3 { animation-delay: 0.38s; }
.hero-anim-4 { animation-delay: 0.55s; }

.hero-img-anim {
    opacity: 0;
    animation: heroFadeIn 1.1s ease 0.1s forwards;
}

/* ================================================
   TICKER / MARQUEE – scrolling pills
   ================================================ */
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-25%); } /* 4 copies → move 1 copy = 25% */
}

.ticker-section {
    user-select: none;
    padding: 5.1rem 0;
    padding-bottom: 1.2rem;
    background: #ffffff;
}

/* Centered, constrained container with edge fade */
.ticker-inner {
    max-width: 95rem;  /* ~830px – not full viewport */
    margin: 0 auto;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 12%,
        black 88%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 12%,
        black 88%,
        transparent 100%
    );
}

/* Track must use width:max-content so translateX(-25%) works correctly */
.ticker-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 0.625rem;
    animation: marquee 32s linear infinite;
}
.ticker-inner:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.3rem;
    border-radius: 9999px;
    border: 1px solid rgba(26, 20, 16, 0.22);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #1a1410;
    white-space: nowrap;
    flex-shrink: 0;
}
.ticker-star {
    font-size: 0.5rem;
    color: #1a1410;
    line-height: 1;
    flex-shrink: 0;
}

/* ================================================
   SCROLL REVEAL
   ================================================ */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible           { opacity: 1; transform: translateY(0); }
.reveal-delay-1           { transition-delay: 0.1s; }
.reveal-delay-2           { transition-delay: 0.2s; }
.reveal-delay-3           { transition-delay: 0.3s; }
.reveal-delay-4           { transition-delay: 0.4s; }
.reveal-delay-5           { transition-delay: 0.5s; }
.reveal-delay-6           { transition-delay: 0.6s; }

/* ================================================
   IMAGE PLACEHOLDERS
   ================================================ */
.img-placeholder   { background-color: #ead5c4; }
.img-placeholder-2 { background-color: #e6d5c7; }
.team-photo        { background-color: #d4bfaf; }

/* ================================================
   FAQ ACCORDION
   ================================================ */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s ease;
}
.faq-answer.open       { max-height: 360px; }
.faq-icon              { transition: transform 0.28s ease; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* ================================================
   MOBILE MENU
   ================================================ */
#mobile-menu       { display: none; }
#mobile-menu.open  { display: block; }

/* ================================================
   SECTION LABEL LINE
   ================================================ */
.label-line {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    color: #c98b73;
}
.label-line::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: #c98b73;
}

/* ================================================
   SERVICES LIST
   ================================================ */
.service-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(45,36,32,0.08);
    transition: background 0.2s;
}
.service-row:first-child { border-top: 1px solid rgba(45,36,32,0.08); }

/* ================================================
   LEAF SVG DECORATION
   ================================================ */
.leaf-decoration {
    position: absolute;
    opacity: 0.18;
    pointer-events: none;
}

/* ================================================
   PRICING CTA
   ================================================ */
.pricing-bg { background-color: #eacab8; }

/* ================================================
   CONTACT FORM
   ================================================ */
.form-input {
    width: 100%;
    background: #fdfbf9;
    border: 1px solid rgba(45,36,32,0.14);
    border-radius: 0.625rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #2d2420;
    transition: border-color 0.2s;
    font-family: 'DM Sans', sans-serif;
}
.form-input::placeholder { color: #b8a090; }
.form-input:focus {
    outline: none;
    border-color: #c98b73;
}

/* ================================================
   TESTIMONIALS
   ================================================ */
.testimonial-card { position: relative; }
.testimonial-card::before {
    content: '\201C';
    font-family: 'Cormorant Garant', serif;
    font-size: 4.5rem;
    line-height: 1;
    color: #eacab8;
    position: absolute;
    top: -0.4rem;
    left: 1.25rem;
    pointer-events: none;
    user-select: none;
}

/* ================================================
   FOOTER
   ================================================ */
.footer-minimal {
    background-color: #f8f2ed;
    border-top: 1px solid rgba(45,36,32,0.10);
}

/* ================================================
   ACCESSIBILITY
   ================================================ */
a:focus-visible, button:focus-visible {
    outline: 2px solid #c98b73;
    outline-offset: 3px;
    border-radius: 4px;
}
