/*
Theme Name: ama.rs
Theme URI: https://ama.rs
Author: ACIM
Description: Block tema za Advokatsku kancelariju Mira Aćimović.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Version: 0.1.8
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ama-rs
*/

/* Small refinements that theme.json cannot express. */

.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; } }

/* Thin gold rule above section headings */
.ama-rule::before {
	content: "";
	display: block;
	width: 48px;
	height: 2px;
	margin-bottom: 1.25rem;
	background: var(--wp--preset--color--gold);
}

/* Practice-area cards */
.ama-area { border-top: 1px solid var(--wp--preset--color--line); padding-top: 1.25rem; }
.ama-area h3 { margin-top: 0; }
.ama-area ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--wp--preset--color--muted); }
.ama-area li { margin-bottom: 0.25rem; }
.ama-area li::marker { color: var(--wp--preset--color--gold); }

/* Client names */
.ama-clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--wp--preset--color--line); }
.ama-clients li { padding: 1rem 0.25rem; border-bottom: 1px solid var(--wp--preset--color--line); font-family: var(--wp--preset--font-family--serif); font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--navy); }

/* Links list */
.ama-links { margin: 0; padding: 0; list-style: none; }
.ama-links li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.ama-links a { text-decoration: none; font-weight: 600; }
.ama-links span { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }

/* Contact details */
.ama-contact dt { margin-top: 1rem; font-size: var(--wp--preset--font-size--small); text-transform: uppercase; letter-spacing: 0.08em; color: var(--wp--preset--color--muted); }
.ama-contact dd { margin: 0.2rem 0 0; font-size: var(--wp--preset--font-size--large); font-family: var(--wp--preset--font-family--serif); color: var(--wp--preset--color--navy); }
.ama-contact dd a { text-decoration: none; }

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

:where(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 2px; }

/* Home sections use the wide width for alignment; keep running text readable. */
.wp-block-group.alignfull > p { box-sizing: border-box; padding-right: clamp(0px, calc(100% - 62ch), 100%); }

/* Scales of justice emblem (assets/img/scales.svg) */
.ama-emblem { margin: 0 auto; }
.ama-emblem img { width: 380px; max-width: 100%; height: auto; }
@media (max-width: 781px) { .ama-emblem img { width: 220px; } }
.ama-card__top { padding: 1.75rem 0 1.25rem; }
.ama-card__top .wp-block-image { margin: 0 auto; }
.ama-card__top img { width: 170px; max-width: 100%; height: auto; }

/* Business card (contact page), recreated from the original card */
.ama-card { max-width: 420px; background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); box-shadow: 0 10px 30px rgb(31 42 68 / 0.08); margin-bottom: var(--wp--preset--spacing--40); }
.ama-card .wp-block-image { margin: 0; }
.ama-card__body { padding: 1.5rem 1.75rem 1.25rem; text-align: center; }
.ama-card__body p { margin: 0; }
.ama-card__name { font-family: var(--wp--preset--font-family--serif); font-size: var(--wp--preset--font-size--x-large); font-weight: 600; color: var(--wp--preset--color--navy); }
.ama-card__role { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--gold); margin-bottom: 1rem !important; }
.ama-card__line { font-family: var(--wp--preset--font-family--serif); color: var(--wp--preset--color--ink); }
.ama-card__line a { text-decoration: none; }
.ama-card__web { margin-top: 1rem !important; padding-top: 0.75rem; border-top: 1px solid var(--wp--preset--color--line); letter-spacing: 0.3em; font-family: var(--wp--preset--font-family--serif); color: var(--wp--preset--color--navy); }

/* Scales mark (logo) */
.ama-mark { margin: 0; flex-shrink: 0; }
.ama-mark img { display: block; height: auto; }
