/*
Theme Name: Plaud Starter
Description: Minimalny motyw startowy dla nowego frontu Plaud.
Version: 0.2.0
Text Domain: plaud-starter
*/

@font-face {
    font-family: Sora;
    src: url("assets/fonts/Sora-variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
}

:root {
    --font-body: Sora, system-ui, sans-serif;
    --color-ink: #181818;
    --color-paper: #fff;
    --color-warm: #f2efeb;
    --color-soft: #f4f4f4;
    --color-muted: #595959;
    --color-border: #d5d5d5;
    --color-accent: #38f672;
    --color-accent-hover: #20df5b;
    --color-focus: #006983;
    --color-error: #b42318;
    --brand-gradient: linear-gradient(100deg, #00cffd 0%, #9270be 51%, #fe6dc6 100%);
    --container: 1200px;
    --gutter: 24px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 40px;
    --space-8: 64px;
    --space-9: 100px;
    --radius: 5px;
    --radius-control: 2px;
    --text-small: 14px;
    --text-body: 16px;
    --text-card: 20px;
    --text-title: clamp(30px, 3.4vw, 42px);
    --text-display: clamp(36px, 4.5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-width: 280px;
    background: var(--color-paper);
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 300;
    line-height: 1.5;
}
img, svg, video { max-width: 100%; height: auto; }
img { vertical-align: middle; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button, summary, label[for], input[type="checkbox"], input[type="radio"] { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 24px; font-weight: 400; line-height: 1.15; overflow-wrap: break-word; }
h1 { font-size: var(--text-title); }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 24px; }
p { margin: 0 0 20px; }
::selection { background: var(--color-accent); color: #000; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
[hidden] { display: none !important; }
.container { width: min(var(--container), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: var(--space-9); }
.section--warm { background: var(--color-warm); }
.section--soft { background: var(--color-soft); }
.section-heading { max-width: 720px; margin-inline: auto; margin-bottom: var(--space-7); text-align: center; }
.grid { display: grid; gap: var(--space-5); }
.grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack > * + * { margin-top: var(--space-5); }
.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;
}
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100000; padding: 12px 20px; background: #000; color: #fff; }
.skip-link:focus { top: 8px; }

/* Controls: green primary, quiet secondary, and visible keyboard focus. */
.btn, .site-main button:not(.icon-button), .site-main input[type="submit"], .site-main .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    background: var(--color-accent);
    color: #000;
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 280ms ease, border-color 280ms ease, color 280ms ease, box-shadow 280ms ease;
}
.btn:hover, .site-main button:not(.icon-button):hover, .site-main input[type="submit"]:hover, .site-main .button:hover { background: var(--color-accent-hover); color: #000; }
.btn.btn--secondary, .site-main .btn.btn--secondary { background: transparent; border-color: currentColor; }
.btn.btn--secondary:hover, .site-main .btn.btn--secondary:hover { background: var(--color-soft); }
.btn.btn--dark, .site-main .btn.btn--dark { background: #000; color: #fff; }
.btn.btn--dark:hover, .site-main .btn.btn--dark:hover { background: #303030; }
.btn:disabled, button:disabled, input[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }
.text-link { font-weight: 400; text-decoration: underline; }
.icon { display: block; flex-shrink: 0; }
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-height: 44px;
    padding: 8px;
    border: 0;
    background: none;
    color: #000;
    text-decoration: none;
    border-radius: var(--radius);
}
.icon-button:hover { background: var(--color-soft); }

/* The 30 px announcement and 56/52 px navigation follow the source frames. */
.site-header { position: relative; z-index: 40; background: #fff; color: #000; }
.announcement { min-height: 30px; display: flex; align-items: center; background: var(--brand-gradient); color: #fff; font-size: 14px; font-weight: 400; line-height: 1.25; text-align: center; text-transform: uppercase; padding-block: 5px; }
.header-bar { min-height: 56px; display: flex; align-items: center; gap: 24px; }
.site-brand { display: inline-block; flex-shrink: 0; line-height: 1; }
.site-brand img { display: block; width: 119px; height: auto; }
.desktop-navigation { margin-left: auto; }
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-list a { text-decoration: none; }
.menu-list a:hover { text-decoration: underline; }
.menu-list a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; }
.primary-menu { display: flex; align-items: center; gap: 16px; font-size: 14px; line-height: 1.25; white-space: nowrap; }
.primary-menu > .menu-item > a, .primary-menu > .menu-item > span, .primary-menu > .menu-item > details > summary { display: inline-flex; align-items: center; min-height: 44px; }
.primary-menu .menu-item--featured > a { background: var(--brand-gradient); background-clip: text; -webkit-background-clip: text; color: transparent; }
.menu-item__pending { opacity: .65; }
.header-actions { display: flex; align-items: center; gap: 0; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.nav-submenu { position: relative; }
.nav-submenu > summary { display: flex; align-items: center; gap: 6px; }
.nav-submenu > summary::after { content: ""; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-submenu[open] > summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.nav-submenu__panel { position: absolute; top: 100%; left: -16px; min-width: 200px; padding: 12px 16px; background: #fff; border: 1px solid var(--color-border); box-shadow: 0 8px 20px #0000000d; border-radius: var(--radius); }
.nav-submenu__panel .menu-list a { display: block; padding-block: 10px; }
.site-search__panel { position: absolute; top: 100%; right: max(var(--gutter), calc((100% - var(--container)) / 2)); width: min(420px, calc(100% - var(--gutter) * 2)); padding: 24px; background: #fff; border: 1px solid var(--color-border); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 8px 20px #0000000d; }
.mobile-navigation { display: none; }
.close-icon { display: none; position: relative; width: 20px; height: 20px; }
.close-icon::before, .close-icon::after { position: absolute; content: ""; width: 20px; height: 1.5px; background: currentColor; top: 9px; left: 0; transform: rotate(45deg); }
.close-icon::after { transform: rotate(-45deg); }

/* Base page layouts. Detailed page designs are supplied in subsequent stages. */
.site-main { min-height: 280px; }
.site-main:focus { outline: none; }
.site-main--home { min-height: clamp(240px, 35vh, 400px); }
.page-layout { padding-block: 64px 100px; }
.page-heading { margin-bottom: 40px; }
.page-heading h1 { margin-bottom: 0; }
.prose { max-width: 840px; overflow-wrap: anywhere; }
.prose--wide { max-width: none; }
.prose > * + * { margin-top: 24px; }
.prose h2, .prose h3 { margin-top: 40px; }
.prose a { text-decoration: underline; }
.prose ul, .prose ol { padding-left: 24px; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose th, .prose td { padding: 12px; border: 1px solid var(--color-border); text-align: left; }
.prose pre { max-width: 100%; overflow: auto; }
.entry-list { display: grid; gap: 32px; margin-bottom: 40px; }
.entry-card { padding-block: 0 32px; border-bottom: 1px solid var(--color-border); }
.entry-card h2 { font-size: 26px; margin-bottom: 16px; }
.entry-card p { max-width: 760px; }
.entry-card h2 a { text-decoration: none; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* Form primitives shared by search, future contact forms, and WooCommerce. */
.form-field { margin-bottom: 20px; }
.form-field label, .search-form label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid .form-field--full { grid-column: 1 / -1; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):not([type="range"]):not([type="color"]), select, textarea {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-control);
    background: #fff;
    color: var(--color-ink);
    font-size: 16px;
    line-height: 1.25;
}
textarea { min-height: 125px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--color-muted); opacity: 1; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; margin: 3px 8px 0 0; accent-color: #087d30; flex-shrink: 0; }
.form-check { display: flex; align-items: flex-start; gap: 4px; font-size: 14px; }
.field-help { display: block; margin-top: 6px; font-size: 13px; color: var(--color-muted); }
.field-error { color: var(--color-error); }
[aria-invalid="true"] { border-color: var(--color-error) !important; }
.search-form { max-width: 600px; }
.search-form__row { display: flex; gap: 8px; align-items: stretch; }
.search-form__row input { min-width: 0; }
.search-form__row .btn { flex-shrink: 0; }
.accordion { border-bottom: 1px solid var(--color-border); }
.accordion > summary { padding: 24px; font-weight: 400; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.accordion > summary::after { content: "+"; font-size: 24px; font-weight: 300; flex-shrink: 0; }
.accordion[open] { background: var(--color-soft); }
.accordion[open] > summary::after { content: "−"; }
.accordion__body { padding: 0 24px 24px; }
.accordion__body > :last-child { margin-bottom: 0; }

/* Shared footer: 3 service cards above a 6-column brand/navigation row. */
.site-footer { padding-block: 40px 30px; background: #000; color: #fff; font-weight: 300; line-height: 1.25; }
.site-footer :focus-visible { outline-color: var(--color-accent); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card { min-height: 182px; padding: 30px; border: 1px solid #c8c8c8; border-radius: var(--radius); }
.service-card > .icon { width: 32px; height: 32px; margin-bottom: 16px; }
.service-card h2 { margin-bottom: 8px; font-size: 20px; line-height: 1.25; }
.service-card p { margin-bottom: 0; font-size: 16px; overflow-wrap: anywhere; }
.service-card a { text-decoration: none; }
.service-card a:hover { text-decoration: underline; }
.footer-main { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 98px; margin-top: 40px; padding-top: 40px; border-top: 1px solid #c8c8c8; }
.footer-brand .site-brand img { width: 205px; }
.footer-brand p { max-width: 310px; margin: 16px 0 0; }
.footer-navigation { display: grid; grid-template-columns: 1.15fr .95fr .95fr .8fr 1.3fr; gap: 24px; }
.footer-navigation h2 { margin: 0 0 16px; font-size: 16px; line-height: 1.25; font-weight: 400; }
.footer-navigation .menu-list { display: grid; gap: 10px; }
.footer-navigation .menu-item { min-width: 0; }
.footer-navigation a, .footer-navigation .menu-item__pending { display: inline-block; }
.footer-navigation .nav-submenu__panel { position: static; color: #fff; background: none; border: 0; padding: 12px 0; box-shadow: none; }
.copyright { margin: 50px 0 0; color: #c3c3c3; font-size: 14px; line-height: 1.4; text-align: center; }

/* Keep native Woo views contained while their final design is built. */
.woocommerce .quantity input.qty { width: 5em; }
.woocommerce .col2-set, .woocommerce form .form-row { max-width: 100%; }
.woocommerce table.shop_table { width: 100%; }
.woocommerce .woocommerce-form-login { max-width: 700px; }

@media (max-width: 1199px) {
    .header-bar { gap: 16px; }
    .primary-menu { gap: 12px; font-size: 13px; }
    .footer-main { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
    .footer-navigation { gap: 20px; font-size: 14px; }
}

@media (max-width: 1099px) {
    .desktop-navigation, .header-actions { display: none; }
    .header-bar { min-height: 52px; }
    .mobile-navigation { display: block; margin-left: auto; }
    .mobile-navigation > summary { width: 44px; margin-right: -12px; }
    .mobile-navigation[open] > summary .menu-icon { display: none; }
    .mobile-navigation[open] > summary .close-icon { display: block; }
    .mobile-navigation__panel { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100dvh - 82px); overflow-y: auto; overscroll-behavior: contain; padding: 16px var(--gutter) 24px; background: #fff; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); box-shadow: 0 10px 20px #00000012; }
    .admin-bar .mobile-navigation__panel { max-height: calc(100dvh - 128px); }
    .mobile-navigation .menu-list > li > a, .mobile-navigation .menu-list > li > span, .mobile-navigation .nav-submenu > summary { display: flex; align-items: center; min-height: 44px; padding-block: 10px; }
    .mobile-navigation .nav-submenu__panel { position: static; border: 0; padding: 0 0 0 20px; box-shadow: none; }
    .mobile-tools { display: flex; gap: 24px; flex-wrap: wrap; padding-block: 16px; margin-top: 12px; border-top: 1px solid var(--color-border); }
    .mobile-tools a { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; text-decoration: none; }
    .mobile-navigation .search-form { margin-top: 12px; }
    .footer-main { grid-template-columns: 1fr; gap: 40px; }
    .footer-brand p { max-width: 440px; }
    .footer-navigation { font-size: 16px; }
    .service-card { padding: 24px; }
}

@media (max-width: 767px) {
    :root { --gutter: 16px; --space-9: 64px; }
    .announcement { font-size: 11px; min-height: 30px; letter-spacing: .01em; }
    .grid--two, .grid--three, .form-grid { grid-template-columns: 1fr; }
    .page-layout { padding-block: 40px 64px; }
    .page-heading { margin-bottom: 32px; }
    .service-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 174px; padding: 30px; }
    .site-footer { padding-block: 32px 30px; }
    .site-footer { font-size: 14px; }
    .service-card h2 { font-size: 16px; line-height: 20px; }
    .service-card p { font-size: 14px; line-height: 18px; }
    .footer-main { gap: 32px; margin-top: 32px; padding-top: 32px; }
    .footer-brand p { max-width: none; margin-top: 20px; }
    .footer-navigation { grid-template-columns: 1fr; gap: 22px; font-size: 14px; }
    .footer-navigation h2 { margin-bottom: 17.5px; font-size: 14px; line-height: 17.5px; }
    .footer-navigation .menu-list { gap: 0; }
    .footer-navigation .menu-list > li > a, .footer-navigation .menu-list > li > span { padding-block: 0; min-height: 28px; }
    .copyright { margin-top: 32px; }
    .prose table { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
.blog-sample-note { font-size: 13px; color: #6b572e; background: #faf4e7; padding: 10px 12px; border-radius: 3px; }

/* Shared motion: animate visual states without shifting the layout. */
a, button, input[type="submit"], summary, .home-swatch, .blog-category,
.woocommerce .button, .woocommerce .flex-control-thumbs img {
    transition: color 280ms ease, background-color 280ms ease, border-color 280ms ease,
                box-shadow 280ms ease, opacity 280ms ease, text-decoration-color 280ms ease;
}
.menu-list a, .text-link, .blog-read-more, .blog-card h3 a, .home-blog-card h3 a {
    text-decoration-line:underline; text-decoration-color:transparent; text-underline-offset:4px;
}
.menu-list a:hover, .text-link:hover, .blog-read-more:hover, .blog-card h3 a:hover, .home-blog-card h3 a:hover { text-decoration-color:currentColor; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
    .home-benefit img, .home-blog-card > a img, .blog-card > a img {
        transition:filter 320ms ease;
    }
    .home-benefit:hover img, .home-blog-card > a:hover img, .blog-card > a:hover img { filter:brightness(.96); }
}

/* The featured gradient link has transparent text; its hover line needs its own colour. */
.menu-list a[aria-current="page"] { text-decoration-color:currentColor; }
.site-header .menu-list a,
.site-header .nav-submenu > summary { position:relative; text-decoration:none; }
.site-header .menu-list a:hover,
.site-header .menu-list a[aria-current="page"] { text-decoration:none; }
.site-header .menu-list a::after,
.site-header .nav-submenu > summary::before {
    content:""; position:absolute; left:0; right:0; bottom:7px; height:2px;
    background:var(--brand-gradient); transform:scaleX(0); transform-origin:left;
    transition:transform 280ms ease; pointer-events:none;
}
.site-header .menu-list a:hover::after,
.site-header .menu-list a:focus-visible::after,
.site-header .menu-list a[aria-current="page"]::after,
.site-header .nav-submenu > summary:hover::before,
.site-header .nav-submenu > summary:focus-visible::before,
.site-header .nav-submenu[open] > summary::before { transform:scaleX(1); }
