/* =========================
   FRUU INNENAUSBAU & SANIERUNG
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --green: #63b32e;
    --green-dark: #4e9722;
    --dark: #151719;
    --dark-soft: #202326;
    --text: #25282b;
    --grey: #6d7378;
    --light: #f5f6f4;
    --white: #ffffff;
    --border: #e2e5e1;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================
   HEADER
   ========================= */

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.nav {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.logo img {
    width: 185px;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s ease;
}

.nav-links a:hover {
    color: var(--green);
}

.nav-button {
    padding: 12px 22px;
    background: var(--green);
    color: var(--white);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    transition: 0.2s ease;
}

.nav-button:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    border: 0;
    background: transparent;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
}


/* =========================
   HERO
   ========================= */

.hero {
    min-height: 760px;
    position: relative;
    display: flex;
    align-items: center;
    background-image: url("images/hero.png");
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(10, 12, 13, 0.88) 0%,
            rgba(10, 12, 13, 0.70) 38%,
            rgba(10, 12, 13, 0.30) 68%,
            rgba(10, 12, 13, 0.18) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 95px;
}

.hero-text {
    max-width: 720px;
}

.eyebrow,
.section-label {
    display: inline-block;
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(52px, 7vw, 88px);
    line-height: 0.95;
    letter-spacing: -3px;
    font-weight: 900;
    margin-bottom: 22px;
}

.hero h1 span {
    color: var(--green);
}

.hero h2 {
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.15;
    margin-bottom: 22px;
    font-weight: 700;
}

