/* ============================================================
   ZOLA ARCHITEKTURA - Design System
   Premium architecture studio website
   Brand: Sage Green (#8B9A82) + Blush Pink (#E8C4B8)
   Strategy ref: /projekt/01-strategia/STRATEGIA-GLOWNA.md
   ============================================================ */

/* ============ CUSTOM PROPERTIES ============ */
:root {
    /* Brand */
    --sage:           #8B9A82;
    --sage-light:     #A8B5A0;
    --sage-dark:      #6B7A62;
    --sage-muted:     #C5CCBF;
    --blush:          #E8C4B8;
    --blush-light:    #F2DDD4;
    --blush-dark:     #D4A999;
    --blush-muted:    #F5EBE6;

    /* Neutrals -- warm-shifted (NEVER pure black/white) */
    --charcoal:       #2C2C2C;
    --graphite:       #3D3D3D;
    --warm-gray:      #8A8578;
    --stone:          #B5AFA6;
    --linen:          #F5F2EE;
    --cream:          #FAF8F5;
    --ivory:          #FEFDFB;

    /* Dark mode surfaces */
    --dark-bg:        #1A1A1A;
    --dark-surface:   #252525;
    --dark-text:      #E8E4DF;

    /* Typography */
    --font-display:   'Cormorant Garamond', 'Georgia', serif;
    --font-body:      'Montserrat', 'Helvetica Neue', sans-serif;

    /* Fluid type scale */
    --text-xs:    clamp(0.65rem, 0.6rem + 0.25vw, 0.8rem);
    --text-sm:    clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
    --text-base:  clamp(0.95rem, 0.88rem + 0.25vw, 1.1rem);
    --text-lg:    clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
    --text-xl:    clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    --text-2xl:   clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
    --text-3xl:   clamp(2.5rem, 1.8rem + 3.5vw, 5rem);
    --text-hero:  clamp(3rem, 2rem + 5vw, 7rem);

    /* Spacing */
    --tracking-tight:   -0.02em;
    --tracking-normal:  0;
    --tracking-wide:    0.08em;
    --tracking-widest:  0.15em;

    --space-section:    clamp(6rem, 10vw, 12rem);
    --space-block:      clamp(3rem, 5vw, 6rem);
    --space-element:    clamp(1.5rem, 2.5vw, 3rem);

    /* Transitions */
    --ease-out-expo:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:      cubic-bezier(0.77, 0, 0.175, 1);
}

/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 300;
    line-height: 1.75;
    color: var(--warm-gray);
    background-color: var(--ivory);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

strong {
    font-weight: 500;
    color: var(--charcoal);
}

/* Selection */
::selection {
    background-color: var(--sage);
    color: var(--ivory);
}

::-moz-selection {
    background-color: var(--sage);
    color: var(--ivory);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: var(--cream);
}
::-webkit-scrollbar-thumb {
    background: var(--sage-muted);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--sage);
}

/* Focus */
:focus-visible {
    outline: 2px solid var(--sage);
    outline-offset: 4px;
}
:focus:not(:focus-visible) {
    outline: none;
}

/* ============ LAYOUT ============ */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.section {
    padding-block: var(--space-section);
    position: relative;
}

/* ============ TYPOGRAPHY ============ */
.section__label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--sage);
    display: block;
    margin-bottom: 1.5rem;
}

.section__title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 300;
    letter-spacing: var(--tracking-tight);
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.section__title em {
    font-style: italic;
    font-weight: 300;
    color: var(--sage-dark);
}

.section__subtitle {
    font-size: var(--text-base);
    color: var(--warm-gray);
    font-weight: 300;
    max-width: 55ch;
    line-height: 1.7;
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-block);
}

.section__header .section__subtitle {
    margin-inline: auto;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    padding: 1.1em 2.8em;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.btn--primary {
    background: var(--charcoal);
    color: var(--ivory);
}

.btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--sage);
    transform: translateY(101%);
    transition: transform 0.45s var(--ease-out-expo);
    z-index: -1;
}

.btn--primary:hover::before {
    transform: translateY(0);
}

.btn--primary:hover {
    color: var(--ivory);
}

.btn--outline {
    background: transparent;
    color: var(--ivory);
    border: 1px solid rgba(254, 253, 251, 0.4);
}

.btn--outline:hover {
    background: rgba(254, 253, 251, 0.1);
    border-color: var(--ivory);
}

