/* Sanok-inspired visual system
   Original implementation for TYPO3. Replace placeholder media with your own
   licensed images before production. */

:root {
    --ink: #111111;
    --muted: #6e6e6e;
    --paper: #f7f6f3;
    --white: #ffffff;
    --line: #deddd8;
    --warm: #d8b98e;
    --max: 1440px;
    --gutter: clamp(24px, 4vw, 72px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

.sanok-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: 82px;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: clamp(18px, 2.5vw, 38px);
    padding: 0 var(--gutter);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    border-top: 4px solid #263143;
    transition: box-shadow .3s ease, background .3s ease;
}

.sanok-header.is-scrolled {
    box-shadow: 0 12px 40px rgba(0,0,0,.08);
}

.sanok-logo {
    letter-spacing: .42em;
    font-size: 19px;
    font-weight: 500;
    white-space: nowrap;
}

.sanok-nav {
    display: flex;
    justify-content: flex-start;
    gap: clamp(18px, 2.2vw, 36px);
}

.sanok-nav a {
    position: relative;
    font-size: 10px;
    letter-spacing: .34em;
    font-weight: 600;
    color: #3c3c3c;
}

.sanok-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width .25s ease;
}

.sanok-nav a:hover::after,
.sanok-nav a.is-active::after { width: 100%; }

.sanok-menu { display:none; border:0; background:none; }

.sanok-section { position: relative; }

.sanok-section__inner,
.sanok-hero__content {
    width: min(100%, var(--max));
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.sanok-hero {
    min-height: 100vh;
    padding-top: 82px;
    background: #f7f6f3;
    overflow: hidden;
}

.sanok-hero__content {
    width: 100%;
    max-width: none;
    min-height: calc(100vh - 82px);
    display: grid;
    grid-template-columns: 50% 50%;
    padding: 0;
}

.sanok-hero__left {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 70px clamp(34px, 5vw, 82px) 70px clamp(34px, 5vw, 82px);
    background: #f7f6f3;
}

.sanok-hero__right {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #d2b28b;
}

.sanok-hero__left .t3-ce {
    width: 100%;
    margin: 0;
}

.sanok-hero__left .ce-textpic {
    display: grid;
    grid-template-columns: minmax(130px, 176px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 3.5vw, 58px);
    max-width: 820px;
    margin: 0 auto;
}

.sanok-hero__left .ce-gallery {
    width: 100%;
    margin: 0;
}

.sanok-hero__left .ce-gallery figure {
    margin: 0;
    aspect-ratio: .78;
    overflow: hidden;
}

.sanok-hero__left .ce-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sanok-hero__left .ce-bodytext {
    min-width: 0;
}

.sanok-hero .ce-header,
.sanok-hero .ce-header h1,
.sanok-hero .ce-header h2,
.sanok-hero .ce-header h3,
.sanok-hero .ce-header h4,
.sanok-hero .ce-header h5,
.sanok-hero .ce-header h6 {
    margin: 0;
    max-width: 560px;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 400;
    font-size: clamp(64px, 7.2vw, 124px);
    line-height: .86;
    letter-spacing: -.05em;
    text-transform: none;
}

.sanok-hero .subheader {
    margin: 0 0 18px;
    max-width: 460px;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: .34em;
    text-transform: uppercase;
    font-weight: 500;
}

.sanok-hero .ce-bodytext p {
    max-width: 440px;
    margin: 28px 0 0;
    font-size: 16px;
    line-height: 1.7;
}

.sanok-hero__right .t3-ce {
    height: 100%;
    margin: 0;
}

.sanok-hero__right .ce-textpic,
.sanok-hero__right .ce-gallery {
    height: 100%;
    width: 100%;
    margin: 0;
}

.sanok-hero__right .ce-bodytext {
    display: none;
}

.sanok-hero__right figure {
    height: 100%;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.sanok-hero__right img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sanok-intro {
    background: var(--paper);
    padding: 150px 0;
}

.sanok-intro h2,
.sanok-services h2,
.sanok-work h2,
.sanok-testimonials h2,
.sanok-contact h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 400;
    font-size: clamp(48px, 7vw, 104px);
    line-height: .92;
    letter-spacing: -.045em;
    margin: 0 0 40px;
}

.sanok-intro .t3-ce,
.sanok-services .t3-ce,
.sanok-work .t3-ce,
.sanok-contact .t3-ce {
    max-width: 860px;
}

.sanok-services {
    padding: 120px 0;
    background: #fff;
}

.sanok-services .frame-container,
.sanok-services .ce-textpic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
}

