/* Adorea Weddings — front (etap 2). Wygląd odwzorowany z adoreaweddings.pl (motyw Chroma),
   własny CSS bez kodu motywu. Fonty: Gilda Display (nagłówki, menu), Noto Serif Display Light (tekst) — nie Antic Didone: nie ma polskich znaków. */
:root {
    --a-bg: #ffffff;
    --a-text: #1f1f1f;
    --a-muted: #8b8784;
    --a-soft: #f5f3ef;        /* tło kart oferty, przycisków-pigułek */
    --a-line: #e7e3dd;
    --a-gold: #c5a052;
    --a-gold-dark: #b08c41;
    --a-dark: #1e1e1e;        /* stopka, przyciski główne (jak wybrany „Zdjęcia/Film”) */
    --a-dark-hover: #3a3a3a;
    --a-max: 1180px;
    --a-serif: 'Gilda Display', 'Times New Roman', serif;
    --a-body: 'Noto Serif Display', 'Gilda Display', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--a-bg);
    color: var(--a-text);
    font-family: var(--a-body);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-weight: inherit; }  /* przeglądarka daje im systemową */
strong, b { font-weight: 600; }  /* „bolder” od 300 daje 400 = prawie bez różnicy */
a { color: inherit; }
main { overflow-x: clip; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.center { text-align: center; }
.narrow { max-width: 880px; margin-left: auto; margin-right: auto; }

/* ---------- Nagłówek ---------- */
.site-header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1340px;
    margin: 0 auto;
    padding: 1.6rem 1.5rem;
}
.site-logo img { width: 200px; height: auto; }
.site-nav { display: flex; gap: 1.6rem; }
.site-nav a, .footer-nav a {
    font-family: var(--a-serif);
    font-size: 1.05rem;
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.site-nav a:hover, .site-nav a.active,
.footer-nav a:hover, .footer-nav a.active { border-bottom-color: currentColor; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border: 0; background: none; padding: 10px;
    cursor: pointer;
}
.nav-toggle span { display: block; height: 1px; background: var(--a-text); margin: 6px 0; transition: transform .25s, opacity .25s; }

/* ---------- Sekcje ---------- */
.section { max-width: var(--a-max); margin: 0 auto; padding: 5rem 1.5rem; }
.page-top { padding-top: 4rem; padding-bottom: 2rem; }

.section-heading { position: relative; text-align: center; margin-bottom: 2.5rem; }
.section-heading .watermark {
    position: absolute;
    left: 50%; top: 50%;
    width: min(900px, 92vw);
    transform: translate(-50%, -38%);
    pointer-events: none;
    z-index: 0;
}
.section-heading .watermark img { width: 100%; height: auto; }
/* znak wodny wystaje poniżej nagłówka — treść sekcji pod nim musi leżeć nad nim */
.section-heading ~ * { position: relative; z-index: 1; }
.eyebrow {
    position: relative; z-index: 1;
    margin: 0 0 .9rem;
    font-family: var(--a-serif);
    font-size: .78rem;
    letter-spacing: .28em;
    text-transform: uppercase;
}
.heading {
    position: relative; z-index: 1;
    margin: 0;
    font-family: var(--a-serif);
    font-weight: 400;
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    line-height: 1.25;
}
h1.heading { font-size: clamp(2rem, 4vw, 3rem); }
.heading-sm { font-family: var(--a-serif); font-size: 1.6rem; margin: 0 0 .5rem; }

.prose { color: var(--a-muted); }
.prose p { margin: 0 0 1.2rem; }
.lead { color: var(--a-text); max-width: 940px; margin: 0 auto 1.5rem; position: relative; z-index: 1; }

.btn-pill {
    display: inline-block;
    padding: .55rem 1.3rem;
    background: var(--a-soft);
    border-radius: 999px;
    font-family: var(--a-serif);
    font-size: .95rem;
    text-decoration: none;
    transition: background .2s;
}
.btn-pill:hover { background: var(--a-line); }
.pill-links { display: flex; flex-direction: column; align-items: center; gap: .8rem; }

.btn-dark {
    -webkit-appearance: none; appearance: none;
    display: inline-flex; align-items: center; gap: .6rem;
    padding: 1rem 2.2rem;
    border: 0; border-radius: 999px;
    background: var(--a-dark);
    color: #fff;
    font-family: var(--a-serif);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .2s;
}
.btn-dark:hover { background: var(--a-dark-hover); }
.btn-dark svg { width: 18px; height: 18px; }

/* ---------- Home ---------- */
.hero { position: relative; height: clamp(320px, 42vw, 640px); overflow: hidden; background: #111; }
.hero-video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.hero-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-pos-top { object-position: center top; }
.hero-pos-bottom { object-position: center bottom; }

.philosophy .prose { font-size: .98rem; }

.carousel {
    display: grid;
    grid-auto-flow: column;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }

.team-track { grid-auto-columns: calc((100% - 4.5rem) / 4); }
.team-card { margin: 0; }
.team-card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.team-card figcaption { padding-top: .9rem; }
.team-name { display: block; font-family: var(--a-serif); font-size: 1.35rem; }
.team-role { display: block; color: var(--a-muted); font-size: .85rem; }

.carousel-dots { display: flex; justify-content: center; gap: .6rem; margin-top: 1.5rem; }
.carousel-dots button {
    width: 8px; height: 8px; padding: 0;
    border: 0; border-radius: 50%;
    background: var(--a-line);
    cursor: pointer;
}
.carousel-dots button[aria-selected="true"] { background: var(--a-gold); }

.testimonials-track { grid-auto-columns: 100%; }
.testimonial { margin: 0; text-align: center; padding: 0 1rem; }
.testimonial .quote-mark { display: block; font-family: var(--a-serif); font-size: 3.5rem; line-height: .6; height: 2rem; }
.testimonial p { max-width: 900px; margin: 1rem auto 1.5rem; color: var(--a-muted); }
.testimonial footer { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.testimonial .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: .6rem; }
.testimonial cite { font-style: normal; font-family: var(--a-serif); font-size: 1.05rem; }
.testimonial footer span { color: var(--a-muted); font-size: .85rem; }

.cta { padding-bottom: 6rem; }

/* ---------- Oferta ---------- */
.packages { display: grid; gap: 3rem; max-width: calc(1160px + 3rem); padding-top: 0; }  /* karty ~1160 px jak na WP */
.package {
    background: var(--a-soft);
    padding: 5rem clamp(1.5rem, 4vw, 3rem) 5.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .04);
}
.package-name { margin: 0; text-align: center; font-family: var(--a-serif); font-weight: 400; font-size: 1.4rem; }
.package-price { margin: .2rem 0 0; text-align: center; font-family: var(--a-serif); font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.15; }
.package hr { border: 0; border-top: 1px solid var(--a-line); margin: 2rem 0; }
.package ul { margin: 0; padding-left: 1.2rem; color: var(--a-muted); font-size: .95rem; }
.package li { margin-bottom: .35rem; }
.package-notes { margin: 1.5rem 0 0 1.2rem; color: var(--a-muted); font-size: .82rem; font-style: italic; }

/* ---------- Portfolio ---------- */
.gallery-section { padding-top: 1rem; }
.gallery { columns: 2; column-gap: 8px; }
.gallery-item { display: block; margin-bottom: 8px; break-inside: avoid; cursor: zoom-in; }
.gallery-item img { width: 100%; height: auto; }
/* Realizacje: kafelki 3 kolumny w formacie zdjęcia pionowego 2:3 (jak na starej stronie),
   „Imię i Imię” pojawia się dopiero po najechaniu — zdjęcie się wtedy przygasza */
.realizations-section { padding-top: 1rem; }
.realizations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: var(--a-max); margin: 0 auto; }
.realization-tile {
    position: relative; display: flex; align-items: center; justify-content: center;
    aspect-ratio: 2 / 3; overflow: hidden; background: var(--a-dark);
    color: #fff; text-decoration: none;
}
.realization-tile img, .realization-tile video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform .8s ease, opacity .4s;
}
.realization-tile::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0); transition: background .4s; }
.realization-title {
    position: relative; z-index: 1; padding: 0 1.2rem; text-align: center;
    font-family: var(--a-serif); font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.2;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
    opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s;
}
.realization-tile:hover img, .realization-tile:focus-visible img,
.realization-tile:hover video, .realization-tile:focus-visible video { transform: scale(1.04); }
.realization-tile:hover::after, .realization-tile:focus-visible::after { background: rgba(0, 0, 0, .5); }
.realization-tile:hover .realization-title, .realization-tile:focus-visible .realization-title { opacity: 1; transform: none; }
/* Telefony i tablety nie mają najechania — tam podpis jest widoczny od razu, na lekko przygaszonym zdjęciu */
@media (hover: none) {
    .realization-tile::after { background: rgba(0, 0, 0, .3); }
    .video-cover::after { background: rgba(0, 0, 0, .3); }
    .realization-title { opacity: 1; transform: none; }
}