.btn--full {
    width: 100%;
}

.btn--success {
    background: var(--sage) !important;
}

.btn span,
.btn {
    position: relative;
    z-index: 1;
}

/* ============ NAWIGACJA ============ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.8rem clamp(1.5rem, 4vw, 4rem);
    transition: background-color 0.5s ease,
                padding 0.4s ease,
                backdrop-filter 0.5s ease;
}

.nav--scrolled,
.nav--light {
    background-color: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem clamp(1.5rem, 4vw, 4rem);
    border-bottom: 1px solid rgba(139, 154, 130, 0.1);
}

.nav--hidden {
    transform: translateY(-100%);
    transition: transform 0.4s ease, background-color 0.5s ease, padding 0.4s ease;
}

.nav__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1320px;
    margin: 0 auto;
    position: relative;
    z-index: 1002;
}

/* Logo */
.nav__logo {
    display: flex;
    flex-direction: column;
    z-index: 1003;
}

.nav__logo-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--ivory);
    line-height: 1;
    transition: color 0.4s ease;
}

.nav__logo-sub {
    font-family: var(--font-body);
    font-size: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--blush-light);
    transition: color 0.4s ease;
}

.nav--scrolled .nav__logo-text,
.nav--light .nav__logo-text {
    color: var(--charcoal);
}

.nav--scrolled .nav__logo-sub,
.nav--light .nav__logo-sub {
    color: var(--sage);
}

/* Nav links */
.nav__menu {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
}

.nav__link {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: rgba(254, 253, 251, 0.8);
    position: relative;
    padding: 0.3em 0;
    transition: color 0.3s ease;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--blush);
    transition: width 0.4s var(--ease-out-expo);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link:hover {
    color: var(--ivory);
}

.nav--scrolled .nav__link,
.nav--light .nav__link {
    color: var(--warm-gray);
}

.nav--scrolled .nav__link:hover,
.nav--light .nav__link:hover {
    color: var(--charcoal);
}

.nav--scrolled .nav__link::after,
.nav--light .nav__link::after {
    background: var(--sage);
}

/* CTA link w nawigacji */
.nav__link--cta {
    background: rgba(254, 253, 251, 0.1);
    padding: 0.6em 1.5em;
    border: 1px solid rgba(254, 253, 251, 0.25);
    transition: all 0.3s ease;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: rgba(254, 253, 251, 0.2);
}

.nav--scrolled .nav__link--cta,
.nav--light .nav__link--cta {
    background: var(--charcoal);
    color: var(--ivory);
    border-color: var(--charcoal);
}

.nav--scrolled .nav__link--cta:hover,
.nav--light .nav__link--cta:hover {
    background: var(--sage);
    border-color: var(--sage);
    color: var(--ivory);
}

/* Hamburger */
.nav__hamburger {
    display: none;
    position: relative;
    width: 28px;
    height: 18px;
    z-index: 1003;
}

.nav__hamburger span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--ivory);
    position: absolute;
    left: 0;
    transition: all 0.35s ease;
}

.nav__hamburger span:nth-child(1) { top: 0; width: 100%; }
.nav__hamburger span:nth-child(2) { top: 50%; width: 70%; }
.nav__hamburger span:nth-child(3) { bottom: 0; width: 85%; }

.nav--scrolled .nav__hamburger span,
.nav--light .nav__hamburger span {
    background: var(--charcoal);
}

.nav__hamburger.active span:nth-child(1) {
    top: 50%; transform: rotate(45deg); width: 100%;
    background: var(--ivory);
}
.nav__hamburger.active span:nth-child(2) {
    opacity: 0;
}
.nav__hamburger.active span:nth-child(3) {
    bottom: 50%; transform: rotate(-45deg); width: 100%;
    background: var(--ivory);
}

/* ============ HERO ============ */
.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    display: grid;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    background: var(--dark-bg);
}

/* Hero background image */
.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.82);
    z-index: 0;
    animation: kenBurns 25s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0%   { transform: scale(1)    translate(0, 0); }
    100% { transform: scale(1.08) translate(-1%, -0.5%); }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(107, 122, 98, 0.55) 0%,
            rgba(26, 26, 26, 0.35) 50%,
            rgba(26, 26, 26, 0.65) 100%
        ),
        linear-gradient(
            to top,
            rgba(26, 26, 26, 0.9) 0%,
            rgba(26, 26, 26, 0.35) 40%,
            transparent 70%
        );
    z-index: 1;
}

