/* common.css - Wspólne style dla wszystkich stron MediHub Theme */
/* Lokalizacja: /user/themes/medihub-theme/css/common.css */

/* Reset i zmienne */
:root {
    /* Kolory podstawowe */
    --blue-dark: #1E56A0;
    --blue-medium: #3D82D3;
    --blue-light: #75A9F9;
    --orange: #F39C12;
    --orange-light: #FDEBD0;
    
    /* Kolory uzupełniające */
    --white: #FFFFFF;
    --off-white: #F8FAFC;
    --gray-light: #EEF2F6;
    --gray-medium: #94A3B8;
    --gray-dark: #334155;
    --text-color: #1e293b;
    --text-light: #64748b;
    --footer-bg: #1a2a3a;
    --footer-text: #ffffff;
    --footer-text-light: #aaaaaa;
    --email-color: #3984d8;
    
    /* Inne */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    --box-shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--gray-dark);
    overflow-x: hidden;
    background-color: var(--off-white);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

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

/* Wspólne komponenty */
.btn, .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    min-height: 50px;
    box-sizing: border-box;
    vertical-align: top;
    line-height: 1.2;
}

.btn-primary, .cta-button {
    background-color: var(--orange);
    color: var(--white);
    border: none;
}

.btn-primary:hover, .cta-button:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.btn-secondary {
    background-color: var(--blue-dark);
    color: var(--white);
    border: none;
}

.btn-secondary:hover {
    background-color: #174a8c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 86, 160, 0.3);
}

.section-title {
    font-size: 2rem;
    color: var(--blue-dark);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--orange);
    border-radius: 1.5px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
}

.header h1::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 25%;
    right: 25%;
    height: 3px;
    background-color: var(--orange);
    border-radius: 2px;
}

.header p {
    font-size: 0.95rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 15px auto 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.7rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 40px;
}

.logo-img {
    height: 100%;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.2rem 0;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--blue-medium);
    transition: width 0.3s ease;
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--blue-dark);
}

.nav-cta {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.95rem;
    border-radius: 30px !important;
    background-color: var(--orange);
    color: white !important;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.2);
    transition: all 0.3s ease !important;
}

.nav-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.3) !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--blue-dark);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

/* Formularz kontaktowy - wspólny dla wszystkich stron */
.contact {
    background-color: var(--white);
    position: relative;
    padding: 60px 0;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, var(--gray-light), var(--white));
}

.contact-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--gray-dark);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--off-white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--blue-dark);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--blue-medium);
    box-shadow: 0 0 0 3px rgba(61, 130, 211, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-check input {
    margin-top: 0.25rem;
}

.form-submit {
    background-color: var(--blue-dark);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    width: 100%;
}

.form-submit:hover {
    background-color: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 86, 160, 0.3);
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 0 2rem;
    position: relative;
    margin-top: 40px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--footer-bg), var(--white));
    opacity: 0.1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-brand p {
    color: var(--footer-text-light);
    font-size: 14px;
    margin-bottom: 5px;
}

.footer-brand a {
    color: var(--email-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-links h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 18px;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 2px;
    background-color: var(--orange);
}

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

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

.footer-links a {
    color: var(--footer-text-light);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--footer-text);
    transform: translateX(5px);
}

.footer-links a i {
    color: var(--orange);
    font-size: 14px;
    width: 18px;
}

.footer-links a.highlight {
    color: var(--orange);
    font-weight: 500;
}

.footer-links a.highlight:hover {
    color: #f8c353;
}

.footer-bottom {
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
    color: var(--footer-text-light);
    padding-top: 20px;
    border-top: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.legal-links a {
    color: var(--footer-text-light);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: var(--orange);
}

/* Media responsiveness dla wspólnych elementów */
@media (max-width: 992px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        text-align: center;
        transition: all 0.3s ease;
        opacity: 0;
        transform: translateY(-10px);
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 0.8rem 0;
    }
    
    .nav-links a:not(.nav-cta):hover::after {
        width: 30%;
        left: 35%;
    }
    
    .nav-cta {
        margin: 0.5rem auto !important;
        width: 80% !important;
        display: inline-block;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links h4::after {
        left: 0;
        width: 50px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}