/*
Theme Name: Sofia Gapasin Consulting
Theme URI: https://sofiagapasin.com
Description: Custom block theme for Sofia Gapasin Consulting LLC — CNA preparation and consulting service.
Author: Sofia Gapasin Consulting LLC
Author URI: https://sofiagapasin.com
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sofiagapasin
*/

/* ── Smooth scroll ── */
html {
	scroll-behavior: smooth;
}

/* ── Reset parent overrides ── */
body {
	-webkit-font-smoothing: antialiased;
}

/* Remove default block gap between top-level site blocks */
.wp-site-blocks > * {
	margin-top: 0 !important;
}

/* Ensure footer is never cut off */
html,
body {
	height: auto !important;
	min-height: 0 !important;
	overflow-x: hidden;
}

.wp-site-blocks {
	min-height: auto !important;
	overflow: visible !important;
	padding-bottom: 0 !important;
}

footer.wp-block-template-part {
	display: block !important;
	overflow: visible !important;
}

/* ── Fixed Navbar ── */
.sg-navbar {
	position: fixed !important;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	z-index: 100;
	background: rgba(248, 250, 252, 0.8) !important;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border-bottom: 1px solid rgba(241, 245, 249, 0.5);
}

.sg-navbar-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 16px 32px;
}

figure.sg-navbar-logo {
	margin: 0;
}

.sg-navbar-logo img {
	width: 40px;
	height: 40px;
}

p.sg-navbar-brand-name {
	margin: 0;
}

/* Navbar action buttons */
.sg-btn-call-now {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: #991b1b;
	text-decoration: none;
}

.sg-btn-call-now img {
	width: 13.5px;
	height: 13.5px;
}

.sg-btn-email-nav {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: #991b1b;
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: #fff;
	text-decoration: none;
	transition: background 0.2s;
}

.sg-btn-email-nav:hover {
	background: #7f1d1d;
	color: #fff;
}

.sg-btn-email-nav img {
	width: 13.333px;
	height: 10.667px;
}

/* ── Remove gap between full-width sections ── */
.sg-hero + .sg-services,
.sg-services + .sg-footer-cta {
	margin-top: 0 !important;
}

/* ── Hero Section ── */
.sg-hero {
	padding-top: 176px !important;
	padding-bottom: 97px !important;
	background: #fff;
	border-bottom: 1px solid #f3f4f6;
}

.sg-hero-heading .sg-line-red {
	display: block;
	font-family: 'Playfair Display', serif;
	font-weight: 700;
	font-size: 60px;
	line-height: 60px;
	letter-spacing: -1.5px;
	color: #f43f3f;
}

.sg-hero-heading .sg-line-dark {
	display: block;
	font-family: 'Playfair Display', serif;
	font-weight: 700;
	font-size: 60px;
	line-height: 60px;
	letter-spacing: -1.5px;
	color: #1e1b4b;
}

.sg-hero-description {
	font-size: 20px;
	line-height: 28px;
	color: #4b5563;
	max-width: 576px;
}

/* Hero contact cards */
.sg-contact-card {
	display: flex;
	align-items: center;
	padding: 17px;
	background: #fff;
	border: 1px solid #f3f4f6;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	text-decoration: none;
	color: inherit;
	gap: 12px;
}

.sg-contact-card-icon img {
	width: 20px;
	height: 16px;
}

.sg-contact-card-icon.sg-phone img {
	width: 18px;
	height: 18px;
}

.sg-contact-card-label {
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	color: #6b7280;
}

.sg-contact-card-value {
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 24px;
	color: #1e1b4b;
}

/* Hero image with navy overlay */
.sg-hero-image {
	position: relative;
	width: 448px;
	max-width: 100%;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

figure.sg-hero-image {
	margin: 0;
}

.sg-hero-image img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	display: block;
}

.sg-hero-image::after {
	content: '';
	position: absolute;
	inset: 0;
	background: #1e1b4b;
	opacity: 0.2;
	mix-blend-mode: multiply;
	pointer-events: none;
}

/* Service icon styling inside wp:image figure */
.sg-service-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	border-radius: 6px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
	margin: 0;
}

figure.sg-service-icon img {
	width: 22px;
	height: 20px;
	object-fit: contain;
}

