/* ============================================================
   Hubert Kaczmarek — Kancelaria Radcy Prawnego
   Custom CSS (extracted from approved prototype)
   ============================================================ */

* { font-family: 'Poppins', system-ui, sans-serif; }
.font-display { font-family: 'Playfair Display', Georgia, serif; }

/* Subtle noise texture overlay */
.noise-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-size: 256px;
    pointer-events: none;
    z-index: 1;
}

/* Gold decorative line */
.gold-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #b69d74, transparent);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s 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.35s; }
.reveal-delay-5 { transition-delay: 0.4s; }
.reveal-delay-6 { transition-delay: 0.45s; }
.reveal-delay-7 { transition-delay: 0.5s; }
.reveal-delay-8 { transition-delay: 0.55s; }
.reveal-delay-9 { transition-delay: 0.6s; }

/* Nav transition */
.nav-scrolled {
    background: rgba(15, 23, 41, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* Dropdown */
.nav-dropdown { display: none; }
.nav-item:hover .nav-dropdown,
.nav-dropdown.active { display: block; }

/* Card hover */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #b69d74;
}

/* Gold underline effect */
.gold-underline {
    position: relative;
    display: inline-block;
}
.gold-underline::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #b69d74;
}

/* Scroll arrow bounce */
@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}
.bounce-slow { animation: bounce-slow 2s ease-in-out infinite; }

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.mobile-menu.open { transform: translateX(0); }

/* Smooth scroll with sticky nav offset */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Gradient gold */
.gradient-gold {
    background: linear-gradient(135deg, #9a8460, #b69d74, #d4bc8e);
}
.gradient-gold-text {
    background: linear-gradient(135deg, #9a8460, #b69d74, #d4bc8e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero overlay */
.hero-overlay {
    position: relative;
}
.hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,41,0.8) 0%, rgba(26,26,46,0.5) 50%, rgba(15,23,41,0.9) 100%);
    z-index: 1;
}
.hero-overlay > * {
    position: relative;
    z-index: 2;
}

/* Gradient divider */
.divider-gradient {
    height: 1px;
    background: linear-gradient(90deg, transparent, #b69d74, #9a8460, transparent);
}

/* Page header (subpages) */
.page-header {
    background: linear-gradient(135deg, #0f1729, #1a1a2e, #2d2d44);
}

/* Form validation */
.border-red-400 { border-color: #f87171; }
.border-green-400 { border-color: #4ade80; }
#submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* FAQ accordion */
.faq-toggle[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
}
.faq-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* Skip link (a11y) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #b69d74;
    color: #0f1729;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* Focus-visible (keyboard only) */
*:focus-visible {
    outline: 2px solid #b69d74;
    outline-offset: 2px;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: none;
    ring: 2px solid #b69d74;
}

/* Leaflet map overrides */
.map-placeholder:hover {
    opacity: 0.85;
}
.map-popup strong {
    font-size: 0.875rem;
    color: #1a1a2e;
}
.map-popup a {
    color: #b69d74;
    text-decoration: none;
}
.map-popup a:hover {
    text-decoration: underline;
}

/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 41, 0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(182, 157, 116, 0.2);
    padding: 1.25rem 0;
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.cookie-banner.visible {
    transform: translateY(0);
}
