/* ===============================================
   DOBRA ROBOTA - OMEGA 2 sp. z o.o.
   Main Stylesheet
   =============================================== */

/* ===============================================
   CSS VARIABLES - Light & Dark Mode
   =============================================== */

:root {
    /* Light Mode Colors (default) */
    --bg-main: #FFFFFF;
    --bg-section: #F4F5F7;
    --text-main: #1F2933;
    --text-heading: #2B2E34;
    --accent: #F2C94C;
    --accent-hover: #E0B840;
    --shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    /* Dark Mode Colors */
    --bg-main: #1E1E1E;
    --bg-section: #2B2E34;
    --text-main: #E5E7EB;
    --text-heading: #F4F5F7;
    --accent: #F2C94C;
    --accent-hover: #E0B840;
    --shadow: rgba(0, 0, 0, 0.3);
}

/* ===============================================
   RESET & BASE STYLES
   =============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-main);
    transition: background-color 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===============================================
   HEADER & NAVIGATION
   =============================================== */

header {
    background-color: var(--bg-main);
    box-shadow: 0 2px 8px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    margin-right: 3rem;
    flex-shrink: 0;
}

.logo-link {
    display: inline-block;
    line-height: 0;
}

.logo-brand {
    margin: 0;
    line-height: 0;
}

.logo-img {
    display: block;
    width: 180px;
    height: auto;
}

.logo-img-dark {
    display: none;
}

[data-theme="dark"] .logo-img-light {
    display: none;
}

[data-theme="dark"] .logo-img-dark {
    display: block;
}

.logo p {
    font-size: 0.85rem;
    color: var(--text-main);
    opacity: 0.8;
}

nav {
    position: relative;
}

nav ul {
    display: flex;
    gap: clamp(0.75rem, 1.2vw, 2rem);
    align-items: center;
    flex-wrap: nowrap;
}

nav li {
    display: flex;
    align-items: center;
}

nav a {
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
    line-height: 1.2;
    padding: 0.35rem 0;
}

nav a:hover {
    color: var(--accent);
}

nav a.active {
    color: var(--accent);
    font-weight: 600;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
}

/* Dark Mode Toggle */
.theme-toggle {
    background: var(--bg-section);
    border: 2px solid var(--accent);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.theme-toggle:hover {
    background-color: var(--accent);
    color: #2B2E34;
}

/* Language Selector */
.lang-selector {
    background: var(--bg-section);
    border: 2px solid var(--accent);
    border-radius: 5px;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    white-space: nowrap;
    line-height: 1.2;
}

.lang-selector:hover {
    background-color: var(--accent);
    color: #2B2E34;
}

.lang-selector:focus {
    border-color: var(--accent);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* ===============================================
   HERO SECTION
   =============================================== */

.hero {
    position: relative;
    height: 600px;
    background-image: url('img/hero_construction.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: #2B2E34;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* ===============================================
   CONTAINER & SECTIONS
   =============================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

section {
    margin-bottom: 4rem;
}

.section-bg {
    background-color: var(--bg-section);
    transition: background-color 0.3s ease;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-heading);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-main);
    opacity: 0.9;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===============================================
   SERVICES CARDS
   =============================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--bg-main);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--text-heading);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-main);
    line-height: 1.7;
}

/* ===============================================
   RTG SPECIALIZATION SECTION
   =============================================== */

.rtg-section {
    position: relative;
    background-image: url('img/rtg_room_preparation.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 6rem 2rem;
    color: #FFFFFF;
}

.rtg-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 46, 52, 0.85);
}

.rtg-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.rtg-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.rtg-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.rtg-content ul {
    margin-top: 2rem;
    padding-left: 2rem;
}

.rtg-content ul li {
    list-style: disc;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

/* ===============================================
   ABOUT SECTION WITH BACKGROUND
   =============================================== */

.about-section {
    position: relative;
    background-image: url('img/about_tools.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 6rem 2rem;
    color: #FFFFFF;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 46, 52, 0.85);
}

.about-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Company Info Box */
.company-info {
    background-color: rgba(242, 201, 76, 0.15);
    border-left: 4px solid var(--accent);
    padding: 2rem;
    margin-top: 3rem;
    border-radius: 5px;
}

.company-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.company-info p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* ===============================================
   TEAM CAROUSEL
   =============================================== */

.team-carousel {
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.team-member {
    min-width: 300px;
    margin: 0 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 4px solid var(--accent);
}

.team-member h4 {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.team-member p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    background-color: var(--accent);
    color: #2B2E34;
    border: none;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background-color: var(--accent-hover);
}

/* ===============================================
   PROJECTS GALLERY
   =============================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background-color: var(--bg-main);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.4rem;
    color: var(--text-heading);
    margin-bottom: 0.8rem;
}

.project-info p {
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.project-tag {
    display: inline-block;
    background-color: var(--accent);
    color: #2B2E34;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
}

/* ===============================================
   CONTACT SECTION
   =============================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    background-color: var(--bg-section);
    padding: 2rem;
    border-radius: 8px;
}

.contact-item {
    display: flex;
    align-items: start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-details h3 {
    font-size: 1.2rem;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-main);
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    background-color: var(--bg-section);
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--bg-main);
    border-radius: 5px;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-button {
    background-color: var(--accent);
    color: #2B2E34;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* ===============================================
   FOOTER
   =============================================== */

footer {
    position: relative;
    background-image: url('img/footer.jpg');
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 46, 52, 0.9);
}

.footer-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: start;
}

.footer-container h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #FFFFFF;
}

.footer-container p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.footer-menu ul {
    display: grid;
    gap: 0.4rem;
}

.footer-menu a {
    color: #FFFFFF;
    opacity: 0.85;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-menu a:hover {
    color: var(--accent);
    opacity: 1;
}

.footer-social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--accent);
    color: #2B2E34;
    transform: translateY(-2px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-divider {
    width: 100px;
    height: 3px;
    background-color: var(--accent);
    margin: 2rem auto;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

@media (max-width: 1024px) {
    /* Navigation */
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-main);
        box-shadow: 0 4px 8px var(--shadow);
        padding: 1rem 0;
    }

    nav ul.mobile-active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    /* Hero */
    .hero {
        height: 400px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Sections */
    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Carousel */
    .team-member {
        min-width: 250px;
    }

    /* Footer */
    footer {
        padding: 2rem 1rem;
    }

    .footer-container {
        text-align: center;
    }

    .footer-social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 1rem;
    }

    .logo-img {
        width: 140px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .container {
        padding: 2rem 1rem;
    }
}

/* ===============================================
   FAQ ACCORDION
   =============================================== */

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-main);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-heading);
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: var(--bg-section);
}

.faq-question span:first-child {
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
    line-height: 1.7;
    color: var(--text-main);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}
/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-color, #111);
    color: #fff;
    padding: 1rem;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cookie-banner a {
    color: #4da3ff;
    text-decoration: underline;
}

.cookie-buttons button {
    margin-left: 0.5rem;
}

/* ===============================================
   COMPANY INFO + MAP (ABOUT US)
   =============================================== */

.company-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.company-info {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--accent-color, #f5c84c);
    padding: 2rem;
    border-radius: 12px;
}

.company-info h3 {
    margin-bottom: 1rem;
    color: var(--accent-color, #f5c84c);
}

.company-info p {
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

.company-map iframe {
    width: 100%;
    height: 100%;
    min-height: 260px;
    border: none;
    border-radius: 12px;
}

/* MOBILE */
@media (max-width: 900px) {
    .company-grid {
        grid-template-columns: 1fr;
    }

    .company-map iframe {
        min-height: 220px;
    }
}
