/* ============================================================
   iowindows theme — design system
   Palette: navy #0a2540 · blue #1e6fd9 · sky #eaf2fb · ink #101828
   Type: Manrope
   ============================================================ */

:root {
	--navy: #0a2540;
	--navy-2: #123a63;
	--blue: #1e6fd9;
	--blue-2: #1a5fc0;
	--sky: #eaf2fb;
	--sky-2: #f6faff;
	--ink: #101828;
	--mut: #5b6b7e;
	--line: #dbe4ef;
	--good: #0c7a43;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(16, 40, 74, 0.1);
	--font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16.5px;
	line-height: 1.65;
	color: var(--ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; color: var(--navy); margin: 0 0 0.5em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; z-index: 999; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* buttons */
.btn {
	display: inline-block; border: 0; border-radius: 12px; cursor: pointer;
	padding: 12px 22px; font: inherit; font-weight: 700; font-size: 15.5px;
	text-decoration: none !important; transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-cta { background: var(--blue); color: #fff !important; }
.btn-cta:hover { background: var(--blue-2); box-shadow: 0 8px 22px rgba(30, 111, 217, 0.35); }
.btn-ghost { background: transparent; color: var(--navy) !important; border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); }

/* ---------- header ---------- */
.topbar {
	background: var(--navy); color: #cfe0f5; text-align: center;
	font-size: 13px; font-weight: 600; padding: 7px 16px; letter-spacing: 0.01em;
}
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(16, 40, 74, 0.1); }
.header-inner { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand-mark { width: 34px; height: 34px; }
.brand-word { font-size: 22px; font-weight: 500; color: var(--navy); letter-spacing: -0.01em; }
.brand-word strong { font-weight: 800; }
.brand-word-light { color: #fff; font-size: 24px; }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a {
	display: block; padding: 8px 13px; border-radius: 9px;
	color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none !important;
}
.site-nav a:hover { background: var(--sky); color: var(--navy); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-link { position: relative; display: inline-flex; color: var(--navy); padding: 6px; }
.cart-link svg { width: 24px; height: 24px; }
.cart-count {
	position: absolute; top: -2px; right: -5px;
	background: var(--blue); color: #fff; font-size: 11px; font-weight: 800;
	min-width: 18px; height: 18px; border-radius: 99px;
	display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: 0.2s; }

@media (max-width: 980px) {
	.nav-toggle { display: block; }
	.header-cta { display: none; }
	.site-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
		padding: 10px 20px 18px;
	}
	.site-nav.open { display: block; }
	.site-nav ul { flex-direction: column; gap: 2px; }
	.site-nav a { padding: 12px 10px; font-size: 17px; }
}

/* ---------- hero ---------- */
.hero { background: linear-gradient(165deg, var(--sky-2) 0%, var(--sky) 55%, #dcebfa 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 84px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12.5px; font-weight: 800; color: var(--blue); margin: 0 0 14px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 58px); letter-spacing: -0.02em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-sub { font-size: 19px; color: var(--mut); max-width: 34em; margin: 0 0 26px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hero-points li { padding-left: 28px; position: relative; font-weight: 600; font-size: 15px; color: var(--navy); }
.hero-points li::before {
	content: "✓"; position: absolute; left: 0; top: -1px;
	width: 20px; height: 20px; border-radius: 50%; background: var(--good); color: #fff;
	font-size: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}

.hero-art { position: relative; height: 380px; }
.hero-window {
	position: absolute; border-radius: 10px; background: #fff;
	border: 10px solid #fff; box-shadow: 0 30px 60px rgba(10, 37, 64, 0.25);
}
.hw-glass { width: 100%; height: 100%; background: linear-gradient(135deg, #bcd9f5 0%, #e4f0fc 45%, #cfe4f8 100%); border-radius: 3px; position: relative; overflow: hidden; }
.hw-glass::after { content: ""; position: absolute; top: -20%; left: 15%; width: 18%; height: 140%; background: rgba(255, 255, 255, 0.55); transform: rotate(20deg); }
.hw-rail { position: absolute; left: 0; right: 0; top: 50%; height: 9px; margin-top: -4.5px; background: #fff; }
.hw-1 { width: 215px; height: 300px; left: 8%; top: 24px; transform: rotate(-3deg); }
.hw-2 { width: 170px; height: 240px; right: 6%; bottom: 10px; transform: rotate(4deg); border-color: #0a2540; background: #0a2540; }
.hw-2 .hw-rail { background: #0a2540; }
.hero-badge {
	position: absolute; left: 42%; bottom: 34px;
	background: #fff; border-radius: 16px; box-shadow: var(--shadow);
	padding: 14px 22px; text-align: center; display: grid; gap: 0;
	transform: rotate(-2deg);
}
.hero-badge span { font-size: 12px; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-badge strong { font-size: 30px; font-weight: 800; color: var(--navy); line-height: 1.1; }

@media (max-width: 900px) {
	.hero-inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 40px; }
	.hero-art { display: none; }
}

/* ---------- trust bar ---------- */
.trustbar { background: var(--navy); color: #fff; }
.trustbar-inner {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
	padding-top: 22px; padding-bottom: 22px; text-align: center;
}
.trustbar-inner div { display: grid; gap: 2px; }
.trustbar-inner strong { font-size: 17px; }
.trustbar-inner span { font-size: 13px; color: #9fb8d4; }
@media (max-width: 800px) { .trustbar-inner { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--sky-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-h { font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -0.015em; text-align: center; }
.section-sub { text-align: center; color: var(--mut); font-size: 17.5px; max-width: 44em; margin: 0 auto 40px; }

/* window style cards */
.win-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.win-card {
	display: flex; flex-direction: column; background: #fff;
	border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
	text-decoration: none !important; color: inherit;
	transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.win-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue); }
.win-card-art {
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(160deg, var(--sky), #dcebfa); padding: 26px 0 20px;
	color: var(--navy);
}
.win-svg { width: 74px; height: 88px; }
.win-card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px; flex: 1; }
.win-card-name { font-weight: 800; color: var(--navy); font-size: 17.5px; }
.win-card-desc { color: var(--mut); font-size: 14px; line-height: 1.5; flex: 1; }
.win-card-from { font-weight: 800; color: var(--navy); font-size: 15px; }
.win-card-cta { color: var(--blue); font-weight: 700; font-size: 14px; }
.win-card:hover .win-card-cta { text-decoration: underline; }

/* how it works */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step-num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff;
	font-weight: 800; font-size: 18px; margin-bottom: 14px;
}
.step-card h3 { font-size: 19px; }
.step-card p { color: var(--mut); font-size: 15px; margin: 0; }
@media (max-width: 800px) { .steps-grid { grid-template-columns: 1fr; } }

/* series cards */
.series-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.series-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.series-card h3 { font-size: 20px; margin: 10px 0 4px; }
.series-card > p { color: var(--mut); font-size: 14.5px; min-height: 3em; }
.series-card ul { margin: 0; padding-left: 20px; color: var(--mut); font-size: 14px; display: grid; gap: 6px; }
.series-tier {
	font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
	padding: 4px 12px; border-radius: 99px; background: var(--sky); color: var(--navy);
}
.series-potomac-hp { border: 2px solid var(--navy); box-shadow: var(--shadow); }
.series-potomac-hp .series-tier { background: var(--navy); color: #fff; }
.series-fortis .series-tier { background: #e5f0ff; color: var(--blue); }
@media (max-width: 800px) { .series-grid { grid-template-columns: 1fr; } }

/* audience */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.aud-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.aud-card h3 { font-size: 19px; }
.aud-card p { color: var(--mut); font-size: 15px; }
.aud-card a { font-weight: 700; font-size: 15px; }
@media (max-width: 800px) { .audience-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy), #14406e); color: #fff; }
.cta-band-inner { text-align: center; padding: 72px 22px; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); }
.cta-band p { color: #b9cee6; font-size: 17px; margin: 0 0 26px; }

/* ---------- inner pages ---------- */
.page-hero { background: linear-gradient(160deg, var(--sky-2), var(--sky)); border-bottom: 1px solid var(--line); }
.page-hero h1 { padding: 54px 0; margin: 0; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.015em; }
.page-body { padding: 48px 22px 84px; }
.entry-content > p, .entry-content > ul, .entry-content > ol,
.entry-content > h2, .entry-content > h3, .entry-content > blockquote,
.entry-content > table { max-width: 800px; }
.entry-content h2 { margin-top: 1.6em; font-size: 27px; }
.entry-content h3 { margin-top: 1.4em; font-size: 20px; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; font-size: 15px; }
.entry-content th { background: var(--sky-2); color: var(--navy); }
.entry-content .wp-block-details, .entry-content details {
	max-width: 800px; border: 1px solid var(--line); border-radius: 12px;
	padding: 4px 20px; margin: 0 0 12px; background: #fff;
}
.entry-content summary { font-weight: 700; color: var(--navy); cursor: pointer; padding: 12px 0; }

/* ---------- WooCommerce polish ---------- */
.woo-body { min-height: 50vh; }
.woocommerce-message, .wc-block-components-notice-banner.is-success { border-color: var(--good); }
.wp-block-woocommerce-cart .wc-block-components-product-details,
.wc-block-components-product-details { font-size: 13px; }
.wc-block-components-product-details__name { color: var(--mut); }
button.wc-block-components-button, .wc-block-components-button:not(.is-link) {
	background: var(--blue); border-radius: 12px; font-weight: 700;
}
button.wc-block-components-button:hover { background: var(--blue-2); }
.wc-block-components-checkout-place-order-button { background: var(--blue) !important; }
.woocommerce-info { border-top-color: var(--blue); }
.woocommerce .button, .woocommerce a.button, .woocommerce button.button {
	background: var(--blue); color: #fff; border-radius: 12px; font-weight: 700;
}
.woocommerce .button:hover, .woocommerce a.button:hover { background: var(--blue-2); color: #fff; }

/* posts fallback */
.post-teaser { margin-bottom: 36px; }
