/*
Theme Name: Kwiaciarnia Płatki
Theme URI: https://example.com/kwiaciarnia-platki
Author: Kwiaciarnia Płatki
Description: Landing page kwiaciarni „Płatki” – zamawianie bukietów, dostawa kurierska, formularz kontaktowy i panel zamówień. Wygląd na podstawie projektu z Canvy.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: kwiaciarnia
Tags: one-column, custom-menu, custom-logo, translation-ready
*/

/* ==========================================================================
   Zmienne
   ========================================================================== */
:root {
    --cream: #f8f6f1;
    --surface: #ffffff;
    --green: #1f3d33;
    --green-hover: #2c5446;
    --rose: #b8566e;
    --rose-dark: #9c4259;
    --blush: #efe0dc;
    --rose-tint: #fbeef1;
    --text: #1f2a26;
    --muted: #5f6b66;
    --line: #e5dfd5;
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 32px;
    --shadow: 0 18px 40px -18px rgba(31, 61, 51, 0.28);
    --shadow-sm: 0 6px 18px -8px rgba(31, 61, 51, 0.18);
    --font-head: 'Urbanist', 'Segoe UI', sans-serif;
    --font-body: 'DM Sans', 'Segoe UI', sans-serif;
    --container: 1200px;
}

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

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--green);
    line-height: 1.1;
    margin: 0 0 .6em;
    letter-spacing: -0.02em;
}

p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); }
a:hover { color: var(--rose-dark); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.skip-link:focus {
    clip: auto; width: auto; height: auto;
    top: 10px; left: 10px; z-index: 1000;
    background: var(--green); color: #fff; padding: 10px 16px; border-radius: 8px;
}

:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }

/* ==========================================================================
   Przyciski
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .9rem 1.5rem;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); color: #fff; box-shadow: var(--shadow-sm); }

.btn-outline { background: var(--surface); color: var(--green); border-color: var(--line); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }

.btn-rose { background: var(--rose); color: #fff; }
.btn-rose:hover { background: var(--rose-dark); color: #fff; }

.btn-block { width: 100%; }

/* ==========================================================================
   Nagłówek
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 246, 241, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--green);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.brand:hover { color: var(--green); }
.brand-mark {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--rose);
    color: #fff;
}
.brand-mark svg { width: 24px; height: 24px; }
.custom-logo { max-height: 48px; width: auto; }

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav a {
    font-weight: 600;
    font-size: .95rem;
    color: var(--green);
    text-decoration: none;
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    background: var(--rose);
    transform: scaleX(0);
    transition: transform .2s;
}
.main-nav a:hover::after,
.main-nav .current-menu-item > a::after { transform: scaleX(1); }

.header-cta { padding: .8rem 1.2rem; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--green);
    cursor: pointer;
    place-items: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 72px 0 96px; }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 64px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--rose);
}
.eyebrow::before {
    content: '';
    width: 28px; height: 2px;
    background: var(--rose);
}

.hero h1 {
    font-size: clamp(2.8rem, 6.2vw, 5.4rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: .98;
    margin-bottom: 28px;
}
.hero h1 .accent { display: block; color: var(--rose); }

.hero-lead {
    max-width: 30rem;
    font-size: 1.08rem;
    color: var(--muted);
    margin-bottom: 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; }

.hero-media {
    position: relative;
    aspect-ratio: 1 / 0.92;
    border-radius: 180px var(--radius) var(--radius) var(--radius);
    background: var(--blush);
    overflow: hidden;
}
.hero-media img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-media .hero-illustration {
    position: absolute;
    inset: 12% 14% 0;
    width: 72%;
    height: 88%;
    margin: auto;
}

.float-card {
    position: absolute;
    left: -56px;
    bottom: 64px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px 16px 16px;
    background: var(--surface);
    border-radius: 14px;
    box-shadow: var(--shadow);
    font-weight: 700;
    color: var(--green);
}
.float-card .icon-badge { width: 40px; height: 40px; }

.icon-badge {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: 12px;
    background: var(--rose-tint);
    color: var(--rose);
    flex-shrink: 0;
}
.icon-badge svg { width: 22px; height: 22px; }

/* ==========================================================================
   Sekcje – wspólne
   ========================================================================== */
.section { padding: 96px 0; }
.section-white { background: var(--surface); }

.section-head {
    max-width: 640px;
    margin: 0 auto 56px;
    text-align: center;
}
.section-head .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ==========================================================================
   Bukiety
   ========================================================================== */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}
.filter-tab {
    padding: .65rem 1.25rem;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--green);
    font: 600 .92rem var(--font-body);
    cursor: pointer;
    transition: all .2s;
}
.filter-tab:hover { border-color: var(--green); }
.filter-tab.is-active { background: var(--green); border-color: var(--green); color: #fff; }

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

.bouquet-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}
.bouquet-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.bouquet-card[hidden] { display: none; }

.bouquet-thumb {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: var(--tint, var(--blush));
    color: var(--ink, var(--rose));
}
.bouquet-thumb svg { width: 46%; height: auto; }
.bouquet-thumb.has-photo { display: block; overflow: hidden; }
.bouquet-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.bouquet-card:hover .bouquet-thumb img { transform: scale(1.05); }

