/**
 * Frameboard — mobile-first styles
 *
 * @package Frameboard
 */

:root {
	--fb-bg: #eef3f7;
	--fb-surface: #ffffff;
	--fb-ink: #0b1f33;
	--fb-muted: #5a6d7e;
	--fb-line: #d4dee8;
	--fb-teal: #0d8a8a;
	--fb-teal-dark: #0a6b6b;
	--fb-coral: #e85d4c;
	--fb-coral-soft: #fff0ee;
	--fb-amber: #e8a838;
	--fb-radius: 14px;
	--fb-radius-sm: 10px;
	--fb-shadow: 0 14px 40px rgba(11, 31, 51, 0.1);
	--fb-font: "Sora", "Segoe UI", sans-serif;
	--fb-display: "Fraunces", Georgia, serif;
	--fb-max: 1120px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--fb-font);
	font-size: 16px;
	line-height: 1.55;
	color: var(--fb-ink);
	background:
		radial-gradient(1100px 480px at 8% -8%, rgba(13, 138, 138, 0.12), transparent 55%),
		radial-gradient(900px 420px at 100% 0%, rgba(232, 93, 76, 0.08), transparent 50%),
		linear-gradient(180deg, #f5f8fb 0%, var(--fb-bg) 40%, #e8eef4 100%);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--fb-teal);
	text-decoration: none;
}

a:hover {
	color: var(--fb-teal-dark);
}

.container {
	width: 100%;
	max-width: var(--fb-max);
	margin: 0 auto;
	padding: 0 16px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(238, 243, 247, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--fb-line);
}

.site-header.is-scrolled {
	box-shadow: 0 6px 20px rgba(11, 31, 51, 0.06);
}

.header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	min-height: 60px;
}

.site-title,
.custom-logo-link {
	font-family: var(--fb-display);
	font-weight: 700;
	font-size: 1.35rem;
	color: var(--fb-ink);
	letter-spacing: -0.02em;
}

.site-title a {
	color: inherit;
}

.custom-logo {
	max-height: 40px;
	width: auto;
}

.header-cta {
	flex-shrink: 0;
	padding: 9px 14px;
	background: var(--fb-teal);
	color: #fff !important;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
}

.header-cta:hover {
	background: var(--fb-teal-dark);
	color: #fff !important;
}

.nav-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 8px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius-sm);
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	height: 2px;
	background: var(--fb-ink);
	border-radius: 1px;
	transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.main-navigation {
	display: none;
	padding: 0 0 14px;
	border-top: 1px solid var(--fb-line);
}

.main-navigation.is-open {
	display: block;
}

.primary-menu {
	list-style: none;
	margin: 0;
	padding: 8px 0 0;
}

.primary-menu a {
	display: block;
	padding: 12px 0;
	color: var(--fb-ink);
	font-weight: 600;
	border-bottom: 1px solid var(--fb-line);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 15px;
	border: none;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.2s;
}

.btn:active {
	transform: scale(0.98);
}

.btn-primary {
	background: var(--fb-teal);
	color: #fff !important;
}

.btn-primary:hover {
	background: var(--fb-teal-dark);
	color: #fff !important;
}

.btn-ghost {
	background: var(--fb-surface);
	color: var(--fb-ink) !important;
	border: 1px solid var(--fb-line);
}

.btn-ghost:hover {
	border-color: var(--fb-teal);
	color: var(--fb-teal) !important;
}

.btn-block {
	width: 100%;
}

