/*
Theme Name: acim.cz
Theme URI: https://acim.cz
Author: ACIM
Description: Block theme for ACIM s.r.o. — IT services, Prague. Logo and look derived from the original site.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Version: 0.6.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: acim-cz
*/

/* Page background: light grey with the faint ACIM knot motif (as on the original site). */
body { background-image: url("assets/img/pattern.svg"); background-size: 320px 320px; }

.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }

/* Logo: mark + wordmark */
.acim-logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; line-height: 1; }
.acim-logo { gap: 0.75rem; }
.acim-logo__word { font-weight: 700; font-size: 3.6rem; letter-spacing: -0.035em; color: var(--wp--preset--color--red); }
.acim-logo img { width: 74px; height: auto; display: block; }
@media (max-width: 600px) { .acim-logo__word { font-size: 2.4rem; } .acim-logo img { width: 50px; } }

/* Utility links and language switcher */
.acim-util { display: flex; gap: 1.25rem; align-items: center; margin: 0; padding: 0; list-style: none; font-size: var(--wp--preset--font-size--small); }
.acim-util a { color: var(--wp--preset--color--muted); text-decoration: none; }
.acim-util a:hover { color: var(--wp--preset--color--red); }
.acim-util .is-current a { color: var(--wp--preset--color--charcoal); font-weight: 700; }
.acim-langs { display: inline-flex; gap: 0.4rem; }
.acim-langs a { padding: 0.15rem 0.45rem; border: 1px solid var(--wp--preset--color--line); border-radius: 3px; }
.acim-langs .is-current a { border-color: var(--wp--preset--color--charcoal); }
@media (max-width: 900px) { .acim-util .acim-util__contact { display: none; } }
@media (max-width: 600px) { .acim-util .acim-util__text { display: none; } }

/* Dark navigation bar (inspired by the original menu bar) */
.acim-navbar .wp-block-navigation a { color: var(--wp--preset--color--white); }
.acim-navbar .wp-block-navigation-item__content { padding: 0.95rem 0; border-bottom: 3px solid transparent; }
.acim-navbar .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.acim-navbar .wp-block-navigation-item__content:hover { border-bottom-color: var(--wp--preset--color--red); }
.acim-navbar .wp-block-navigation__submenu-container { background: var(--wp--preset--color--charcoal) !important; border: 0 !important; padding: 0.4rem 0; }
.acim-navbar .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.55rem 1.1rem; border-bottom: 0; }
.acim-navbar .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--graphite); }

/* White content card on the patterned background */
.acim-card { background: var(--wp--preset--color--white); border-radius: 6px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }

/* Hero */
.acim-hero { position: relative; overflow: hidden; }
.acim-hero::after {
	content: ""; position: absolute; right: -40px; bottom: -60px; width: 420px; height: 380px;
	background: url("assets/img/acim-mark-white.svg") no-repeat center / contain; opacity: 0.07; pointer-events: none;
}
.acim-hero > * { position: relative; z-index: 1; }
.acim-hero .acim-kicker { color: #E7A5A8; }

.acim-kicker { font-size: var(--wp--preset--font-size--small); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--red); }

/* Service cards */
.acim-service { padding: 1.5rem; background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); border-top: 3px solid var(--wp--preset--color--red); border-radius: 4px; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.acim-service:hover { box-shadow: 0 10px 24px rgb(39 36 37 / 0.08); transform: translateY(-2px); }
.acim-service .wp-block-image { margin: 0 0 0.75rem; }
.acim-service img { width: 44px; height: 44px; }
.acim-service h3 { margin: 0 0 0.4rem; }
.acim-service h3 a { color: inherit; text-decoration: none; }
.acim-service p { margin: 0; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }

/* Lists with red markers */
.acim-list { padding-left: 1.2rem; }
.acim-list li { margin-bottom: 0.35rem; }
.acim-list li::marker { color: var(--wp--preset--color--red); }

/* Sidebar */
.acim-sidebar { padding: 1.5rem; background: var(--wp--preset--color--mist); border-radius: 4px; }
.acim-sidebar h3 { font-size: var(--wp--preset--font-size--medium); text-transform: uppercase; letter-spacing: 0.06em; }
.acim-sidebar ul { margin: 0; padding-left: 1.1rem; font-size: var(--wp--preset--font-size--small); }
.acim-sidebar li { margin-bottom: 0.3rem; }
.acim-sidebar li::marker { color: var(--wp--preset--color--red); }

