/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
    --color-primary: #1a2332;
    --color-primary-dark: #0f1620;
    --color-accent: #c9a84c;
    --color-accent-light: #d4b85e;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --color-bg-light: #f8f8f8;
    --color-card-bg: #2a3444;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Open Sans', Arial, sans-serif;
    --max-width: 1140px;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--color-primary);
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: var(--color-primary-dark);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-icon {
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    color: var(--color-primary);
}

.nav-logo-text {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.3;
}

.nav-logo-text span {
    display: block;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--color-accent);
    font-family: var(--font-body);
    font-weight: 300;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 14px;
    border-radius: 3px;
    transition: color 0.3s ease, background 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-accent);
    background: rgba(255,255,255,0.05);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.nav-hamburger span {
    width: 25px;
    height: 2px;
    background: var(--color-white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    margin-top: var(--nav-height);
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    overflow: hidden;
    padding: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 50px 0;
}

/* Hero rotator */
.hero-rotator {
    position: relative;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-rotator-item {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.8s ease;
    white-space: nowrap;
}

.hero-rotator-item.active {
    opacity: 1;
}

/* ============================================
   PROFILE INTRO SECTION
   ============================================ */
.profile-intro {
    padding: 80px 0 40px;
    text-align: center;
}

.profile-intro h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.profile-intro p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--color-text-light);
    font-size: 16px;
    line-height: 1.8;
}

/* ============================================
   ATTORNEY CARD
   ============================================ */
.attorney-card {
    max-width: var(--max-width);
    margin: 40px auto;
    display: flex;
    background: var(--color-card-bg);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.attorney-card-photo {
    flex: 0 0 280px;
    min-height: 340px;
    background: #ddd url('../images/attorney-photo.jpg') center/cover no-repeat;
}

.attorney-card-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0d5c1, #c9b896);
    color: var(--color-primary);
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

.attorney-card-info {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.attorney-card-info h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--color-white);
    margin-bottom: 8px;
}

.attorney-card-info .title {
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    margin-bottom: 30px;
}

.attorney-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.attorney-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.attorney-contact-item svg {
    width: 18px;
    height: 18px;
    fill: var(--color-accent);
    flex-shrink: 0;
}

.attorney-contact-item a {
    color: rgba(255,255,255,0.8);
}

.attorney-contact-item a:hover {
    color: var(--color-accent);
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.section {
    padding: 60px 0;
}

.section:nth-child(even) {
    background: var(--color-bg-light);
}

.section h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-primary);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 16px;
}

.section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--color-accent);
}

.section p {
    margin-bottom: 16px;
    color: var(--color-text);
    line-height: 1.8;
}

.section p:last-child {
    margin-bottom: 0;
}

/* ============================================
   SERVICES / SPECIALIZATIONS
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--color-white);
    padding: 36px 30px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-top: 3px solid var(--color-accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-card h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--color-text-light);
    font-size: 14px;
    line-height: 1.7;
}

.service-card-icon {
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--color-primary);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: var(--color-bg-light);
    padding: 80px 0;
}

.contact-section h3 {
    text-align: center;
    margin-bottom: 50px;
}

.contact-section h3::after {
    left: 50%;
    transform: translateX(-50%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-block h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    color: var(--color-text);
}

.contact-info-item svg {
    width: 20px;
    height: 20px;
    fill: var(--color-accent);
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 14px;
    margin-bottom: 16px;
    transition: border-color 0.3s ease;
    background: var(--color-white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

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

.btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--color-accent);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background: var(--color-accent-light);
    transform: translateY(-1px);
}

/* ============================================
   MAP PLACEHOLDER
   ============================================ */
.map-placeholder {
    width: 100%;
    height: 200px;
    background: #e8e8e8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 14px;
    margin-top: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--color-primary);
}

.footer-logo-text {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer h5 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 6px;
}

.footer a {
    color: rgba(255,255,255,0.7);
}

.footer a:hover {
    color: var(--color-accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--color-accent);
    color: var(--color-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-2px);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
    fill: var(--color-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .attorney-card {
        flex-direction: column;
    }

    .attorney-card-photo {
        flex: none;
        height: 300px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-rotator {
        height: 40px;
    }

    .hero-rotator-item {
        font-size: 26px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--color-primary-dark);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-hamburger {
        display: flex;
    }

    .attorney-card-info {
        padding: 30px 24px;
    }

    .attorney-card-info h2 {
        font-size: 26px;
    }

    .attorney-contact {
        flex-direction: column;
        gap: 14px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section h3 {
        font-size: 24px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   HERO CTA
   ============================================ */
.hero-cta {
    margin-top: 30px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   RODO CONSENT CHECKBOX
   ============================================ */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.captcha-label {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--color-primary);
    white-space: nowrap;
    font-weight: 600;
}

.captcha-row input[type="number"] {
    width: 160px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    text-align: center;
}

.captcha-row input[type="number"]:focus {
    border-color: var(--color-accent);
    outline: none;
}

/* Ukryj strzalki w polu number */
.captcha-row input[type="number"]::-webkit-outer-spin-button,
.captcha-row input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.captcha-row input[type="number"] {
    -moz-appearance: textfield;
}

.rodo-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
    cursor: pointer;
}

.rodo-consent input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--color-accent);
}

.rodo-consent a {
    color: var(--color-accent);
    text-decoration: underline;
}

.rodo-consent a:hover {
    color: var(--color-accent-light);
}

/* ============================================
   PRIVACY POLICY MODAL
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: var(--color-white);
    border-radius: 6px;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
}

.modal h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.modal h4 {
    font-family: var(--font-heading);
    font-size: 17px;
    color: var(--color-primary);
    margin-top: 20px;
    margin-bottom: 8px;
}

.modal p,
.modal li {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 8px;
}

.modal ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--color-text-light);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.modal-close:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .modal {
        padding: 24px;
        max-height: 90vh;
    }
}