.hero__content {
    align-self: end;
    padding: clamp(3.5rem, 8vw, 5rem) clamp(1.5rem, 4vw, 5rem) clamp(4rem, 8vw, 8rem);
    z-index: 2;
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}

.hero__tagline {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--blush);
    margin-bottom: 1.5rem;
}

.hero__title {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: 300;
    line-height: 1.05;
    color: var(--ivory);
    max-width: 15ch;
    margin-bottom: 1.5rem;
}

.hero__title em {
    font-style: italic;
    color: var(--blush-light);
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 300;
    color: rgba(232, 228, 223, 0.65);
    max-width: 45ch;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 2rem;
    right: clamp(1.5rem, 4vw, 5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
}

.hero__scroll span {
    font-family: var(--font-body);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(232, 228, 223, 0.4);
    writing-mode: vertical-rl;
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--blush), transparent);
    animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 0.3; }
    50%      { transform: scaleY(1.4); opacity: 1; }
}

/* Hero fade-up animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s var(--ease-out-expo) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero parallax */
.hero {
    --parallax: 0px;
}

.hero__overlay {
    transform: translateY(var(--parallax));
}

/* ============ O NAS (ABOUT) ============ */
.about {
    background: var(--ivory);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 8rem);
    align-items: start;
}

.about__image-wrapper {
    position: relative;
    position: sticky;
    top: 12vh;
}

.about__image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.95) contrast(1.02);
}

.about__accent-box {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    width: 40%;
    height: 40%;
    border: 1px solid var(--sage-muted);
    z-index: -1;
}

.about__text-col {
    padding-top: 8vh;
}

.about__lead {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.about__text-col p {
    margin-bottom: 1.2rem;
    max-width: 52ch;
}

/* Statystyki */
.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: var(--space-element);
    padding-top: var(--space-element);
    border-top: 1px solid var(--sage-muted);
}

.stat {
    text-align: center;
}

.stat__number {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 300;
    color: var(--sage-dark);
    line-height: 1;
}

.stat__plus,
.stat__percent {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 300;
    color: var(--sage);
}

.stat__label {
    display: block;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--stone);
    margin-top: 0.5rem;
}

.about__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.about__outline {
    color: var(--charcoal);
    border-color: rgba(43, 43, 40, 0.28);
}

.about__outline:hover {
    color: var(--charcoal);
    border-color: var(--sage);
    background: rgba(139, 154, 130, 0.08);
}

/* ============ USLUGI (SERVICES) ============ */
.services {
    background: var(--linen);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 2.5vw, 2rem);
}

.service-card {
    position: relative;
    padding: clamp(2rem, 3vw, 3rem);
    background: var(--ivory);
    border: 1px solid rgba(139, 154, 130, 0.12);
    transition: all 0.5s var(--ease-out-expo);
}

.services--hub .service-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--sage);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out-expo);
}

.service-card:hover {
    border-color: var(--sage-muted);
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(107, 122, 98, 0.08);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon {
    width: 44px;
    height: 44px;
    color: var(--sage);
    margin-bottom: 1.5rem;
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
}

.service-card__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 0.8rem;
}

.service-card__desc {
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--warm-gray);
}

.service-card__price {
    display: inline-block;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--sage);
    padding-top: 1.2rem;
    border-top: 1px solid var(--sage-muted);
    margin-top: auto;
    font-weight: 500;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 1.2rem;
    color: var(--sage);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-card__link:hover {
    color: var(--sage-dark);
}

/* ============ SERVICE AREA CARDS ============ */
.service-area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.service-area-grid .service-card {
    padding: clamp(1.6rem, 2.2vw, 2.25rem);
}

.service-area-grid--places .service-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.service-area-grid--places .service-card__title,
.service-area-grid--intent .service-card__title {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: clamp(1.45rem, 1.45vw, 1.8rem);
    line-height: 1.3;
}

.service-area-grid--places .service-card__title {
    min-height: 5.8rem;
}

.service-area-grid--intent .service-card {
    display: flex;
    flex-direction: column;
}

.service-area-grid--intent .service-card__title {
    min-height: 3.9rem;
}

.service-area-grid .service-card__desc {
    font-size: var(--text-sm);
    line-height: 1.75;
}

