/*
Theme Name: Karolina Sosna Fotografia
Theme URI: https://example.com/
Author: OpenAI
Description: Lekki, elegancki motyw WordPress dla portfolio fotograficznego. Bez Elementora.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: karolina-sosna
*/

:root {
    --bg: #0b0b0b;
    --bg-soft: #111111;
    --text: #f4f2ee;
    --muted: #aaa7a1;
    --line: rgba(255,255,255,.18);
    --accent: #d8c7b2;
    --max: 1240px;
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: Inter, Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }

.site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 50;
    padding: 28px 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.7), transparent);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.brand {
    display: inline-flex;
    align-items: center;
    max-width: 320px;
}
.brand img { max-height: 44px; width: auto; }
.brand-text {
    font-size: 12px;
    letter-spacing: .38em;
    text-transform: uppercase;
    font-weight: 500;
}
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    padding: 0;
    margin: 0;
}
.site-nav a {
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .9;
    transition: opacity .25s ease;
}
.site-nav a:hover { opacity: .55; }
.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    width: 44px;
    height: 44px;
    cursor: pointer;
}

.hero {
    min-height: 92vh;
    position: relative;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: #090909;
}
.hero-media {
    position: absolute;
    inset: 0 50% 0 0;
    background-position: center;
    background-size: cover;
}
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.08), rgba(0,0,0,.15));
}
.hero-content {
    margin-left: 50%;
    width: 50%;
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 140px 7vw 90px 7vw;
}
.eyebrow {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .28em;
    text-transform: uppercase;
}
.hero h1 {
    margin: 0;
    max-width: 560px;
    font: 400 clamp(54px, 6vw, 94px)/.88 var(--serif);
    letter-spacing: -.02em;
    text-transform: uppercase;
}
.hero p {
    max-width: 520px;
    margin: 28px 0 34px;
    color: #c8c5bf;
    font-size: 15px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid rgba(255,255,255,.55);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover {
    background: var(--text);
    color: #111;
    border-color: var(--text);
}

.section { padding: 120px 0; }
.section--soft { background: var(--bg-soft); }
.section-head { margin-bottom: 52px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-title {
    margin: 0;
    font: 400 clamp(42px, 5vw, 72px)/.95 var(--serif);
    text-transform: uppercase;
}
.section-intro {
    max-width: 650px;
    color: var(--muted);
    margin-top: 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-photo {
    aspect-ratio: 4 / 5;
    background-size: cover;
    background-position: center;
}
.about-copy p { color: #c8c5bf; }
.signature {
    margin-top: 30px;
    font: 400 32px var(--serif);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
}
.service-card {
    background: var(--bg);
    padding: 34px;
    min-height: 210px;
    transition: background .3s ease;
}
.service-card:hover { background: #151515; }
.service-number {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .2em;
}
.service-card h3 {
    margin: 28px 0 12px;
    font: 400 32px/1 var(--serif);
    text-transform: uppercase;
}
.service-card p { color: var(--muted); margin: 0; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
}
.gallery-item {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    background: #171717;
}
.gallery-item:nth-child(1),
.gallery-item:nth-child(4) { grid-column: span 7; }
.gallery-item:nth-child(2),
.gallery-item:nth-child(3),
.gallery-item:nth-child(5) { grid-column: span 5; }
.gallery-item a { display: block; height: 100%; }
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.gallery-item:hover img { transform: scale(1.035); }

.quote {
    text-align: center;
    padding: 150px 20px;
}
.quote blockquote {
    max-width: 900px;
    margin: 0 auto;
    font: 400 clamp(34px, 4.3vw, 66px)/1.08 var(--serif);
}
.quote cite {
    display: block;
    margin-top: 28px;
    color: var(--muted);
    font-style: normal;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 90px;
}
.contact-details p { color: var(--muted); }
.contact-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
}
.contact-list li { margin: 14px 0; }
.contact-list a:hover { color: var(--accent); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.field input, .field textarea, .field select {
    width: 100%;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    padding: 14px 15px;
    outline: none;
    border-radius: 0;
}
.field select option { background: #111; color: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
    border-color: rgba(255,255,255,.65);
}
.form-note { color: var(--muted); font-size: 12px; margin-top: 14px; }
.form-message {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid var(--line);
}
.form-message--ok { border-color: rgba(150,210,150,.5); }
.form-message--error { border-color: rgba(230,130,130,.5); }

.page-hero {
    padding: 180px 0 90px;
    background: #090909;
    border-bottom: 1px solid var(--line);
}
.page-hero h1 {
    margin: 0;
    font: 400 clamp(54px, 7vw, 100px)/.9 var(--serif);
    text-transform: uppercase;
}
.page-content { padding: 90px 0 120px; }
.page-content p { max-width: 780px; color: #c8c5bf; }

.site-footer {
    padding: 55px 0 30px;
    border-top: 1px solid var(--line);
}
.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}
.footer-brand { font: 400 30px var(--serif); text-transform: uppercase; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a, .footer-bottom { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.footer-bottom { padding-top: 45px; display: flex; justify-content: space-between; gap: 20px; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
    .site-header { padding: 20px 0; }
    .menu-toggle { display: block; }
    .site-nav {
        position: absolute;
        top: 76px;
        left: 24px;
        right: 24px;
        display: none;
        padding: 20px;
        background: rgba(10,10,10,.97);
        border: 1px solid var(--line);
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; gap: 18px; }
    .hero { min-height: auto; display: block; }
    .hero-media { position: relative; inset: auto; height: 58vh; min-height: 420px; }
    .hero-content { margin: 0; width: 100%; min-height: 0; padding: 70px 24px 85px; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 45px; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .section { padding: 85px 0; }
    .gallery-item, .gallery-item:nth-child(n) { grid-column: span 6; min-height: 260px; }
}
@media (max-width: 600px) {
    .container { width: min(calc(100% - 34px), var(--max)); }
    .brand-text { font-size: 10px; letter-spacing: .28em; }
    .services-grid { grid-template-columns: 1fr; }
    .gallery-item, .gallery-item:nth-child(n) { grid-column: span 12; min-height: 360px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .footer-top, .footer-bottom { flex-direction: column; }
    .hero h1 { font-size: 58px; }
}
