/*
Theme Name: Awaryjne Otwieranie
Theme URI: https://awaryjneotwieranie.waw.pl
Description: Motyw dla serwisu pogotowia zamkowego / awaryjnego otwierania drzwi i samochodów w Warszawie
Author: Awaryjne Otwieranie Warszawa
Version: 1.8.0
License: GPL-2.0-or-later
Text Domain: awaryjne-otwieranie
*/

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

:root {
    --red: #d12f25;
    --red-dark: #9e1f17;
    --dark: #16181d;
    --dark-2: #20242c;
    --gray: #5c6470;
    --light: #f6f7f9;
    --line: #e7e9ee;
    --white: #ffffff;
    --gold: #f5a623;
    --grad: linear-gradient(135deg, #e8473b, #b71d14);
    --grad-dark: linear-gradient(135deg, #20242c, #0f1115);
    --radius: 16px;
    --shadow-sm: 0 2px 12px rgba(20,22,28,0.06);
    --shadow: 0 16px 44px rgba(20,22,28,0.13);
    --shadow-red: 0 14px 34px rgba(209,47,37,0.35);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
}

h1, h2, h3, .section-title, .brand-name, .stat-num, .service-title, .faq-q, .phone-bottom h2 {
    font-family: 'Poppins', 'Inter', system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.ao-icon { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; }

/* ─── REVEAL (animacje przy scrollu, tylko z JS) ─── */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ─── TOPBAR ─── */
.topbar { background: var(--dark); color: #fff; text-align: center; padding: 9px 16px; font-size: 13.5px; letter-spacing: .2px; }
.topbar span { opacity: 0.65; }
.topbar strong { color: var(--gold); }

/* ─── HEADER ─── */
.site-header {
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 900;
}
.header-inner { max-width: 1140px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 50px; width: auto; }
.brand-loc { font-size: 13px; font-weight: 700; color: var(--gray); line-height: 1.15; padding-left: 14px; border-left: 2px solid var(--line); }
@media (max-width: 520px) { .brand-loc { display: none; } .brand-logo { height: 42px; } }

.phone-cta {
    display: inline-flex; flex-direction: column; align-items: flex-end;
    background: var(--grad); color: #fff; border-radius: 12px; padding: 8px 20px;
    box-shadow: var(--shadow-red); transition: transform .15s, box-shadow .15s;
}
.phone-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(209,47,37,0.45); }
.phone-cta .label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.9; }
.phone-cta .number { display: inline-flex; align-items: center; gap: 8px; font-size: clamp(20px, 3.5vw, 26px); font-weight: 900; letter-spacing: -0.5px; }
.phone-cta .number .ao-icon { width: 0.85em; height: 0.85em; }

/* ─── HERO ─── */
.hero {
    position: relative; min-height: 80vh; display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff; background-size: cover; background-position: center;
    overflow: hidden; padding: 96px 16px 120px;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(130deg, rgba(158,31,23,0.92) 0%, rgba(20,22,28,0.86) 70%); }
.hero-overlay::after { content: ''; position: absolute; top: -20%; right: -10%; width: 60%; height: 80%; background: radial-gradient(circle, rgba(245,166,35,0.22), transparent 60%); }
.hero-inner { position: relative; z-index: 2; max-width: 900px; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25);
    padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.hero-eyebrow .ao-icon { width: 16px; height: 16px; color: var(--gold); }
.hero h1 { font-size: clamp(30px, 5.6vw, 58px); font-weight: 900; line-height: 1.08; letter-spacing: -1px; margin-bottom: 18px; text-shadow: 0 4px 30px rgba(0,0,0,0.35); }
.hero h1 .accent { color: var(--gold); }
.hero p { font-size: clamp(15px, 2.2vw, 19px); opacity: 0.95; max-width: 680px; margin: 0 auto 30px; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-note { font-size: 13px; opacity: 0.85; }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); padding: 8px 16px; border-radius: 999px; }
.hero-chip .ao-icon { width: 18px; height: 18px; color: var(--gold); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; color: var(--white); line-height: 0; }
.hero-wave svg { width: 100%; height: 72px; display: block; }

/* ─── BUTTONS ─── */
.btn-call {
    display: inline-flex; align-items: center; gap: 10px;
    background: #fff; color: var(--red); font-size: clamp(22px, 4.5vw, 32px); font-weight: 900;
    border-radius: 14px; padding: 15px 36px; letter-spacing: -0.5px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.28); transition: transform .15s, box-shadow .15s;
}
.btn-call:hover { transform: scale(1.04); box-shadow: 0 18px 44px rgba(0,0,0,0.35); }
.btn-call .ao-icon { width: 0.85em; height: 0.85em; }
.phone-bottom .btn-call { background: #fff; color: var(--red); }

.btn-inline {
    display: inline-flex; align-items: center; gap: 8px; background: var(--grad); color: #fff;
    font-weight: 700; border-radius: 12px; padding: 13px 24px; margin-top: 10px;
    box-shadow: var(--shadow-red); transition: transform .15s, box-shadow .15s;
}
.btn-inline:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(209,47,37,0.45); }
.btn-inline .ao-icon { width: 20px; height: 20px; }