.sg-service-icon--navy { background: #1e1b4b; }
.sg-service-icon--red { background: #f43f3f; }
.sg-service-icon--tan { background: #d6b4a6; }

/* Contact card icon figure */
figure.sg-contact-card-icon {
	margin: 0;
	flex-shrink: 0;
}

/* ── Services Section ── */
.sg-services {
	background: #fff;
	border-bottom: 1px solid #f3f4f6;
	padding-top: 64px !important;
	padding-bottom: 65px !important;
}

.sg-services-label {
	font-family: 'Playfair Display', serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: #f43f3f;
}

.sg-services-subtitle {
	font-size: 20px;
	line-height: 28px;
	color: #4b5563;
	max-width: 672px;
}

/* Service cards with floating icon */
.sg-service-card {
	padding-top: 24px;
}

.sg-service-card-inner {
	position: relative;
	background: #f9fafb;
	border: 1px solid #f3f4f6;
	border-radius: 8px;
	min-height: 234px;
}

.sg-service-card-content {
	position: absolute;
	top: -24px;
	left: 24px;
	right: 24px;
}

.sg-service-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 12px;
	border-radius: 6px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.sg-service-icon--navy { background: #1e1b4b; }
.sg-service-icon--red { background: #f43f3f; }
.sg-service-icon--tan { background: #d6b4a6; }

.sg-service-icon img {
	width: 22px;
	height: 20px;
	object-fit: contain;
}

.sg-service-card-title {
	font-family: 'Playfair Display', serif;
	font-size: 18px;
	line-height: 28px;
	letter-spacing: -0.45px;
	color: #111827;
	margin-top: 32px;
}

.sg-service-card-desc {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	line-height: 24px;
	color: #4b5563;
	margin-top: 20px;
}

/* ── Footer CTA ── */
.sg-footer-cta {
	background: #f9fafb;
	border-top: 1px solid #e5e7eb;
	padding-top: 64px !important;
	padding-bottom: 64px !important;
}

.sg-footer-cta-heading .sg-line-dark {
	font-family: 'Playfair Display', serif;
	font-weight: 700;
	font-size: 36px;
	line-height: 40px;
	letter-spacing: -0.9px;
	color: #111827;
}

.sg-footer-cta-heading .sg-line-red {
	font-family: 'Playfair Display', serif;
	font-weight: 700;
	font-size: 36px;
	line-height: 40px;
	letter-spacing: -0.9px;
	color: #f43f3f;
}

/* CTA buttons */
.sg-btn-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 21px;
	border-radius: 6px;
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 24px;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background 0.2s;
}

.sg-btn-cta--primary {
	background: #f43f3f;
	color: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.sg-btn-cta--primary:hover {
	background: #dc2626;
	color: #fff;
}

.sg-btn-cta--primary img {
	width: 18px;
	height: 18px;
}

.sg-btn-cta--secondary {
	background: #fff;
	color: #1e1b4b;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.sg-btn-cta--secondary:hover {
	background: #f9fafb;
	color: #1e1b4b;
}

.sg-btn-cta--secondary img {
	width: 20px;
	height: 16px;
}

/* ── Footer Bottom ── */
.sg-footer-bottom {
	border-top: 1px solid #e5e7eb;
	padding: 25px 32px 24px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
	.sg-hero-columns {
		flex-direction: column !important;
	}

	.sg-hero-columns > * {
		flex-basis: 100% !important;
	}

	.sg-services-grid {
		grid-template-columns: 1fr 1fr !important;
	}
}

@media (max-width: 768px) {
	.sg-navbar-links {
		display: none !important;
	}

	.sg-hero {
		padding: 120px 20px 60px !important;
	}

	.sg-hero-heading .sg-line-red,
	.sg-hero-heading .sg-line-dark {
		font-size: 40px;
		line-height: 44px;
	}

	.sg-hero-description {
		font-size: 18px;
	}

	.sg-hero-cards {
		flex-direction: column !important;
	}

	.sg-hero-image {
		width: 100%;
	}

	.sg-services-grid {
		grid-template-columns: 1fr !important;
	}

	.sg-services-title {
		font-size: 28px;
		line-height: 34px;
	}

	.sg-footer-cta-inner {
		flex-direction: column !important;
		flex-wrap: wrap !important;
		gap: 32px;
		text-align: center;
	}

	.sg-footer-cta-buttons {
		flex-direction: column !important;
		flex-wrap: wrap !important;
		width: 100%;
	}

	.sg-footer-cta-heading .sg-line-dark,
	.sg-footer-cta-heading .sg-line-red {
		font-size: 28px;
		line-height: 34px;
	}
}
