/*
Theme Name: Alireta
Theme URI: https://hosting.mobility.com.ng
Author: Alireta
Description: A fast, multi-purpose block theme with twelve website types, a library of ready-made sections and simple colour controls. No JavaScript, no web fonts.
Version: 1.0.3
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alireta
Tags: block-patterns, full-site-editing, wide-blocks, custom-colors, one-column, accessibility-ready
*/

/* Small additions to theme.json. Everything else comes from block styles. */
:where(body) { -webkit-font-smoothing: antialiased; }
img { height: auto; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--wp--preset--color--brand); outline-offset: 2px; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--wp--preset--color--base); padding: 8px 12px; }

/* Header: menu wraps on small screens instead of a JavaScript pop-up */
.al-header .wp-block-navigation { flex-wrap: wrap; }
.al-header .wp-block-navigation__container { flex-wrap: wrap; row-gap: .25rem; column-gap: 1.1rem; }
@media (max-width: 600px) {
  .al-header > .wp-block-group { flex-direction: column; align-items: flex-start !important; gap: .5rem; }
  .al-header .wp-block-navigation__container { overflow-x: auto; flex-wrap: nowrap; max-width: calc(100vw - 2.5rem); padding-bottom: .25rem; }
  .al-header .wp-block-navigation-item { white-space: nowrap; }
}

/* Card style for groups, plus helpers shared with Alireta Extras */
.is-style-al-card { background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--border); border-radius: 14px; padding: 1.25rem !important; }
.al-muted { color: var(--wp--preset--color--muted); }

/* FAQ with plain HTML details, no JavaScript */
.wp-block-details { border-bottom: 1px solid var(--wp--preset--color--border); padding: .9rem 0; }
.wp-block-details summary { cursor: pointer; font-weight: 600; color: var(--wp--preset--color--heading); }
.wp-block-details[open] summary { margin-bottom: .5rem; }

.al-footer-rule { border-color: currentColor !important; opacity: .2; }
.al-rounded img, img.al-rounded { border-radius: 14px; }
.wp-block-site-logo img { border-radius: 8px; }

/* Section library helpers */
.al-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--wp--preset--color--brand); margin-bottom: .25rem; }
.has-text-align-center + .al-kicker, .al-narrow .al-kicker, .wp-block-group > .al-kicker:first-child { text-align: inherit; }
.al-narrow > * { max-width: 760px; }
.wp-block-group:has(> .wp-block-heading.has-text-align-center) > .al-kicker { text-align: center; }
.al-on-brand .al-kicker, .al-on-brand .al-muted { color: inherit; }
.al-on-brand .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--wp--preset--color--brand-contrast); border-color: currentColor; background: transparent; }
.al-hero h1 { margin-top: .25rem; }
.al-featured { border: 2px solid var(--wp--preset--color--brand) !important; }
.wp-block-column > .is-style-al-card, .wp-block-column > .al-card { height: 100%; }
.wp-block-quote { margin: 0; }
.wp-block-quote cite { display: block; margin-top: .5rem; color: var(--wp--preset--color--muted); font-style: normal; font-weight: 600; }
/* Sections sit flush against each other and against the header and footer */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-post-content.alignfull > .alignfull + .alignfull { margin-block-start: 0; }
