/*
Theme Name: Anund Entreprenad
Theme URI: https://anund.nu/
Author: Anund Entreprenad
Description: Ett robust och tillgängligt blocktema för Anund Entreprenad AB.
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: anund-entreprenad
*/

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

body { text-wrap: pretty; font-size: clamp(1rem, .96rem + .18vw, 1.075rem); }
a, button { transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--wp--preset--color--amber); outline-offset: 4px; }
.wp-element-button:hover { transform: translateY(-2px); }
.site-header { border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.eyebrow { letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; font-weight: 750; }
.hero-mark { border-left: .45rem solid var(--wp--preset--color--amber); }
.service-card { height: 100%; border-top: .3rem solid var(--wp--preset--color--amber); box-shadow: 0 18px 50px rgba(24, 27, 25, .08); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(24, 27, 25, .13); }
.service-card h3 { font-size: clamp(1.2rem, 2vw, 1.65rem); overflow-wrap: anywhere; }
.service-number { font-family: var(--wp--preset--font-family--display); color: var(--wp--preset--color--amber); font-size: 2.1rem; line-height: 1; }
.site-footer a, footer a { color: var(--wp--preset--color--amber); }
.industrial-rule { height: .35rem; width: 4rem; background: var(--wp--preset--color--amber); }
.page-shell > .wp-block-post-title { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); max-width: 16ch; }
.page-shell .wp-block-post-content { line-height: 1.72; }
.page-shell .wp-block-post-content > * + * { margin-block-start: clamp(1.5rem, 3vw, 2.25rem); }
.page-shell .wp-block-post-content > .wp-block-image { overflow: hidden; border-radius: 3px; box-shadow: 0 20px 55px rgba(24, 27, 25, .12); }
.page-shell .wp-block-post-content > .wp-block-image img { display: block; width: 100%; max-height: 34rem; object-fit: cover; }
.price-panel { border-left: .4rem solid var(--wp--preset--color--amber); box-shadow: 0 14px 42px rgba(24, 27, 25, .07); }
.price-panel h2 { max-width: 22ch; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.price-panel > p { max-width: 60ch; color: #3f4843; }
.price-panel ul { list-style: none; padding-left: 0; margin-top: 1.5rem; }
.price-panel li { position: relative; padding: .72rem 0 .72rem 1.6rem; border-top: 1px solid rgba(29, 33, 31, .14); }
.price-panel li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: .55rem; height: .55rem; background: var(--wp--preset--color--amber); }
.page-shell .wp-block-post-content > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; padding: 0; list-style: none; }
.page-shell .wp-block-post-content > ul li { margin: 0; }
.page-shell .wp-block-post-content > ul a { display: flex; align-items: center; min-height: 5rem; padding: 1.1rem 1.25rem; border-left: .3rem solid var(--wp--preset--color--amber); background: var(--wp--preset--color--white); color: var(--wp--preset--color--charcoal); font-weight: 750; text-decoration: none; box-shadow: 0 10px 30px rgba(24, 27, 25, .07); }
.page-shell .wp-block-post-content > ul a::after { content: "→"; margin-left: auto; padding-left: 1rem; color: var(--wp--preset--color--amber); font-size: 1.3rem; }
.page-shell .wp-block-post-content > ul a:hover { background: var(--wp--preset--color--sand); transform: translateY(-2px); }
.page-shell .wp-block-buttons { margin-top: 2rem; }
@media (max-width: 781px) { .desktop-cta { display: none !important; } }
@media (max-width: 600px) {
  .page-shell .wp-block-post-content > ul { grid-template-columns: 1fr; }
  .page-shell { padding-top: 2.5rem !important; padding-bottom: 3.5rem !important; }
  .price-panel { padding: 1.4rem !important; }
  .page-shell .wp-block-post-content > .wp-block-image img { max-height: 23rem; }
}