.service-area-grid--places .service-card__desc {
    margin-bottom: 0;
}

.service-area-grid--intent .service-card__link {
    margin-top: auto;
    padding-top: 1.2rem;
}

.service-area-cta {
    max-width: 860px;
    margin-inline: auto;
}

.service-area-cta p {
    max-width: 78ch;
    margin-inline: auto;
    line-height: 1.75;
}

.service-area-cta .btn {
    margin-top: 1.8rem;
}

/* ============ LOKALNE SEO ============ */
.local-hub {
    background: var(--ivory);
}

.local-hub__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.local-hub__content .section__title {
    margin-bottom: 1.5rem;
}

.local-hub__text {
    color: var(--warm-gray);
    font-weight: 300;
    line-height: 1.8;
    max-width: 48rem;
}

.local-hub__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.local-hub__link {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 8rem;
    padding: 1.35rem;
    color: var(--charcoal);
    text-decoration: none;
    background: var(--linen);
    border: 1px solid rgba(139, 154, 130, 0.14);
    transition: border-color 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.local-hub__link:hover {
    transform: translateY(-3px);
    background: var(--cream);
    border-color: var(--sage-muted);
}

.local-hub__link span {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    line-height: 1.2;
}

.local-hub__link small {
    color: var(--warm-gray);
    font-size: var(--text-xs);
    line-height: 1.5;
}

/* ============ PROCES (PROCESS) ============ */
.process {
    background: var(--dark-bg);
    color: var(--dark-text);
}

.process .section__label { color: var(--sage-light); }
.process .section__title { color: var(--ivory); }
.process .section__title em { color: var(--blush); }
.process .section__subtitle { color: rgba(232, 228, 223, 0.6); }

.process__timeline {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding-top: 1rem;
}

.process__timeline::before {
    content: '';
    position: absolute;
    left: 2.5rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(139, 154, 130, 0.3) 10%,
        rgba(139, 154, 130, 0.3) 90%,
        transparent
    );
}

.process__step {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 2rem;
    padding-bottom: clamp(2.5rem, 4vw, 4rem);
    position: relative;
}

.process__number {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 300;
    color: var(--sage-light);
    text-align: center;
    position: relative;
}

.process__number::after {
    content: '';
    position: absolute;
    left: 50%;
    top: calc(100% + 0.8rem);
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--sage);
}

.process__content h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--ivory);
    margin-bottom: 0.4rem;
}

.process__content p {
    color: rgba(232, 228, 223, 0.55);
    font-weight: 300;
    line-height: 1.7;
    max-width: 45ch;
}

/* ============ REALIZACJE (PORTFOLIO) ============ */
.portfolio {
    background: var(--ivory);
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(0.8rem, 1.5vw, 1.5rem);
}

.portfolio__item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    grid-column: span 4;
}

.portfolio__item--wide {
    grid-column: span 8;
}

.portfolio__img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo),
                filter 0.5s ease;
    filter: brightness(0.92) saturate(0.9);
}

.portfolio__item--wide .portfolio__img {
    aspect-ratio: 21/10;
}

.portfolio__item:hover .portfolio__img {
    transform: scale(1.04);
    filter: brightness(1) saturate(1);
}

.portfolio__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.2rem, 2.5vw, 2rem);
    background: linear-gradient(
        to top,
        rgba(26, 26, 26, 0.85) 0%,
        rgba(26, 26, 26, 0.2) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio__item:hover .portfolio__overlay {
    opacity: 1;
}

.portfolio__category {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--blush);
    margin-bottom: 0.4rem;
}

.portfolio__title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--ivory);
    transform: translateY(15px);
    transition: transform 0.5s var(--ease-out-expo) 0.05s;
}

.portfolio__item:hover .portfolio__title {
    transform: translateY(0);
}

.portfolio__meta {
    font-size: var(--text-xs);
    color: var(--stone);
    margin-top: 0.3rem;
    transform: translateY(15px);
    transition: transform 0.5s var(--ease-out-expo) 0.1s;
}

.portfolio__item:hover .portfolio__meta {
    transform: translateY(0);
}

.portfolio__cta {
    text-align: center;
    margin-top: var(--space-element);
    color: var(--stone);
    font-style: italic;
    font-family: var(--font-display);
    font-size: var(--text-base);
}