.sanok-services .t3-ce {
    background: #fff;
    padding: 52px 42px;
    min-height: 270px;
}

.sanok-services h3 {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 500;
}

.sanok-feature {
    min-height: 680px;
    padding: 120px 0;
    background:
        linear-gradient(90deg, rgba(247,246,243,.97) 0 46%, rgba(247,246,243,.12) 46%),
        linear-gradient(135deg, #d5b58d, #7a503b 55%, #201a17);
}

.sanok-feature .t3-ce {
    max-width: 620px;
    padding: 40px 0;
}

.sanok-feature h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(54px, 8vw, 120px);
    line-height: .88;
    font-weight: 400;
    margin: 0 0 30px;
}

.sanok-work {
    padding: 150px 0;
    background: #fff;
}

.sanok-work .ce-gallery,
.sanok-work .gallery-row {
    margin-top: 50px;
}

.sanok-work .gallery-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.sanok-work figure {
    margin: 0;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #e6ded2;
}

.sanok-work figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2,.7,.2,1);
}

.sanok-work figure:hover img { transform: scale(1.05); }

.sanok-clients {
    padding: 80px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.sanok-clients .frame-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.sanok-clients .t3-ce {
    font-size: 12px;
    letter-spacing: .28em;
    font-weight: 600;
}

.sanok-testimonials {
    padding: 150px 0;
    background: #161616;
    color: #fff;
}

.sanok-testimonials .t3-ce { max-width: 900px; }

.sanok-testimonials blockquote {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.05;
}

.sanok-contact {
    padding: 150px 0;
    background: var(--paper);
}

.sanok-contact form {
    max-width: 760px;
    display: grid;
    gap: 18px;
}

.sanok-contact input,
.sanok-contact textarea,
.sanok-contact select {
    width: 100%;
    padding: 17px 0;
    border: 0;
    border-bottom: 1px solid #aaa;
    background: transparent;
    font: inherit;
    outline: none;
}

.sanok-contact textarea { min-height: 150px; resize: vertical; }

.sanok-contact button {
    justify-self: start;
    padding: 16px 30px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fff;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: 10px;
    cursor: pointer;
}

.sanok-footer {
    background: #111;
    color: #fff;
    padding: 70px var(--gutter);
}

.sanok-footer__inner {
    width: min(100%, var(--max));
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 40px;
    align-items: start;
}

.sanok-footer__copy {
    color: #777;
    font-size: 12px;
}

.t3-ce { margin-bottom: 24px; }
.t3-ce:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
    .sanok-header {
        grid-template-columns: 1fr auto;
        height: 72px;
        padding: 0 24px;
    }

    .sanok-nav { display:none; }

    .sanok-menu {
        display:flex;
        flex-direction:column;
        gap:6px;
        cursor:pointer;
    }

    .sanok-menu span {
        display:block;
        width:25px;
        height:1px;
        background:#111;
        transition:.25s;
    }

    .sanok-nav.is-open {
        display:flex;
        position:absolute;
        top:72px;
        left:0;
        right:0;
        flex-direction:column;
        align-items:center;
        gap:24px;
        padding:35px;
        background:#fff;
        box-shadow:0 20px 30px rgba(0,0,0,.08);
    }

    .sanok-hero {
        padding-top: 72px;
    }

    .sanok-hero__content {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .sanok-hero__left {
        padding: 60px 24px 70px;
    }

    .sanok-hero__left .ce-textpic {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .sanok-hero__left .ce-gallery {
        width: min(176px, 55vw);
    }

    .sanok-hero__right {
        min-height: 65vh;
    }

    .sanok-services .frame-container,
    .sanok-services .ce-textpic,
    .sanok-work .gallery-row {
        grid-template-columns:1fr;
    }

    .sanok-feature { min-height: 600px; }

    .sanok-footer__inner { grid-template-columns:1fr; }
}

@media (max-width: 600px) {
    .sanok-intro,
    .sanok-services,
    .sanok-work,
    .sanok-testimonials,
    .sanok-contact { padding: 90px 0; }

    .sanok-hero h1 { font-size: 58px; }
}
