/*
Theme Name: ScanUp Studio
Description: Jednostronicowy motyw ScanUp do prezentacji skanowania 3D i spacerów Matterport.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: scanup-studio
*/

:root {
    --navy: #131b26;
    --deep: #101722;
    --blue: #00a0e3;
    --blue-ink: #006891;
    --blue-light: #69d0ff;
    --ink: #172438;
    --muted: #506278;
    --line: #dce5ed;
    --pale: #f1f6fa;
    --white: #fff;
    --width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 98px; }
body { margin: 0; font: 16px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--white); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -.045em; }
h1 { font-size: clamp(3rem, 5.7vw, 5.65rem); font-weight: 720; }
h2 { font-size: clamp(2.35rem, 4.5vw, 4.25rem); font-weight: 710; }
h3 { font-size: 1.5rem; }
:focus-visible { outline: 3px solid #0085be; outline-offset: 4px; }
.wrap { width: min(var(--width), calc(100% - 72px)); margin-inline: auto; }
.skip { position: fixed; inset: 8px auto auto 8px; z-index: 50; transform: translateY(-150%); background: white; padding: 10px 18px; }
.skip:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 5; background: white; border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 167px; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 38px); }
.site-nav a { text-decoration: none; font-size: .88rem; font-weight: 650; padding: 10px 0; }
.site-nav a:hover { color: var(--blue-ink); }
.site-nav .nav-contact { display: flex; align-items: center; gap: 15px; border: 1px solid var(--line); padding: 10px 16px; }
.nav-contact svg, .text-link svg, .tour-fallback svg { color: var(--blue-ink); }
.menu-toggle { display: none; }
.hero { background: var(--navy); color: white; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr); align-items: center; gap: clamp(25px, 4vw, 65px); padding-block: clamp(55px, 7vw, 105px); }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: .7rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 750; color: var(--blue-ink); margin-bottom: 21px; }
.eyebrow > span { width: 17px; height: 2px; flex: none; background: currentColor; }
.hero .eyebrow, .demo .eyebrow, .contact .eyebrow { color: var(--blue-light); }
.hero h1 em { display: inline-block; font-style: normal; color: var(--blue-light); }
.hero-copy > p:not(.eyebrow) { color: #d3dfec; margin: 25px 0 29px; max-width: 44ch; font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; text-decoration: none; font-weight: 730; font-size: .88rem; min-height: 50px; padding: 12px 18px; border: 1px solid transparent; }
.button svg { flex: none; }
.primary { background: var(--blue-light); color: #0b2535; }
.primary:hover { background: #a4e5ff; }
.secondary { border-color: #68788a; color: white; }
.secondary:hover { background: #263648; }
.hero-photo { position: relative; padding: 10px; border: 1px solid #415165; background: #192435; }
.hero-photo img { width: 100%; aspect-ratio: 1.31; object-fit: cover; object-position: 46% center; }
.scan-frame { position: absolute; inset: 22px 22px 52px; pointer-events: none; background: linear-gradient(var(--blue-light),var(--blue-light)) left top/27px 2px, linear-gradient(var(--blue-light),var(--blue-light)) left top/2px 27px, linear-gradient(var(--blue-light),var(--blue-light)) right bottom/27px 2px, linear-gradient(var(--blue-light),var(--blue-light)) right bottom/2px 27px; background-repeat: no-repeat; }
.hero-photo figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 2px 1px; font-size: .69rem; color: #cfdae8; }
.hero-photo figcaption span:first-child { color: var(--blue-light); letter-spacing: .14em; font-weight: 700; }
.audience { background: var(--pale); border-bottom: 1px solid var(--line); }
.audience-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 77px; padding-block: 16px; }
.audience p { color: var(--muted); font-size: .78rem; }
.audience ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 0; font-weight: 650; font-size: .86rem; }
.audience li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 0; background: var(--blue); }
.section { padding-block: clamp(60px, 8vw, 111px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: end; gap: 35px; margin-bottom: 39px; }
.section-head > p { color: var(--muted); max-width: 43ch; }
.feature-grid, .price-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.feature { border: 1px solid var(--line); }
.feature img { width: 100%; aspect-ratio: 1.65; object-fit: cover; }
.feature > div { padding: 24px; }
.feature-number { display: block; font-size: .78rem; color: var(--blue-ink); font-weight: 750; margin-bottom: 12px; }
.feature h3 { margin-bottom: 10px; }
.feature p, .price-note { color: var(--muted); font-size: .94rem; }
.demo { background: var(--deep); color: white; }
.demo .section-head > p, .video-heading p { color: #b8c7d9; }
.tour { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 2.25; background: #1c2939; overflow: hidden; }
.tour img, .tour iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour img { object-fit: cover; object-position: center 62%; }
.tour:has(.tour-action)::after { content: ""; position: absolute; inset: 0; background: #0b1a2b69; }
.tour-action { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; }
.tour-action span { color: white; background: #131b26; padding: 3px 8px; font-size: .75rem; }
.tour-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 12px; }
.tour-fallback { font-size: .85rem; }
.matterport-logo { width: 200px; max-width: 100%; background: white; border-radius: 3px; }
.tour-fallback a { display: inline-flex; align-items: center; gap: 6px; color: #cfdef0; }
.tour-fallback svg { color: var(--blue-light); }
.video-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin: 38px 0 16px; }
.video-heading p { font-size: .82rem; }
.video-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.video-card { text-decoration: none; background: #1b2634; border: 1px solid #34465c; }
.video-card:hover { border-color: var(--blue-light); }
.video-card > span:last-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; font-weight: 650; font-size: .84rem; }
.video-card svg { flex: none; }
.video-image { position: relative; display: block; }
.video-image img { width: 100%; aspect-ratio: 1.65; object-fit: cover; }
.play { position: absolute; inset: auto auto 8px 8px; width: 36px; height: 36px; display: grid; place-items: center; background: #101722e8; color: white; }
.price { padding: 27px; border: 1px solid var(--line); border-top: 3px solid var(--blue); background: var(--pale); }
.price h3 { font-size: 1.14rem; letter-spacing: -.01em; }
.amount { font-size: clamp(2.45rem, 5vw, 4rem); font-weight: 730; line-height: 1.15; letter-spacing: -.065em; margin: 11px 0 18px; }
.amount span { font-size: .43em; letter-spacing: 0; }
.text-link { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font-size: .87rem; font-weight: 700; }
.text-link:hover { text-decoration: underline; }
.price-note { margin-top: 20px; }
.contact { background: var(--navy); color: white; padding-block: clamp(55px, 7.5vw, 95px); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; }
.contact-grid > div > p:not(.eyebrow) { color: #cfdae8; max-width: 44ch; margin: 18px 0 22px; }
.contact-details { font-style: normal; padding: 5px 24px; border: 1px solid #425267; }
.contact-details > div { padding: 13px 0; overflow-wrap: anywhere; }
.contact-details > div + div { border-top: 1px solid #425267; }
.contact-details span { display: block; color: var(--blue-light); text-transform: uppercase; letter-spacing: .13em; font-size: .68rem; font-weight: 750; }
.contact-details a { text-underline-offset: 4px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding-block: 16px; gap: 14px; color: var(--muted); font-size: .8rem; }
.footer-inner .brand img { width: 130px; }
.footer-link { text-underline-offset: 3px; }
.video-dialog { width: min(870px,calc(100% - 32px)); border: 0; background: var(--navy); color: white; padding: 16px; }
.video-dialog::backdrop { background: #080d16d9; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.dialog-header h2 { font-size: clamp(1.15rem,3vw,1.75rem); }
.dialog-header button { cursor: pointer; min-height: 44px; background: white; border: 0; padding: 7px 14px; }
.video-dialog video { width: 100%; max-height: 68vh; display: block; background: black; }
.video-dialog p { margin-top: 10px; font-size: .85rem; }
.document { padding-block: 60px; }
.document p { margin-block: 12px; }

@media (max-width: 900px) {
    .wrap { width: calc(100% - 48px); }
    .feature > div, .price { padding: 19px; }
    .hero h1 { font-size: clamp(2.7rem, 6vw, 4.3rem); }
}

@media (max-width: 760px) {
    html { scroll-padding-top: 83px; }
    .wrap { width: calc(100% - 36px); }
    .admin-bar .site-header { top: 46px; }
    .header-inner { flex-wrap: wrap; min-height: 66px; gap: 0 12px; }
    .brand img { width: 140px; }
    .site-nav { flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 2px 0 13px; }
    .site-nav a { min-height: 48px; display: flex; align-items: center; border-top: 1px solid var(--line); }
    .site-nav .nav-contact { margin-top: 5px; justify-content: space-between; }
    .nav-ready .menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 11px; border: 1px solid var(--line); background: white; color: var(--ink); font-weight: 650; cursor: pointer; }
    .nav-ready .site-nav { display: none; }
    .nav-ready .site-nav.is-open { display: flex; }
    .hero-grid, .section-head, .contact-grid { grid-template-columns: 1fr; }
    .hero-grid { padding-block: 43px 32px; gap: 28px; }
    .hero h1 { font-size: clamp(2.7rem, 9.6vw, 4.3rem); }
    .hero-copy > p:not(.eyebrow) { margin: 17px 0 23px; font-size: 1rem; }
    .hero-photo img { aspect-ratio: 1.5; }
    .section-head { gap: 15px; margin-bottom: 26px; }
    .audience-inner { align-items: flex-start; flex-direction: column; gap: 5px; }
    .feature-grid, .price-grid { grid-template-columns: 1fr; gap: 14px; }
    .feature img { aspect-ratio: 1.85; }
    .tour { aspect-ratio: 1.45; }
    .video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .video-heading, .footer-inner { flex-wrap: wrap; }
    .contact-grid { gap: 26px; }
}

@media (max-width: 390px) {
    .hero .actions { flex-direction: column; align-items: stretch; }
    .video-card > span:last-child { padding: 8px; font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
