/* 
 * Modern Apple-inspired Design for Kancelaria Michał Kucharski
 * Inspiracje: Apple.com + TemplateMonster 58940
 * Minimalistyczny, elegancki, nowoczesny
 */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Apple-inspired colors - subtle version */
    --primary-dark: #1d1d1f;
    --primary-blue: #0066cc;
    --accent-gold: #b8965f;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-light: #ffffff;
    --bg-light: #f5f5f7;
    --bg-white: #ffffff;
    --border-light: #e5e5e7;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-hero: clamp(2.5rem, 5vw, 5rem);
    --font-size-h1: clamp(2rem, 4vw, 3.5rem);
    --font-size-h2: clamp(1.5rem, 3vw, 2.5rem);
    --font-size-h3: clamp(1.2rem, 2vw, 1.75rem);
    --font-size-body: 1.125rem;
    --font-size-small: 0.875rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-xxl: 8rem;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }

p {
    font-size: var(--font-size-body);
    line-height: 1.7;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* === HEADER / NAVIGATION === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(245, 245, 247, 0.85);
    backdrop-filter: saturate(150%) blur(15px);
    -webkit-backdrop-filter: saturate(150%) blur(15px);
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header.scrolled {
    background: rgba(251, 251, 253, 0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 50px;
    width: auto;
    transition: var(--transition-smooth);
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-primary);
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.phone-link {
    color: var(--primary-blue);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-link:hover {
    color: var(--accent-gold);
}

/* Hamburger menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 72px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.15), rgba(184, 150, 95, 0.1));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    max-width: 900px;
    padding: 0 var(--spacing-md);
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: var(--font-size-hero);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: var(--font-size-h3);
    font-weight: 300;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.95);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    color: var(--text-light);
    font-size: 2rem;
    opacity: 0.7;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--text-light);
}

.btn-primary:hover {
    background: #0077ed;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0, 102, 204, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary-dark);
}

.btn-gold {
    background: var(--accent-gold);
    color: var(--text-light);
}

.btn-gold:hover {
    background: #a18454;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(184, 150, 95, 0.2);
}

/* === SECTIONS === */
.section {
    padding: var(--spacing-xxl) 0;
}

.section-light {
    background-color: var(--bg-light);
}

.section-dark {
    background-color: var(--primary-dark);
    color: var(--text-light);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title h2 {
    margin-bottom: var(--spacing-sm);
}

.section-title p {
    font-size: var(--font-size-body);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.section-dark .section-title p {
    color: rgba(255, 255, 255, 0.7);
}

/* === FEATURE CARDS === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: var(--spacing-lg);
    transition: var(--transition-smooth);
    border: 1px solid rgba(229, 229, 231, 0.6);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(184, 150, 95, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.feature-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.6;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--spacing-md);
    color: var(--primary-blue);
    font-weight: 500;
}

.feature-link:hover {
    color: var(--accent-gold);
    gap: 0.75rem;
}

/* === SERVICES LIST === */
.services-list {
    max-width: 900px;
    margin: 0 auto;
}

.service-item {
    background: var(--bg-white);
    border-radius: 16px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    border-left: 3px solid var(--accent-gold);
    transition: var(--transition-smooth);
}

.service-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.service-item h3 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-item p {
    line-height: 1.8;
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.95), rgba(184, 150, 95, 0.9));
    color: var(--text-light);
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-h3);
    margin-bottom: var(--spacing-lg);
}

/* === CONTACT FORM === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.contact-info h3 {
    margin-bottom: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.contact-item:hover {
    background: var(--bg-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-details p,
.contact-details a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-details a:hover {
    color: var(--primary-blue);
}

/* Form styling */
.modern-form {
    background: var(--bg-white);
    border-radius: 20px;
    padding: var(--spacing-lg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--bg-white);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-error {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

/* === MAP === */
.map-container {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* === FOOTER === */
.footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col h4 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.footer-col p,
.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-col a:hover {
    color: var(--accent-gold);
}

.footer-logo {
    margin-bottom: var(--spacing-md);
}

.footer-logo img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-badges {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
    position: relative;
}

.footer-badges::before,
.footer-badges::after {
    display: none;
}

.footer-badges img {
    height: 50px;
    width: auto;
    position: relative;
    z-index: 1;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll animations */
.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    :root {
        --spacing-xxl: 5rem;
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: rgba(251, 251, 253, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xxl: 3rem;
        --spacing-xl: 2.5rem;
        --spacing-lg: 2rem;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
}

/* === UTILITIES === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }
