/* =========================================================
   Spurný Theme — Custom (extends Tailwind built CSS)
   ========================================================= */

/* Reset baseline */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ---------- Header (sticky, transparent → solid) ---------- */
.site-header {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}
.site-header.scrolled .nav-link,
.site-header.scrolled .header-logo,
.site-header.scrolled .header-phone { color: #1e4729; }
.site-header.scrolled .nav-link:hover { color: #3a8a4f; }
.site-header.menu-open { background: rgba(255, 255, 255, 0.97); }
.site-header.menu-open .nav-link,
.site-header.menu-open .header-logo,
.site-header.menu-open .header-phone { color: #1e4729; }

/* ---------- Hero ---------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 12s ease-out;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(12,32,19,0.78) 0%,
        rgba(12,32,19,0.55) 40%,
        rgba(12,32,19,0.35) 100%);
}

/* Hero fade-in steps */
@keyframes fadeIn { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform: translateY(0); } }
.hero-fade-1 { animation: fadeIn 0.9s ease-out 0.15s both; }
.hero-fade-2 { animation: fadeIn 1.0s ease-out 0.35s both; }
.hero-fade-3 { animation: fadeIn 0.9s ease-out 0.6s both; }
.hero-fade-4 { animation: fadeIn 0.9s ease-out 0.8s both; }
.hero-fade-5 { animation: fadeIn 1.0s ease-out 0.95s both; }

/* Service pills */
.service-pill {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 100px;
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}
.service-pill:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-1px);
}

/* ---------- Section label ---------- */
.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #3a8a4f;
    display: inline-block;
}

/* ---------- Reveal animations ---------- */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.92); }
.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible {
    opacity: 1;
    transform: none;
}
.delay-100 { transition-delay: 0.10s; }
.delay-200 { transition-delay: 0.20s; }
.delay-300 { transition-delay: 0.30s; }
.delay-400 { transition-delay: 0.40s; }
.delay-500 { transition-delay: 0.50s; }

/* ---------- Bento grid ---------- */
.bento-grid { display: grid; gap: 20px; }
@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
    }
    .bento-wide { grid-column: span 2; }
    .bento-tall { grid-row: span 2; }
}

/* ---------- Credential badge ---------- */
.credential-badge {
    background: #2c6e3e;
    color: white;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
}

/* ---------- Feature icon ---------- */
.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #2c6e3e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.feature-item:hover .feature-icon {
    background: #3a8a4f;
    transform: scale(1.08);
}

/* ---------- Service cards ---------- */
.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.10);
}
.service-card img { transition: transform 0.6s ease; }
.service-card:hover img { transform: scale(1.06); }

/* ---------- Stat numbers ---------- */
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: white;
}
@media (min-width: 1024px) {
    .stat-number { font-size: 3.5rem; }
}

/* ---------- Process step ---------- */
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #2c6e3e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ---------- CTA section ---------- */
.cta-section {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}
.cta-section__overlay {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(12,32,19,0.85);
}

/* ---------- FAQ ---------- */
.faq-item {
    border-bottom: 1px solid #e8dfc8;
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 20px 0;
    font-weight: 600;
    color: #1e4729;
    text-align: left;
    font-family: inherit;
    transition: color 0.3s ease;
}
.faq-question:hover { color: #3a8a4f; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0;
}
.faq-answer.open {
    max-height: 600px;
    padding-bottom: 20px;
}
.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f7f2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2c6e3e;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.faq-item.active .faq-icon {
    background: #2c6e3e;
    color: white;
    transform: rotate(45deg);
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 100;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.menu-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* ---------- Prose (rich content from PageBuilder text/page) ---------- */
.prose-spurny { color: #4a5741; line-height: 1.7; }
.prose-spurny p { margin-bottom: 1rem; }
.prose-spurny h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #193b23;
    font-size: 1.75rem;
    margin: 2rem 0 0.75rem;
}
.prose-spurny h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #193b23;
    font-size: 1.35rem;
    margin: 1.5rem 0 0.5rem;
}
.prose-spurny h4 {
    font-weight: 600;
    color: #245833;
    font-size: 1.05rem;
    margin: 1rem 0 0.4rem;
    letter-spacing: 0.01em;
}
.prose-spurny ul,
.prose-spurny ol {
    margin: 0.5rem 0 1rem 1.25rem;
    padding-left: 1rem;
}
.prose-spurny ul li { list-style: disc; margin-bottom: 0.4rem; }
.prose-spurny ol li { list-style: decimal; margin-bottom: 0.4rem; }
.prose-spurny a { color: #2c6e3e; text-decoration: underline; text-underline-offset: 2px; }
.prose-spurny a:hover { color: #3a8a4f; }
.prose-spurny strong { color: #193b23; font-weight: 700; }
.prose-spurny--dark { color: #d4daca; }
.prose-spurny--dark h2,
.prose-spurny--dark h3,
.prose-spurny--dark h4 { color: white; }
.prose-spurny--dark strong { color: white; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f4f0e4; }
::-webkit-scrollbar-thumb { background: #b5c0a8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #768867; }
