/*
Theme Name: Fasthuma IT
Theme URI: https://msp.fasthuma.com/
Author: Fasthuma Enterprises Inc.
Author URI: https://msp.fasthuma.com/
Description: Lightweight block theme for Fasthuma IT Solutions & MSP. Native WordPress blocks only, no page builder.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.5.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fasthuma-it
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
:where([id]) { scroll-margin-top: 96px; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }

.fh-eyebrow {
	font-family: var(--wp--preset--font-family--brand);
	font-size: 0.85rem;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--orange-deep);
	margin-bottom: 0.5rem !important;
}
.fh-lead { font-size: var(--wp--preset--font-size--medium); color: var(--wp--preset--color--muted); }
.fh-section { padding: clamp(3rem, 7vw, 6rem) 1.25rem; }
.fh-section--tint { background: var(--wp--preset--color--mist); }
.fh-section--dark { background: var(--wp--preset--color--charcoal); color: #fff; }
.fh-section--dark :where(h1, h2, h3, h4) { color: #fff; }
.fh-section--dark .fh-lead { color: #C9C7C3; }
.fh-section--dark .fh-eyebrow { color: var(--wp--preset--color--orange); }
.fh-center { text-align: center; }
.fh-center .wp-block-buttons { justify-content: center; }

/* ---------- Header ---------- */
.fh-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 0.75rem 1.25rem;
}
.admin-bar .fh-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .fh-header { top: 0; } }
.fh-header__inner { gap: 1rem; }
.fh-brand { gap: 0.6rem; }
.fh-brand .wp-block-site-title { font-size: 1.05rem; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
.fh-brand .wp-block-site-title a { color: var(--wp--preset--color--charcoal); text-decoration: none; }
.fh-nav { font-size: 0.95rem; font-weight: 600; }
.fh-nav a { text-decoration: none; }
.fh-nav a:hover { color: var(--wp--preset--color--orange); }
.fh-header-actions { gap: 0.5rem; }
.fh-header-actions .wp-block-button__link { padding: 0.55rem 1rem; font-size: 0.9rem; }
@media (max-width: 900px) {
	.fh-header-actions .fh-btn-portal { display: none; }
}

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid currentColor;
	background: transparent;
	color: var(--wp--preset--color--orange-deep);
}
.fh-section--dark .wp-block-button.is-style-outline > .wp-block-button__link,
.fh-hero .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; }
.wp-block-button__link { transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(43, 42, 41, 0.18); }

/* ---------- Hero ---------- */
.fh-hero {
	background:
		radial-gradient(1200px 500px at 85% -10%, rgba(255, 126, 0, 0.28), transparent 60%),
		radial-gradient(900px 500px at -10% 110%, rgba(109, 108, 106, 0.45), transparent 60%),
		var(--wp--preset--color--charcoal);
	color: #fff;
	padding: clamp(3.5rem, 9vw, 7rem) 1.25rem;
}
.fh-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.12; letter-spacing: -0.02em; }
.fh-hero .fh-lead { color: #C9C7C3; }
.fh-hero .fh-eyebrow { color: var(--wp--preset--color--orange); }
.fh-hero .wp-block-image img { border-radius: 16px; }
.fh-page-hero { padding: clamp(3rem, 7vw, 5rem) 1.25rem; }
.fh-page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.15; }

/* ---------- Cards ---------- */
.fh-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	padding: 1.75rem;
	height: 100%;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.fh-card:hover { border-color: var(--wp--preset--color--orange); box-shadow: 0 10px 30px rgba(43, 42, 41, 0.08); transform: translateY(-2px); }
.fh-card h3 { font-size: 1.15rem; margin-top: 0; }
.fh-card p { color: var(--wp--preset--color--muted); }
.fh-card .fh-more { margin-top: 1rem; font-weight: 700; }
.fh-card .fh-more a { text-decoration: none; }
.fh-card::before {
	content: "";
	display: block;
	width: 36px;
	height: 4px;
	border-radius: 4px;
	background: var(--wp--preset--color--orange);
	margin-bottom: 1rem;
}

/* ---------- Media ---------- */
.fh-rounded img { border-radius: 16px; }