/* ─── STATS ─── */
.stats { background: var(--white); padding: 50px 16px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 18px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.stat:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.stat-num { font-size: clamp(30px, 4.5vw, 44px); font-weight: 800; color: var(--red); line-height: 1; }
.stat-label { margin-top: 10px; color: var(--gray); font-size: 14px; font-weight: 500; }

/* ─── SECTIONS ─── */
.section { padding: 74px 16px; }
.section-alt { background: var(--light); }
.section-dark { background: var(--grad-dark); color: #fff; }
.container { max-width: 1100px; margin: 0 auto; }

.section-title { font-size: clamp(24px, 4vw, 38px); font-weight: 800; text-align: center; letter-spacing: -0.6px; margin-bottom: 10px; }
.section-title::after { content: ''; display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--grad); margin: 16px auto 0; }
.section-title.left { text-align: left; }
.section-title.left::after { margin: 16px 0 0; }
.section-sub { text-align: center; color: var(--gray); max-width: 660px; margin: 0 auto 46px; font-size: 16px; }
.section-dark .section-sub { color: #aeb4be; }

/* ─── SPLIT ─── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-text p { margin-bottom: 14px; color: #3a3f47; }
.entry-content p { margin-bottom: 14px; color: #3a3f47; }
.entry-content { margin-bottom: 10px; }
.split-text .section-title { margin-bottom: 20px; }
.split-media img { width: 100%; height: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ─── SERVICES ─── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.service-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; box-shadow: var(--shadow-sm); transition: transform .28s, box-shadow .28s; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.service-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #ffe1de, #ffcec8); color: var(--red); margin-bottom: 18px; }
.service-icon .ao-icon { width: 32px; height: 32px; stroke-width: 1.8; }
.section-dark .service-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.section-dark .service-icon { background: rgba(245,166,35,0.16); color: var(--gold); }
.service-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.service-desc { font-size: 14.5px; color: var(--gray); }
.section-dark .service-desc { color: #aeb4be; }

/* ─── GWARANCJE ─── */
.guarantees { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; max-width: 940px; margin: 0 auto; }
.guarantees li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 14px 18px; }
.guarantees .ao-icon { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 2px; }

/* ─── DZIELNICE ─── */
.districts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 880px; margin: 0 auto; }
.district { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-sm); }
a.district { transition: transform .18s, border-color .18s, color .18s, box-shadow .18s; }
a.district:hover { border-color: var(--red); color: var(--red); transform: translateY(-3px); box-shadow: var(--shadow); }