/* ============ CASE STUDY CONVERSION ============ */
.case-study-conversion {
    background: var(--dark-bg);
    color: var(--dark-text);
    padding-block: clamp(4rem, 8vw, 7rem);
}

.case-study-conversion__intro {
    max-width: 820px;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.case-study-conversion__intro .section__title {
    color: var(--ivory);
    margin-bottom: 1rem;
}

.case-study-conversion__intro p {
    color: var(--stone);
    font-weight: 300;
    line-height: 1.8;
}

.case-study-fit {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
}

.case-study-fit__item {
    padding: clamp(1.4rem, 2.5vw, 2rem);
    background: rgba(254, 253, 251, 0.04);
    border: 1px solid rgba(254, 253, 251, 0.1);
}

.case-study-fit__item h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--blush-light);
    margin-bottom: 0.8rem;
}

.case-study-fit__item p {
    color: rgba(232, 228, 223, 0.72);
    font-size: var(--text-sm);
    font-weight: 300;
    line-height: 1.7;
}

.case-study-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: clamp(2rem, 4vw, 3rem);
}

/* ============ WYROZNIKI (FEATURES) ============ */
.features {
    background: var(--linen);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
}

.feature {
    text-align: center;
    padding: clamp(1.5rem, 2vw, 2.5rem);
}

.feature__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 1.5rem;
    color: var(--sage);
}

.feature__icon svg {
    width: 100%;
    height: 100%;
}

.feature h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 0.8rem;
}

.feature p {
    font-weight: 300;
    line-height: 1.7;
    color: var(--warm-gray);
    max-width: 30ch;
    margin-inline: auto;
}

/* ============ FAQ ============ */
.faq {
    background: var(--ivory);
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid rgba(139, 154, 130, 0.15);
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--charcoal);
    list-style: none;
    transition: color 0.3s ease;
    gap: 1rem;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    content: '+';
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 200;
    color: var(--sage);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq__item[open] .faq__question::after {
    transform: rotate(45deg);
}

.faq__item[open] .faq__question {
    color: var(--sage-dark);
}

.faq__answer {
    padding-bottom: 1.5rem;
    color: var(--warm-gray);
    font-weight: 300;
    line-height: 1.7;
    max-width: 60ch;
}

.faq__answer ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin-top: 0.8rem;
}

.faq__answer ol li {
    margin-bottom: 0.4rem;
}

/* ============ KONTAKT (CONTACT) ============ */
.contact {
    background: var(--dark-bg);
    color: var(--dark-text);
}

.contact .section__label { color: var(--sage-light); }
.contact .section__title { color: var(--ivory); }
.contact .section__title em { color: var(--blush); }

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(4rem, 8vw, 10rem);
    align-items: start;
}

.contact__map {
    margin-top: clamp(4rem, 8vw, 6rem);
}

.contact__map-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.contact__map-link {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--sage-light);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.3s ease;
}

.contact__map-link:hover {
    color: var(--blush);
}

.contact__map-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(139, 154, 130, 0.25);
    border-radius: 2px;
    background: rgba(139, 154, 130, 0.05);
    filter: grayscale(0.35) contrast(0.95);
    transition: filter 0.4s ease;
}

.contact__map-frame:hover {
    filter: grayscale(0) contrast(1);
}

.contact__map-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 640px) {
    .contact__map-frame {
        aspect-ratio: 4 / 3;
    }
}

.contact__lead {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: rgba(232, 228, 223, 0.7);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.6;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--dark-text);
    font-weight: 300;
}

.contact__item svg {
    flex-shrink: 0;
    color: var(--sage-light);
}

.contact__item a {
    transition: color 0.3s ease;
}

.contact__item a:hover {
    color: var(--blush);
}

.contact__steps {
    display: grid;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 154, 130, 0.18);
}

.contact__step {
    display: grid;
    grid-template-columns: 2.6rem 1fr;
    gap: 1rem;
    align-items: start;
}

.contact__step span {
    color: var(--sage-light);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    line-height: 1;
}

.contact__step p {
    color: rgba(232, 228, 223, 0.68);
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* Form */
.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.contact__context {
    margin-bottom: 2rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid rgba(139, 154, 130, 0.28);
    background: rgba(139, 154, 130, 0.08);
}

.contact__context-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--sage);
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.contact__context-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--ivory);
    margin-bottom: 0.5rem;
}