/* ---------- Definitions (What is Fasthuma) ---------- */
.fh-def {
	border-left: 4px solid var(--wp--preset--color--orange);
	padding: 0.25rem 0 0.25rem 1.25rem;
}
.fh-def h3 { margin: 0 0 0.35rem; }
.fh-def p { margin: 0; color: var(--wp--preset--color--muted); }

/* ---------- Testimonial ---------- */
.fh-quote {
	border: 0;
	padding: 0;
	margin: 0;
}
.fh-quote p { font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.6; }
.fh-quote cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 700; color: var(--wp--preset--color--charcoal); }
.fh-avatar img { border-radius: 50%; width: 120px; height: 120px; object-fit: cover; }

/* ---------- Client logos ---------- */
.fh-logos { align-items: center; }
.fh-logos .wp-block-image { margin: 0; text-align: center; }
.fh-logos .wp-block-image img {
	max-height: 64px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.75;
	transition: filter 0.2s ease, opacity 0.2s ease;
}
.fh-logos .wp-block-image img:hover { filter: none; opacity: 1; }

/* ---------- Article (service pages) ---------- */
.fh-article h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.fh-article h3 { font-size: 1.15rem; margin-top: 1.75rem; margin-bottom: 0.35rem; }
.fh-article p, .fh-article li { font-size: 1.05rem; line-height: 1.75; }
.fh-article ul { padding-left: 1.25rem; }
.fh-article li { margin-bottom: 0.6rem; }

/* ---------- Contact ---------- */
.fh-contact-list p { margin: 0 0 0.75rem; }
.fh-contact-list strong { color: var(--wp--preset--color--charcoal); }
.fh-map iframe { width: 100%; min-height: 340px; border: 0; border-radius: 14px; display: block; }

/* ---------- Footer ---------- */
.fh-footer {
	background: var(--wp--preset--color--charcoal);
	color: #C9C7C3;
	padding: 4rem 1.25rem 2rem;
	font-size: 0.95rem;
}
.fh-footer :where(h2, h3, h4) { color: #fff; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.fh-footer a { color: #fff; text-decoration: none; }
.fh-footer a:hover { color: #FF9A3C; }
.fh-footer .wp-block-site-title { font-size: 1.15rem; font-weight: 800; }
.fh-footer ul { list-style: none; padding: 0; margin: 0; }
.fh-footer li { margin-bottom: 0.5rem; }
.fh-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	font-size: 0.85rem;
}

/* ---------- Brand logo ---------- */
.fh-logo img { display: block; height: 52px; width: auto; }
@media (max-width: 600px) { .fh-logo img { height: 40px; } }
.fh-footer .fh-logo img { height: 60px; }
.fh-wordmark { font-family: var(--wp--preset--font-family--brand); letter-spacing: 0.08em; text-transform: uppercase; }

/* Orange accent line under section headings */
.fh-center h2::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	border-radius: 4px;
	background: var(--wp--preset--color--orange);
	margin: 0.9rem auto 0;
}
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { color: var(--wp--preset--color--charcoal); }

/* ---------- Layout fixes ---------- */
.wp-site-blocks > main, .wp-site-blocks > footer { margin-block-start: 0; }
main > .alignfull:first-child { margin-top: 0; }
main > * + * { margin-block-start: 0; }
.fh-card h3 a { color: var(--wp--preset--color--charcoal); text-decoration: none; }
.fh-card h3 a:hover { color: var(--wp--preset--color--orange-deep); }
@media (max-width: 600px) {
	.fh-header__inner { flex-wrap: nowrap !important; }
	.fh-header .fh-logo img { height: 34px; }
	.fh-header-actions .wp-block-button__link { padding: 0.45rem 0.7rem; font-size: 0.85rem; }
}

/* ---------- Photos ---------- */
.fh-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; box-shadow: 0 18px 40px rgba(43, 42, 41, 0.18); }
.fh-banner img { aspect-ratio: 2 / 1; }
.fh-hero .fh-photo img { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); border: 3px solid rgba(255, 126, 0, 0.55); }
.fh-article .fh-banner { margin-top: 0; margin-bottom: 2.5rem; }

/* ---------- Process + MSP band ---------- */
.fh-step::before { display: none; }
.fh-step-num {
	width: 44px; height: 44px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--wp--preset--color--orange); color: var(--wp--preset--color--ink);
	font-weight: 800; font-size: 1.1rem; margin: 0 0 0.75rem;
}
.fh-msp-band { gap: 1.5rem; }
.fh-msp-band::before { display: none; }
.fh-msp-band h3 { margin-top: 0; }
.fh-msp-band p { margin-bottom: 0; max-width: 640px; }

