/*
Theme Name: 360 Byggprojektering
Theme URI: https://360byggprojektering.se/
Author: 360 Byggprojektering AB
Description: Blocktema för 360 Byggprojektering AB med företagets grafiska profil (Fira Sans, Inter, orange/mörk färgpalett och isometriskt mönster). Skapar sidorna Start, Om oss, Tjänster, Portfolio, FAQ och Kontakt när temat aktiveras.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bp360
*/

/* ---------- Grund ---------- */
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
main.wp-block-group > .entry-content > *,
main.wp-block-group > .wp-block-post-content > * { margin-block-start: 0; }

.eyebrow {
	font-family: var(--wp--preset--font-family--fira-sans);
	font-weight: 500; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--wp--preset--color--orange-dark);
	display: flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: 0 0 28px; }
.lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--grey-1); max-width: 46em; }
.tag {
	font-family: var(--wp--preset--font-family--fira-sans); font-weight: 500; font-size: .78rem;
	letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--orange-dark);
	margin-bottom: 0 !important;
}
.tag + * { margin-block-start: .3rem !important; }

/* Knappar */
.wp-block-button .wp-block-button__link::after { content: " →"; }
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent; color: inherit; border-color: currentColor;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { color: var(--wp--preset--color--orange); border-color: var(--wp--preset--color--orange); }

/* ---------- Sektioner ---------- */
.c-sec { padding: 96px 24px; }
.c-sec.alt { background: var(--wp--preset--color--paper); }
.c-head { margin-bottom: 48px !important; }
.c-head > * { max-width: 760px; }

.c-dark { background: var(--wp--preset--color--dark); color: var(--wp--preset--color--light); position: relative; overflow: hidden; }
.c-dark .lead { color: var(--wp--preset--color--grey-4); }
.c-dark a:not(.wp-block-button__link) { color: var(--wp--preset--color--grey-4); }
.c-dark a:not(.wp-block-button__link):hover { color: var(--wp--preset--color--orange); }
.c-pattern::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: url(assets/img/monster-tile.svg) 0 0 / 182px auto repeat; opacity: .13;
}
.c-pattern > * { position: relative; }

