/* ============================
   SBR Theme — Global Styles
   Minimal global only. Per-block styles live in sbr-blocks plugin.
   ============================ */

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--background);
	-webkit-font-smoothing: antialiased;
}

img, video, picture { max-width: 100%; height: auto; display: block; }

/* Skip link (accessibility) */
.skip-link {
	position: absolute;
	right: 8px;
	top: 8px;
	padding: 8px 16px;
	background: var(--wp--preset--color--primary);
	color: #fff;
	z-index: 100000;
}
.skip-link:focus { right: 8px; }

/* Site header */
.site-header { background: var(--wp--preset--color--surface); border-bottom: 1px solid var(--wp--preset--color--border); }
.site-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.site-title { font-family: var(--wp--preset--font-family--heading); font-size: 20px; font-weight: 700; text-decoration: none; color: inherit; }
.main-menu { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.main-menu a { text-decoration: none; color: var(--wp--preset--color--text); font-weight: 500; }
.main-menu a:hover { color: var(--wp--preset--color--primary-dark); }

/* Main */
.site-main { max-width: 1200px; margin: 0 auto; padding: 48px 24px; }

/* Buttons */
.btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.15s, transform 0.15s;
	border: 0;
	cursor: pointer;
}
.btn--primary { background: var(--wp--preset--color--primary); color: #fff; }
.btn--primary:hover { opacity: 0.9; }
.btn--large { padding: 16px 32px; font-size: 18px; }

/* Footer base */
.site-footer { background: var(--wp--preset--color--surface); border-top: 1px solid var(--wp--preset--color--border); margin-top: 64px; }
.site-footer__inner { max-width: 1200px; margin: 0 auto; padding: 48px 24px; }
.site-footer--full .site-footer__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.site-footer__heading { font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 12px; color: var(--wp--preset--color--text-muted); }
.site-footer__col p { margin: 0 0 8px; }
.site-footer__col a { color: inherit; text-decoration: none; }
.site-footer__col a:hover { color: var(--wp--preset--color--primary); }
.footer-menu, .legal-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li, .legal-menu li { margin: 4px 0; }
.social-links { list-style: none; display: flex; gap: 16px; justify-content: center; padding: 16px 24px 0; margin: 0; }
.social-links a { color: var(--wp--preset--color--primary-dark); text-decoration: none; }
.site-footer__copy { padding: 16px 24px; text-align: center; color: var(--wp--preset--color--text-muted); font-size: 14px; border-top: 1px solid var(--wp--preset--color--border); margin-top: 24px; }
.site-footer--minimal .site-footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer--minimal .site-footer__copy { border: 0; margin: 0; padding: 0; text-align: right; }
.site-footer--minimal .legal-menu { display: flex; gap: 16px; }
.site-footer--cta .site-footer__cta-band { background: var(--wp--preset--color--primary); color: #fff; padding: 64px 24px; text-align: center; }
.site-footer--cta .site-footer__cta-title { font-size: 36px; margin: 0 0 8px; color: #fff; }
.site-footer--cta .site-footer__cta-subtitle { font-size: 18px; opacity: 0.9; margin: 0 0 24px; }
.site-footer--cta .btn--primary { background: #fff; color: var(--wp--preset--color--primary); }
.site-footer--cta .site-footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer--cta .site-footer__phone a { color: var(--wp--preset--color--primary-dark); font-weight: 700; text-decoration: none; font-size: 20px; }

/* 404 */
.error-404 { text-align: center; padding: 64px 24px; }
.error-404__code { font-size: 120px; font-weight: 800; color: var(--wp--preset--color--primary); margin: 0; line-height: 1; }
.error-404__title { font-size: 32px; margin: 16px 0; }
.error-404__message { font-size: 18px; color: var(--wp--preset--color--text-muted); margin-bottom: 32px; }
.error-404__search { max-width: 480px; margin: 0 auto 48px; }
.error-404__search input[type="search"] { width: 100%; padding: 12px 16px; border: 1px solid var(--wp--preset--color--border); border-radius: 8px; font-size: 16px; }
.error-404__links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.error-404__links a { color: var(--wp--preset--color--primary); text-decoration: none; padding: 8px 16px; border: 1px solid var(--wp--preset--color--border); border-radius: 8px; }
.error-404__links a:hover { background: var(--wp--preset--color--background); }
.error-404__cta { margin-top: 48px; }

/* Entry content */
.entry-header { margin-bottom: 24px; }
.entry-title { font-size: 36px; margin: 0 0 8px; }
.entry-meta { color: var(--wp--preset--color--text-muted); font-size: 14px; }
.entry-image { margin: 0 0 32px; border-radius: 12px; overflow: hidden; }
.entry-content > * { margin-bottom: 1.2em; }

/* Accessibility */
.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	overflow: hidden;
	white-space: nowrap;
}
.screen-reader-text:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	display: block;
	padding: 8px 16px;
	background: #fff;
}
