/* ========================
   RESET I ZMIENNE GLOBALNE
   ======================== */

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

:root {
    --primary-color: #d97706;
    --secondary-color: #1f2937;
    --accent-color: #fbbf24;
    --light-bg: #f9fafb;
    --light-text: #6b7280;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

/* ========================
   CONTAINER
   ======================== */

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

/* ========================
   HEADER - DUŻY (na górze)
   ======================== */

.header {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 0;
    position: relative;
    z-index: 100;
    box-shadow: var(--shadow);
}

/* ========================
   HEADER - MAŁY (sticky)
   ======================== */

.header-small {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.7rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    box-shadow: var(--shadow);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-small.show {
    display: block;
    opacity: 1;
}

.header-small .header-container {
    justify-content: flex-end;
}

.header-small .nav {
    gap: 1.5rem;
}

.header-small .nav-link {
    font-size: 0.9rem;
}

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

#facebook{
  max-width:40px;
  max-height:40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

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

.logo h1 {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.header-sticky .nav {
    gap: 1.5rem;
}

.header-sticky .nav-link {
    font-size: 0.9rem;
}

.header-sticky .logo,
.header-sticky .logo h1 {
    display: none;
}

/* ========================
   HERO SECTION
   ======================== */

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/galeria/cbintech_front.jpg') center/cover no-repeat;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    z-index: 1;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 2rem !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.cta-btn:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========================
   DEPARTMENTS SECTION (GALERIA)
   ======================== */

.departments {
    padding: 4rem 2rem;
    background-color:var(--accent-color);
}

.departments h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    font-weight: bold;
    font-size: 1.1rem;
}

/* ========================
   SCROLL TO TOP BUTTON
   ======================== */

#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    padding: 15px 20px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollTopBtn.show {
    display: flex;
    animation: slideUp 0.3s ease;
}

#scrollTopBtn:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    #scrollTopBtn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        padding: 12px 16px;
        font-size: 1.2rem;
    }
}

/* ========================
   MODAL
   ======================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
}

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

.modal-body h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.modal-body p {
    color: var(--light-text);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.modal-body li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    color: var(--light-text);
    position: relative;
}

.modal-body li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 90vw;
        padding: 1.5rem;
    }

    .modal-body h2 {
        font-size: 1.4rem;
    }
}

/* ========================
   INFO SECTION
   ======================== */

.info {
    padding: 4rem 2rem;
    background-color: var(--accent-color);
}

.info h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background-color:#36454f;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    color: var(--accent-color);
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.hours {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hour-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hour-row span {
    color: var(--accent-color);
}

.hour-row strong {
    color: var(--accent-color);
    font-weight: bold;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-row span {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.contact-row a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-row a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

.contact-row p {
    color: var(--accent-color);
    margin: 0;
}

.contact-btn {
    display: inline-block;
    margin-top: auto;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: var(--transition);
    box-shadow: var(--shadow);
    align-self: flex-start;
}

.contact-btn:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.about-text p {
    margin: 0;
    color: var(--accent-color);
}

.about-text strong {
    color: var(--accent-color);
}

.founded {
    color: var(--accent-color) !important;
    font-weight: 500;
}

.network {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* ========================
   FOOTER
   ======================== */

.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-links {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ========================
   RESPONSIVE DESIGN
   ======================== */

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: var(--secondary-color);
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
    }

    .nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .header-small .nav {
        position: absolute;
        top: 50px;
        right: 0;
        background-color: var(--secondary-color);
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
    }

    .header-small .nav.active {
        display: flex;
    }

    .hero {
        min-height: 350px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .departments h2,
    .info h2 {
        font-size: 1.8rem;
    }

    .gallery-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 200px;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .logo-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 1rem;
        min-height: 280px;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .cta-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .departments,
    .info {
        padding: 2rem 1rem;
    }

    .footer {
        padding: 2rem 1rem;
    }

    .gallery-item {
        height: 180px;
    }

    .hour-row,
    .contact-row {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ========================
   DODATKOWE EFEKTY
   ======================== */

button {
    font-family: inherit;
}

a {
    color: inherit;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    animation: fadeInUp 0.5s ease-out;
}

@media print {
    .header,
    .footer {
        background-color: #f3f4f6;
        color: #000;
    }
}