.c-hero { padding: 110px 24px 120px; }
.c-hero h1 .accent, .c-hero mark { color: var(--wp--preset--color--orange); background: none; }
.c-page-hero { padding: 90px 24px 80px; }
.c-page-hero h1 { text-transform: uppercase; letter-spacing: .02em; }
.c-page-hero .sub {
	font-family: var(--wp--preset--font-family--fira-sans); font-size: 1.35rem;
	color: var(--wp--preset--color--orange); margin-top: 0;
}
.c-hero-img { position: relative; }
.c-hero-img { margin: 0; }
.c-hero-img img, .c-hero-img video { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; display: block; background: #1e1d1f; }
.c-hero-img::after {
	content: ""; position: absolute; right: -14px; bottom: -14px; width: 40%; height: 40%;
	border-right: 4px solid var(--wp--preset--color--orange-dark); border-bottom: 4px solid var(--wp--preset--color--orange-dark);
	pointer-events: none;
}

/* Kort */
.c-cards { gap: 24px !important; }
.c-card {
	background: var(--wp--preset--color--light); border: 1px solid var(--wp--preset--color--grey-4);
	border-radius: 6px; padding: 32px 28px; transition: .2s;
}
.c-card:hover { border-color: var(--wp--preset--color--orange-dark); transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(49,47,50,.45); }
.c-card p { color: var(--wp--preset--color--grey-1); }
.c-card > * { margin-block-start: 0 !important; }
.c-card h3 { margin-bottom: .5em; }
.c-icon { margin: 0 0 20px !important; }
.c-icon img { width: 46px; height: 46px; }

/* Steg */
.c-step { border-top: 3px solid var(--wp--preset--color--orange-dark); padding-top: 22px; }
.c-step .n {
	font-family: var(--wp--preset--font-family--fira-sans); font-weight: 700; font-size: 3rem;
	color: var(--wp--preset--color--grey-4); line-height: 1; margin: 0 0 10px;
}
.c-step > * { margin-block-start: 0 !important; }
.c-step p:not(.n) { color: var(--wp--preset--color--grey-1); }
.c-badge {
	margin-top: 40px !important; padding: 24px 28px; border-left: 4px solid var(--wp--preset--color--orange-dark);
	background: var(--wp--preset--color--light); gap: 18px !important;
}
.c-badge .c-icon { margin: 0 !important; flex: 0 0 40px; }
.c-badge .c-icon img { width: 40px; height: 40px; }
.c-badge h3 { margin: 0 0 .2em; }
.c-badge p { margin: 0; color: var(--wp--preset--color--grey-1); }

/* Bild i tvåspalt */
.c-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.c-split { gap: 64px !important; }

/* Projekt */
.c-proj { background: var(--wp--preset--color--light); border: 1px solid var(--wp--preset--color--grey-4); border-radius: 6px; overflow: hidden; transition: .2s; }
.c-proj:hover { border-color: var(--wp--preset--color--orange-dark); transform: translateY(-3px); }
.c-proj > * { margin-block-start: 0 !important; }
.c-proj .wp-block-image { margin: 0; }
.c-proj .wp-block-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.c-proj .body { padding: 24px; }
.c-proj .body p:not(.tag) { color: var(--wp--preset--color--grey-1); font-size: .95rem; }
.c-proj h3 a { color: inherit; text-decoration: none; }
.c-proj-row { padding: 56px 0; border-bottom: 1px solid var(--wp--preset--color--grey-4); gap: 56px !important; }
.c-proj-row .c-photo img { aspect-ratio: 16/10; }
@media (min-width: 782px) {
	.c-proj-row:nth-of-type(even) > .wp-block-column:first-child { order: 2; }
}
.c-proj-row .wp-block-gallery { margin-top: 20px; }
.c-proj-row .wp-block-gallery.has-nested-images figure.wp-block-image { flex-grow: 0; }
.c-proj-row .wp-block-gallery.has-nested-images figure.wp-block-image img { aspect-ratio: 1; object-fit: cover; border-radius: 4px; }

/* Tjänster */
.c-svc { padding: 40px 0; border-bottom: 1px solid var(--wp--preset--color--grey-4); gap: 28px !important; }
.c-svc .c-icon img { width: 56px; height: 56px; }
.c-svc p:not(.tag) { color: var(--wp--preset--color--grey-1); max-width: 60em; }
.c-svc > .wp-block-column:first-child { flex: 0 0 80px !important; }

/* FAQ */
.c-faq { max-width: 900px !important; }
.wp-block-details { border-bottom: 1px solid var(--wp--preset--color--grey-4); padding: 22px 0; }
.wp-block-details summary {
	font-family: var(--wp--preset--font-family--fira-sans); font-weight: 600; font-size: 1.15rem;
	cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; color: var(--wp--preset--color--orange-dark); font-size: 1.6rem; line-height: 1; }
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details p { color: var(--wp--preset--color--grey-1); max-width: 56em; }

/* Kontakt */
.c-contact-row { gap: 14px !important; align-items: flex-start !important; }
.c-contact-row .c-icon { margin: 0 !important; }
.c-contact-row .c-icon img { width: 26px; height: 26px; }
.c-contact-row p { margin: 0; }
.c-contact-row strong { font-family: var(--wp--preset--font-family--fira-sans); display: block; }
.c-form input[type=text], .c-form input[type=email], .c-form input[type=tel], .c-form textarea {
	width: 100%; font: inherit; padding: 13px 14px; border: 1px solid var(--wp--preset--color--grey-3);
	border-radius: 6px; background: var(--wp--preset--color--light);
}
.c-form button[type=submit], .c-form .wpforms-submit {
	font-family: var(--wp--preset--font-family--fira-sans) !important; font-weight: 600 !important;
	background: var(--wp--preset--color--orange-dark) !important; color: var(--wp--preset--color--light) !important;
	border: 0 !important; border-radius: 6px !important; padding: .85em 1.6em !important; cursor: pointer;
}
.c-form .wpforms-submit:hover { background: var(--wp--preset--color--orange) !important; }

/* CTA */
.c-cta { padding: 80px 24px; }
.c-cta .c-cta-inner { gap: 32px; }
.c-cta h2 { margin: 0 0 .2em; }
.c-cta p { margin: 0; color: var(--wp--preset--color--grey-4); }
.page-slug-kontakt .c-cta { display: none; }

/* ---------- Sidhuvud ---------- */
.c-headerbar {
	position: sticky; top: 0; z-index: 20; padding: 0 24px;
	background: rgba(255,255,252,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--wp--preset--color--grey-4);
}
.admin-bar .c-headerbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .c-headerbar { top: 46px; } }
.c-header { min-height: 78px; }
.c-logo { margin: 0 !important; }
.c-logo img { height: 38px; width: auto; display: block; }
.c-nav .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--fira-sans); font-weight: 500; font-size: .95rem;
	letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--dark);
	text-decoration: none; padding: 6px 0 !important; border-bottom: 2px solid transparent;
}
.c-nav .wp-block-navigation-item__content:hover,
.c-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--orange-dark); border-color: var(--wp--preset--color--orange-dark); }
.c-nav .wp-block-navigation__container { gap: 2rem; }
.c-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1rem; }

/* ---------- Sidfot ---------- */
.c-footer { padding: 72px 24px 32px; }
.c-footer .c-cols { gap: 40px !important; }
.c-footer .flogo img { width: 190px; }
.c-footer .c-brand { width: fit-content; align-items: center; gap: 20px; }
.c-footer .c-brand > * { margin: 0 !important; }
.c-footer .seal img { width: 170px; display: block; }
.c-footer h4 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--orange); margin-bottom: .8em; }
.c-footer p { margin: 0 0 6px; }
.c-footer a { text-decoration: none; overflow-wrap: anywhere; }
.c-footer .muted { color: var(--wp--preset--color--grey-3); font-size: .92rem; }
.c-footer .bottom {
	margin-top: 56px !important; padding-top: 22px; border-top: 1px solid var(--wp--preset--color--grey-1);
	color: var(--wp--preset--color--grey-2); font-size: .85rem;
}

/* ---------- Mobil ---------- */
@media (max-width: 781px) {
	.c-sec { padding: 64px 16px; }
	.c-hero { padding: 72px 16px 80px; }
	.c-page-hero { padding: 64px 16px; }
	.c-headerbar { padding: 0 16px; }
	.c-logo img { height: 30px; }
	.c-split, .c-proj-row { gap: 32px !important; }
	.c-svc > .wp-block-column:first-child { flex-basis: auto !important; }
	.c-hero-img::after { right: -8px; bottom: -8px; }
}