/* ─── PROSE ─── */
.prose { max-width: 820px; margin: 0 auto; }
.prose p { margin-bottom: 16px; color: #3a3f47; }
.prose .section-title { margin-bottom: 26px; }
.prose-h3 { font-size: 21px; font-weight: 700; margin: 28px 0 8px; }
.prose-img { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin: 10px 0 26px; }

/* ─── FAQ (accordion) ─── */
.faq { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.faq-item[open] { box-shadow: var(--shadow); }
.faq-q { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-size: 16px; font-weight: 700; }
.faq-q::-webkit-details-marker { display: none; }
.faq-mark { position: relative; width: 22px; height: 22px; flex: none; }
.faq-mark::before, .faq-mark::after { content: ''; position: absolute; background: var(--red); border-radius: 2px; }
.faq-mark::before { top: 50%; left: 3px; right: 3px; height: 2px; transform: translateY(-50%); }
.faq-mark::after { left: 50%; top: 3px; bottom: 3px; width: 2px; transform: translateX(-50%); transition: transform .25s ease, opacity .25s ease; }
.faq-item[open] .faq-mark::after { transform: translateX(-50%) scaleY(0); opacity: 0; }
.faq-a { padding: 0 22px 20px; color: var(--gray); }

/* ─── KONTAKT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.contact-info .section-title { margin-bottom: 16px; }
.contact-info > p { color: #3a3f47; margin-bottom: 22px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; }
.contact-list .ao-icon { width: 24px; height: 24px; color: var(--red); flex: none; margin-top: 3px; }
.contact-list a { color: var(--red); font-weight: 700; }
.contact-map { min-height: 380px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 380px; }

/* ─── NAV w nagłówku ─── */
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.site-nav a { font-weight: 600; font-size: 15px; color: var(--dark); position: relative; padding: 4px 0; }
.site-nav a:hover { color: var(--red); }
.site-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--red); transition: width .2s; }
.site-nav a:hover::after { width: 100%; }

/* ─── FOOTER NAV ─── */
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin: 8px 0; }
.footer-nav a { color: #fff; font-weight: 600; }
.footer-nav a:hover { color: var(--gold); }

/* ─── FOOTER: okolice ─── */
.footer-areas { max-width: 920px; margin: 18px auto 6px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-areas-title { display: block; font-size: 12.5px; color: #8a93a0; margin-bottom: 10px; }
.footer-areas-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; }
.footer-areas-links a { color: #c9ced6; font-size: 13px; }
.footer-areas-links a:hover { color: var(--gold); }

/* ─── PHONE BOTTOM ─── */
.phone-bottom { position: relative; overflow: hidden; background: var(--grad); color: #fff; text-align: center; padding: 64px 16px; }
.phone-bottom::after { content: ''; position: absolute; top: -40%; left: -10%; width: 50%; height: 120%; background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 60%); }
.phone-bottom .container { position: relative; z-index: 2; }
.phone-bottom h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; margin-bottom: 12px; }
.phone-bottom p { opacity: 0.95; margin: 0 auto 26px; font-size: 16px; max-width: 660px; }

/* ─── FOOTER ─── */
.site-footer { background: var(--dark); color: #9aa1ac; text-align: center; padding: 36px 16px; font-size: 13.5px; line-height: 1.95; }
.site-footer strong { color: #fff; font-size: 16px; }
.site-footer a { color: var(--gold); }

/* ─── FLOATING PHONE ─── */
.floating-phone {
    position: fixed; bottom: 22px; right: 22px; background: var(--grad); color: #fff;
    border-radius: 999px; padding: 14px 22px; font-weight: 700; font-size: 15px;
    box-shadow: 0 10px 30px rgba(209,47,37,0.5); z-index: 1000;
    display: flex; align-items: center; gap: 8px; animation: pulse 2.5s infinite; transition: transform .15s;
}
.floating-phone:hover { transform: scale(1.06); }
.floating-phone .ao-icon { width: 22px; height: 22px; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(209,47,37,0.5); }
    50% { box-shadow: 0 12px 40px rgba(209,47,37,0.85); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .split, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
    .split.reverse .split-media { order: -1; }
    .section-title.left { text-align: center; }
    .section-title.left::after { margin: 16px auto 0; }
    .header-inner { justify-content: center; }
    .phone-cta { align-items: center; }
    .site-nav { order: 3; width: 100%; justify-content: center; gap: 16px; }
    .hero { min-height: 0; padding: 64px 16px 90px; }
}
@media (max-width: 480px) {
    .floating-phone .phone-text { display: none; }
    .floating-phone { padding: 16px 18px; }
}
