/*
Theme Name: SiteForge Blocksy Child
Theme URI: https://example.com/siteforge
Description: Lightweight design layer for the SiteForge service website. Built for the Blocksy parent theme and the SiteForge Services plugin.
Author: SiteForge
Author URI: https://example.com
Template: blocksy
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: siteforge-blocksy-child
*/

/* The plugin supplies component styles. This file styles the Blocksy shell and editorial details. */

body {
	--sf-navy: #0b1f3a;
	--sf-ink: #0f172a;
	--sf-body: #475569;
	--sf-blue: #1d4ed8;
	--sf-line: #e2e8f0;
	--sf-bg: #f8fafc;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
	color: var(--sf-body);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

body.siteforge {
	background: #fff;
}

/* Header */
.ct-header {
	border-bottom: 1px solid var(--sf-line);
	background: rgba(255, 255, 255, 0.96);
}

.ct-header .site-title {
	color: var(--sf-navy);
	font-size: 1.1rem;
	font-weight: 750;
	letter-spacing: -0.035em;
}

.ct-header .site-description {
	color: var(--sf-muted, #64748b);
	font-size: 0.75rem;
}

.ct-header .ct-menu-link {
	color: var(--sf-ink);
	font-size: 0.88rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.ct-header .ct-menu-link:hover,
.ct-header .current-menu-item > .ct-menu-link {
	color: var(--sf-blue);
}

.ct-header .sf-nav-cta > .ct-menu-link,
.ct-header .sf-nav-cta > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	height: 42px;
	min-height: 42px;
	padding: 0 17px;
	border-radius: 8px;
	background: var(--sf-blue);
	color: #fff !important;
	font-size: 0.86rem;
	font-weight: 650;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.ct-header .sf-nav-cta > .ct-menu-link:hover,
.ct-header .sf-nav-cta > a:hover {
	background: #153eaf;
	color: #fff !important;
	transform: translateY(-1px);
}

.ct-header .sf-menu-lang > a {
	display: none;
}

.ct-header .sf-lang-switch {
	margin-left: 8px;
}

.ct-header [data-id="search"] .ct-icon {
	width: 16px;
	height: 16px;
}

/* Header mobile */
.ct-header .ct-toggle {
	color: var(--sf-navy);
}

.ct-header .mobile-menu .sf-nav-cta > a,
.ct-header .mobile-menu .sf-nav-cta > .ct-menu-link {
	display: flex;
	width: 100%;
	height: 42px;
	margin: 8px 0;
	color: #fff !important;
}

/* Typography in editorial content */
.entry-content h1,
.entry-content h2,
.entry-content h3 {
	color: var(--sf-navy);
	letter-spacing: -0.03em;
}

.entry-content a {
	text-underline-offset: 3px;
}

.sf-page-shell .entry-content {
	margin-top: 0;
}

/* WordPress native headings in policy pages */
.page-template-default .entry-header,
.page .entry-header {
	padding-top: 28px;
}

.page .entry-content > h2 {
	margin-top: 38px;
}

/* Footer */
.ct-footer,
.site-footer {
	background: var(--sf-navy) !important;
	padding: 26px 0 !important;
	color: #cbd5e1;
	font-size: 0.85rem;
}

.ct-footer a,
.site-footer a {
	color: #dbeafe;
	text-decoration: none;
}

.ct-footer a:hover,
.site-footer a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ct-footer .ct-footer-copyright {
	border-top: 0;
	color: #94a3b8;
}

.ct-footer .sf-footer-sep {
	margin: 0 4px;
	color: #475569;
}

.ct-footer .widget-title,
.ct-footer h2,
.ct-footer h3 {
	color: #fff;
	font-size: 0.95rem;
}

/* Block editor should look close to the front end. */
.editor-styles-wrapper {
	--sf-navy: #0b1f3a;
	--sf-blue: #1d4ed8;
	--sf-line: #e2e8f0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.editor-styles-wrapper .sf-btn .wp-block-button__link {
	border-radius: 9px;
	font-weight: 650;
}

.editor-styles-wrapper .sf-hero-title {
	font-size: clamp(2.4rem, 5vw, 4rem);
	letter-spacing: -0.05em;
	line-height: 1.05;
}

.editor-styles-wrapper .sf-eyebrow {
	color: var(--sf-blue);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* Small screens */
@media (max-width: 640px) {
	.ct-header .site-title {
		font-size: 1rem;
	}

	.ct-footer {
		font-size: 0.82rem;
	}
}
