/*
Theme Name: PCAB
Description: Blocktema för Pro Construction i Göteborg AB.
Version: 1.0.1
Requires at least: 6.7
Requires PHP: 8.2
Text Domain: pcab
*/
:root { --arrow-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16m-6-6 6 6-6 6'/%3E%3C/svg%3E"); --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16m-6-6 6 6-6 6'/%3E%3C/svg%3E"); --phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z'/%3E%3C/svg%3E"); --mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18v12H3zM3 7l9 6 9-6'/%3E%3C/svg%3E"); --back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 19l-7-7m0 0l7-7m-7 7h18'/%3E%3C/svg%3E"); --prev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E"); --next: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E"); --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); --x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); --quote: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6C6 7.500 4 10.200 4 14a3.600 3.600 0 103.600-3.600c-.2 0-.4 0-.6.1C7.500 9 8.600 8 10.300 7.200zM20 6c-4 1.500-6 4.200-6 8a3.600 3.600 0 103.600-3.600c-.2 0-.4 0-.6.1.5-1.500 1.600-2.500 3.300-3.300z'/%3E%3C/svg%3E"); --ink: #1b1e21; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { -webkit-font-smoothing: antialiased; }
main { background: #faf8f4; }
.wp-site-blocks > *, main, main .entry-content, main .entry-content > * { margin-block: 0 !important; }
:focus-visible { outline: 3px solid #ff7511; outline-offset: 3px; }
h1, h2, h3 { text-wrap: wrap; }

/* Header */
.wp-site-blocks > header { position: sticky; top: 0; z-index: 50; height: 80px; }
.admin-bar .wp-site-blocks > header { top: 32px; }
.site-header { height: 81px; box-sizing: border-box; border-bottom: 1px solid rgb(255 255 255 / 5%); }
.site-header > .wp-block-group { height: 48px; }
.site-header a:has(> img), .site-footer a:has(> img) { display: block; line-height: 0; }
.site-header .wp-block-navigation { font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.site-header .wp-block-navigation__container { gap: 8px !important; }
.site-header .wp-block-navigation a.wp-block-navigation-item__content { position: relative; padding: 8px 16px; color: rgb(255 255 255 / 85%); }
.site-header .wp-block-navigation a.wp-block-navigation-item__content:hover, .site-header .wp-block-navigation a.is-current { color: #ff7511; }
.site-header .wp-block-navigation a.is-current::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -4px; height: 2px; background: #ff7511; }
.site-header .header-cta .wp-element-button { padding: 12px 24px; line-height: 16px; letter-spacing: .14em; }
.site-header .wp-block-navigation__responsive-container.is-menu-open { background: #16181b !important; color: #fff !important; padding: 24px; font-size: 1rem; }
.site-header .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
@media (max-width: 1023px) {
  .site-header .header-cta { display: none; }
  .site-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .site-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (min-width: 1024px) { .site-header .wp-block-navigation__responsive-container-open { display: none; } }

/* Buttons */
.wp-block-button__link { display: inline-flex; align-items: center; line-height: 16px; }
.arrow .wp-block-button__link::after { content: ""; width: 16px; height: 16px; margin-left: 12px; background: currentColor; mask: var(--arrow) center / contain no-repeat; }

/* Sections: spacing is explicit, not blockGap */
.sec { padding-block: 80px; }
.sec-tight { padding-block: 56px; }
.sec > *, .sec .wp-block-column > *, .sec .wp-block-group > * { margin-block: 0; }
.sec p, .sec-tight p { font-size: 1rem; line-height: 1.625; color: rgb(27 30 33 / 75%); }
.sec .lead.lead { max-width: 672px; margin: 24px auto 0 max(0px, (100% - 1216px) / 2) !important; color: rgb(27 30 33 / 70%); }
.sec p.eyebrow, .sec-tight p.eyebrow { margin: 0 0 12px; color: #ff7511; font-size: .75rem; line-height: 16px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.sec > p.eyebrow { margin-bottom: 12px !important; }
.ruled::after { content: ""; display: block; width: 48px; height: 2px; margin-top: 16px; background: #ff7511; }
.ruled.has-text-align-center::after { margin-inline: auto; }
.sec h2, .sec-tight h2 { font-size: 1.5rem; line-height: 32px; letter-spacing: .04em; }
.split h2 { margin-bottom: 32px !important; }
.split h3 { margin: 32px 0 12px !important; line-height: 28px; }
.split .wp-block-image { position: relative; isolation: isolate; margin: 0; }
.split .wp-block-image img { display: block; width: 100%; position: relative; }
.narrow > * { max-width: 832px !important; }
.narrow h2 { margin-bottom: 40px !important; }

/* Hero */
.hero.wp-block-cover { min-height: 540px; padding-block: 80px; background: #16181b; align-items: center; }
.hero .wp-block-cover__background { background: linear-gradient(0deg, rgb(18 20 22 / 60%), transparent 128px), linear-gradient(90deg, rgb(18 20 22 / 95%), rgb(18 20 22 / 70%) 50%, rgb(18 20 22 / 10%)) !important; opacity: 1 !important; }
.hero .wp-block-cover__inner-container > *, .hero-copy > * { margin-block: 0; }
.hero h1 { max-width: 672px; font-size: 2.25rem; font-weight: 800; line-height: 1; letter-spacing: -.025em; }
.hero p { max-width: 448px; margin-block: 28px 36px !important; font-size: 1rem; line-height: 1.625; color: rgb(255 255 255 / 80%); }
.hero .wp-block-button__link { padding: 16px 28px; }

/* USP row */
.usps { display: grid; grid-template-columns: 1fr; gap: 0 !important; }
.usps > div { margin: 0; padding: 40px 24px; text-align: center; border-bottom: 1px solid rgb(27 30 33 / 10%); }
.usps > div > * { margin-block: 0; }
.usps h3 { font-size: .875rem; line-height: 20px; letter-spacing: .1em; }
.usps h3::before { content: ""; display: block; width: 40px; height: 40px; margin: 0 auto 20px; background: currentColor; mask: var(--i) center / contain no-repeat; }
.usps p { margin-top: 8px !important; font-size: .875rem; line-height: 1.625; color: rgb(27 30 33 / 70%); }
.usp-home { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5M5.5 9.5V20h13V9.5M10 20v-5.5h4V20'/%3E%3C/svg%3E"); }
.usp-people { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm-6 9c0-3.3 2.7-6 6-6s6 2.7 6 6M16.5 11a3 3 0 1 0 0-6M18 14.2c1.8.8 3 2.7 3 4.8'/%3E%3C/svg%3E"); }
.usp-check { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm-4-9 3 3 5-6'/%3E%3C/svg%3E"); }
.usp-cert { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-8 5-14 15-15-1 10-7 15-15 15Zm0 0 7-7'/%3E%3C/svg%3E"); }

/* Service cards */
.services .wp-block-post-template { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 48px; padding: 0; }
.services .wp-block-post { position: relative; display: flex; flex-direction: column; margin: 0 !important; border: 1px solid rgb(27 30 33 / 10%); background: #faf8f4; }
.services .wp-block-post > * { margin-block: 0; }
.services .wp-block-post-featured-image { overflow: hidden; }
.services .wp-block-post-featured-image img { display: block; transition: transform .7s; }
.services .wp-block-post:hover img { transform: scale(1.05); }
.services .wp-block-post > :not(figure) { margin-inline: 32px; }
.services .wp-block-post-title { margin-top: 32px; font-size: 1rem; line-height: 24px; letter-spacing: .08em; }
.services .wp-block-post-title a { text-decoration: none; }
.services .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.services .wp-block-post-excerpt { margin-top: 12px; margin-bottom: 24px; }
.services .wp-block-post-excerpt p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 0; font-size: .875rem; line-height: 1.625; color: rgb(27 30 33 / 70%); }
.services .more { display: flex; align-items: center; margin-block: auto 32px !important; color: #1b1e21 !important; font-size: .75rem !important; line-height: 16px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.services .more::after { content: ""; width: 16px; height: 16px; margin-left: 12px; background: currentColor; mask: var(--arrow) center / contain no-repeat; }

/* Gallery */
.gal-title > * { margin-block: 0; }
.gal-head { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.sec-tight .gal-head h2 { font-size: 1.5rem; }
.gal-head .wp-block-button__link.wp-element-button { padding: 12px 24px; border: 1px solid rgb(27 30 33 / 70%); background: transparent; color: #1b1e21; letter-spacing: .14em; }
.gal-head .wp-block-button__link::after { margin-left: 16px; }
.gal-head .wp-block-button__link:hover { background: #1b1e21 !important; color: #fff !important; }
.projekt-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px 24px; margin-top: 40px !important; }
.projekt-grid > .projekt { min-width: 0; margin-block: 0; }
.projekt > * { margin-block: 0; }
.projekt .wp-block-image img { display: block; }
.projekt h3 { margin-top: 16px; font-size: 1rem; line-height: 24px; letter-spacing: .08em; overflow-wrap: anywhere; }
.projekt-grid > .projekt[hidden] { display: none; }
.projekt.is-ready .wp-block-gallery { display: block !important; position: relative; aspect-ratio: 1; overflow: hidden; background: #16181b; }
.projekt.is-ready .wp-block-gallery figure.wp-block-image { display: none !important; position: absolute; inset: 0; width: 100% !important; height: 100%; margin: 0 !important; }
.projekt.is-ready .wp-block-gallery figure.wp-block-image.is-shown { display: block !important; }
.projekt.is-ready .wp-block-image img { width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .7s; }
.projekt.is-ready .wp-block-gallery:hover img { transform: scale(1.03); }
.projekt.is-ready figcaption, .projekt.is-ready .wp-block-image::before { display: none !important; }
.projekt .open { position: absolute; inset: 0; z-index: 2; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.projekt .open:focus-visible { outline-offset: -3px; }
.projekt .open span { position: absolute; right: 0; bottom: 0; padding: 10px 14px; background: #16181b; color: #fff; font: 600 .75rem/16px var(--wp--preset--font-family--body); }
.projekt .open:hover span { background: #ff7511; color: #16181b; }
.more-projects { display: block; margin: 48px auto 0 !important; padding: 16px 28px; border: 1px solid rgb(27 30 33 / 70%); background: transparent; color: #1b1e21; font: inherit; font-size: .75rem; line-height: 16px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.more-projects:hover { background: #1b1e21; color: #fff; }
.viewer { box-sizing: border-box; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 16px; border: 0; background: #121416; color: #fff; }
.viewer[open] { display: grid; grid-template: auto minmax(0, 1fr) auto / minmax(0, 1fr); gap: 16px; }
.viewer::backdrop { background: #121416; }
html:has(.viewer[open]) { overflow: hidden; }
.viewer .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.viewer h2 { margin: 0; font-size: 1.125rem; line-height: 24px; }
.viewer .bar p { margin: 4px 0 0; font-size: .875rem; line-height: 20px; color: rgb(255 255 255 / 75%); }
.viewer .bar p b { color: #ff7511; }
.viewer .frame { position: relative; min-height: 0; }
.viewer .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.viewer .ctl { flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid rgb(255 255 255 / 30%); background: #16181b; color: #fff; cursor: pointer; }
.viewer .ctl::before { content: ""; display: block; width: 18px; height: 18px; margin: auto; background: currentColor; mask: var(--x) center / contain no-repeat; }
.viewer .ctl:hover { border-color: #ff7511; background: #ff7511; color: #16181b; }
.viewer .prev, .viewer .next { position: absolute; top: calc(50% - 22px); left: 0; }
.viewer .next { left: auto; right: 0; }
.viewer .prev::before { mask-image: var(--prev); } .viewer .next::before { mask-image: var(--next); }
.viewer .strip { display: flex; gap: 8px; padding: 4px; overflow-x: auto; justify-content: safe center; }
.viewer .strip button { flex: none; width: 72px; padding: 0; border: 0; background: none; color: rgb(255 255 255 / 75%); font: inherit; font-size: .75rem; line-height: 20px; cursor: pointer; }
.viewer .strip img { display: block; width: 72px; height: 72px; object-fit: cover; opacity: .55; }
.viewer .strip button::after { content: attr(data-stage); display: block; height: 20px; }
.viewer .strip [aria-current="true"] { color: #ff7511; }
.viewer .strip [aria-current="true"] img { opacity: 1; box-shadow: 0 0 0 2px #ff7511; }

/* Testimonials */
.quotes { display: grid !important; gap: 48px; max-width: 832px !important; margin-top: 48px !important; }
.quotes .wp-block-column { flex-basis: auto !important; }
.quotes.is-slider .wp-block-column { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .3s; }
.quotes.is-slider .wp-block-column.is-active { visibility: visible; opacity: 1; }
.quotes .wp-block-quote { display: flex; flex-direction: column; margin: 0; padding: 0; border: 0; text-align: center; }
.quotes .wp-block-quote::before { content: ""; width: 40px; height: 40px; margin: 0 auto 24px; background: #ff7511; mask: var(--quote) center / contain no-repeat; }
.quotes .wp-block-quote > * { margin: 0; }
.quotes .wp-block-quote p { color: #fff; font-size: 1.25rem; line-height: 1.625; font-weight: 300; min-height: 96px; }
.quotes .wp-block-quote p.stars { order: 2; min-height: 0; margin-top: 32px; color: #ff7511; font-size: 20px; line-height: 20px; letter-spacing: 4px; padding-left: 4px; }
.quotes cite { order: 3; display: block; margin-top: 12px !important; color: #fff; font: 700 .875rem/20px Montserrat, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.quote-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 40px !important; }
.quote-nav button { padding: 0; border: 0; cursor: pointer; }
.quote-nav .step { width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / 20%); background: transparent; color: #fff; }
.quote-nav .step::before { content: ""; display: block; width: 18px; height: 18px; margin: auto; background: currentColor; mask: var(--prev) center / contain no-repeat; }
.quote-nav .step.next::before { mask-image: var(--next); }
.quote-nav .step:hover { border-color: #ff7511; background: #ff7511; color: #16181b; }
.quote-nav .dots { display: flex; gap: 8px; }
.quote-nav .dots button { width: 16px; height: 2px; background: rgb(255 255 255 / 30%); }
.quote-nav .dots button[aria-current="true"] { width: 32px; background: #ff7511; }

/* FAQ */
.faq-cols { gap: 40px !important; }
.faq { border-top: 1px solid rgb(27 30 33 / 15%); }
.faq .wp-block-details { margin: 0; border-bottom: 1px solid rgb(27 30 33 / 15%); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; font: 600 1rem/24px Montserrat, sans-serif; }
.faq summary:hover { color: #ff7511; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; box-sizing: border-box; width: 36px; height: 36px; border: 1px solid rgb(27 30 33 / 25%); background: var(--plus) center / 16px no-repeat; }
.faq details[open] summary::after { border-color: #ff7511; background: var(--x) center / 14px no-repeat #ff7511; }
.sec .faq details > p { margin: 0 0 24px; font-size: 1rem; line-height: 26px; }

/* CTA */
.cta { position: relative; text-align: center; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 24px; border: 1px solid rgb(255 255 255 / 10%); pointer-events: none; }
.cta::after { content: ""; position: absolute; top: 80px; left: calc(50% - 24px); width: 48px; height: 2px; background: #ff7511; }
.sec.cta h2 { max-width: 832px !important; margin: 34px auto 24px !important; font-size: 1.875rem; line-height: 1.05; font-weight: 800; letter-spacing: -.025em; }
.sec.cta > p { max-width: 672px !important; margin-bottom: 40px !important; font-size: 1.125rem; color: rgb(255 255 255 / 70%); }
.cta .wp-block-buttons { position: relative; gap: 16px; }
.cta .is-style-outline .wp-block-button__link { padding: 16px 32px; border: 1px solid rgb(255 255 255 / 30%); color: #fff; }

/* Contact */
.sec > .contact-intro { max-width: 672px !important; margin: 24px auto 56px !important; color: rgb(27 30 33 / 70%); }
.contact-cols { gap: 48px !important; }
.sec .contact-card { margin: 0 0 16px; padding: 24px; border-left: 2px solid #ff7511; background: #fff; overflow-wrap: anywhere; }
.sec p.label, .pcab-form label { display: block; margin: 0 0 8px !important; color: rgb(27 30 33 / 60%); font-size: .75rem; line-height: 16px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.sec .contact-card p.value { margin: 0; color: #1b1e21; font: 700 1.5rem/32px Montserrat, sans-serif; }
.sec .contact-card.mail p.value { font: 700 1.125rem/28px Inter, sans-serif; }
.contact-card a { text-decoration: none; }
.contact-card a:hover { color: #ff7511; }
.contact-areas { padding-top: 24px; }
.sec .contact-areas p.label { margin-bottom: 16px !important; }
.sec .contact-areas p.chip { display: inline-block; margin: 0 8px 0 0; padding: 8px 16px; border: 1px solid rgb(27 30 33 / 20%); color: #1b1e21; font-size: .875rem; line-height: 20px; font-weight: 600; }
.pcab-form { position: relative; display: grid; gap: 24px; padding: 32px; border: 1px solid rgb(27 30 33 / 10%); background: #fff; }
.pcab-form .row { display: grid; gap: 24px; }
.pcab-form input, .pcab-form select, .pcab-form textarea { display: block; box-sizing: border-box; width: 100%; padding: 12px 16px; border: 1px solid rgb(27 30 33 / 15%); border-radius: 0; background: #fff; color: #1b1e21; font: 400 1rem/24px Inter, sans-serif; }
.pcab-form select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3E%3C/svg%3E") right 12px center / 1.5em no-repeat #fff; }
.pcab-form textarea { height: 122px; resize: none; }
.pcab-form ::placeholder { color: #9ca3af; opacity: 1; }
.pcab-form button { margin-top: 6px; padding: 16px 24px; border: 0; background: #ff7511; color: #1b1e21; font: 700 1rem/24px Montserrat, sans-serif; letter-spacing: .025em; text-transform: uppercase; cursor: pointer; }
.pcab-form button:hover { background: #d35900; }
.pcab-form .hp { position: absolute; left: -9999px; }
.pcab-notice { padding: 16px 20px; border-left: 4px solid #2c7a3f; background: #e9f5ec; }
.pcab-notice.is-error { border-color: #b32d2e; background: #fbeaea; }

/* Hub pages */
.hub-hero { min-height: calc(50vh - 80px); box-sizing: border-box; padding: 64px 16px 145px; display: flex; flex-direction: column; justify-content: center; text-align: center; background: linear-gradient(to bottom right, #374151, #111827); }
.hub-hero > * { margin: 0 !important; max-width: none !important; }
.hub-hero p { margin-bottom: 16px !important; color: rgb(255 255 255 / 80%); font-size: .875rem; line-height: 20px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.hub-hero h1 { color: #fff; font-size: 1.875rem; line-height: 1.25; font-weight: 800; letter-spacing: 0; text-transform: none; }
.crumbs { max-width: 1152px; margin: 0 auto !important; padding: 16px clamp(16px, 3vw, 32px); box-sizing: border-box; color: #6b7280; font-size: .875rem; line-height: 20px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: #ff7511; }
.crumbs strong { color: #111827; font-weight: 500; }
.hub { padding: 64px 16px; }
.hub > * { max-width: 1152px; margin-inline: auto; }
.hub .wp-block-post-template, .hub .area-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 0 auto; padding: 0; list-style: none; }
.hub .wp-block-post, .hub .area-grid > * { position: relative; margin: 0 !important; padding: 24px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; transition: box-shadow .15s; }
.hub .wp-block-post:hover, .hub .area-grid > *:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -4px rgb(0 0 0 / 10%); }
.hub .wp-block-post > *, .hub .area-grid > * > * { margin-block: 0; }
.hub h2 { color: #111827; font-size: 1.25rem; line-height: 28px; font-weight: 800; letter-spacing: 0; text-transform: none; }
.hub h2 a { text-decoration: none; }
.hub h2 a::after { content: ""; position: absolute; inset: 0; }
.hub .wp-block-post p, .hub .area-grid p { margin: 8px 0 0; color: #4b5563; font-size: .875rem; line-height: 20px; }
.hub .wp-block-post p.more, .hub .area-grid p.more { margin-top: 16px; color: #ff7511; font-weight: 500; }
.hub .area-grid p.more { margin-top: 8px; }
.hub .area-grid p.more a { color: inherit; text-decoration: none; }
.hub.pills-wrap { background: #f9fafb; }
.hub.pills-wrap h2 { margin: 0 auto 24px; font-size: 1.5rem; line-height: 32px; text-align: center; }
.hub ul.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 0; margin-block: 0; list-style: none; }
.pills li { padding: 8px 16px; border: 1px solid #e5e7eb; border-radius: 99px; background: #fff; font-size: .875rem; line-height: 20px; }
.pills a { text-decoration: none; }

/* Service pages */
.crumb-bar { background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.crumb-bar .crumbs, .svc { max-width: 896px; }
.svc { margin: 0 auto !important; padding: 64px clamp(16px, 3vw, 32px); box-sizing: border-box; }
.svc > *, .svc .entry-content > * { margin-block: 0; }
.svc h1 { margin: 0 0 40px !important; color: #111827; font-size: 1.875rem; line-height: 40px; font-weight: 800; letter-spacing: 0; text-transform: none; }
.svc .wp-block-post-featured-image { margin-bottom: 40px !important; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -4px rgb(0 0 0 / 10%); }
.svc .wp-block-post-featured-image img { display: block; }
.svc .entry-content > p { margin-bottom: 48px !important; color: #374151; font-size: 1rem; line-height: 26px; }
.svc .svc-cta { padding: 32px; border-radius: 16px; background: #f9fafb; text-align: center; }
.svc-cta > * { margin-block: 0; }
.svc-cta h2 { margin-bottom: 16px !important; color: #111827; font-size: 1.5rem; line-height: 32px; font-weight: 800; letter-spacing: 0; text-transform: none; }
.svc-cta p { margin-bottom: 24px !important; color: #4b5563; font-size: 1rem; line-height: 24px; }
.svc-cta .wp-block-buttons { gap: 16px; }
.svc-cta .wp-block-button__link.wp-element-button { padding: 12px 24px; border: 1px solid #ff7511; border-radius: 8px; color: #fff; font-size: 1rem; line-height: 24px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.svc-cta .wp-block-button__link::after { margin-left: 8px; }
.svc-cta .call .wp-block-button__link.wp-element-button { border-color: #d1d5db; background: #fff; color: #374151; }
.svc-cta .call .wp-block-button__link::before { content: ""; width: 16px; height: 16px; margin-right: 8px; background: currentColor; mask: var(--phone) center / contain no-repeat; }
.svc .entry-content > p.back { margin: 40px 0 0 !important; text-align: center; line-height: 24px; font-weight: 500; color: #ff7511; }
.back a { text-decoration: none; }
.back a::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -2px; background: currentColor; mask: var(--back) center / contain no-repeat; }

/* Footer */
.foot-bar { background: #1d2024; border-bottom: 1px solid rgb(255 255 255 / 5%); }
.foot-bar > div { max-width: 1216px; margin: 0 auto; display: grid; }
.foot-bar p { margin: 0 !important; text-align: center; font-size: .875rem; line-height: 20px; padding: 20px 16px; color: rgb(255 255 255 / 85%); }
.foot-bar a { text-decoration: none; display: flex; justify-content: center; gap: 12px; align-items: center; }
.foot-bar a::before { content: ""; width: 20px; height: 20px; background: #ff7511; mask: var(--phone) center / 18px no-repeat; }
.foot-bar .m a::before { mask-image: var(--mail); }
.foot-bar a:hover, .site-footer a:hover { color: #ff7511; }
.site-footer { padding-block: 64px; font-size: .875rem; line-height: 20px; }
.site-footer > * { margin-block: 0 !important; }
.foot-grid { display: grid; gap: 32px; }
.foot-grid > *, .foot-grid > * > * { margin-block: 0; }
.site-footer h2 { margin: 0 0 24px; color: #fff; font-size: .75rem; line-height: 16px; font-weight: 800; letter-spacing: .16em; }
.site-footer p { margin: 0; color: rgb(255 255 255 / 60%); overflow-wrap: anywhere; }
.site-footer a { text-decoration: none; }
.site-footer ul { margin: 0; padding: 0; list-style: none; color: rgb(255 255 255 / 60%); }
.foot-nav li { margin-bottom: 12px; line-height: 24px; }
.foot-contact li { margin-bottom: 12px; }
.foot-contact li:last-child { padding-top: 16px; color: rgb(255 255 255 / 45%); font-size: .75rem; line-height: 16px; letter-spacing: .05em; text-transform: uppercase; }
.foot-nav li:last-child, .foot-contact li:last-child { margin-bottom: 0; }
.site-footer .tagline { margin-top: 24px; line-height: 1.625; }
.site-footer .offer { padding: 24px; border: 1px solid #ff7511; }
.site-footer .offer h2 { margin-bottom: 16px; }
.site-footer .offer p { margin-bottom: 24px; line-height: 1.625; color: rgb(255 255 255 / 70%); }
.site-footer .offer .wp-block-button__link { padding: 12px 24px; letter-spacing: .14em; }
.site-footer .bottom { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px !important; padding-top: 32px; border-top: 1px solid rgb(255 255 255 / 10%); }
.site-footer .bottom p { margin: 0; color: rgb(255 255 255 / 45%); }
.site-footer .bottom p.credit { display: flex; align-items: center; gap: 8px; font-size: .75rem; line-height: 16px; }
.site-footer .credit a { width: 76px; height: 14px; overflow: hidden; text-indent: -999px; white-space: nowrap; background: currentColor; mask: url("assets/ranked.svg") center / contain no-repeat; }

@media (min-width: 640px) {
  .sec p, .split p { font-size: 1.125rem; line-height: 28px; }
  .sec h2, .sec-tight h2, .sec-tight .gal-head h2 { font-size: 1.875rem; line-height: 36px; }
  .sec.cta h2 { font-size: 2.25rem; line-height: 1.05; }
  .sec.cta > p { line-height: 1.625; }
  .hero h1 { font-size: 3rem; } .hero p { font-size: 1.125rem; line-height: 28px; }
  .usps, .services .wp-block-post-template { grid-template-columns: 1fr 1fr; }
  .projekt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usps > div { border-bottom: 0; }
  .gal-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .pcab-form .row, .foot-bar > div { grid-template-columns: 1fr 1fr; }
  .site-footer .bottom { flex-direction: row; }
  .hub-hero h1, .svc h1 { font-size: 2.25rem; }
  .split .wp-block-image::after { content: ""; position: absolute; z-index: -1; right: -16px; bottom: -16px; width: 66.667%; height: 66.667%; box-sizing: border-box; border: 1px solid #ff7511; }
  .split.flip .wp-block-image::after { right: auto; left: -16px; }
}
@media (min-width: 782px) {
  .hub .wp-block-post-template, .hub .area-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .split.flip { flex-direction: row-reverse; }
}
@media (min-width: 1024px) {
  .sec { padding-block: 96px; } .sec-tight { padding-block: 64px; }
  .sec h2 { font-size: 2.25rem; line-height: 40px; }
  .sec.cta h2 { font-size: 3rem; line-height: 1; }
  .cta::before { inset: 40px; } .cta::after { top: 96px; }
  .hero.wp-block-cover { min-height: max(540px, calc(78vh - 80px)); padding-block: 96px; }
  .hero h1 { font-size: 3.75rem; }
  .usps { grid-template-columns: repeat(4, 1fr); }
  .usps > div { padding-block: 48px; }
  .usps > div + div { border-left: 1px solid rgb(27 30 33 / 15%); }
  .services .wp-block-post-template, .hub .wp-block-post-template, .hub .area-grid { grid-template-columns: repeat(3, 1fr); }
  .projekt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quotes .wp-block-quote p { font-size: 1.5rem; line-height: 32px; }
  .faq-cols { gap: 64px !important; }
  .faq-cols > :first-child { flex: 0 0 calc((100% - 704px) / 12 * 4 + 192px) !important; }
  .faq-title { position: sticky; top: 112px; }
  .faq-cols > :last-child { flex: 1 1 0 !important; }
  .hub-hero h1 { font-size: 3rem; line-height: 1; }
  .foot-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1280px) { .hero h1 { font-size: 4.5rem; } }
@media (max-width: 781px) { .split { gap: 48px !important; } }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > header { top: 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
/* Open mobile menu */
.site-header .is-menu-open .wp-block-navigation__container { gap: 12px !important; }
.site-header .is-menu-open a.wp-block-navigation-item__content { padding: 12px 16px !important; font-size: 1rem; }
.site-header .is-menu-open a.is-current::after { display: none !important; }
/* Hero message (plugin pcab-meddelande) */
.hero .hero-copy > .hero-msg { display: flex; flex-direction: column; align-items: flex-start; width: fit-content; max-width: 672px; margin-bottom: 32px; background: rgb(18 20 22 / 85%); border: 1px solid #ff7511; font-size: 1rem; line-height: 24px; color: #fff; }
.hero-msg .msg-label { padding: 12px 16px; background: #ff7511; color: #16181b; font-size: .75rem; line-height: 24px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero-msg .msg-body { padding: 12px 16px; overflow-wrap: anywhere; }
.hero-msg a { display: table; margin-top: 4px; color: #ff7511; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.hero-msg a:hover { color: #fff; }
@media (min-width: 640px) {
  .hero .hero-copy > .hero-msg { flex-direction: row; align-items: stretch; }
  .hero-msg a { display: inline-block; margin: 0 0 0 8px; }
  .hero-msg .msg-label { display: flex; align-items: center; flex: none; }
}
