/* ICI Sites: the base look every site shares. Each site's colours and fonts come from its theme tokens
   (App\Sites\Theme), printed as --site-* custom properties before this file. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--site-font-body); color: var(--site-color-text); background: var(--site-color-background); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; }
a { color: var(--site-color-primary); }
h1, h2, h3, h4, h5, h6 { font-family: var(--site-font-heading); line-height: 1.2; margin: 0 0 .6em; color: var(--site-color-primary); }

.site-skip { position: absolute; left: -9999px; }
.site-skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 12px; }

.site-header { border-bottom: 1px solid rgba(0, 0, 0, .08); background: var(--site-color-background); }
.site-header-inner, .site-footer-inner, .b-section-inner { max-width: var(--site-max-width); margin: 0 auto; padding: 0 16px; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; flex-wrap: wrap; }
.site-brand { font-family: var(--site-font-heading); font-size: 1.5rem; font-weight: 600; text-decoration: none; color: var(--site-color-primary); }
.site-brand img { max-height: 56px; display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-nav li { position: relative; }
.site-nav a { text-decoration: none; color: var(--site-color-text); font-weight: 500; }
.site-nav a:hover { color: var(--site-color-primary); }
.site-nav li ul { display: none; position: absolute; top: 100%; left: 0; background: var(--site-color-background); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); padding: 8px 12px; flex-direction: column; min-width: 200px; z-index: 5; }
.site-nav li:hover > ul, .site-nav li:focus-within > ul { display: flex; }

.site-main { min-height: 50vh; }
.site-footer { margin-top: 48px; padding: 32px 0; background: var(--site-color-muted); font-size: .9rem; }
.site-footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-footer p { margin: 0; }

.b-section { padding: 48px 0; background-size: cover; background-position: center; }
.b-bg-muted { background-color: var(--site-color-muted); }
.b-bg-primary { background-color: var(--site-color-primary); color: #fff; }
.b-bg-primary .b-heading { color: #fff; }
.b-bg-accent { background-color: var(--site-color-accent); color: #fff; }
.b-row { display: flex; flex-wrap: wrap; }
.b-gap-none { gap: 0; } .b-gap-sm { gap: 12px; } .b-gap-md { gap: 24px; } .b-gap-lg { gap: 48px; }
.b-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 720px) { .b-row { flex-direction: column; } .b-column { flex-basis: auto !important; } }

.b-image { margin: 0 0 1em; }
.b-align-center { text-align: center; } .b-align-right { text-align: right; }
.b-rounded { border-radius: var(--site-radius); }
.b-gallery { display: grid; grid-template-columns: repeat(var(--b-gallery-columns), minmax(0, 1fr)); gap: 12px; }
.b-gallery figure { margin: 0; }
.b-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--site-radius); }
@media (max-width: 720px) { .b-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.b-button { display: inline-block; text-decoration: none; border-radius: var(--site-radius); font-weight: 600; border: 2px solid var(--site-color-primary); }
.b-button-sm { padding: 6px 14px; font-size: .9rem; } .b-button-md { padding: 10px 22px; } .b-button-lg { padding: 14px 30px; font-size: 1.1rem; }
.b-button-primary { background: var(--site-color-primary); color: #fff; }
.b-button-secondary { background: var(--site-color-accent); border-color: var(--site-color-accent); color: #fff; }
.b-button-outline { background: transparent; color: var(--site-color-primary); }
.b-button-link { border: 0; padding: 0; text-decoration: underline; color: var(--site-color-primary); }
.b-video { position: relative; width: 100%; margin: 0 0 1em; }
.b-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.site-preview-bar { background: #fff3cd; color: #5c4400; text-align: center; padding: 6px 16px; font-size: .9rem; }
.site-consent-link { max-width: var(--site-max-width); margin: 12px auto 0; padding: 0 16px; font-size: .85rem; }
.site-nav-vertical ul { flex-direction: column; }
.b-logo { display: inline-block; font-family: var(--site-font-heading); font-size: 1.5rem; font-weight: 600; text-decoration: none; color: var(--site-color-primary); }
.b-logo img { max-height: 56px; display: block; }
.b-spacer-sm { height: 16px; } .b-spacer-md { height: 32px; } .b-spacer-lg { height: 64px; } .b-spacer-xl { height: 112px; }
