/* ============================================
    Kancelaria Audytorska Grzegorz Golczak
   ============================================ */

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

:root {
    --primary-color: #1e3a8a;
    --primary-dark: #1e293b;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background-light: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--primary-dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: rgba(30, 41, 91, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-transform: uppercase;
}

.nav-logo:hover {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    min-height: 65vh;
    background: linear-gradient(to bottom,
            rgba(30, 58, 138, 0.85),
            rgba(30, 41, 59, 0.9)),
        url("bg.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 1.5rem 5rem;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%,
            rgba(96, 165, 250, 0.08) 0%,
            transparent 50%),
        radial-gradient(circle at 80% 80%,
            rgba(59, 130, 246, 0.08) 0%,
            transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 2rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.8);
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: var(--transition);
}

.scroll-indicator:hover {
    color: var(--accent-color);
}

.scroll-indicator svg {
    width: 100%;
    height: 100%;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   About Section
   ============================================ */

.about-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.about-text:last-child {
    margin-bottom: 0;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   Services Section
   ============================================ */

.services-section {
    padding: 6rem 0;
    background-color: var(--background-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    display: none;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.service-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    font-weight: 400;
}

/* ============================================
   Contact Section
   ============================================ */

.contact-section {
    background: linear-gradient(to bottom,
            rgba(30, 58, 138, 0.85),
            rgba(30, 41, 59, 0.9)),
        url("bg.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 0;
    color: var(--white);
    position: relative;
}

.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%,
            rgba(96, 165, 250, 0.08) 0%,
            transparent 50%);
    pointer-events: none;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 3rem 2rem;
}

.contact-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
    line-height: 1.6;
}

.contact-address {
    font-size: 1.125rem;
    line-height: 1.9;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
}

.contact-email {
    margin-top: 2.5rem;
}

.email-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    /* box-shadow: 0 4px 15px rgba(96, 165, 250, 0.18); */
    line-height: 1;
}

.email-button:hover {
    /* box-shadow: 0 6px 20px rgba(96, 165, 250, 0.28); */
    background-color: var(--accent-color);
}

.email-button svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background-color: var(--primary-dark);
    padding: 2.5rem 0 1.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-disclaimer {
    font-size: 0.875rem;
    line-height: 1.6;
    text-align: center;
    margin: 0 0 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.disclaimer-break {
    display: block;
    content: "";
    margin: 0.5rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy,
.footer-credit {
    font-size: 0.95rem;
    margin: 0;
}

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

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

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: rgba(30, 41, 91, 0.98);
        backdrop-filter: blur(10px);
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-toggle {
        display: flex;
    }

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

    .hero-section {
        padding: 5rem 1.5rem 3rem;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-details {
        padding: 2rem 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .scroll-indicator {
        bottom: 1.5rem;
    }

    .disclaimer-break {
        display: none;
    }

    .credit-heart {
        display: none;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-section {
        min-height: 80vh;
    }

    .nav-logo {
        display: none;
        visibility: hidden;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .nav-container {
        max-width: 1320px;
    }

    .footer-content {
        max-width: 1320px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}