.contact__context-text {
    color: rgba(232, 228, 223, 0.68);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.form__group {
    position: relative;
}

.form__label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--stone);
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 400;
}

.form__input {
    width: 100%;
    padding: 0.8rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(139, 154, 130, 0.25);
    color: var(--dark-text);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 300;
    transition: border-color 0.3s ease;
    outline: none;
}

.form__input:focus {
    border-bottom-color: var(--blush);
}

.form__select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23B5AFA6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

.form__select option {
    background: var(--dark-surface);
    color: var(--dark-text);
}

.form__textarea {
    resize: vertical;
    min-height: 100px;
}

.form__note {
    font-size: var(--text-xs);
    color: var(--stone);
    text-align: center;
    margin-top: 0.5rem;
}

.form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: var(--stone);
    line-height: 1.5;
    cursor: pointer;
}

.form__checkbox input[type="checkbox"] {
    margin-top: 0.2em;
    flex-shrink: 0;
    accent-color: var(--sage);
}

.form__checkbox a {
    color: var(--sage);
}

.contact__form .btn--primary {
    margin-top: 0.5rem;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--charcoal);
    color: rgba(232, 228, 223, 0.5);
    padding: clamp(3rem, 5vw, 5rem) 0 clamp(1.5rem, 3vw, 2rem);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid rgba(139, 154, 130, 0.1);
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--ivory);
    display: block;
}

.footer__logo-sub {
    font-family: var(--font-body);
    font-size: 0.5rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--sage-muted);
    display: block;
    margin-bottom: 1rem;
}

.footer__tagline {
    font-size: var(--text-sm);
    line-height: 1.5;
}

.footer__links h4 {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--sage-light);
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer__links h4,
.footer__heading {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--sage-light);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links a {
    display: block;
    font-size: var(--text-sm);
    font-weight: 300;
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: var(--blush);
}

.footer__bottom {
    padding-top: clamp(1.5rem, 2vw, 2rem);
    font-size: var(--text-xs);
    text-align: center;
}

/* ============ CURSOR GLOW ============ */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(139, 154, 130, 0.06) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: normal;
}

/* ============ SCROLL ANIMATIONS ============ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s var(--ease-out-expo),
                transform 0.9s var(--ease-out-expo);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.32s; }

/* ============ MOBILE CONTACT BAR ============ */
.mobile-contact-bar {
    display: none;
}

.mobile-contact-bar__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: var(--tracking-wide);
    line-height: 1.2;
    text-transform: uppercase;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.mobile-contact-bar__link:active {
    transform: translateY(1px);
}

.mobile-contact-bar__link--phone {
    border: 1px solid rgba(254, 253, 251, 0.35);
    color: var(--ivory);
}

.mobile-contact-bar__link--form {
    background: var(--sage);
    border: 1px solid var(--sage);
    color: var(--ivory);
}

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