/* References */
.acim-refs { columns: 2 240px; column-gap: 2rem; margin: 0; padding: 0; list-style: none; }
.acim-refs li { break-inside: avoid; padding: 0.6rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }

/* Contact */
.acim-contact dt { margin-top: 0.9rem; font-size: var(--wp--preset--font-size--small); text-transform: uppercase; letter-spacing: 0.08em; color: var(--wp--preset--color--muted); }
.acim-contact dd { margin: 0.15rem 0 0; font-size: var(--wp--preset--font-size--large); font-weight: 600; }
.acim-contact dd a { color: inherit; text-decoration: none; }

/* Footer */
.acim-footer a { color: inherit; text-decoration: none; }
.acim-footer a:hover { text-decoration: underline; }

:where(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--wp--preset--color--red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .acim-service { transition: none; } }

/* Navbar CTA */
.acim-cta { display: inline-block; padding: 0.55rem 1.1rem; background: var(--wp--preset--color--red); color: var(--wp--preset--color--white); border-radius: 3px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.acim-cta:hover { background: var(--wp--preset--color--red-dark); color: var(--wp--preset--color--white); }
@media (max-width: 600px) { .acim-cta { padding: 0.45rem 0.8rem; font-size: var(--wp--preset--font-size--small); } }

/* Hero v2: big headline with highlighted words, brand mark on the right, facts row */
.acim-hero::after { display: none; }
.acim-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: 1.05; letter-spacing: -0.025em; }
.acim-hl { background: linear-gradient(transparent 68%, rgb(180 40 46 / 0.85) 68%, rgb(180 40 46 / 0.85) 92%, transparent 92%); padding: 0 0.08em; }
.acim-hero-mark { margin: 0; }
.acim-hero-mark img { width: 380px; max-width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgb(0 0 0 / 0.35)); }
@media (max-width: 781px) { .acim-hero-mark img { width: 200px; } }
.acim-facts { display: flex; flex-wrap: wrap; gap: 0.75rem 2.25rem; margin: 2rem 0 0; padding: 1.25rem 0 0; list-style: none; border-top: 1px solid rgb(255 255 255 / 0.15); }
.acim-facts strong { display: block; font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--white); }
.acim-facts span { font-size: var(--wp--preset--font-size--small); color: rgb(255 255 255 / 0.7); }

/* ---------- v0.3: international-style layout ---------- */

/* Top bar + header */
.acim-topbar .acim-util { justify-content: flex-end; }
.acim-topbar .acim-util a { color: rgb(255 255 255 / 0.78); }
.acim-topbar .acim-util a:hover { color: var(--wp--preset--color--white); }
.acim-topbar .acim-util__push { margin-left: auto; }
.acim-topbar .acim-util__contact:first-child { margin-right: 0.25rem; }
.acim-topbar .acim-langs a { border-color: rgb(255 255 255 / 0.25); }
.acim-topbar .acim-langs .is-current a { border-color: var(--wp--preset--color--white); color: var(--wp--preset--color--white); }
.acim-header { box-shadow: 0 1px 0 var(--wp--preset--color--line); }
.acim-header .wp-block-navigation { color: var(--wp--preset--color--charcoal); }
.acim-header .wp-block-navigation a:hover { color: var(--wp--preset--color--red); }
.acim-header .wp-block-navigation__submenu-container { border: 1px solid var(--wp--preset--color--line) !important; box-shadow: 0 12px 30px rgb(0 0 0 / 0.08); padding: 0.4rem 0; }
.acim-header .wp-block-navigation__submenu-container a { padding: 0.5rem 1rem !important; }
@media (max-width: 1000px) { .acim-header .acim-cta { display: none; } }

/* Hero over photo */
.acim-hero .wp-block-cover__image-background { object-position: 70% 50%; }
.acim-hero .wp-block-cover__background { background: linear-gradient(90deg, rgb(39 36 37 / 0.95) 0%, rgb(39 36 37 / 0.82) 45%, rgb(39 36 37 / 0.35) 100%) !important; opacity: 1 !important; }

/* Technology strip */
.acim-techbar { border-bottom: 1px solid var(--wp--preset--color--line); }
.acim-tech__label { margin: 0 0 0.75rem; text-align: center; font-size: var(--wp--preset--font-size--small); text-transform: uppercase; letter-spacing: 0.12em; color: var(--wp--preset--color--muted); }
.acim-tech { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 0 auto; padding: 0; list-style: none; }
.acim-tech li { padding: 0.45rem 0.9rem; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; font-weight: 600; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--graphite); background: var(--wp--preset--color--white); }

