@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;600;700&display=swap');

:root {
    --color-bg: #f3f1e9;
    --color-bg-alt: #fcfbf9;
    /* Jaśniejszy beż / białawy używany w naprzemiennych sekcjach */
    --color-text: #000000;
    --color-text-light: #555555;
    --color-white: #ffffff;
    --color-feature: #fcfbf9;
    /* Jaśniejsze pudełka */
    --color-border: #dcd9d2;
    --color-accent: #6f42c1;
    --color-placeholder: #e0dcd3;
    --radius-pill: 100px;
    --radius-box: 24px;
    --font-heading: 'Figtree', sans-serif;
    --font-body: 'Figtree', sans-serif;
    --spacing-xs: 1rem;
    --spacing-sm: 2rem;
    --spacing-md: 4rem;
    --spacing-lg: 6rem;
    --spacing-xl: 8rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 1.1rem;
    -webkit-font-smoothing: antialiased;
}

/* Scroll snap points */
.site-header,
section,
.rounded-intro-section,
.site-footer {
    scroll-snap-align: start;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-box);
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center {
    text-align: center;
}

.bg-alt {
    background-color: var(--color-bg-alt);
}

.bg-base {
    background-color: var(--color-bg);
}

.kicker {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(3.5rem, 6vw, 4.5rem);
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    letter-spacing: -0.03em;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-text);
    color: var(--color-white);
    border: 1px solid var(--color-text);
}

.btn-primary:hover {
    background-color: #333;
    opacity: 1;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn-outline:hover {
    border-color: var(--color-text);
    opacity: 1;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Placeholders */
.image-placeholder {
    background-color: var(--color-placeholder);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b8883;
    font-weight: 600;
    font-size: 1.2rem;
    border-radius: var(--radius-box);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-portrait {
    aspect-ratio: 3 / 4;
}

.aspect-landscape {
    aspect-ratio: 4 / 3;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.image-label {
    background: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
}

/* Spacing */
.section-padding {
    padding: var(--spacing-xl) 0;
}

.section-padding-sm {
    padding: var(--spacing-lg) 0;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Header */
.site-header {
    margin: 2rem auto;
    padding: 0 1rem;
    max-width: 1400px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-feature);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-pill);
}

.site-logo {
    font-weight: 700;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    line-height: 1;
    color: var(--color-text);
}

.site-logo::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--color-feature);
    border-left: 3px solid var(--color-text);
    animation: typing-reveal 1.2s steps(8, end) forwards, blink-cursor 0.8s step-end infinite;
    pointer-events: none;
}

@keyframes typing-reveal {
    from {
        left: 0;
    }

    to {
        left: 100%;
    }
}

@keyframes blink-cursor {

    from,
    to {
        border-left-color: transparent;
    }

    50% {
        border-left-color: var(--color-text);
    }
}

.site-nav {
    display: flex;
    gap: 2rem;
}

.site-nav a {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Hero Extra */
.hero-image-wrapper {
    background-color: var(--color-feature);
    padding: 10px;
    border-radius: 34px;
    /* trochę większe niż wewnętrzny obrazek */
    margin: 4rem auto 0;
    max-width: 1000px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.hero-image-wrapper .image-placeholder {
    border-radius: var(--radius-box);
}

/* Dark Features Bar */
.dark-features-wrapper {
    background-color: #222222;
    margin-top: 4rem;
}

.dark-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
}

.dark-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 6rem 4rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    /* Delikatna granica rozdzielająca */
}

.dark-feature-item:last-child {
    border-right: none;
}

.dark-feature-icon {
    width: 44px;
    height: 44px;
    color: #ffffff;
    flex-shrink: 0;
}

.dark-feature-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.2;
}

.dark-feature-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.dark-feature-content h3 {
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 0;
    font-weight: 700;
}

.dark-feature-content p {
    font-size: 0.95rem;
    color: #a0a0a0;
    margin-bottom: 0;
    line-height: 1.7;
}

/* Rounded Intro Section */
.rounded-intro-section {
    background-color: #e3dec9;
    /* Jasnobeżowy kolor / greige ze zdjęcia */
    padding-top: 2.5rem;
    padding-bottom: 4rem;
    position: relative;
    /* Wymagane by układało się nad elementami wcześniejszymi */
    z-index: 10;
}

/* Typing Title Effect */
.typing-title {
    position: relative;
    display: inline-block;
    color: var(--color-text);
}

.typing-title::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--typing-bg, #e3dec9);
    /* Przykrywka dopasowana zmienną */
    border-left: 3px solid var(--color-text);
    animation: typing-reveal-title 1.5s steps(21, end) forwards, blink-cursor 0.8s step-end infinite;
    pointer-events: none;
}

@keyframes typing-reveal-title {
    from {
        left: 0;
    }

    to {
        left: 100%;
    }
}

/* Intro Arrows */
.intro-arrows {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    margin-top: -30px;
    /* Start inside the text bounds slightly */
    pointer-events: none;
    z-index: 1;
}

.intro-arrow {
    position: absolute;
    width: 90px;
    height: 90px;
    top: 0;
}

.intro-arrow-left {
    right: 100%;
    margin-right: -50px;
}

.intro-arrow-right {
    left: 100%;
    margin-left: -50px;
}

.intro-arrow-center {
    left: 50%;
    transform: translateX(-50%);
    top: 15px;
    height: 80px;
}