.locations {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.locations span {
    font-size: 15px;
    font-weight: 800;
}

.locations span:not(:last-child)::after {
    content: "•";
    color: var(--green);
    margin-left: 12px;
}

.hero-text > p {
    max-width: 590px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 0 27px;
    border-radius: 6px;
    border: 2px solid transparent;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary {
    background: var(--green);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    border-color: rgba(255, 255, 255, 0.65);
    color: var(--white);
    background: rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark);
}


/* =========================
   SECTIONS
   ========================= */

.section {
    padding: 105px 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 55px;
}

.section-heading h2,
.about-grid h2,
.contact-text h2 {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
    color: var(--dark);
}

.section-heading p {
    max-width: 650px;
    color: var(--grey);
    font-size: 17px;
}


/* =========================
   SERVICES
   ========================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.service-card {
    position: relative;
    min-height: 220px;
    padding: 34px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: 0.25s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--green);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    background: var(--white);
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-card h3 {
    color: var(--dark);
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--grey);
}


/* =========================
   PROJECTS / BEFORE AFTER
   ========================= */

.projects-section {
    background: var(--dark);
}

.projects-section .section-heading h2 {
    color: var(--white);
}

.projects-section .section-heading p {
    color: rgba(255, 255, 255, 0.65);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.project {
    padding: 8px;
    background: #292c2e;
    border-radius: 12px;
    overflow: hidden;
}

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.before-after figure {
    position: relative;
    height: 340px;
    overflow: hidden;
    border-radius: 7px;
    background: #111;
}

.before-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.project:hover img {
    transform: scale(1.035);
}

.before-after figcaption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 7px 12px;
    border-radius: 4px;
    background: rgba(16, 18, 19, 0.82);
    color: var(--white);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.before-after figure:last-child figcaption {
    background: var(--green);
}


/* =========================
   ABOUT
   ========================= */

.about-section {
    background: var(--light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 90px;
    align-items: start;
}

.about-text {
    padding-top: 35px;
}

.about-text p {
    color: var(--grey);
    font-size: 17px;
    margin-bottom: 18px;
}

.about-text p:first-child {
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
}


/* =========================
   CONTACT
   ========================= */

.contact-section {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 90px;
    align-items: start;
}

.contact-text > p {
    max-width: 500px;
    color: var(--grey);
    font-size: 17px;
}

.contact-details {
    margin-top: 35px;
    padding-left: 20px;
    border-left: 4px solid var(--green);
}

.contact-details p {
    margin-bottom: 4px;
}

.contact-form {
    padding: 38px;
    background: var(--light);
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 7px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #d8dbd7;
    background: var(--white);
    border-radius: 6px;
    padding: 14px 15px;
    outline: none;
    margin-bottom: 18px;
    transition: 0.2s ease;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(99, 179, 46, 0.12);
}

.contact-form .btn {
    border: 0;
    align-self: flex-start;
}


/* =========================
   FOOTER
   ========================= */

.footer {
    background: #101214;
    color: var(--white);
    padding: 38px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer strong {
    font-size: 16px;
}

.footer p {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--green);
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1000px) {

    .nav-links {
        display: none;
        position: absolute;
        top: 92px;
        left: 20px;
        right: 20px;
        padding: 22px;
        background: rgba(18, 20, 21, 0.98);
        border-radius: 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-button {
        display: block;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text {
        padding-top: 0;
    }
}


@media (max-width: 700px) {

    .container {
        width: min(100% - 30px, 1180px);
    }

    .nav {
        min-height: 76px;
    }

    .logo img {
        width: 145px;
    }

    .nav-button {
        display: none;
    }

    .nav-links {
        top: 76px;
        left: 15px;
        right: 15px;
    }

    .hero {
        min-height: 720px;
        background-position: 62% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(10, 12, 13, 0.92),
                rgba(10, 12, 13, 0.60)
            );
    }

    .hero-content {
        padding-top: 80px;
    }

    .eyebrow {
        font-size: 11px;
        letter-spacing: 1.4px;
    }

    .hero h1 {
        font-size: clamp(43px, 14vw, 64px);
        letter-spacing: -2px;
    }

    .hero h2 {
        font-size: 26px;
    }

    .hero-text > p {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 330px;
    }

    .section {
        padding: 75px 0;
    }

    .section-heading {
        margin-bottom: 38px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

    .before-after {
        grid-template-columns: 1fr 1fr;
    }

    .before-after figure {
        height: 245px;
    }

    .contact-form {
        padding: 25px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}


@media (max-width: 480px) {

    .hero {
        min-height: 680px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .locations {
        gap: 7px;
    }

    .locations span {
        font-size: 13px;
    }

    .locations span:not(:last-child)::after {
        margin-left: 7px;
    }

    .before-after {
        grid-template-columns: 1fr;
    }

    .before-after figure {
        height: 300px;
    }
}
/* =========================
   WSPÓLNE TŁO FRUU
   ========================= */

#leistungen,
.projects-section,
.about-section {
    position: relative;
    background:
        linear-gradient(
            rgba(15, 17, 18, 0.88),
            rgba(15, 17, 18, 0.88)
        ),
        url("images/hero.png");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Nagłówki na ciemnym tle */
#leistungen .section-heading h2,
.projects-section .section-heading h2,
.about-section h2 {
    color: #ffffff;
}

/* Teksty */
#leistungen .section-heading p,
.projects-section .section-heading p,
.about-section .about-text p {
    color: rgba(255, 255, 255, 0.78);
}

.about-section .about-text p:first-child {
    color: #ffffff;
}

/* Kafelki usług */
#leistungen .service-card {
    background: rgba(32, 35, 38, 0.90);
    border-color: rgba(255, 255, 255, 0.10);
}

#leistungen .service-card h3 {
    color: #ffffff;
}

#leistungen .service-card p {
    color: rgba(255, 255, 255, 0.70);
}

#leistungen .service-card:hover {
    background: rgba(38, 42, 44, 0.96);
}

/* Kontakt zostaje jasny */
.contact-section {
    background: #ffffff;
}
.service-area-text {
    margin-top: 32px;
    padding: 20px 24px;
    border-left: 4px solid #7ed321;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0 10px 10px 0;
    font-size: 16px;
    line-height: 1.7;
    color: #ffffff;
}
/* Social media - footer */
.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.2s ease, color 0.2s ease;
}

.social-link svg {
    width: 24px;
    height: 24px;
    display: block;
}

.social-link:hover {
    color: #7ed957;
    transform: translateY(-2px);
}
/* WHATSAPP FLOATING BUTTON */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 62px;
    height: 62px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.28);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float svg {
    width: 36px;
    height: 36px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
    .whatsapp-float {
        right: 18px;
        bottom: 18px;
        width: 58px;
        height: 58px;
    }

    .whatsapp-float svg {
        width: 34px;
        height: 34px;
    }
}