/* ========================================
   Punkt Odniesienia - Digital Business Card
   Mobile-First | Glassmorphism | PWA Ready
   ======================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text: #1e293b;
    --text-muted: #64748b;
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius: 24px;
    --radius-sm: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    -webkit-font-smoothing: antialiased;
}

/* ========== CARD ========== */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* ========== HEADER ========== */
.card__header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.avatar {
    margin-bottom: 0.5rem;
}

.avatar img {
    max-width: 180px;
    height: auto;
    border-radius: var(--radius-sm);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

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

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.tagline {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ========== ACTIONS ========== */
.actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    transform: scale(0.97);
}

.btn--primary {
    background: var(--primary);
    color: white;
}

.btn--primary:hover {
    background: var(--primary-dark);
}

.btn--email {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.btn--secondary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn--ghost {
    background: #f1f5f9;
    color: var(--text);
}

.btn__icon {
    font-size: 1.25rem;
}

/* ========== MAP ========== */
.map-container {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
}

/* ========== CONTACT FORM ========== */
.contact-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: transparent;
    transition: border-color 0.2s ease;
    resize: vertical;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* ========== SERVICES ========== */
.services {
    margin-bottom: 1.5rem;
}

.pricing-preview {
    margin-bottom: 1.5rem;
}

.pricing-preview__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.price-box {
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    text-align: center;
}

.price-box strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.price-box span {
    display: block;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.price-box small {
    color: var(--text-muted);
    line-height: 1.4;
}

.price-box--accent {
    border: 2px solid var(--primary);
    background: rgba(37, 99, 235, 0.06);
}

.services__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 0.25rem;
}

.services__subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1rem;
}

.services__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.service {
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service__icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.service h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.service p {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ========== FOOTER ========== */
.card__footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    .avatar {
        animation: none;
    }

    .card {
        animation: none;
    }
}

/* ========== DARK MODE ========== */
@media (prefers-color-scheme: dark) {
    :root {
        --card-bg: rgba(30, 41, 59, 0.95);
        --text: #f1f5f9;
        --text-muted: #94a3b8;
    }

    .btn--ghost {
        background: #334155;
        color: var(--text);
    }

    .service {
        background: rgba(51, 65, 85, 0.6);
    }

    .price-box {
        background: rgba(51, 65, 85, 0.6);
    }

    .form-group input,
    .form-group textarea {
        border-color: #475569;
        color: var(--text);
    }

    .form-group input:focus,
    .form-group textarea:focus {
        border-color: var(--primary);
    }
}