/* =========================================================
   STUDIO JASNA — SPIS SEKCJI CSS
   01. Zmienne i reset
   02. Elementy wspólne
   03. Nagłówek
   04. Hero
   05. Wprowadzenie
   06. Oferta
   07. Portfolio
   08. O studio
   09. Proces
   10. Wynajem
   11. Kontakt
   12. Stopka
   13. Lightbox i strony prawne
   14. Responsywność
   ========================================================= */

/* 01. ZMIENNE I RESET ------------------------------------- */
:root {
    --ink: #11100f;
    --ink-soft: #48443f;
    --paper: #f7f5f0;
    --white: #ffffff;
    --gold: #ad7c35;
    --gold-light: #d6b172;
    --line: rgba(17, 16, 15, 0.18);
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Manrope", Arial, sans-serif;
    --max: 1360px;
    --pad: clamp(1.25rem, 4vw, 4.5rem);
    --section-y: clamp(5rem, 10vw, 10rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 0.98; }
h2 { font-size: clamp(3.4rem, 7.5vw, 7.6rem); letter-spacing: -0.045em; }
h3 { font-size: clamp(2rem, 3vw, 3.2rem); }
::selection { color: var(--white); background: var(--gold); }

/* 02. ELEMENTY WSPÓLNE ----------------------------------- */
.skip-link {
    position: fixed; top: 0; left: 1rem; z-index: 999;
    padding: .75rem 1rem; color: var(--white); background: var(--ink);
    transform: translateY(-120%); transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
.section-pad { padding: var(--section-y) var(--pad); }
.eyebrow, .section-number {
    margin: 0 0 1.5rem; font-size: .72rem; font-weight: 600;
    letter-spacing: .22em; text-transform: uppercase;
}
.eyebrow--dark { color: var(--gold); }
.button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 3.5rem; padding: .8rem 1.7rem; border: 1px solid transparent;
    font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button--light { color: var(--ink); background: var(--white); }
.button--light:hover { color: var(--white); background: transparent; border-color: rgba(255,255,255,.75); }
.button--dark { color: var(--white); background: var(--ink); }
.button--dark:hover { color: var(--ink); background: transparent; border-color: var(--ink); }
.text-link {
    display: inline-flex; gap: .8rem; align-items: center; padding-block: .4rem;
    border-bottom: 1px solid currentColor; font-size: .78rem; font-weight: 600;
    letter-spacing: .11em; text-transform: uppercase;
}
.text-link span { transition: transform .25s ease; }
.text-link:hover span { transform: translate(3px, -3px); }
.text-link--light { color: var(--white); }
.section-heading { max-width: var(--max); margin: 0 auto clamp(3rem, 7vw, 7rem); }
.section-heading h2 { max-width: 12ch; margin-bottom: 0; }
.section-heading--row { display: flex; align-items: end; justify-content: space-between; gap: 3rem; }
.section-heading--row > p { max-width: 35rem; margin-bottom: .7rem; color: var(--ink-soft); }
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(2rem); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.75,.25,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* 03. NAGŁÓWEK ------------------------------------------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 100; display: flex;
    align-items: center; justify-content: space-between; min-height: 6.25rem;
    padding: 1rem var(--pad); color: var(--white);
    transition: min-height .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.site-header--scrolled { min-height: 4.8rem; color: var(--ink); background: rgba(247,245,240,.96); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(12px); }
.brand { display: inline-flex; flex-direction: column; line-height: 1; text-transform: uppercase; }
.brand__name { font-family: var(--serif); font-size: 2rem; letter-spacing: .1em; }
.brand__city { margin-top: .33rem; font-size: .56rem; letter-spacing: .42em; }
.main-nav { display: flex; gap: clamp(1.4rem, 3vw, 3.5rem); align-items: center; }
.main-nav a { position: relative; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: -.45rem; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; padding: .5rem 0; border: 0; background: transparent; }

/* 04. HERO ------------------------------------------------ */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; color: var(--white); background: #5e554b; }
.hero__image, .hero__shade { position: absolute; inset: 0; }
.hero__image { background: url("../images/hero-studio.webp") center center / cover no-repeat; transform: scale(1.02); animation: hero-in 1.4s ease both; }
.hero__shade { background: linear-gradient(90deg, rgba(9,8,7,.78) 0%, rgba(9,8,7,.38) 42%, rgba(9,8,7,.06) 75%), linear-gradient(0deg, rgba(9,8,7,.46), transparent 50%); }
.hero__content { position: relative; z-index: 1; width: min(64rem, calc(100% - 2 * var(--pad))); margin: 0 auto 10vh var(--pad); }
.hero h1 { max-width: 10ch; margin-bottom: 1.7rem; font-size: clamp(4.2rem, 9vw, 9.5rem); letter-spacing: -.055em; }
.hero h1 em, .contact h2 em { font-weight: 400; }
.hero__lead { max-width: 39rem; margin-bottom: 2.2rem; font-size: clamp(1rem, 1.4vw, 1.2rem); color: rgba(255,255,255,.82); }
.hero__actions { display: flex; gap: 2rem; align-items: center; }
.hero__scroll { position: absolute; right: var(--pad); bottom: 3rem; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .8rem; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; }
.hero__scroll i { width: 1px; height: 3rem; background: rgba(255,255,255,.65); animation: scroll-line 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hero-in { from { opacity: .2; transform: scale(1.08); } to { opacity: 1; transform: scale(1.02); } }
@keyframes scroll-line { 0%, 100% { transform: scaleY(.25); opacity: .35; } 50% { transform: scaleY(1); opacity: 1; } }

/* 05. WPROWADZENIE --------------------------------------- */
.intro { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 2.5fr; gap: 4rem; }
.section-number { padding-top: 1rem; color: var(--gold); }
.intro__copy h2 { max-width: 11ch; }
.intro__copy p { max-width: 50rem; margin-left: auto; font-size: clamp(1.05rem, 1.7vw, 1.35rem); color: var(--ink-soft); }

/* 06. OFERTA ---------------------------------------------- */
.services { background: var(--white); }
.services__list { max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 5rem 1fr auto; gap: 2rem; align-items: start; padding: clamp(2.3rem, 5vw, 4.5rem) 0; border-bottom: 1px solid var(--line); }
.service__number { padding-top: .55rem; color: var(--gold); font-size: .72rem; letter-spacing: .18em; }
.service h3 { margin-bottom: 1rem; }
.service div p { max-width: 45rem; margin-bottom: 0; color: var(--ink-soft); }
.service > a { margin-top: .65rem; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.service > a span { display: inline-block; margin-left: .5rem; transition: transform .25s ease; }
.service > a:hover span { transform: translate(3px, -3px); }

/* 07. PORTFOLIO ------------------------------------------- */
.portfolio { overflow: hidden; }
.portfolio-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(1rem, 2.5vw, 2.5rem); }
.portfolio-card { position: relative; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: #ddd; }
.portfolio-card--wide { grid-row: span 2; }
.portfolio-card img { width: 100%; height: 100%; min-height: 26rem; object-fit: cover; transition: transform .8s cubic-bezier(.2,.75,.25,1), filter .5s ease; }
.portfolio-card--wide img { min-height: 58rem; }
.portfolio-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.66), transparent 40%); }
.portfolio-card span { position: absolute; z-index: 1; right: 1.6rem; bottom: 1.5rem; left: 1.6rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; color: var(--white); text-align: left; }
.portfolio-card b { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 500; }
.portfolio-card small { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }
.portfolio-card:hover img { transform: scale(1.035); filter: brightness(.88); }
.demo-note { max-width: var(--max); margin: 1.4rem auto 0; color: #6b665f; font-size: .78rem; }
.demo-note code { padding: .15rem .35rem; background: rgba(17,16,15,.06); }

/* 08. O STUDIO -------------------------------------------- */
.about { display: grid; grid-template-columns: 1fr 1fr; min-height: 60rem; color: var(--white); background: var(--ink); }
.about__image { min-height: 42rem; overflow: hidden; }
.about__image img { width: 100%; height: 100%; object-fit: cover; }
.about__content { display: flex; flex-direction: column; justify-content: center; }
.about__content h2 { max-width: 9ch; margin-bottom: 2.5rem; font-size: clamp(3.2rem, 5vw, 6rem); }
.about__content p:not(.eyebrow) { max-width: 38rem; color: rgba(255,255,255,.7); }
.about__content .text-link { align-self: flex-start; margin-top: 1.2rem; }

/* 09. PROCES ---------------------------------------------- */
.process { background: var(--white); }
.process__steps { max-width: var(--max); margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; border-top: 1px solid var(--line); }
.process__steps li { min-height: 20rem; padding: 2.5rem 2rem 2rem 0; border-right: 1px solid var(--line); }
.process__steps li + li { padding-left: 2rem; }
.process__steps li:last-child { border-right: 0; }
.process__steps span { color: var(--gold); font-size: .7rem; letter-spacing: .18em; }
.process__steps h3 { margin: 5rem 0 1rem; }
.process__steps p { max-width: 20rem; margin-bottom: 0; color: var(--ink-soft); }

/* 10. WYNAJEM --------------------------------------------- */
.rental { position: relative; min-height: 55rem; display: grid; align-items: center; padding: var(--section-y) var(--pad); overflow: hidden; }
.rental__photo { position: absolute; inset: 0; background: url("../images/hero-studio.webp") center / cover no-repeat; }
.rental__photo::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.18); }
.rental__card { position: relative; z-index: 1; width: min(41rem, 100%); margin-left: auto; padding: clamp(2.2rem, 5vw, 5rem); background: rgba(247,245,240,.96); backdrop-filter: blur(8px); }
.rental__card h2 { margin-bottom: 2rem; font-size: clamp(3.2rem, 5.3vw, 6rem); }
.rental__card > p:not(.eyebrow) { color: var(--ink-soft); }
.rental__card ul { margin: 2rem 0 2.5rem; padding: 0; list-style: none; }
.rental__card li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.rental__card li::before { content: "—"; margin-right: .8rem; color: var(--gold); }

