/*
Project: Pixelová Čtvrť Praha
Structure: autonomous PHP pages with WordPress-style front-end markup
*/

:root {
    --wp--preset--color--base: #ffffff;
    --wp--preset--color--contrast: #17131f;
    --wp--preset--color--primary: #6e46ff;
    --wp--preset--color--secondary: #18bdb4;
    --wp--preset--color--surface: #f5f4fa;
    --wp--preset--color--muted: #686477;
    --wp--preset--color--line: #dedbe8;
    --wp--preset--color--dark-surface: #211b2d;
    --wp--preset--font-family--body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --wp--preset--font-family--heading: "Arial Narrow", Impact, Haettenschweiler, sans-serif;
    --wp--style--global--content-size: 1140px;
    --wp--custom--header-height: 76px;
    --wp--custom--radius--small: 8px;
    --wp--custom--radius--medium: 16px;
    --wp--custom--radius--large: 26px;
    --wp--custom--shadow--card: 0 16px 42px rgba(32, 24, 55, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--wp--custom--header-height) + 14px); }
body { margin: 0; color: var(--wp--preset--color--contrast); background: var(--wp--preset--color--base); font-family: var(--wp--preset--font-family--body); font-size: 16px; line-height: 1.65; }
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wp--preset--color--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin-top: 0; color: var(--wp--preset--color--contrast); font-family: var(--wp--preset--font-family--heading); font-weight: 800; line-height: 1.08; letter-spacing: .025em; text-transform: uppercase; }
h1 { font-size: clamp(2.6rem, 7vw, 5.7rem); }
h2 { font-size: clamp(2rem, 4.7vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
p { margin-top: 0; }

.site { min-height: 100vh; }
.wp-block-group__inner-container, .site-header__inner, .site-footer__inner { width: min(calc(100% - 2rem), var(--wp--style--global--content-size)); margin-inline: auto; }
.site-main > .wp-block-group { padding: clamp(4rem, 8vw, 7rem) 0; }
.has-text-align-center { text-align: center; }
.section-heading { max-width: 820px; margin: 0 auto 2.8rem; text-align: center; }
.section-heading p { color: var(--wp--preset--color--muted); font-size: 1.08rem; }

.site-header { position: sticky; top: 0; z-index: 1000; min-height: var(--wp--custom--header-height); background: rgba(23,19,31,.94); border-bottom: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(16px); transition: box-shadow .25s ease, background .25s ease; }
.site-header.is-scrolled { background: rgba(23,19,31,.985); box-shadow: 0 8px 30px rgba(0,0,0,.24); }
.site-header__inner { min-height: var(--wp--custom--header-height); display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.site-branding { flex: 0 0 auto; }
.site-title { margin: 0; font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.35rem, 2.5vw, 1.85rem); letter-spacing: .04em; text-transform: uppercase; }
.site-title a { color: #fff; text-decoration: none; }
.site-description { display: none; }
.main-navigation { margin-left: auto; }
.main-navigation .menu { list-style: none; display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.5rem); margin: 0; padding: 0; }
.main-navigation a { position: relative; color: #fff; font-size: .86rem; font-weight: 800; letter-spacing: .045em; text-decoration: none; text-transform: uppercase; }
.main-navigation a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.45rem; height: 2px; background: var(--wp--preset--color--secondary); transition: right .2s ease; }
.main-navigation a:hover::after, .main-navigation .current-menu-item a::after { right: 0; }
.menu-toggle { display: none; width: 46px; height: 42px; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; background: transparent; color: #fff; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

.wp-block-button__link, .button, .wpcf7-submit { min-height: 48px; padding: .82rem 1.45rem; border: 0; border-radius: 999px; background: var(--wp--preset--color--primary); color: #fff; font-weight: 850; letter-spacing: .025em; text-decoration: none; text-transform: uppercase; box-shadow: 0 10px 26px rgba(110,70,255,.25); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.wp-block-button__link:hover, .button:hover, .wpcf7-submit:hover { background: #5832e9; color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(110,70,255,.33); }
.is-style-outline .wp-block-button__link { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.72); box-shadow: none; }
.is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--contrast); }

.hero-cover { min-height: calc(100vh - var(--wp--custom--header-height)); color: #fff; }
.hero-cover .wp-block-cover__background { background: linear-gradient(110deg, rgba(16,13,23,.91), rgba(32,19,58,.65) 54%, rgba(11,56,57,.56)); }
.hero-cover .wp-block-cover__inner-container { padding: 5rem 0; }
.hero-content { max-width: 900px; }
.hero-cover h1 { max-width: 900px; margin-bottom: 1rem; color: #fff; }
.hero-lead { max-width: 720px; margin-bottom: 1.7rem; color: rgba(255,255,255,.88); font-size: clamp(1.05rem, 2vw, 1.35rem); }
.hero-features { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.hero-features li { padding: .62rem .9rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(14,10,22,.32); font-size: .94rem; font-weight: 750; backdrop-filter: blur(8px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.products-section { background: var(--wp--preset--color--surface); }
ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
ul.products li.product { position: relative; display: flex; flex-direction: column; overflow: hidden; min-width: 0; background: #fff; border: 1px solid rgba(41,32,68,.08); border-radius: var(--wp--custom--radius--medium); box-shadow: var(--wp--custom--shadow--card); transition: transform .25s ease, box-shadow .25s ease; }
ul.products li.product:hover { transform: translateY(-7px); box-shadow: 0 22px 52px rgba(32,24,55,.16); }
ul.products li.product img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #eceaf4; }
.woocommerce-loop-product__content { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
.woocommerce-loop-product__title { margin-bottom: .55rem; font-size: 1.35rem; }
.price { display: block; margin-bottom: .75rem; color: var(--wp--preset--color--primary); font-size: 1.25rem; font-weight: 850; }
.product-excerpt { flex: 1; color: var(--wp--preset--color--muted); font-size: .94rem; }
.product-sizes { margin-bottom: 1rem; color: #817c90; font-size: .84rem; }
.product .button { align-self: flex-start; }
.product-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.4rem; }
.product-badge { padding: 1.15rem; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; background: rgba(255,255,255,.78); text-align: center; font-weight: 800; }
.product-badge span { display: block; margin-bottom: .35rem; font-size: 1.45rem; }

.benefits-section { background: #fff; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.benefit-card { padding: 2rem; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--medium); background: linear-gradient(150deg, #fff, #faf9fd); }
.benefit-icon { display: grid; width: 52px; height: 52px; margin-bottom: 1.2rem; place-items: center; border-radius: 15px; background: rgba(110,70,255,.1); color: var(--wp--preset--color--primary); font-size: 1.45rem; }
.benefit-card h3 { margin-bottom: .65rem; }
.benefit-card p { margin-bottom: 0; color: var(--wp--preset--color--muted); }

.guide-section { background: var(--wp--preset--color--surface); }
.content-columns { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.content-card { padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: var(--wp--custom--radius--medium); background: #fff; box-shadow: var(--wp--custom--shadow--card); }
.wp-block-table { overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table th, .wp-block-table td { padding: .8rem .7rem; border-bottom: 1px solid var(--wp--preset--color--line); text-align: left; white-space: nowrap; }
.wp-block-table th { background: #f0eef7; font-weight: 850; }
.check-list { margin: 1rem 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; margin-bottom: .75rem; padding-left: 1.8rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--wp--preset--color--secondary); font-weight: 900; }

.shipping-section { overflow: hidden; background: var(--wp--preset--color--dark-surface); color: #eae7f2; }
.shipping-section h2, .shipping-section h3 { color: #fff; }
.shipping-section .section-heading p { color: #c6c0d4; }
.shipping-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.shipping-card { padding: 2rem; border: 1px solid rgba(255,255,255,.12); border-radius: var(--wp--custom--radius--medium); background: rgba(255,255,255,.055); }
.shipping-card ul { margin-bottom: 0; padding-left: 1.2rem; }

.testimonials-section { background: #fff; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.testimonial-card { margin: 0; padding: 1.8rem; border-radius: var(--wp--custom--radius--medium); background: var(--wp--preset--color--surface); border-top: 4px solid var(--wp--preset--color--secondary); }
.testimonial-card blockquote { margin: 0; }
.rating { margin-bottom: .85rem; color: #e69a00; letter-spacing: .12em; }
.testimonial-card cite { display: block; margin-top: 1rem; color: var(--wp--preset--color--muted); font-style: normal; font-weight: 800; }

.contact-section { background: linear-gradient(145deg, #f4f1ff, #effbf9); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.wpcf7, .contact-information { padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: var(--wp--custom--radius--medium); background: #fff; box-shadow: var(--wp--custom--shadow--card); }
.wpcf7-form p { margin-bottom: 1rem; }
.wpcf7-form label { display: block; margin-bottom: .35rem; font-weight: 800; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7-text, .wpcf7-textarea { width: 100%; padding: .85rem 1rem; border: 1px solid #cfcbd9; border-radius: var(--wp--custom--radius--small); background: #fff; color: var(--wp--preset--color--contrast); transition: border-color .2s ease, box-shadow .2s ease; }
.wpcf7-text:focus, .wpcf7-textarea:focus { outline: 0; border-color: var(--wp--preset--color--primary); box-shadow: 0 0 0 3px rgba(110,70,255,.13); }
.wpcf7-acceptance { display: flex; align-items: flex-start; gap: .65rem; }
.wpcf7-acceptance input { width: 18px; height: 18px; margin-top: .22rem; accent-color: var(--wp--preset--color--primary); }
.wpcf7-response-output { display: none; margin-top: 1rem; padding: .8rem 1rem; border-radius: 9px; font-weight: 750; }
.wpcf7-response-output.is-success { display: block; border: 1px solid #7ccfc8; background: #e8f8f6; color: #176760; }
.contact-information address { font-style: normal; }
.contact-list { margin: 1.3rem 0 0; padding: 0; list-style: none; }
.contact-list li { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.contact-list strong { display: block; }

.cookie-notice { position: fixed; right: 1rem; bottom: 1rem; z-index: 1300; display: none; width: min(420px, calc(100% - 2rem)); gap: 1rem; align-items: center; padding: 1rem; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; background: #17131f; color: #fff; box-shadow: 0 18px 55px rgba(0,0,0,.3); }
.cookie-notice p { margin: 0; font-size: .9rem; }
.cookie-notice a { color: #8ee2dc; }
.cookie-notice button { flex: 0 0 auto; padding: .65rem 1rem; border: 0; border-radius: 999px; background: var(--wp--preset--color--secondary); color: #102624; font-weight: 850; }

.site-footer { padding: 2.5rem 0; background: #17131f; color: #c9c4d3; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.site-footer p { margin: 0; }
.footer-navigation .menu { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #fff; }

.privacy-policy .site-main { background: var(--wp--preset--color--surface); }
.privacy-policy .entry-header, .privacy-policy .entry-content { width: min(calc(100% - 2rem), 900px); margin-inline: auto; }
.privacy-policy .entry-header { padding: clamp(4rem, 8vw, 6rem) 0 2rem; }
.privacy-policy .entry-title { margin-bottom: .75rem; }
.privacy-policy .entry-meta { color: var(--wp--preset--color--muted); }
.privacy-policy .entry-content { margin-bottom: 5rem; padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--wp--custom--radius--medium); background: #fff; box-shadow: var(--wp--custom--shadow--card); }
.privacy-policy .entry-content h2 { margin-top: 2.2rem; font-size: clamp(1.55rem, 3vw, 2.2rem); }
.privacy-policy .entry-content h2:first-child { margin-top: 0; }
.privacy-policy .entry-content li { margin-bottom: .45rem; }

.reveal-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity .62s ease, transform .62s ease; }
.reveal-on-scroll.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
    ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
    .menu-toggle { display: block; }
    .main-navigation { position: absolute; top: var(--wp--custom--header-height); left: 0; right: 0; display: none; margin: 0; padding: .8rem 1rem 1.2rem; background: #17131f; border-top: 1px solid rgba(255,255,255,.1); }
    .main-navigation.is-open { display: block; }
    .main-navigation .menu { flex-direction: column; align-items: stretch; gap: 0; }
    .main-navigation li { border-bottom: 1px solid rgba(255,255,255,.08); }
    .main-navigation a { display: block; padding: .85rem .25rem; }
    .content-columns, .shipping-grid, .contact-grid { grid-template-columns: 1fr; }
    .product-badges { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
    .site-main > .wp-block-group { padding: 3.7rem 0; }
    ul.products { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .wp-block-button__link { width: 100%; }
    .site-footer__inner { align-items: flex-start; flex-direction: column; }
    .cookie-notice { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    .reveal-on-scroll { opacity: 1; transform: none; }
}
