/*
Theme Name:   Astra UWN Child
Theme URI:    https://nowa.ubezpieczeniawniemczech.pl/
Description:  Motyw potomny Astra dla Ubezpieczenia w Niemczech — paleta, typografia Inter, hardening.
Author:       UWN Migrator
Author URI:   https://nowa.ubezpieczeniawniemczech.pl/
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  astra-uwn-child
*/

:root {
    --uwn-primary:        #1a3a6c;
    --uwn-primary-hover:  #14305a;
    --uwn-secondary:      #c9a961;
    --uwn-secondary-hover:#b59550;
    --uwn-accent:         #f5f1ea;
    --uwn-text:           #1a1a1a;
    --uwn-text-muted:     #6b6b6b;
    --uwn-bg:             #ffffff;
    --uwn-border:         #e5e0d6;
}

/* ---------- Typografia ---------- */
html, body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--uwn-text);
    background: var(--uwn-bg);
    font-feature-settings: "ss01", "cv01", "cv11";
}
h1, h2, h3, h4, h5, h6,
.entry-title,
.ast-archive-title,
.site-title {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--uwn-text);
    font-weight: 700;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.75rem); line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 1.5vw + 0.9rem, 2.125rem); line-height: 1.25; font-weight: 600; }
h3 { font-size: clamp(1.25rem, 1vw + 0.8rem, 1.625rem); line-height: 1.3; font-weight: 600; }
h4 { font-size: 1.25rem; line-height: 1.35; font-weight: 600; }

p, li { color: var(--uwn-text); }
.text-muted, small, figcaption { color: var(--uwn-text-muted); }

/* ---------- Akcenty / linki / przyciski ---------- */
a {
    color: var(--uwn-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .15s ease;
}
a:hover, a:focus { color: var(--uwn-primary-hover); }

.button, .wp-block-button__link, button.ast-search-submit, input[type="submit"] {
    background: var(--uwn-primary);
    color: #fff;
    border: 1px solid var(--uwn-primary);
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s ease;
}
.button:hover, .wp-block-button__link:hover, button.ast-search-submit:hover, input[type="submit"]:hover {
    background: var(--uwn-primary-hover);
    border-color: var(--uwn-primary-hover);
    color: #fff;
}
.button.is-secondary {
    background: var(--uwn-secondary);
    border-color: var(--uwn-secondary);
}
.button.is-secondary:hover {
    background: var(--uwn-secondary-hover);
    border-color: var(--uwn-secondary-hover);
}

/* ---------- Header (granatowy + sticky) ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.site-header,
.ast-primary-header-bar,
.ast-above-header,
.ast-below-header {
    background: var(--uwn-primary);
    border-bottom: 1px solid var(--uwn-primary-hover);
}
.site-header a,
.site-title a,
.main-header-menu .menu-item > a,
.ast-builder-menu .menu-item > a,
.ast-builder-menu .menu-link {
    color: #ffffff;
    font-weight: 500;
}
.main-header-menu .menu-item > a:hover,
.main-header-menu .current-menu-item > a,
.ast-builder-menu .menu-item.current-menu-item > a,
.ast-builder-menu .menu-item > a:hover {
    color: var(--uwn-secondary);
}
.site-title { color: #ffffff !important; }
.site-description { color: var(--uwn-accent) !important; }
.ast-builder-menu .sub-menu { background: var(--uwn-bg); border-top: 2px solid var(--uwn-secondary); }
.ast-builder-menu .sub-menu a { color: var(--uwn-text); }
.ast-builder-menu .sub-menu a:hover { color: var(--uwn-primary); background: var(--uwn-accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--uwn-primary); color: #fff; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--uwn-secondary); }
.site-footer h2, .site-footer h3, .site-footer h4 { color: #fff; }

/* ---------- Cards / sekcje ---------- */
.uwn-card {
    background: var(--uwn-bg);
    border: 1px solid var(--uwn-border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform .2s ease, box-shadow .2s ease;
}
.uwn-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 58, 108, 0.08);
}
.uwn-section-accent { background: var(--uwn-accent); }

/* ---------- Language switcher ---------- */
.uwn-lang-switcher { display: inline-flex; gap: 0.5rem; align-items: center; }
.uwn-lang-switcher a, .uwn-lang-switcher span {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    text-decoration: none;
    color: var(--uwn-text-muted);
    font-weight: 500;
    font-size: 0.875rem;
}
.uwn-lang-switcher .current-lang {
    color: var(--uwn-primary);
    font-weight: 700;
    background: var(--uwn-accent);
}
.uwn-lang-switcher img { width: 20px; height: 14px; vertical-align: middle; margin-right: 0.25rem; }

/* ---------- Skip link / focus a11y ---------- */
.skip-link:focus {
    background: var(--uwn-primary);
    color: #fff;
    padding: 0.75rem 1.25rem;
    z-index: 100000;
}
:focus-visible {
    outline: 2px solid var(--uwn-primary);
    outline-offset: 2px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