@media (max-width: 992px) {
    .intro-arrows {
        display: none;
    }
}


/* Features */
.feature-card {
    background-color: var(--color-feature);
    padding: 5rem 4rem;
    border-radius: 40px;
    text-align: center;
    border: 1px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 550px;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(111, 66, 193, 0.15);
    /* Delikatnie fioletowa ramka */
}

.feature-card:hover .feature-icon {
    transform: scale(1.15);
}

.feature-icon {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
}

/* Image Cards */
.img-card {
    text-align: left;
}

.img-card .image-placeholder {
    margin-bottom: 1.5rem;
}

/* CTA Section with Background */
.cta-section {
    position: relative;
    padding: var(--spacing-xl) 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4rem;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    border-radius: 0;
    /* Full width */
}

.cta-content-card {
    background-color: var(--color-white);
    padding: 4rem;
    border-radius: var(--radius-box);
    max-width: 700px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Footer */
.site-footer {
    padding: 4rem 0 2rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-nav svg {
    width: 20px;
    height: 20px;
}

.footer-bottom-bar {
    background-color: var(--color-feature);
    padding: 1.5rem;
    text-align: center;
    border-radius: 10px;
}

.footer-copyright {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Hero Decorative Arch & Pointers */
.hero-decorative-side {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.arch-image-container {
    width: 400px;
    /* Nieco większe */
    height: 560px;
    /* Większe miejsce na zdjęcie, zachowując ułożenie */
    border-radius: 30px;
    /* Prostokąt z zaokrąglonymi krawędziami zamiast łuku */
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.arch-image-container:hover {
    transform: scale(1.02) translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.arch-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.arch-pointers {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    z-index: 1;
    margin-left: 0;
}

.arch-pointer {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.25);
    /* More visible horizontal line */
    padding-bottom: 0.8rem;
    padding-right: 2rem;
    position: relative;
    margin-left: 90px;
    /* Space for the diagonal connector */
    min-width: 180px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.arch-pointer:hover {
    transform: translateX(15px);
}

.arch-pointer:hover .arch-pointer-icon {
    transform: scale(1.2) rotate(10deg);
}

.arch-pointer::before {
    content: '';
    position: absolute;
    height: 2px;
    background: rgba(0, 0, 0, 0.25);
    /* Matches horizontal line */
    bottom: -2px;
    transform-origin: right center;
}

/* Angles corrected! Negative is UP, positive is DOWN */
.pointer-1::before {
    transform: rotate(-35deg);
    width: 120px;
    left: -120px;
}

.pointer-2::before {
    transform: rotate(-10deg);
    width: 80px;
    left: -80px;
}

.pointer-3::before {
    transform: rotate(10deg);
    width: 80px;
    left: -80px;
}

.pointer-4::before {
    transform: rotate(35deg);
    width: 120px;
    left: -120px;
}

.arch-pointer-icon {
    width: 50px;
    height: 50px;
    background-color: #b39b7d;
    /* Ciemno kremowy / kawa z mlekiem */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(179, 155, 125, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.4s ease;
}

.arch-pointer-icon svg {
    width: 24px;
    height: 24px;
}

.arch-pointer-text {
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--color-text-light);
}

.arch-pointer-text strong {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
}

/* Services Section (from image) */

.services-flex-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 60px;
    column-gap: 40px;
    max-width: 1550px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 220px;
    padding: 10px;
    background-color: transparent;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-item:hover {
    transform: translateY(-8px);
}

.service-icon {
    width: 65px;
    height: 65px;
    color: #333333;
    margin-bottom: 25px;
    transition: color 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-item:hover .service-icon {
    color: var(--color-accent);
    /* Fioletowy akcent przy najechaniu */
    transform: scale(1.15);
    /* Nadymanie ikony */
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
    /* Delikatniejsza kreska dla ikonek nowej sekcji */
}

.service-item p {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    line-height: 1.4;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .dark-feature-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 4rem 2rem;
    }

    .dark-feature-item:last-child {
        border-bottom: none;
    }

    .grid-3,
    .dark-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        justify-items: start;
        text-align: left;
    }

    .hero-grid>div {
        max-width: 100% !important;
    }

    .hero-grid h1,
    .hero-grid p {
        text-align: left !important;
    }

    .hero-grid .btn-group {
        justify-content: flex-start !important;
    }

    .hero-decorative-side {
        padding-left: 0;
        flex-direction: column;
    }

    .arch-pointers {
        margin-left: 0;
        margin-top: 2rem;
    }

    .arch-pointer {
        margin-left: 0;
    }

    .arch-pointer::before {
        display: none;
    }
}

@media (max-width: 768px) {

    .grid-3,
    .dark-features-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
        gap: 1.5rem;
        border-radius: var(--radius-box);
        padding: 2rem;
    }

    .site-nav {
        flex-direction: column;
        align-items: center;
    }

    .logos-bar {
        justify-content: center;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-content-card {
        padding: 3rem 1.5rem;
    }
}

/* Flip Buttons */
.flip-btn {
    perspective: 1000px;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    min-width: 220px;
    height: 52px;
}

.flip-btn-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.flip-btn.flipped .flip-btn-inner,
.flip-btn:hover .flip-btn-inner {
    transform: rotateX(180deg);
}

.flip-btn-front,
.flip-btn-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    box-sizing: border-box;
}

.flip-btn-back {
    transform: rotateX(180deg);
}