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

:root {
  /* Emerald / Gold Theme from Reference */
  --color-bg: #154230; /* Emerald Green */
  --color-bg-light: #1b523c; 
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.7);
  --color-gold: #a6824a; /* Antique Gold */
  --color-gold-hover: #8f6e3c;
  --color-danger: #5d1e21; /* Deep Burgundy */
  --color-danger-bg: rgba(93, 30, 33, 0.1);

  /* Shared */
  --color-white: #ffffff;
  --color-cream: #ffffff; /* Reverted to white */
  --color-black: #101111; /* Charcoal Black */
  --color-border: #e5e7eb;
  
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;
  
  --container-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
}
body { font-family: var(--font-primary); color: var(--color-black); background-color: var(--color-cream); line-height: 1.6; overflow-x: hidden; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--color-black); font-weight: 600; line-height: 1.2; }
a { color: inherit; text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 1rem; }
.text-center { text-align: center; }

/* Classic Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0.8rem 1.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; border-radius: 2px; transition: all 0.3s ease; cursor: pointer; border: 1px solid transparent; font-size: 0.85rem; font-family: var(--font-primary); }
.btn-gold { background-color: var(--color-gold); color: white; }
.btn-gold:hover { background-color: var(--color-gold-hover); }
.btn-white { background-color: white; color: var(--color-bg); border: 1px solid white; }
.btn-white:hover { background-color: transparent; color: white; }
.btn-outline { background-color: transparent; border-color: rgba(255, 255, 255, 0.4); color: white; }
.btn-outline:hover { background-color: white; color: var(--color-bg); }
.btn-outline-gold { background-color: transparent; border: 2px solid var(--color-gold); color: var(--color-gold); }
.btn-outline-gold:hover { background-color: var(--color-gold); color: white; }
.btn-wide { min-width: 250px; }

/* --- HEADER --- */
header { background-color: var(--color-bg); color: white; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); padding: 1rem 0; }
header .container { display: flex; justify-content: space-between; align-items: center; }

.logo { display: inline-flex; flex-direction: column; align-items: stretch; }
.logo-main { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; color: var(--color-gold); letter-spacing: 1px; }
.logo-sub { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 2.1px; color: var(--color-text-muted); text-align: justify; text-align-last: justify; width: 100%; }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #e5e7eb; }
.nav-links a:hover, .nav-links a.active { color: var(--color-gold); }