/* Service cards with photos */
.acim-service { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.acim-service__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.acim-service__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.acim-service:hover .acim-service__media > img { transform: scale(1.05); }
.acim-service__icon { position: absolute; left: 1.25rem; bottom: -22px; display: grid; place-items: center; width: 52px; height: 52px; background: var(--wp--preset--color--white); border-radius: 6px; box-shadow: 0 6px 16px rgb(0 0 0 / 0.12); }
.acim-service__icon img { width: 30px; height: 30px; }
.acim-service__body { padding: 2rem 1.4rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.acim-service__body .acim-more { margin-top: auto; padding-top: 0.75rem; }
.acim-service img { width: auto; height: auto; }
.acim-service__media > img { width: 100%; height: 100%; }
.acim-more a { font-weight: 700; text-decoration: none; }
.acim-more a::after { content: " →"; }

/* Photo stack (about) */
.acim-photo-stack { position: relative; margin: 0; padding: 0 12% 14% 0; }
.acim-photo-stack img { display: block; width: 100%; border-radius: 6px; aspect-ratio: 4 / 3; object-fit: cover; }
.acim-photo-stack img + img { position: absolute; right: 0; bottom: 0; width: 48%; border: 6px solid var(--wp--preset--color--white); box-shadow: 0 14px 30px rgb(0 0 0 / 0.18); }

/* Process steps */
.acim-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.acim-steps li { counter-increment: step; padding: 1.5rem; background: var(--wp--preset--color--white); border-radius: 6px; border: 1px solid var(--wp--preset--color--line); }
.acim-steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 2.2rem; font-weight: 800; color: var(--wp--preset--color--red); line-height: 1; margin-bottom: 0.6rem; }
.acim-steps strong { display: block; font-size: var(--wp--preset--font-size--large); }
.acim-steps span { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }

/* References on dark */
.acim-refs--dark li { border-color: rgb(255 255 255 / 0.12); color: rgb(255 255 255 / 0.88); }
.has-charcoal-background-color .acim-more a { color: #ff8a8f; }

/* CTA band over photo */
.acim-ctaband .wp-block-cover__background { background: linear-gradient(90deg, rgb(180 40 46 / 0.94), rgb(39 36 37 / 0.88)) !important; opacity: 1 !important; }
.acim-ctaband .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--wp--preset--color--white); color: var(--wp--preset--color--red); }

/* Inner page banner + lifted card */
.acim-banner .wp-block-post-title { font-size: var(--wp--preset--font-size--huge); }
.acim-banner .wp-block-cover__background { background: linear-gradient(90deg, rgb(39 36 37 / 0.92), rgb(39 36 37 / 0.55)) !important; opacity: 1 !important; }
.acim-card--lift { position: relative; margin-top: -48px !important; box-shadow: 0 18px 40px rgb(0 0 0 / 0.08); }
@media (prefers-reduced-motion: reduce) { .acim-service__media > img { transition: none; } }
.wp-block-cover.acim-banner { padding-inline: clamp(1rem, 4vw, 2.5rem) !important; padding-bottom: calc(var(--wp--preset--spacing--50) + 48px) !important; }
.wp-block-cover.acim-banner .wp-block-cover__inner-container { width: 100% !important; max-width: 1200px !important; margin-left: auto !important; margin-right: auto !important; }
.acim-card--lift { z-index: 2; }

/* Why ACIM */
.acim-why { display: grid; gap: 1.1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.acim-why li { padding-left: 1.4rem; border-left: 3px solid var(--wp--preset--color--red); }
.acim-why strong { display: block; font-size: var(--wp--preset--font-size--large); }
.acim-why span { color: var(--wp--preset--color--muted); }

/* Person */
.acim-person { margin: 0; }
.acim-person img { display: block; width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--wp--preset--color--white); box-shadow: 0 14px 30px rgb(0 0 0 / 0.14); margin-inline: auto; }
.acim-role { margin-top: -0.6rem; font-weight: 600; color: var(--wp--preset--color--red); }

