/*
Theme Name: Stolarnia Sosnowski
Author: Zakład Stolarski Paweł Sosnowski
Description: Lekki motyw wizytówki zakładu stolarskiego.
Version: 1.1.6
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: stolarnia-sosnowski
*/

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("assets/fonts/inter-latin-ext.woff2?ver=1.1.6") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("assets/fonts/inter-latin.woff2?ver=1.1.6") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Lora";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("assets/fonts/lora-latin-ext.woff2?ver=1.1.6") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Lora";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("assets/fonts/lora-latin.woff2?ver=1.1.6") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Lora";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/lora-italic-latin-ext.woff2?ver=1.1.6") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Lora";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/lora-italic-latin.woff2?ver=1.1.6") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --wood-50: #f7f7f5; --wood-100: #e8eae8; --wood-200: #d1d6d1;
    --wood-300: #b0b8b0; --wood-400: #c59d5f; --wood-500: #a67c43;
    --wood-600: #8c6232; --wood-700: #2c3e36; --wood-800: #1f3129;
    --wood-900: #14241e; --font-sans: "Inter", sans-serif; --font-serif: "Lora", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; }
body { margin: 0; background: var(--wood-50); color: var(--wood-700); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
body, button, input, textarea { font-family: var(--font-sans); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font-size: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: min(100% - 2rem, 80rem); margin-inline: auto; }
.section { padding-block: 6rem; }
.section-heading { max-width: 44rem; }
.eyebrow { display: block; margin-bottom: .65rem; color: var(--wood-600); font-size: .78rem; font-weight: 700; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; }
.section-heading h2 { margin: 0; color: var(--wood-900); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; }
.section-heading p { margin: 1.25rem 0 0; font-size: 1.05rem; line-height: 1.8; }

/* Header and navigation */
.site-header { position: fixed; z-index: 20; inset: 0 0 auto; padding-block: 1.25rem; color: #fff; transition: background-color .25s, box-shadow .25s, padding .25s, color .25s; }
.site-header.is-scrolled, .site-header.menu-open { padding-block: .8rem; background: #fff; color: var(--wood-900); box-shadow: 0 4px 20px rgb(20 36 30 / 12%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; background: #fff; color: var(--wood-900); }
.is-scrolled .brand-mark, .menu-open .brand-mark { background: var(--wood-900); color: #fff; }
.brand-mark svg { width: 1.35rem; height: 1.35rem; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-copy { display: grid; gap: .2rem; }
.brand-name { font-size: .95rem; font-weight: 700; letter-spacing: .03em; line-height: 1; text-transform: uppercase; }
.brand-owner { color: var(--wood-400); font-family: var(--font-serif); font-size: .78rem; font-style: italic; font-weight: 400; letter-spacing: .025em; }
.main-nav ul { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); margin: 0; padding: 0; list-style: none; }
.main-nav a { color: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; transition: color .2s; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--wood-500); }
.header-phone { color: inherit; font-size: .9rem; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--wood-400); padding-bottom: .35rem; }
.menu-toggle { display: none; border: 0; background: transparent; color: inherit; cursor: pointer; padding: .5rem; }
.menu-toggle svg { display: block; width: 1.5rem; height: 1.5rem; }

/* Hero */
.hero { position: relative; display: flex; min-height: min(90vh, 840px); align-items: center; overflow: hidden; padding-block: 7rem 4rem; background: var(--wood-900); color: #fff; }
.hero-image { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero::before { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgb(20 36 30 / 95%) 0%, rgb(20 36 30 / 65%) 52%, rgb(20 36 30 / 10%) 100%); content: ""; pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 48rem; border-left: 4px solid var(--wood-400); padding-left: clamp(1.25rem, 4vw, 2.5rem); }
.hero h1 { margin: 0; font-size: clamp(2.7rem, 6vw, 5rem); line-height: 1.08; }
.hero h1 span { color: var(--wood-400); }
.hero .eyebrow, .about .eyebrow { color: #d7b77f; }
.hero p { max-width: 38rem; margin: 1.25rem 0 0; color: #e5e7eb; font-size: clamp(1rem, 1.5vw, 1.15rem); font-weight: 300; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 3.25rem; align-items: center; justify-content: center; gap: .65rem; border: 2px solid transparent; padding: .85rem 1.5rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-align: center; text-decoration: none; text-transform: uppercase; transition: background-color .2s, color .2s, border-color .2s; }
.button svg { width: 1.1rem; height: 1.1rem; }
.button-primary { background: var(--wood-400); color: var(--wood-900); }
.button-primary:hover { background: var(--wood-300); }
.button-outline { border-color: #fff; color: #fff; }
.button-outline:hover { background: #fff; color: var(--wood-900); }

/* Services and benefits */
.services { background: #fff; }
.services-top { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3.5rem; }
.services-top .section-heading { max-width: 46rem; }
.services-link { flex: 0 0 auto; margin-bottom: .2rem; color: var(--wood-700); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.service-card { display: flex; min-height: 21rem; flex-direction: column; border: 1px solid var(--wood-200); background: var(--wood-50); padding: 2rem; transition: border-color .2s, box-shadow .2s, transform .2s; }
.service-card:hover { border-color: var(--wood-400); box-shadow: 0 12px 30px rgb(20 36 30 / 9%); transform: translateY(-3px); }
.service-card:first-child { border-color: var(--wood-900); background: var(--wood-900); color: #fff; box-shadow: 0 18px 35px rgb(20 36 30 / 20%); }
.service-icon { display: grid; width: 3rem; height: 3rem; place-items: center; margin-bottom: 1.5rem; background: #fff; color: var(--wood-900); }
.service-card:first-child .service-icon { background: var(--wood-700); color: var(--wood-400); }
.service-icon svg { width: 1.5rem; height: 1.5rem; }
.service-card h3 { min-height: 2.7em; margin: 0 0 1rem; color: var(--wood-900); font-size: 1.2rem; line-height: 1.35; }
.service-card:first-child h3 { color: #fff; }
.service-card p { flex: 1; margin: 0; color: #5b625e; font-size: .9rem; line-height: 1.75; }
.service-card:first-child p { color: #d1d5d3; }
.service-card a { display: inline-block; margin-top: auto; padding-top: 1.5rem; color: var(--wood-600); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.service-card:first-child a { color: var(--wood-400); }
.benefits { border-block: 1px solid var(--wood-800); background: var(--wood-900); color: #fff; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
.benefit { display: flex; align-items: flex-start; gap: 1.25rem; }
.benefit-icon { flex: 0 0 auto; padding: .8rem; border-radius: .4rem; background: var(--wood-800); color: var(--wood-400); }
.benefit-icon svg { display: block; width: 2rem; height: 2rem; }
.benefit h3 { margin: 0 0 .6rem; color: #fff; font-size: 1.2rem; }
.benefit p { margin: 0; color: var(--wood-200); font-size: .87rem; line-height: 1.75; }

/* Realizations */
.gallery { background: var(--wood-100); }
.gallery-heading { margin: 0 auto 3rem; text-align: center; }
.gallery-heading .section-heading { margin-inline: auto; }
.gallery-heading .eyebrow { color: var(--wood-700); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.project-card { position: relative; min-height: 20rem; overflow: hidden; background: var(--wood-200); }
.project-card picture { display: block; width: 100%; height: 100%; }
.project-card img { width: 100%; height: 100%; min-height: 20rem; object-fit: cover; transition: transform .6s; }
.project-card:hover img { transform: scale(1.05); }
.project-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: end; padding: 1.75rem; background: linear-gradient(transparent 25%, rgb(20 36 30 / 88%)); color: #fff; }
.project-overlay .project-category { margin-bottom: .45rem; color: var(--wood-400); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.project-overlay h3 { margin: 0; color: #fff; font-size: 1.35rem; }
.gallery-cta { margin-top: 2.5rem; text-align: center; }
.gallery-cta .button { border-color: var(--wood-900); color: var(--wood-900); }
.gallery-cta .button:hover { background: var(--wood-900); color: #fff; }

/* About and specialties */
.about { background: var(--wood-900); color: #fff; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); }
.about .section-heading h2 { color: #fff; }
.about-copy p { color: var(--wood-200); line-height: 1.8; }
.specialties { display: grid; gap: 1rem; }
.specialty { border: 1px solid var(--wood-700); background: rgb(31 49 41 / 65%); padding: 1.5rem; }
.specialty-heading { display: flex; align-items: center; gap: .8rem; margin-bottom: .75rem; }
.specialty-heading svg { flex: 0 0 auto; width: 1.5rem; height: 1.5rem; color: var(--wood-400); }
.specialty h3 { margin: 0; font-size: 1.1rem; }
.specialty p { margin: 0; color: var(--wood-200); font-size: .88rem; line-height: 1.7; }
.about-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 3rem; border-top: 1px solid var(--wood-700); padding-top: 1.75rem; }
.about-cta p { max-width: 42rem; margin: 0; color: var(--wood-200); font-size: .9rem; line-height: 1.7; }

/* Contact */
.contact { background: var(--wood-50); }
.contact-card { display: flex; overflow: hidden; background: #fff; box-shadow: 0 18px 50px rgb(20 36 30 / 13%); }
.contact-info { position: relative; display: flex; width: 40%; flex-direction: column; justify-content: space-between; overflow: hidden; background: var(--wood-900); padding: clamp(2rem, 5vw, 4rem); color: #fff; }
.contact-info::after { position: absolute; top: -4rem; right: -4rem; width: 15rem; height: 15rem; border-radius: 50%; background: var(--wood-800); filter: blur(40px); opacity: .7; content: ""; }
.contact-info > * { position: relative; z-index: 1; }
.contact-info h2 { margin: 0 0 1rem; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.contact-info > p { margin: 0 0 2rem; color: #c8ceca; font-size: .92rem; line-height: 1.75; }
.contact-details { display: grid; gap: 1.5rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; }
.contact-detail svg { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin-top: .2rem; color: var(--wood-400); }
.contact-detail strong { display: block; font-size: 1rem; overflow-wrap: anywhere; }
.contact-detail span { display: block; margin-top: .25rem; color: #a8b0ab; font-size: .8rem; }
.contact-form-wrap { width: 60%; padding: clamp(2rem, 5vw, 4rem); }
.contact-form-wrap h3 { margin: 0 0 1.5rem; color: var(--wood-900); font-size: 1.5rem; }
.contact-form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.contact-form label { display: block; margin-bottom: .5rem; color: var(--wood-700); font-size: .83rem; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #d1d5d3; border-radius: 0; background: #f9faf9; padding: .85rem; color: var(--wood-900); outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--wood-500); box-shadow: 0 0 0 2px rgb(197 157 95 / 20%); }
.contact-form textarea { min-height: 8rem; resize: vertical; }
.contact-form .button { width: 100%; border: 0; cursor: pointer; color: var(--wood-900); }
.form-notice { margin: 0 0 1.25rem; border-left: 3px solid var(--wood-500); background: var(--wood-50); padding: .9rem 1rem; font-size: .9rem; }
.form-notice.is-error { border-color: #a33b2f; color: #76281f; }
.privacy-notice { margin: 0; color: #606963; font-size: .78rem; line-height: 1.65; }
.privacy-notice a { color: var(--wood-700); text-decoration: underline; text-underline-offset: .15em; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* Footer and WordPress content */
.site-footer { border-top: 1px solid var(--wood-800); background: var(--wood-900); padding-block: 3rem 1.5rem; color: #aab1ad; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-footer .brand { color: #fff; }
.footer-socials { display: flex; gap: 1rem; }
.footer-socials a { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; color: #aab1ad; transition: color .2s; }
.footer-socials a:hover { color: var(--wood-400); }
.footer-socials svg { width: 1.35rem; height: 1.35rem; }
.copyright { margin: 2rem 0 0; color: #aab1ad; font-size: .75rem; text-align: center; }
.footer-policy { margin: .5rem 0 0; font-size: .75rem; text-align: center; }
.footer-policy a { color: #aab1ad; text-underline-offset: .15em; }
.content-page { min-height: 55vh; padding-block: 9rem 5rem; }
.content-page h1 { color: var(--wood-900); font-size: clamp(2.2rem, 5vw, 3.5rem); }
.content-page .entry-content { max-width: 52rem; line-height: 1.8; }
.content-page .entry-content img { height: auto; }
.single-project-image { width: 100%; max-height: 42rem; object-fit: cover; }
.service-lead { max-width: 52rem; margin-block: 2rem; color: var(--wood-600); font-size: 1.2rem; font-weight: 500; line-height: 1.7; }
.wp-block-button__link { background: var(--wood-900); color: #fff; }

@media (max-width: 960px) {
    .main-nav ul { gap: 1rem; }
    .main-nav a { font-size: .7rem; }
    .header-phone { display: none; }
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .benefits-grid { gap: 1.5rem; }
}
@media (max-width: 720px) {
    html { scroll-padding-top: 68px; }
    .section { padding-block: 4.5rem; }
    .site-header { padding-block: .9rem; }
    .menu-toggle { display: block; }
    .main-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; max-height: calc(100vh - 70px); overflow: auto; background: var(--wood-900); padding: 1rem 1.5rem 2rem; }
    .menu-open .main-nav { display: block; }
    .main-nav ul { display: flex; align-items: stretch; flex-direction: column; gap: 0; }
    .main-nav li { border-bottom: 1px solid var(--wood-800); }
    .main-nav a { display: block; padding: 1rem 0; color: #fff; font-size: .9rem; }
    .hero { min-height: 650px; }
    .hero-image { object-position: 58% center; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .hero-actions .button { width: 100%; }
    .services-top { align-items: flex-start; flex-direction: column; margin-bottom: 2.5rem; }
    .services-grid { gap: .85rem; }
    .service-card { min-height: 22rem; padding: 1.4rem; }
    .benefits-grid { grid-template-columns: 1fr; gap: 2rem; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project-card, .project-card img { min-height: 16rem; }
    .project-overlay { padding: 1rem; }
    .project-overlay h3 { font-size: 1.1rem; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-cta { align-items: flex-start; flex-direction: column; }
    .contact-card { flex-direction: column; }
    .contact-info, .contact-form-wrap { width: 100%; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 460px) {
    .container { width: min(100% - 1.5rem, 80rem); }
    .brand-name { font-size: .8rem; }
    .brand-owner { font-size: .68rem; letter-spacing: .02em; }
    .services-grid { grid-template-columns: 1fr; }
    .project-card, .project-card img { min-height: 18rem; }
    .form-row { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