.nav-highlight { background-color: #cc3333; color: #ffffff !important; margin: -1rem -1.5rem; padding: 2.1rem 3rem; clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%); display: inline-flex; align-items: center; transition: background-color 0.3s ease; }
.nav-highlight:hover { background-color: #aa2222 !important; }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.phone-btn { display: flex; align-items: center; gap: 0.5rem; animation: pulse 2s infinite; }
.hamburger { display: none; background: none; border: none; color: white; cursor: pointer; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* --- HERO SECTION --- */
.hero { background-color: var(--color-bg); color: white; min-height: 90vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 4rem 0; }
.hero::after { content: ''; position: absolute; top: 0; right: 0; width: 35%; height: 100%; background-color: rgba(6, 78, 59, 0.4); transform: skewX(12deg) translateX(20%); display: none; }
@media (min-width: 1024px) { .hero::after { display: block; } }

.hero-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; position: relative; z-index: 10; }

.badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 1rem; background-color: var(--color-bg-light); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 99px; color: var(--color-gold); font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem; }
.hero h1 { font-family: var(--font-heading); font-size: 4rem; line-height: 1.1; margin-bottom: 1rem; color: white; }
.h1-subtitle { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 4px; font-weight: 600; color: var(--color-gold); display: inline-block; margin-bottom: 1rem; opacity: 0.9; position: relative; }
.h1-subtitle::after { content: ''; display: block; width: 100%; height: 2px; background-color: var(--color-gold); margin-top: 10px; }
.h1-anim { font-size: 1.8rem; font-family: var(--font-heading); white-space: nowrap; display: block; margin-top: 0.5rem; }
.text-gold { color: var(--color-gold); display: inline-block; position: relative; }
.text-gold::after { content: '|'; position: absolute; right: -10px; color: white; animation: blink 0.7s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@media (min-width: 768px) { .h1-anim { font-size: 2.5rem; } }

.hero-desc { color: var(--color-text-muted); font-size: 1.1rem; margin-bottom: 2rem; max-width: 500px; line-height: 1.6; }
.hero-buttons { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.emergency-box { background-color: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.08); border-left: 4px solid #cc3333; border-radius: 2px; padding: 1.5rem; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 15px 30px -5px rgba(0,0,0,0.3); display: flex; gap: 1.2rem; align-items: center; }
.emergency-icon { background-color: rgba(204, 51, 51, 0.15); color: #cc3333; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.emergency-content h3 { color: #cc3333; font-weight: 700; font-size: 1.15rem; margin-bottom: 0.35rem; font-family: var(--font-primary); }
.emergency-content p { color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; line-height: 1.5; }

/* Hero Visual (Right Side) */
.hero-visual { position: relative; height: 500px; max-width: 500px; width: 100%; margin: 0 auto; border-radius: 20px; background: url('assets/lawyer_portrait.png') center/cover no-repeat; display: flex; align-items: center; justify-content: center; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.float-card { position: absolute; background: white; padding: 1rem; border-radius: 12px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); color: #1f2937; z-index: 20; }
.rating-card { top: 2rem; right: -2rem; width: 180px; text-decoration: none; }
.rating-card:hover { transform: scale(1.05); }
.rating-stars { display: flex; color: #eab308; margin-top: 0.25rem; font-size: 1.2rem; }
.spec-card { bottom: 2rem; left: -2rem; background: rgba(6, 78, 59, 0.95); color: white; border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(4px); display: flex; align-items: center; gap: 1rem; padding: 1.25rem; min-width: 240px; }
.star-half { position: relative; display: inline-block; color: transparent; background: linear-gradient(90deg, #eab308 50%, #d1d5db 50%); -webkit-background-clip: text; background-clip: text; }

/* Mobile hero */
@media (min-width: 768px) {
    .hamburger { display: none; }
    .hero-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 3.4rem; white-space: nowrap; }
    .hero-buttons { flex-direction: row; }
    .hero-visual { height: 600px; margin-left: auto; margin-right: 0; }
}

@media (max-width: 767px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--color-bg); flex-direction: column; padding: 2rem 1rem; gap: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    .hero { padding-top: 2rem; }
    .hero-visual { height: 450px; order: 1; margin-top: 2rem; max-width: 320px; }
}

/* --- TRUST BAR --- */
.trust-bar { background-color: white; padding: 4rem 0; border-bottom: 1px solid var(--color-border); }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; text-align: center; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; flex-direction: column; align-items: center; position: relative; cursor: default; }
.trust-item:not(:last-child)::after { content: ''; position: absolute; right: -1rem; top: 20%; height: 60%; width: 1px; background-color: var(--color-border); }
.trust-item:hover .trust-number { color: var(--color-bg); }
.trust-number { font-family: var(--font-heading); font-size: 3rem; font-weight: 400; color: var(--color-gold); line-height: 1; margin-bottom: 1rem; transition: color 0.3s ease; }
.trust-label { font-size: 0.75rem; color: #6b7280; text-transform: uppercase; letter-spacing: 2px; font-weight: 500; transition: color 0.3s ease; }
.trust-item:hover .trust-label { color: var(--color-bg); }

/* Sections Common */
section { padding: 100px 0; }
.section-bg-alt { background-color: var(--color-white); }
.section-title { font-size: 2.5rem; margin-bottom: 20px; }
.section-title { color: var(--color-bg); font-weight: 400; text-align: center; }
.section-lead { font-size: 1.1rem; color: #4b5563; margin-bottom: 50px; max-width: 780px; text-align: center; margin-left: auto; margin-right: auto; line-height: 1.7; }

/* Services Section */
.services-header { text-align: center; margin-bottom: 60px; }
.services-grid { display: grid; gap: 30px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }
.service-card { display: block; background-color: white; padding: 40px; border-radius: 12px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); transition: all 0.3s ease; position: relative; border: 1px solid var(--color-border); overflow: hidden; z-index: 1; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); border-color: var(--color-gold); }

.service-card-animated { background-color: transparent; }
.service-card-animated::after { content: ""; position: absolute; inset: 0; background-color: white; border-radius: 11px; z-index: -1; transition: inset 0.3s ease; }
.service-card-animated:hover::after { inset: 2px; }
.service-card-animated::before { content: ""; position: absolute; width: 500px; height: 500px; margin-top: -250px; margin-left: -250px; background: radial-gradient(circle, #cc3333 0%, #cc3333 15%, transparent 65%); animation: blob-around 2.5s linear infinite; opacity: 0; transition: opacity 0.3s ease; z-index: -2; }
.service-card-animated:hover { border-color: transparent; }
.service-card-animated:hover::before { opacity: 1; }
@keyframes blob-around { 0% { top: 0; left: 0; } 30% { top: 0; left: 100%; } 50% { top: 100%; left: 100%; } 80% { top: 100%; left: 0; } 100% { top: 0; left: 0; } }
.card-tags { display: flex; gap: 10px; margin-bottom: 20px; }
.card-tags span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; background-color: #f3f4f6; color: var(--color-black); padding: 4px 10px; border-radius: 4px; }
.card-content h3 { font-size: 1.5rem; margin-bottom: 15px; }
.card-content p { color: var(--color-black); opacity: 0.8; font-size: 0.95rem; line-height: 1.6; }
.card-arrow { position: absolute; top: 40px; right: 40px; color: var(--color-gold); transition: transform 0.3s ease; }
.service-card:hover .card-arrow { transform: translateX(5px) translateY(-5px); }

.service-detail-block { transition: border-left-color 0.3s ease; }
.service-detail-block:hover { border-left-color: var(--color-bg) !important; }

/* About Section */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
@media (max-width: 1024px) { .about-grid { grid-template-columns: 1fr; } }
.about-visual { position: relative; }
.about-image-wrapper { position: relative; }
.about-image-wrapper img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--color-border); padding: 10px; background: white; }
.about-content .section-title, .about-content .section-lead { text-align: left; margin-left: 0; }
.exp-badge { position: absolute; bottom: -20px; right: -20px; background-color: var(--color-bg); color: white; padding: 30px; text-align: center; border: 1px solid var(--color-gold); }
@media (max-width: 1024px) { .exp-badge { right: 20px; } }
.exp-number { font-size: 3rem; font-weight: 400; font-family: var(--font-heading); line-height: 1; margin-bottom: 5px; color: var(--color-gold); font-variant-numeric: lining-nums; }
.exp-text { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; }
.about-features { display: flex; flex-direction: column; gap: 30px; margin-top: 40px; border-top: 1px solid var(--color-border); padding-top: 30px; }
.about-features li { display: flex; gap: 20px; align-items: flex-start; }
.feature-icon { color: var(--color-gold); margin-top: 5px; }
.about-features strong { display: block; font-size: 1.2rem; color: var(--color-bg); margin-bottom: 8px; font-family: var(--font-heading); font-weight: 500; }
.about-features p { color: #4b5563; font-size: 0.95rem; }

/* Quote Section */
.quote-section { background-color: var(--color-bg); color: white; padding: 100px 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); }
.quote-block { max-width: 800px; margin: 0 auto; position: relative; }
.quote-text { font-size: 2.2rem; font-family: var(--font-heading); font-style: italic; line-height: 1.4; margin-bottom: 0px; font-weight: 300; }
.quote-author { font-size: 1.05rem; color: var(--color-gold); text-transform: uppercase; letter-spacing: 3px; font-weight: 600; margin-top: 0; }
.author-dash { display: inline-block; width: 40px; height: 1px; background-color: var(--color-gold); vertical-align: middle; margin-right: 15px; }

/* Reviews Carousel */
.reviews-section { background-color: white; overflow: hidden; border-top: 1px solid var(--color-border); }
.google-rating-badge { display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 60px; }
.rating-score { font-size: 2.5rem; font-weight: 400; color: var(--color-bg); font-family: var(--font-heading); }
.google-rating-badge .rating-stars { color: var(--color-gold); font-size: 1.2rem; letter-spacing: 4px; margin-top: 0; }
.rating-count { color: #6b7280; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; display: inline-block; }

.reviews-wrapper { position: relative; padding: 0 60px; }
.reviews-grid { display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 20px 0; }
.reviews-grid::-webkit-scrollbar { display: none; }
.review-card { flex: 0 0 calc((100% - 60px) / 3); background-color: #f9fafb; padding: 25px; border: 1px solid var(--color-border); scroll-snap-align: start; }
@media (max-width: 1024px) { .review-card { flex: 0 0 calc((100% - 30px) / 2); } }
@media (max-width: 768px) { .review-card { flex: 0 0 100%; } }
.review-header { margin-bottom: 20px; border-bottom: 1px solid #e5e7eb; padding-bottom: 15px; }
.reviewer-name { font-weight: 600; color: var(--color-bg); font-family: var(--font-heading); font-size: 1.2rem; display: block; margin-bottom: 5px; }
.review-stars { color: var(--color-gold); font-size: 0.9rem; }
.review-text { color: #4b5563; font-style: italic; line-height: 1.8; font-size: 0.95rem; }

.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background-color: transparent; border: 1px solid var(--color-bg); color: var(--color-bg); width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; z-index: 10; }
.carousel-btn:hover { background-color: var(--color-bg); color: white; }
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

/* FAQ Section */
/* Subpages Overrides */
.page-hero { background-color: var(--color-bg); color: white; padding: 120px 0 80px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.page-hero h1 { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 400; margin-bottom: 20px; color: var(--color-gold); }
.page-hero p { font-size: 1.1rem; color: #d1d5db; max-width: 900px; margin: 0 auto; font-weight: 300; line-height: 1.8; }
.service-details, .pricing-content { max-width: 900px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 50px; margin: 0 auto; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.service-list li { border-bottom: 1px solid var(--color-border); padding: 20px 0; color: #2c3135; font-size: 1.05rem; }
.content-section h2 { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 400; color: var(--color-bg); margin-bottom: 30px; border-bottom: 1px solid var(--color-border); padding-bottom: 15px; }

/* Service Pages Layout */
.service-content-grid { display: grid; grid-template-columns: 1fr; gap: 50px; }
@media (min-width: 900px) { .service-content-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

/* FAQ Accordion */
.faq-list { display: flex; flex-direction: column; gap: 15px; max-width: 900px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--color-border); border-radius: 6px; overflow: hidden; transition: all 0.3s ease; }
.faq-item:hover { border-color: var(--color-gold); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.faq-item[open] { border-color: var(--color-gold); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.faq-question { padding: 20px; font-weight: 600; color: var(--color-bg); cursor: pointer; list-style: none; position: relative; font-size: 1.1rem; outline: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: "+"; position: absolute; right: 20px; font-size: 1.5rem; color: var(--color-gold); transition: all 0.3s ease; top: 50%; transform: translateY(-50%); }
.faq-item[open] .faq-question::after { transform: translateY(-50%) rotate(45deg); color: var(--color-gold); }
.faq-answer { padding: 0 20px 20px; color: #4b5563; line-height: 1.6; border-top: 1px solid #f3f4f6; margin-top: 5px; padding-top: 15px; }

/* O Kancelarii Layout */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 50px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 5fr 7fr; align-items: center; } }
.principles-grid { display: grid; grid-template-columns: 1fr; gap: 30px; text-align: left; }
@media (min-width: 768px) { .principles-grid { grid-template-columns: repeat(3, 1fr); } }
.principle-card { background-color: var(--color-white); border: 1px solid var(--color-border); padding: 100px 30px 40px; border-radius: 4px; transition: transform 0.3s ease; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; }
.principle-card:hover { transform: translateY(-5px); border-color: var(--color-gold); }
.principle-number { font-family: var(--font-heading); font-size: 6rem; line-height: 1; color: #f3f4f6; position: absolute; top: 10px; right: 20px; z-index: 0; }
.principle-title { display: block; font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-bg); margin-bottom: 15px; position: relative; z-index: 1; }
.principle-card p { color: var(--color-black); opacity: 0.8; line-height: 1.7; position: relative; z-index: 1; }

/* FOOTER */
footer { background-color: var(--color-bg); color: var(--color-text); padding: 80px 0 0; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 50px; margin-bottom: 60px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.footer-desc { margin: 25px 0 40px; color: var(--color-text-muted); font-weight: 300; line-height: 1.8; font-size: 0.95rem; max-width: 400px; }
.footer-contact .contact-item { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; color: var(--color-text); font-size: 0.9rem; }
.footer-contact .icon-box { background-color: rgba(166, 130, 74, 0.1); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-gold); flex-shrink: 0; }
.footer-bottom { background-color: var(--color-bg); padding: 15px 0 20px; text-align: center; font-size: 0.8rem; color: var(--color-text-muted); letter-spacing: 1px; text-transform: uppercase; border-top: 1px solid rgba(255,255,255,0.05); }

/* Map Loading Placeholder */
.footer-map { position: relative; background-color: #1a2421; display: flex; justify-content: center; align-items: center; }
.footer-map::before { content: "Ładowanie mapy..."; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #6b7280; font-size: 0.95rem; z-index: 0; animation: map-pulse 1.5s infinite alternate; }
.footer-map iframe { position: relative; z-index: 1; background-color: transparent; }
@keyframes map-pulse { 0% { opacity: 0.5; } 100% { opacity: 1; } }