.brand-mark {
	margin: 0 0 10px;
	font-family: var(--fb-display);
	font-size: clamp(1.6rem, 5vw, 2.2rem);
	font-weight: 700;
	color: var(--fb-teal);
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.hero-section {
	padding: 28px 0 36px;
}

.hero-grid {
	display: grid;
	gap: 28px;
}

.hero-title {
	margin: 0 0 12px;
	font-family: var(--fb-display);
	font-size: clamp(1.75rem, 6vw, 2.85rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.03em;
	color: var(--fb-ink);
}

.hero-subtitle {
	margin: 0 0 20px;
	font-size: 1.05rem;
	color: var(--fb-muted);
	max-width: 34em;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
}

.hero-proof {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-teal);
}

.hero-media {
	border-radius: var(--fb-radius);
	overflow: hidden;
	box-shadow: var(--fb-shadow);
	border: 1px solid var(--fb-line);
	background: var(--fb-surface);
}

.hero-media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.55s ease var(--reveal-delay, 0ms), transform 0.55s ease var(--reveal-delay, 0ms);
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

.social-strip {
	padding: 18px 0;
	border-block: 1px solid var(--fb-line);
	background: rgba(255, 255, 255, 0.6);
	text-align: center;
}

.social-strip p {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.rating-row {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 14px;
	color: var(--fb-muted);
}

.stars {
	color: var(--fb-amber);
	letter-spacing: 1px;
}

.section {
	padding: 48px 0;
}

.section-kicker {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--fb-teal);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.section-title {
	margin: 0 0 12px;
	font-family: var(--fb-display);
	font-size: clamp(1.55rem, 4.5vw, 2.25rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.15;
	color: var(--fb-ink);
}

.section-lead {
	margin: 0 0 24px;
	color: var(--fb-muted);
	max-width: 40em;
}

.section-head.row-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.view-all {
	font-size: 14px;
	font-weight: 600;
}

.feature-split {
	display: grid;
	gap: 24px;
	align-items: center;
}

.feature-media {
	margin: 0;
	border-radius: var(--fb-radius);
	overflow: hidden;
	box-shadow: var(--fb-shadow);
	border: 1px solid var(--fb-line);
}

.feature-media img,
.feature-duo img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.feature-cards {
	display: grid;
	gap: 12px;
	margin-bottom: 24px;
}

.feature-card {
	padding: 18px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius-sm);
}

.feature-card h3 {
	margin: 0 0 6px;
	font-size: 1.05rem;
	font-family: var(--fb-display);
}

.feature-card p {
	margin: 0;
	font-size: 14px;
	color: var(--fb-muted);
}

.feature-duo {
	display: grid;
	gap: 12px;
}

.feature-duo figure {
	margin: 0;
	border-radius: var(--fb-radius);
	overflow: hidden;
	border: 1px solid var(--fb-line);
	box-shadow: var(--fb-shadow);
}

.project-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.project-card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius-sm);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--fb-shadow);
}

.project-card img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.project-card-body {
	padding: 10px 12px 14px;
}

.project-card-body h3 {
	margin: 0 0 4px;
	font-size: 0.95rem;
	font-family: var(--fb-display);
}

.project-card-body p {
	margin: 0;
	font-size: 12px;
	color: var(--fb-muted);
}

.guides-grid {
	display: grid;
	gap: 16px;
}

.guide-card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius);
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(11, 31, 51, 0.04);
}

.guide-cover {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.guide-body {
	padding: 16px;
}

.guide-body h3 {
	margin: 0 0 8px;
	font-family: var(--fb-display);
	font-size: 1.15rem;
}

.guide-body > p {
	margin: 0 0 14px;
	font-size: 14px;
	color: var(--fb-muted);
}

.guide-meta {
	display: flex;
	align-items: center;
	gap: 10px;
}

.guide-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.guide-meta strong {
	display: block;
	font-size: 14px;
}

.guide-meta span {
	font-size: 12px;
	color: var(--fb-muted);
}

.reviews-track {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding-bottom: 8px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.review-card {
	flex: 0 0 min(86vw, 320px);
	scroll-snap-align: start;
	margin: 0;
	padding: 20px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius);
}

.review-stars {
	color: var(--fb-amber);
	margin-bottom: 10px;
	letter-spacing: 1px;
}

.review-card p {
	margin: 0 0 16px;
	font-size: 15px;
}

.review-author {
	display: flex;
	align-items: center;
	gap: 10px;
}

.review-author img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.review-author strong {
	display: block;
	font-size: 14px;
}

.review-author span {
	font-size: 12px;
	color: var(--fb-muted);
}

.articles-grid {
	display: grid;
	gap: 16px;
}

.article-card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius);
	overflow: hidden;
}

.article-card-image img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.article-card-body {
	padding: 14px 16px 18px;
}

.article-card-body time {
	font-size: 12px;
	color: var(--fb-muted);
}

.article-card-body h2,
.article-card-body h3 {
	margin: 6px 0 10px;
	font-family: var(--fb-display);
	font-size: 1.1rem;
}

.article-card-body h2 a,
.article-card-body h3 a {
	color: var(--fb-ink);
}

.article-excerpt {
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--fb-muted);
}

.read-more {
	font-size: 14px;
	font-weight: 600;
}

.demo-note {
	margin-top: 16px;
	font-size: 13px;
	color: var(--fb-muted);
	text-align: center;
}

.cta-banner {
	position: relative;
	padding: 64px 0;
	background-size: cover;
	background-position: center;
	color: #fff;
	text-align: center;
}

.cta-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(11, 31, 51, 0.84), rgba(13, 138, 138, 0.7));
}

.cta-inner {
	position: relative;
	z-index: 1;
}

.cta-inner h2 {
	margin: 0 0 10px;
	font-family: var(--fb-display);
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	letter-spacing: -0.03em;
}

.cta-inner p {
	margin: 0 0 20px;
	opacity: 0.92;
}

.cta-inner .btn-primary {
	background: var(--fb-coral);
	color: #fff !important;
}