/* ---------- Service icons ---------- */
.fh-card--icon::before { display: none; }
.fh-icon { margin: 0 0 1rem; }
.fh-icon img { width: 56px; height: 56px; display: block; }
.fh-card--icon:hover .fh-icon img { transform: translateY(-2px); transition: transform 0.15s ease; }
.wp-site-blocks main > * + *, .wp-site-blocks main > .alignfull + .alignfull { margin-block-start: 0; }

/* ---------- v1.4: single-page conversion layout ---------- */
.fh-hero-proof { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; color: #C9C7C3; font-size: 0.95rem; }
.fh-hero-proof li { position: relative; padding-left: 1.6rem; margin: 0; }
.fh-hero-proof li::before {
	content: ""; position: absolute; left: 0; top: 0.3em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
	background: var(--wp--preset--color--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23232221' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.fh-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }

.fh-trust { background: #fff; border-bottom: 1px solid var(--wp--preset--color--line); padding: 2rem 1.25rem 2.25rem; }
.fh-trust__label { text-align: center; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin: 0 0 1.25rem; }
.fh-trust .fh-logos .wp-block-image img { max-height: 48px; }

.fh-pains { list-style: none; padding: 0; margin: 1.5rem 0; }
.fh-pains li { position: relative; padding: 0 0 1rem 2rem; margin: 0; color: var(--wp--preset--color--muted); }
.fh-pains li strong { color: var(--wp--preset--color--charcoal); }
.fh-pains li::before {
	content: "!"; position: absolute; left: 0; top: 0.1em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
	display: grid; place-items: center; font-size: 0.8rem; font-weight: 800;
	background: #FDE7D3; color: var(--wp--preset--color--orange-deep);
}
.fh-why-title { margin-top: 0; }
.fh-reason::before { width: 28px; }
.fh-reason h3 { font-size: 1.05rem; }

.fh-faq { border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: 0; margin: 0 0 0.75rem; background: #fff; }
.fh-faq summary { cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.25rem; font-weight: 700; color: var(--wp--preset--color--charcoal); position: relative; }
.fh-faq summary::-webkit-details-marker { display: none; }
.fh-faq summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--wp--preset--color--orange-deep); }
.fh-faq[open] summary::after { content: "−"; }
.fh-faq > p { padding: 0 1.25rem 1.1rem; margin: 0; color: var(--wp--preset--color--muted); }

/* Header actions */
.fh-header-actions .fh-btn-phone .wp-block-button__link { color: var(--wp--preset--color--charcoal); }
@media (max-width: 600px) { .fh-header-actions .fh-btn-cta { display: none; } }

/* Accessibility */
:where(a, button, summary, .wp-block-button__link):focus-visible { outline: 3px solid var(--wp--preset--color--orange); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Partners ---------- */
.fh-partners { gap: 1rem; }
.fh-partner {
	margin: 0; display: grid; place-items: center; min-height: 76px; padding: 0.75rem;
	background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 12px;
	font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; text-align: center;
	color: var(--wp--preset--color--granite);
}

/* ---------- Pricing ---------- */
.fh-price::before { display: none; }
.fh-price { display: flex; flex-direction: column; }
.fh-price h3 { margin-bottom: 0.25rem; }
.fh-price__desc { font-size: 0.95rem; min-height: 4.5em; }
.fh-price__rates { gap: 0.75rem; margin-top: auto; }
.fh-rate { margin: 0; padding: 0.9rem 0.75rem; border-radius: 10px; background: var(--wp--preset--color--mist); text-align: center; display: flex; flex-direction: column; gap: 0.15rem; }
.fh-rate__label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wp--preset--color--muted); }
.fh-rate__amount { font-size: 1.7rem; font-weight: 800; color: var(--wp--preset--color--charcoal); line-height: 1.1; }
.fh-rate__unit { font-size: 0.8rem; color: var(--wp--preset--color--muted); }
.fh-price-note { max-width: 760px; margin: 2rem auto 1.5rem; text-align: center; font-size: 0.9rem; color: var(--wp--preset--color--muted); }