.bouquet-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 22px 24px;
}
.bouquet-tag {
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 3px 10px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--rose);
    background: var(--rose-tint);
    border-radius: 999px;
}
.bouquet-body h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: .4em; }
.bouquet-body p { color: var(--muted); font-size: .94rem; flex: 1; }
.bouquet-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: .92rem;
    color: var(--green);
    text-decoration: none;
}
.bouquet-link svg { width: 16px; height: 16px; transition: transform .2s; }
.bouquet-link:hover { color: var(--rose); }
.bouquet-link:hover svg { transform: translateX(4px); }

/* ==========================================================================
   O nas / atuty
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature {
    padding: 30px 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.feature .icon-badge { margin-bottom: 20px; }
.feature h3 { font-size: 1.2rem; font-weight: 800; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ==========================================================================
   Dostawa
   ========================================================================== */
.delivery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.delivery-grid h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.delivery-grid > div > p { color: var(--muted); font-size: 1.05rem; }

.check-list { list-style: none; margin: 28px 0 34px; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--green); }
.check-list svg {
    width: 26px; height: 26px; padding: 5px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--green); color: #fff;
}

.delivery-cards { display: grid; gap: 16px; }
.delivery-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.delivery-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .25em; }
.delivery-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ==========================================================================
   Formularze
   ========================================================================== */
.form-card {
    max-width: 780px;
    margin: 0 auto;
    padding: 44px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: .9rem;
    font-weight: 700;
    color: var(--green);
}
.form-label .req { color: var(--rose); }
.form-label .opt { font-weight: 500; color: var(--muted); }

.form-control {
    width: 100%;
    padding: .85rem 1rem;
    font: inherit;
    font-size: .98rem;
    color: var(--text);
    background: var(--cream);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.form-control:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(31, 61, 51, .1);
}
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f3d33' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 44px;
}
textarea.form-control { min-height: 130px; resize: vertical; }

.consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 4px 0 24px;
    padding: 16px 18px;
    font-size: .88rem;
    color: var(--muted);
    background: var(--cream);
    border-radius: var(--radius-sm);
}
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green); flex-shrink: 0; }

.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
    max-width: 780px;
    margin: 0 auto 24px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.notice-success { background: #e4f1ea; color: #1f5a3d; }
.notice-error { background: #fbe6e9; color: #8c2f45; }
.notice-warning { background: #fbf0d9; color: #7a5215; }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 32px;
    align-items: stretch;
}

.contact-card {
    padding: 44px;
    background: var(--green);
    color: rgba(255, 255, 255, .85);
    border-radius: var(--radius-lg);
}
.contact-card h3 { color: #fff; font-size: 1.6rem; font-weight: 800; }
.contact-card > p { margin-bottom: 28px; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list .icon-badge { width: 44px; height: 44px; background: rgba(255, 255, 255, .1); color: #fff; }
.contact-list small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; opacity: .65; }
.contact-list a, .contact-list span { color: #fff; font-weight: 600; text-decoration: none; }

.social {
    display: flex;
    gap: 10px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .15);
}
.social a {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    transition: background-color .2s;
}
.social a:hover { background: var(--rose); }
.social svg { width: 18px; height: 18px; }

.contact-grid .form-card { max-width: none; margin: 0; box-shadow: none; border: 1px solid var(--line); }

/* ==========================================================================
   Panel zamówień (shortcode [dane_panel])
   ========================================================================== */
.data-panel { padding: 48px 0; }
.data-panel h2 { margin-top: 1.5em; }
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.orders-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.orders-table th, .orders-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.orders-table th { background: var(--green); color: #fff; font-weight: 700; white-space: nowrap; }
.orders-table tr:last-child td { border-bottom: 0; }

/* ==========================================================================
   Stopka
   ========================================================================== */
.site-footer {
    padding: 72px 0 32px;
    background: #17302a;
    color: rgba(255, 255, 255, .7);
    font-size: .95rem;
}
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 48px;
}
.site-footer h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .85rem;
}

/* ==========================================================================
   Strony wewnętrzne (fallback)
   ========================================================================== */
.page-content { padding: 72px 0; }
.page-content .entry { max-width: 760px; margin: 0 auto 48px; }

/* ==========================================================================
   Animacje wejścia
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .btn:hover, .bouquet-card:hover { transform: none; }
}

/* ==========================================================================
   Responsywność
   ========================================================================== */
@media (max-width: 1080px) {
    .bouquet-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-grid { gap: 40px; }
    .float-card { left: -20px; }
}

@media (max-width: 880px) {
    .nav-toggle { display: grid; }
    .header-cta { display: none; }
    .main-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        display: none;
        padding: 12px 24px 24px;
        background: var(--cream);
        border-bottom: 1px solid var(--line);
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
    .main-nav a::after { display: none; }
    .main-nav .nav-cta-mobile { display: block; margin-top: 16px; }

    .hero { padding: 40px 0 72px; }
    .hero-grid, .delivery-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 520px; width: 100%; margin: 0 auto; }
    .float-card { left: 16px; bottom: 24px; }
    .section { padding: 72px 0; }
}

@media (min-width: 881px) {
    .main-nav .nav-cta-mobile { display: none; }
}

@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .bouquet-grid, .features-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
    .form-row { gap: 0; }
    .form-card, .contact-card { padding: 28px 20px; border-radius: var(--radius); }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-media { border-top-left-radius: 120px; }
}