.cta-inner .btn-primary:hover {
	background: #d14c3c;
}

.contact-section {
	background: var(--fb-surface);
	border-block: 1px solid var(--fb-line);
}

.contact-grid {
	display: grid;
	gap: 24px;
}

.contact-details {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	color: var(--fb-muted);
	font-size: 14px;
}

.contact-details li {
	margin-bottom: 6px;
}

.contact-form {
	display: grid;
	gap: 12px;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius-sm);
	font: inherit;
	background: var(--fb-bg);
	color: var(--fb-ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: 2px solid var(--fb-teal);
	outline-offset: 1px;
}

.form-feedback {
	margin: 0;
	font-size: 14px;
	min-height: 1.2em;
}

.form-feedback.is-success {
	color: var(--fb-teal);
}

.form-feedback.is-error {
	color: var(--fb-coral);
}

.page-header {
	padding-bottom: 8px;
}

.page-title {
	margin: 0;
	font-family: var(--fb-display);
	font-size: clamp(1.7rem, 4vw, 2.4rem);
	letter-spacing: -0.03em;
}

.content-narrow {
	max-width: 720px;
}

.entry-title {
	margin: 0 0 8px;
	font-family: var(--fb-display);
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	letter-spacing: -0.03em;
}

.entry-meta {
	font-size: 13px;
	color: var(--fb-muted);
	margin-bottom: 16px;
}

.entry-featured {
	margin: 0 0 20px;
	border-radius: var(--fb-radius);
	overflow: hidden;
}

.entry-content {
	line-height: 1.7;
}

.search-form {
	display: flex;
	gap: 8px;
	margin-top: 16px;
}

.search-field {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius-sm);
	font: inherit;
}

.search-submit {
	padding: 10px 16px;
	background: var(--fb-teal);
	color: #fff;
	border: none;
	border-radius: var(--fb-radius-sm);
	font-weight: 600;
	cursor: pointer;
}

.comments-area {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--fb-line);
}

.comment-list {
	list-style: none;
	padding: 0;
	margin: 0 0 24px;
}

.navigation.pagination {
	margin-top: 24px;
	text-align: center;
}

.page-numbers {
	display: inline-block;
	padding: 8px 12px;
	margin: 0 2px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius-sm);
	color: var(--fb-ink);
	font-size: 13px;
}

.page-numbers.current {
	background: var(--fb-teal);
	border-color: var(--fb-teal);
	color: #fff;
}

.site-footer {
	background: #0a1624;
	color: #b7c5d4;
}

.site-footer a {
	color: #e6eef6;
}

.site-footer .site-title a {
	color: #fff;
}

.footer-top {
	padding: 36px 0 24px;
}

.footer-grid {
	display: grid;
	gap: 24px;
}

.footer-brand p {
	margin: 10px 0 0;
	font-size: 14px;
	max-width: 28em;
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.footer-menu a {
	font-size: 14px;
}

.footer-links-bar {
	padding: 18px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links-row {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	justify-content: flex-start;
}

.footer-links-row a {
	font-size: 13px;
	color: #a8b8c8;
	white-space: nowrap;
}

.footer-links-row a:hover {
	color: #fff;
}

.footer-bottom {
	padding: 14px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	text-align: center;
}

.footer-bottom p {
	margin: 0;
	font-size: 12px;
	color: #7f90a3;
}

@media (min-width: 768px) {
	.nav-toggle {
		display: none;
	}

	.main-navigation {
		display: block !important;
		padding: 0 0 12px;
		border-top: none;
	}

	.header-bar {
		padding-bottom: 4px;
	}

	.primary-menu {
		display: flex;
		gap: 22px;
		padding: 0;
	}

	.primary-menu a {
		padding: 4px 0;
		border-bottom: none;
		font-size: 14px;
	}

	.hero-grid {
		grid-template-columns: 1.05fr 0.95fr;
		align-items: center;
		gap: 36px;
		padding-top: 20px;
	}

	.feature-split {
		grid-template-columns: 1fr 1.1fr;
		gap: 40px;
	}

	.feature-cards {
		grid-template-columns: repeat(2, 1fr);
	}

	.feature-duo {
		grid-template-columns: 1fr 1fr;
	}

	.project-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 14px;
	}

	.guides-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.articles-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.contact-grid {
		grid-template-columns: 0.85fr 1.15fr;
		align-items: start;
		gap: 40px;
	}

	.footer-grid {
		grid-template-columns: 1.4fr 1fr 1fr;
	}

	.review-card {
		flex: 0 0 340px;
	}
}

@media (min-width: 1024px) {
	.section {
		padding: 64px 0;
	}

	.feature-cards {
		grid-template-columns: repeat(3, 1fr);
	}

	.articles-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.hero-title {
		font-size: 2.9rem;
	}
}