/* Local AI band (home) */
.acim-laiband .wp-block-cover__background { background: linear-gradient(100deg, rgb(39 36 37 / 0.96) 0%, rgb(39 36 37 / 0.9) 50%, rgb(180 40 46 / 0.75) 100%) !important; opacity: 1 !important; }
.acim-laiband .acim-kicker { color: #ff8a8f; }
.acim-lai-points { display: grid; gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.acim-lai-points li { padding: 1.1rem 1.25rem; background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.16); border-left: 3px solid var(--wp--preset--color--red); border-radius: 4px; backdrop-filter: blur(4px); }
.acim-lai-points strong { display: block; color: var(--wp--preset--color--white); font-size: var(--wp--preset--font-size--large); }
.acim-lai-points span { color: rgb(255 255 255 / 0.78); }

/* Local AI page */
.acim-callout { padding: 1rem 1.25rem; background: var(--wp--preset--color--mist); border-left: 3px solid var(--wp--preset--color--red); border-radius: 4px; }
.acim-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.acim-tags li { padding: 0.4rem 0.85rem; border-radius: 999px; background: var(--wp--preset--color--mist); font-weight: 600; font-size: var(--wp--preset--font-size--small); }
.acim-usecases { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.acim-usecases li { padding: 1.25rem; border: 1px solid var(--wp--preset--color--line); border-top: 3px solid var(--wp--preset--color--red); border-radius: 4px; }
.acim-usecases strong { display: block; margin-bottom: 0.3rem; font-size: var(--wp--preset--font-size--large); }
.acim-usecases span { color: var(--wp--preset--color--muted); }
.acim-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.acim-tiers li { padding: 1.25rem; background: var(--wp--preset--color--charcoal); color: var(--wp--preset--color--white); border-radius: 6px; }
.acim-tiers li:nth-child(2) { background: var(--wp--preset--color--graphite); }
.acim-tiers li:nth-child(3) { background: var(--wp--preset--color--red); }
.acim-tiers strong { display: block; font-size: var(--wp--preset--font-size--x-large); }
.acim-tiers em { display: block; font-style: normal; font-weight: 600; margin: 0.3rem 0; }
.acim-tiers span { color: rgb(255 255 255 / 0.8); font-size: var(--wp--preset--font-size--small); }
.acim-card .acim-steps { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .acim-card .acim-steps { grid-template-columns: 1fr; } }

/* Layers diagram (home) */
.acim-layers { display: grid; gap: 0.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.acim-layers a { display: grid; grid-template-columns: 15rem 1fr 1.3fr; gap: 1.25rem; align-items: center; padding: 1rem 1.25rem; border: 1px solid var(--wp--preset--color--line); border-radius: 6px; background: var(--wp--preset--color--white); color: inherit; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.acim-layers a:hover { transform: translateX(4px); box-shadow: 0 8px 20px rgb(0 0 0 / 0.06); }
.acim-layer__name { font-weight: 700; font-size: var(--wp--preset--font-size--large); }
.acim-layer__what { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.acim-layer__ai { font-size: var(--wp--preset--font-size--small); }
.acim-layer__ai b { display: inline-block; margin-right: 0.4rem; padding: 0.05rem 0.45rem; border-radius: 3px; background: var(--wp--preset--color--red); color: var(--wp--preset--color--white); font-size: 0.75rem; letter-spacing: 0.06em; }
.acim-layers li.is-ai a { background: var(--wp--preset--color--charcoal); border-color: var(--wp--preset--color--charcoal); color: var(--wp--preset--color--white); }
.acim-layers li.is-ai:first-child a { background: var(--wp--preset--color--red); border-color: var(--wp--preset--color--red); }
.acim-layers li.is-ai .acim-layer__what { color: rgb(255 255 255 / 0.75); }
.acim-layers li.is-ai .acim-layer__ai b { background: var(--wp--preset--color--white); color: var(--wp--preset--color--red); }
@media (max-width: 781px) { .acim-layers a { grid-template-columns: 1fr; gap: 0.3rem; } }
@media (prefers-reduced-motion: reduce) { .acim-layers a { transition: none; } }

/* "Kde pomáhá AI" box on service pages */
.acim-ainote { margin-top: 2rem; padding: 1.25rem 1.5rem; background: var(--wp--preset--color--charcoal); color: var(--wp--preset--color--white); border-radius: 6px; border-left: 4px solid var(--wp--preset--color--red); }
.acim-ainote h3 { color: var(--wp--preset--color--white); margin-top: 0; }
.acim-ainote .acim-more a { color: #ff8a8f; }

/* AI imagery */
.acim-figure { margin: 1.25rem 0; }
.acim-figure img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 6px; }
.acim-figure--dark img { background: #000; }
.acim-figure--tall img { aspect-ratio: 4 / 3; box-shadow: 0 18px 40px rgb(0 0 0 / 0.15); }
.acim-photo-stack--wide { margin: 1.25rem 0; }
.acim-photo-stack--wide img:first-child { aspect-ratio: 16 / 9; }
