/*
Theme Name: Stara Forma
Theme URI: https://example.com
Author: Creative Media Assistant
Description: Motyw WordPress dla marki Stara Forma — vintage meble z duszą.
Version: 1.3
Text Domain: stara-forma
*/

:root {
    --cream: #f3efe7;
    --ink: #191713;
    --gold: #947249;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: Georgia, 'Times New Roman', serif;
}

.wrap {
    max-width: 1440px;
    margin: auto;
    padding-left: 5.5%;
    padding-right: 5.5%;
}


/* =========================
   HERO
========================= */

.hero {
    height: 650px;
    position: relative;
    color: #fff;
    background: #17140f;
    overflow: hidden;
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0 0 0 27%;
    background: url('hero-photo.png') center/cover no-repeat;
}

.heroShade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,.93) 0%,
        rgba(0,0,0,.68) 28%,
        rgba(0,0,0,.08) 67%,
        rgba(0,0,0,.12) 100%
    );
}


/* =========================
   MENU
========================= */

.nav {
    height: 105px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    color: white;
    text-decoration: none;
    letter-spacing: 5px;
    font-size: 21px;
    text-align: center;
}

.brand small {
    display: block;
    font: 8px Arial, sans-serif;
    letter-spacing: 4px;
    margin-top: 9px;
}

/*
WordPress generuje menu jako:
<div class="links">
    <ul>
        <li><a>...</a></li>
    </ul>
</div>
*/

.links ul {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.links li {
    margin: 0;
    padding: 0;
}

.links a {
    color: #fff;
    text-decoration: none;
    font: 12px Arial, sans-serif;
    letter-spacing: 1.5px;
}

.menu {
    display: none;
}


/* =========================
   TEKST HERO
========================= */

.heroContent {
    position: relative;
    z-index: 1;
    padding-top: 80px;
}

.eyebrow {
    font: 11px Arial, sans-serif;
    letter-spacing: 2.5px;
    color: var(--gold);
}

.hero .eyebrow {
    color: #fff;
}

.hero h1 {
    font-size: 65px;
    font-weight: 400;
    line-height: .95;
    margin: 18px 0 20px;
}

.heroContent > p:not(.eyebrow) {
    font-size: 17px;
    line-height: 1.5;
}

.btn {
    display: inline-flex;
    gap: 25px;
    margin-top: 18px;
    padding: 17px 24px;
    background: #8a6941;
    color: #fff;
    text-decoration: none;
    font: 11px Arial, sans-serif;
    letter-spacing: 2px;
}


/* =========================
   KORZYŚCI
========================= */

.benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-top: 38px;
    padding-bottom: 38px;
}

.benefits article {
    text-align: center;
    padding: 5px 20px;
    border-right: 1px solid #ded8cd;
}

.benefits article:last-child {
    border: 0;
}

.benefits b {
    font-size: 34px;
    font-weight: 400;
    color: var(--gold);
}

.benefits h3 {
    font: 11px Arial, sans-serif;
    letter-spacing: 1.7px;
    font-weight: 400;
    margin-top: 14px;
}

.benefits p {
    color: #6f6a62;
    line-height: 1.5;
}


/* =========================
   RZEMIOSŁO
========================= */

.craft {
    display: grid;
    grid-template-columns: 1.25fr .85fr .32fr;
    min-height: 505px;
    background: #f7f4ed;
}

.craftImg {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.craftImg.one {
    background-image: url('craft-left.png');
}

.craftImg.two {
    background-image: url('craft-right.png');
}

.craftText {
    padding: 65px 50px;
}

.craftText h2,
.sectionHead h2 {
    font-size: 42px;
    font-weight: 400;
    margin: 17px 0;
}

.craftText > p:not(.eyebrow) {
    color: #716d65;
    line-height: 1.55;
    margin: 5px 0;
}


/* =========================
   PRODUKTY
========================= */

.products {
    padding-top: 30px;
    padding-bottom: 32px;
}

.sectionHead {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.sectionHead > a {
    color: #826541;
    text-decoration: none;
    font: 10px Arial, sans-serif;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.pimg {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.p1 {
    background-image: url('product-1.png');
}

.p2 {
    background-image: url('product-2.png');
}

.p3 {
    background-image: url('product-3.png');
}

.p4 {
    background-image: url('product-4.png');
}

/*
Ta reguła została po wcześniejszych serduszkach.
Może zostać — obecnie nie wpływa na stronę.
*/

.pimg span {
    position: absolute;
    right: 13px;
    top: 10px;
    color: white;
    font-size: 28px;
}

.grid h4 {
    font-weight: 400;
    margin: 12px 0 4px;
}

.grid p {
    margin: 0;
    font-size: 17px;
}


/* =========================
   CYTAT
========================= */

.quote {
    min-height: 170px;
    color: white;
    background: #142018;
    position: relative;
    overflow: hidden;
}

.quote:after {
    content: "";
    position: absolute;
    inset: 0 23% 0 34%;
    background: url('quote-chair.png') center/cover no-repeat;
    opacity: .85;
}

.quote .wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 170px;
}

.quote blockquote {
    font-size: 27px;
    font-style: italic;
    margin: 0;
}

.outline {
    background: rgba(20,32,24,.45);
    border: 1px solid #9d8c6d;
}


/* =========================
   STOPKA
========================= */

footer {
    background: #171713;
    color: #cfc8bb;
    padding: 30px 0;
    font: 11px Arial, sans-serif;
    letter-spacing: 2px;
}

section[id],
footer[id],
header[id] {
    scroll-margin-top: 12px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    .links {
        display: none;
    }

    .menu {
        display: block;
        background: none;
        border: 0;
        color: #fff;
        font-size: 24px;
    }

    .hero {
        height: 620px;
    }

    .hero:before {
        inset: 0 0 0 10%;
    }

    .hero h1 {
        font-size: 50px;
    }

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

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

    .craftImg {
        min-height: 330px;
    }

    .craftImg.two {
        display: none;
    }

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

    .quote .wrap {
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 10px;
    }

    .quote:after {
        inset: 0 0 0 45%;
        opacity: .55;
    }
}


/* =========================
   TELEFON
========================= */

@media (max-width: 560px) {

    .wrap {
        padding-left: 7%;
        padding-right: 7%;
    }

    .brand {
        font-size: 17px;
    }

    .hero:before {
        inset: 0;
    }

    .heroShade {
        background: rgba(0,0,0,.58);
    }

    .hero h1 {
        font-size: 43px;
    }

    .heroContent {
        padding-top: 70px;
    }

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

    .benefits article {
        border-right: 0;
        border-bottom: 1px solid #ded8cd;
        padding: 22px;
    }

    .craftText {
        padding: 42px 7%;
    }

    .craftText h2,
    .sectionHead h2 {
        font-size: 34px;
    }

    .sectionHead {
        display: block;
    }

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

    .pimg {
        height: 390px;
    }

    .quote blockquote {
        font-size: 22px;
    }

    .quote:after {
        inset: 0;
        opacity: .25;
    }
}