/* Przełącznik Zdjęcia / Film */
.portfolio-toggle {
    display: flex; justify-content: center; width: max-content; margin: 0 auto;
    padding: 4px; background: var(--a-soft); border-radius: 999px; position: relative; z-index: 1;
}
.portfolio-toggle button {
    -webkit-appearance: none; appearance: none; border: 0; background: none; cursor: pointer; color: var(--a-text);
    padding: .55rem 1.6rem; border-radius: 999px;
    font-family: var(--a-serif); font-size: .95rem; transition: background .2s, color .2s;
}
.portfolio-toggle button[aria-selected="true"] { background: var(--a-dark); color: #fff; }
.portfolio-toggle button:not([aria-selected="true"]):hover { background: var(--a-line); }

/* Filmy: kafelki poziome 16:9 z okładką, klik = odtwarzanie na pełnym ekranie */
.video-tiles { grid-template-columns: repeat(2, 1fr); }
.video-tile { aspect-ratio: 16 / 9; }
.video-cover {
    -webkit-appearance: none; appearance: none; position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    border: 0; padding: 0; margin: 0; background: none; color: #fff; cursor: pointer; font: inherit;
}
.video-cover::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0); transition: background .4s; }
.video-cover:hover::after, .video-cover:focus-visible::after { background: rgba(0, 0, 0, .5); }
.video-cover:hover img, .video-cover:focus-visible img, .video-cover:hover video { transform: scale(1.04); }
.video-cover:hover .realization-title, .video-cover:focus-visible .realization-title { opacity: 1; transform: none; }
.video-tile::after { display: none; }
.play-icon {
    position: absolute; z-index: 1; bottom: 1rem; right: 1rem; width: 44px; height: 44px;
    border: 1px solid rgba(255, 255, 255, .8); border-radius: 50%; opacity: .85; transition: opacity .4s;
}
.play-icon::before {
    content: ''; position: absolute; left: 17px; top: 13px;
    border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #fff;
}
.video-cover:hover .play-icon, .video-cover:focus-visible .play-icon { opacity: 0; }
/* Odtwarzanie w kafelku: okładka znika, film z kontrolkami + przycisk „większy ekran” w rogu */
.video-tile > .tile-player { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; z-index: 1; }
.video-tile.is-playing .video-cover { display: none; }
.video-tile > .tile-player, .video-tile:hover > .tile-player { transform: none; }
.video-expand {
    -webkit-appearance: none; appearance: none; position: absolute; z-index: 3; top: .7rem; right: .7rem;
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; transition: background .2s;
}
.video-expand[hidden] { display: none; }
.video-expand:hover, .video-expand:focus-visible { background: rgba(0, 0, 0, .8); }
/* Większy ekran: strona pod spodem widoczna, przygaszona i w szarości; klik obok filmu zamyka */
.lightbox.video-lightbox { background: transparent; }
.video-lightbox::backdrop {
    background: rgba(20, 20, 20, .5);
    -webkit-backdrop-filter: grayscale(1); backdrop-filter: grayscale(1);
}
.video-lightbox .tile-player { width: min(92vw, calc(90vh * 16 / 9)); height: auto; max-height: 90vh; aspect-ratio: 16 / 9; object-fit: contain; background: #000; box-shadow: 0 10px 60px rgba(0, 0, 0, .5); }
.realization-back { margin-top: 2.5rem; }
.to-top { margin: 0; padding: 0 1rem 3.5rem; }
button.btn-pill { border: 0; color: inherit; cursor: pointer; }

.lightbox {
    width: 100vw; height: 100vh; max-width: none; max-height: none;
    margin: 0; padding: 0; border: 0;
    background: rgba(15, 15, 15, .95);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(15, 15, 15, .95); }
.lightbox img { max-width: 92vw; max-height: 90vh; width: auto; height: auto; }
.lightbox button {
    position: absolute; border: 0; background: none; color: #fff;
    font-size: 2.6rem; line-height: 1; padding: 1rem; cursor: pointer;
}
.lightbox-close { top: .5rem; right: .8rem; }
.lightbox-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: .5rem; top: 50%; transform: translateY(-50%); }

