/*
Theme Name: Atlant Bud
Description: Тема сайта «Атлант-Буд» в стиле фирменной презентации: тёмный фон, оранжевый акцент, серые титульные блоки проектов.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: atlant-bud
License: GPLv2 or later
*/

/* thin rule lines like the presentation grid */
.ab-rule-top { border-top: 1px solid currentColor; }
.ab-rule-left { border-left: 1px solid currentColor; }

/* logo */
.ab-logo { line-height: .9; letter-spacing: .02em; text-transform: uppercase; margin: 0; }
.ab-logo a { text-decoration: none; color: inherit; }
.ab-logo sup { font-size: .32em; vertical-align: top; position: relative; top: .35em; margin-left: .1em; border: 1px solid currentColor; padding: 0 .15em; line-height: 1.2; }

/* header navigation */
.ab-header .wp-block-navigation { text-transform: uppercase; letter-spacing: .08em; }
.ab-header .wp-block-navigation a:hover,
.ab-footer a:hover { color: var(--wp--preset--color--accent); }
.ab-header .wp-block-navigation .wp-block-navigation__submenu-container { background: var(--wp--preset--color--dark) !important; border: 1px solid var(--wp--preset--color--accent) !important; padding: .5em 0; }
.ab-header .wp-block-navigation .wp-block-navigation__submenu-container a { padding: .4em 1.2em; }

/* project photo rows: one row per presentation slide */
.ab-slide.wp-block-columns { gap: 6px; margin: 0 0 6px; }
.ab-slide .wp-block-image { margin: 0; }
.ab-slide .wp-block-image img { width: 100%; height: auto; display: block; }
.ab-slide-caption { display: flex; justify-content: space-between; text-transform: uppercase; font-size: 11px; letter-spacing: .06em; margin: 0 0 28px; }
.ab-slide-caption strong { font-weight: 800; }

/* project cards */
.ab-card { position: relative; }
.ab-card .wp-block-image { margin: 0; overflow: hidden; }
.ab-card .wp-block-image img { transition: transform .6s ease; width: 100%; }
.ab-card:hover .wp-block-image img { transform: scale(1.04); }
.ab-card h3 a { text-decoration: none; color: inherit; }
.ab-card h3 a::after { content: ""; position: absolute; inset: 0; }
.ab-card:hover h3 { color: var(--wp--preset--color--accent); }

/* project header (grey title slide) */
.ab-project-head .ab-meta p { margin: 0; }
.ab-project-head .ab-meta strong { font-weight: 800; display: block; }

@media (max-width: 781px) {
	.ab-rule-left { border-left: 0; border-top: 1px solid currentColor; }
	.ab-slide.wp-block-columns { gap: 3px; margin-bottom: 3px; }
	.ab-slide-caption { margin-bottom: 18px; font-size: 9px; }
}

.ab-rule-bottom { border-bottom: 1px solid currentColor; }
.ab-meta-col { display: flex; flex-direction: column; justify-content: flex-end; }
html, body { overflow-x: clip; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
@media (min-width: 782px) { .ab-project-head > .wp-block-columns { min-height: min(62vh, 560px); } }
.ab-project-head > .wp-block-columns > .wp-block-column:first-child { display: flex; flex-direction: column; }

/* articles imported from the old Joomla site carry inline fonts (Courier, 8pt…): unify them */
.wp-block-post-content :is(p, span, div, li, td, strong, b, em, font) { font-family: inherit !important; }
.wp-block-post-content :is(span, font, p, div)[style*="font-size"],
.wp-block-post-content font[size] { font-size: inherit !important; }
.wp-block-post-content img[style*="float: left"], .wp-block-post-content img[align="left"] { margin: 0 1.25rem .75rem 0; }
.wp-block-post-content img[style*="float: right"], .wp-block-post-content img[align="right"] { margin: 0 0 .75rem 1.25rem; }
.wp-block-post-content table { border-collapse: collapse; max-width: 100%; }
.wp-block-post-content pre { font-family: inherit; font-size: inherit; white-space: pre-wrap; background: none; padding: 0; overflow: visible; }