/* 11. KONTAKT --------------------------------------------- */
.contact { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(4rem, 8vw, 9rem); }
.contact h2 { font-size: clamp(3.8rem, 6.6vw, 7rem); }
.contact__intro > p:not(.eyebrow) { max-width: 36rem; color: var(--ink-soft); }
.contact address { margin-top: 3rem; display: flex; flex-direction: column; gap: .55rem; font-style: normal; }
.contact address a { width: fit-content; font-family: var(--serif); font-size: clamp(1.5rem, 2.3vw, 2.3rem); border-bottom: 1px solid var(--line); }
.contact address span { margin-top: 1rem; color: var(--ink-soft); }
.contact-form { display: grid; gap: 1.6rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.contact-form label { display: grid; gap: .55rem; font-size: .67rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: .85rem 0; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: 0; background: transparent;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-bottom-color: var(--gold); }
.contact-form textarea { resize: vertical; }
.contact-form .checkbox { display: flex; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .68rem; font-weight: 400; line-height: 1.6; letter-spacing: 0; text-transform: none; }
.checkbox input { width: 1rem; margin-top: .25rem; accent-color: var(--gold); }
.checkbox a { text-decoration: underline; }
.contact-form .button { justify-self: start; cursor: pointer; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-message { margin-bottom: 1.7rem; padding: 1rem 1.2rem; border: 1px solid; }
.form-message--success { color: #2f5b3b; border-color: #8eb29a; background: #eff7f1; }
.form-message--error { color: #7b2b2b; border-color: #c99999; background: #fff2f2; }

/* 12. STOPKA ---------------------------------------------- */
.site-footer { display: grid; grid-template-columns: 1.2fr .7fr .7fr; gap: 3rem; padding: clamp(4rem, 8vw, 7rem) var(--pad) 2rem; color: var(--white); background: var(--ink); }
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; line-height: .88; text-transform: uppercase; }
.site-footer__brand span { font-size: .7rem; letter-spacing: .45em; }
.site-footer__brand strong { font-family: var(--serif); font-size: clamp(4rem, 8vw, 8rem); font-weight: 400; letter-spacing: .04em; }
.site-footer__brand small { color: var(--gold-light); letter-spacing: .42em; }
.site-footer__links, .site-footer__social { display: flex; flex-direction: column; gap: .6rem; padding-top: 1rem; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer__copy { grid-column: 1 / -1; margin: 4rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.45); font-size: .7rem; }

/* 13. LIGHTBOX I STRONY PRAWNE ---------------------------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 4rem; border: 0; background: rgba(9,8,7,.94); }
.lightbox::backdrop { background: rgba(9,8,7,.94); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox__close { position: fixed; top: 1.2rem; right: 1.5rem; z-index: 1; width: 3rem; height: 3rem; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: var(--white); background: transparent; font-size: 2rem; line-height: 1; cursor: pointer; }
.legal-page { background: var(--white); }
.legal-header { display: flex; justify-content: space-between; align-items: center; padding: 2rem var(--pad); border-bottom: 1px solid var(--line); }
.legal-content { max-width: 58rem; margin: 0 auto; padding: var(--section-y) var(--pad); }
.legal-content h1 { margin-bottom: 3rem; font-size: clamp(4rem, 8vw, 7rem); }
.legal-content h2 { margin: 3rem 0 1rem; font-size: 2rem; letter-spacing: -.02em; }
.legal-note { padding: 1.2rem; border-left: 3px solid var(--gold); background: var(--paper); }
.legal-footer { padding: 2rem var(--pad); color: rgba(255,255,255,.55); background: var(--ink); font-size: .75rem; }

/* 14. RESPONSYWNOŚĆ --------------------------------------- */
@media (max-width: 900px) {
    .site-header { min-height: 5rem; }
    .menu-toggle { position: relative; z-index: 2; display: flex; align-items: center; gap: .8rem; color: inherit; cursor: pointer; }
    .menu-toggle__label { font-size: .65rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
    .menu-toggle__lines { width: 1.5rem; display: grid; gap: .35rem; }
    .menu-toggle__lines i { height: 1px; background: currentColor; transition: transform .25s ease; }
    .menu-open .menu-toggle { color: var(--white); }
    .menu-open .menu-toggle__lines i:first-child { transform: translateY(3px) rotate(45deg); }
    .menu-open .menu-toggle__lines i:last-child { transform: translateY(-3px) rotate(-45deg); }
    .main-nav { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 6rem var(--pad); color: var(--white); background: var(--ink); transform: translateX(100%); visibility: hidden; transition: transform .4s cubic-bezier(.2,.75,.25,1), visibility .4s; }
    .menu-open .main-nav { transform: translateX(0); visibility: visible; }
    .main-nav a { font-family: var(--serif); font-size: clamp(2.5rem, 9vw, 4rem); font-weight: 400; letter-spacing: -.02em; text-transform: none; }
    .hero__content { margin-bottom: 12vh; }
    .intro { grid-template-columns: 1fr; gap: 1rem; }
    .intro__copy p { margin-left: 0; }
    .section-heading--row { display: block; }
    .section-heading--row > p { margin-top: 2rem; }
    .portfolio-grid { grid-template-columns: 1fr 1fr; }
    .portfolio-card--wide { grid-column: 1 / -1; grid-row: auto; }
    .portfolio-card--wide img { min-height: 36rem; }
    .about { grid-template-columns: 1fr; }
    .about__image { max-height: 60rem; }
    .process__steps { grid-template-columns: 1fr; }
    .process__steps li, .process__steps li + li { min-height: 0; padding: 2.2rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .process__steps h3 { margin: 2.5rem 0 .7rem; }
    .contact { grid-template-columns: 1fr; }
    .site-footer { grid-template-columns: 1fr 1fr; }
    .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    h2 { font-size: clamp(3rem, 16vw, 4.7rem); }
    .hero__shade { background: linear-gradient(0deg, rgba(9,8,7,.78), rgba(9,8,7,.1) 80%); }
    .hero__content { width: auto; margin-right: var(--pad); }
    .hero h1 { font-size: clamp(3.8rem, 18vw, 6rem); }
    .hero__actions { align-items: flex-start; flex-direction: column; gap: 1.3rem; }
    .hero__scroll { display: none; }
    .service { grid-template-columns: 2.2rem 1fr; gap: 1rem; }
    .service > a { grid-column: 2; justify-self: start; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-card--wide { grid-column: auto; }
    .portfolio-card img, .portfolio-card--wide img { min-height: 30rem; }
    .portfolio-card span { flex-direction: column; align-items: flex-start; }
    .about { min-height: auto; }
    .about__image { min-height: 36rem; }
    .rental { min-height: 47rem; align-items: end; padding-right: 0; padding-left: 0; }
    .rental__card { width: calc(100% - 1.5rem); margin: 0 auto; padding: 2.3rem 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .site-footer { grid-template-columns: 1fr; }
    .site-footer__brand, .site-footer__copy { grid-column: auto; }
    .legal-header { align-items: flex-start; gap: 1rem; }
    .legal-header .text-link { font-size: .6rem; }
    .lightbox { padding: 3.5rem .75rem .75rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