/* ---------- Kontakt ---------- */
.contact h1.heading, .cta .heading { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.contact-form { max-width: 500px; margin: 0 auto; position: relative; z-index: 1; }
.field { display: block; margin-bottom: 1.6rem; }
.field input, .field textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--a-line);
    padding: .7rem 0;
    background: transparent;
    font: inherit;
    font-size: .98rem;
    color: var(--a-text);
    outline: none;
    resize: vertical;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--a-gold); }
.field ::placeholder { color: #a8a39e; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--a-muted); margin-bottom: 3rem; }
.consent input { margin-top: .35rem; accent-color: var(--a-gold); }
.field-error, .form-error { display: block; color: #a4443a; font-size: .85rem; margin-top: .3rem; }
.form-error { text-align: center; margin-bottom: 1.5rem; }
.form-success { text-align: center; max-width: 520px; margin: 0 auto; color: var(--a-muted); position: relative; z-index: 1; }
/* Panel klienta — jak na starej stronie: krótkie pole z podpisem „Hasło:” pod nagłówkiem */
.client-panel { padding-bottom: 6rem; }
.client-panel .section-heading { margin-bottom: 1.5rem; }
.client-login { max-width: 170px; }
.client-login .field { margin-bottom: .9rem; text-align: center; }
.client-login .field-label { display: block; font-size: .85rem; color: var(--a-muted); }
.client-login .field input, .client-login .field input:focus { text-align: center; border-bottom-color: var(--a-line); }
.client-panel .section-heading .watermark { width: min(1250px, 100vw); }
.client-login .form-error { width: min(380px, 90vw); margin-left: 50%; transform: translateX(-50%); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Polityka ---------- */
.legal { max-width: 820px; margin: 0 auto; color: var(--a-text); }
.legal h2 { font-family: var(--a-serif); font-weight: 400; font-size: 1.35rem; margin: 2.2rem 0 .6rem; }
.legal ul { padding-left: 1.3rem; }

/* ---------- Stopka ---------- */
.site-footer {
    background: var(--a-dark);
    color: #fff;
    text-align: center;
    padding: 5rem 1.5rem 3rem;
}
.footer-logo { display: inline-block; }
.footer-logo img { width: 260px; height: auto; margin: 0 auto; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; margin: 2.5rem 0; }
.footer-social { display: flex; justify-content: center; align-items: center; gap: .8rem; }
.footer-social a:not(.badge) {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    background: #fff; color: #111;
}
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-social .badge img { width: 26px; height: 32px; }
.footer-contact { margin: 3rem 0 .5rem; font-size: .95rem; }
.footer-contact a { text-decoration: none; }
.footer-contact span { margin: 0 .4rem; }
.footer-legal { margin: 0; font-size: .8rem; opacity: .6; }
.footer-legal a { text-decoration: none; }

/* ---------- Telefon ---------- */
@media (max-width: 900px) {
    .team-track { grid-auto-columns: 45%; }
    .realizations { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .realizations { gap: 6px; }
    .realization-title { font-size: 1.1rem; padding: 0 .6rem; }
    .video-tiles { grid-template-columns: 1fr; }
    .video-tiles .realization-title { font-size: 1.5rem; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .site-header { padding: 1rem 1.2rem; }
    .site-logo img { width: 150px; }
    .nav-toggle { display: block; }
    .site-nav {
        position: fixed; inset: 0;
        flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
        background: #fff;
        opacity: 0; visibility: hidden;
        transition: opacity .25s, visibility .25s;
    }
    .site-nav a { font-size: 1.6rem; }
    .nav-open .site-nav { opacity: 1; visibility: visible; }
    .nav-open .nav-toggle { position: relative; z-index: 30; }
    .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-open { overflow: hidden; }

    .section { padding: 3.5rem 1.2rem; }
    .packages { padding-top: 0; gap: 2rem; }
    .package { padding: 3rem 1.5rem 3.5rem; }
    .page-top { padding-top: 2rem; }
    .hero { height: 62vw; }
    .team-track { grid-auto-columns: 78%; }
    .gallery { columns: 1; }
    .footer-logo img { width: 200px; }
}