/* Tablet */
@media (max-width: 1024px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about__image-wrapper {
        position: relative;
        top: 0;
        max-width: 500px;
    }

    .about__text-col {
        padding-top: 0;
    }

    .services__grid {
        grid-template-columns: 1fr 1fr;
    }

    .local-hub__grid {
        grid-template-columns: 1fr;
    }

    .case-study-fit {
        grid-template-columns: 1fr;
    }

    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }

    .portfolio__item {
        grid-column: span 6;
    }

    .portfolio__item--wide {
        grid-column: span 12;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        padding-bottom: 5.5rem;
    }

    body.menu-open {
        padding-bottom: 0;
    }

    body.menu-open .nav {
        transform: none;
        background: var(--dark-bg);
        border-bottom: 1px solid rgba(254, 253, 251, 0.1);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body.menu-open .nav__logo-text {
        color: var(--ivory);
    }

    body.menu-open .nav__logo-sub {
        color: var(--blush-light);
    }

    body.menu-open .nav__hamburger span {
        background: var(--ivory);
    }

    .nav__menu {
        position: fixed;
        inset: 0;
        z-index: 1001;
        min-height: 100vh;
        min-height: 100dvh;
        padding: calc(6.5rem + env(safe-area-inset-top)) 1.5rem calc(2rem + env(safe-area-inset-bottom));
        background: var(--dark-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        overflow-y: auto;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    .nav__menu.active {
        opacity: 1;
        pointer-events: all;
    }

    .nav__menu .nav__link {
        font-family: var(--font-display);
        font-size: clamp(1.45rem, 7vw, 2.15rem);
        font-weight: 300;
        color: var(--ivory);
        text-transform: none;
        letter-spacing: 0.05em;
        padding: 0.42em 0;
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.5s var(--ease-out-expo);
    }

    .nav__menu.active .nav__link {
        transform: translateY(0);
        opacity: 1;
    }

    .nav__menu.active li:nth-child(1) .nav__link { transition-delay: 0.1s; }
    .nav__menu.active li:nth-child(2) .nav__link { transition-delay: 0.15s; }
    .nav__menu.active li:nth-child(3) .nav__link { transition-delay: 0.2s; }
    .nav__menu.active li:nth-child(4) .nav__link { transition-delay: 0.25s; }
    .nav__menu.active li:nth-child(5) .nav__link { transition-delay: 0.3s; }
    .nav__menu.active li:nth-child(6) .nav__link { transition-delay: 0.35s; }
    .nav__menu.active li:nth-child(7) .nav__link { transition-delay: 0.4s; }

    .nav__link--cta {
        background: transparent;
        border: 1px solid rgba(254, 253, 251, 0.2);
        margin-top: 1rem;
    }

    .nav__menu.active .nav__link--cta,
    body.menu-open .nav__link--cta {
        background: transparent;
        border-color: rgba(254, 253, 251, 0.28);
        color: var(--ivory);
        padding-inline: 1.4em;
    }

    .nav__hamburger {
        display: block;
    }

    .hero__title {
        max-width: 100%;
    }

    .hero__tagline {
        max-width: min(100%, 18rem);
        font-size: 0.68rem;
        line-height: 1.55;
        letter-spacing: 0.12em;
        margin-bottom: 1rem;
    }

    .hero__cta {
        flex-direction: column;
    }

    .hero__cta .btn {
        width: 100%;
        text-align: center;
    }

    .case-study-actions .btn {
        width: 100%;
        text-align: center;
    }

    .hero__scroll {
        display: none;
    }

    .about__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .about__actions .btn {
        width: 100%;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .local-hub__links {
        grid-template-columns: 1fr;
    }

    .local-hub__link {
        min-height: auto;
    }

    .service-area-grid {
        grid-template-columns: 1fr;
    }

    .service-area-grid--places .service-card__title,
    .service-area-grid--intent .service-card__title {
        min-height: 0;
    }

    .features__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature {
        display: grid;
        grid-template-columns: 48px 1fr;
        gap: 1rem;
        text-align: left;
        padding: 1.5rem 0;
        border-bottom: 1px solid rgba(139, 154, 130, 0.1);
    }

    .feature__icon {
        margin: 0;
    }

    .feature h3,
    .feature p {
        grid-column: 2;
    }

    .feature p {
        max-width: none;
    }

    .portfolio__item,
    .portfolio__item--wide {
        grid-column: span 12;
    }

    .portfolio__overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(26,26,26,0.75) 0%, transparent 50%);
    }

    .portfolio__title,
    .portfolio__meta {
        transform: translateY(0);
    }

    .process__timeline::before {
        left: 1.8rem;
    }

    .process__step {
        grid-template-columns: 3.5rem 1fr;
        gap: 1rem;
    }

    .contact__grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mobile-contact-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 900;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        padding: 0.75rem max(1rem, env(safe-area-inset-left)) calc(0.75rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-right));
        background: rgba(26, 26, 26, 0.94);
        border-top: 1px solid rgba(254, 253, 251, 0.12);
        box-shadow: 0 -18px 34px rgba(26, 26, 26, 0.16);
        backdrop-filter: blur(14px);
    }

    body.menu-open .mobile-contact-bar {
        display: none;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero__tagline {
        max-width: 13.5rem;
        letter-spacing: 0.1em;
    }

    .about__stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat {
        display: flex;
        align-items: baseline;
        gap: 0.5rem;
        text-align: left;
    }

    .stat__label {
        margin-top: 0;
    }
}

/* ============ PRINT ============ */
@media print {
    .nav, .hero__scroll, .cursor-glow, .hero__cta, .mobile-contact-bar {
        display: none;
    }

    .hero {
        height: auto;
        padding: 2rem;
        background: white;
        color: black;
    }

    .section {
        padding-block: 2rem;
    }

    body {
        color: #333;
        font-size: 12pt;
    }
}
