/*
Theme Name: Safrly
Theme URI: https://safrly.app/
Author: Safrly
Author URI: https://safrly.app/
Description: Safrly is a fast, lightweight WordPress theme for mobile apps and safety-first products. Built for Elementor (free): every page section ships as a custom Elementor widget, and the header and footer can be designed visually with the built-in Header & Footer builder. Includes matching blog archive and single post layouts.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: safrly
Tags: one-column, two-columns, custom-logo, custom-menu, featured-images, translation-ready, blog, editor-style, threaded-comments, full-width-template
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	--g: #16e27f;
	--gd: #0a9f57;
	--ink: #0b0b0c;
	--ink2: #1a1b1d;
	--mut: #5d6166;
	--bg: #f5f6f5;
	--card: #fff;
	--line: #e4e6e4;
	--red: #e11d2e;
	--r: 22px;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Plus Jakarta Sans", "Inter", sans-serif;
	--wrap: 1140px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
figure { margin: 0; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	line-height: 1.15;
	letter-spacing: -.02em;
	margin: 0 0 .5em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding-inline: 20px;
}

.g { color: var(--g); }
.site-main { display: block; }

/* Accessibility helpers */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #fff;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, .6);
	clip: auto !important;
	clip-path: none;
	color: var(--ink);
	display: block;
	font-size: .875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.skip-link:focus { outline: 2px solid var(--g); }

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 22px;
	border-radius: 14px;
	font-weight: 700;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	font-size: .95rem;
	font-family: inherit;
	transition: transform .15s ease;
	line-height: 1.2;
}

.btn:hover { transform: translateY(-2px); }
.btn-g { background: var(--g); color: #04130b; }
.btn-d { background: #fff; color: var(--ink); }
.btn-o { border: 1px solid #3a3d40; color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }

/* ==========================================================================
   4. Header / navigation
   ========================================================================== */
.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(11, 11, 12, .88);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid #222;
}

.admin-bar .nav { top: 32px; }
.safrly-no-sticky .nav { position: relative; top: 0; }

.nav > .wrap,
.nav .nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 68px;
	gap: 16px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #fff;
	font-weight: 800;
	letter-spacing: .14em;
	font-size: 1.15rem;
	font-family: var(--font-head);
}

.brand img {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	object-fit: cover;
}

.brand b { color: var(--g); font-weight: 800; }
.brand .brand-tag {
	display: block;
	font-size: .68rem;
	letter-spacing: .04em;
	font-weight: 500;
	color: #9ea3a8;
	text-transform: none;
}

.nav-menu,
.nav ul.menu,
.nav .nav-menu ul {
	display: flex;
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
	align-items: center;
}

.nav-menu a {
	color: #c9ccd0;
	text-decoration: none;
	font-size: .93rem;
	display: block;
	padding: 6px 0;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a { color: #fff; }

/* Sub menus */
.nav-menu li { position: relative; }

.nav-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #111214;
	border: 1px solid #26282b;
	border-radius: 14px;
	padding: 8px;
	display: block;
	flex-direction: column;
	gap: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all .18s ease;
	box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
	z-index: 60;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav-menu .sub-menu li { width: 100%; }
.nav-menu .sub-menu a { padding: 8px 12px; border-radius: 9px; }
.nav-menu .sub-menu a:hover { background: #1c1e21; }
.nav-menu .sub-menu .sub-menu { top: 0; left: 100%; }

/* Mobile toggle */
.nav-toggle {
	display: none;
	background: transparent;
	border: 1px solid #333;
	border-radius: 12px;
	width: 44px;
	height: 42px;
	padding: 0;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
}

.nav-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease;
}

.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); }

@media (max-width: 900px) {
	.nav-toggle { display: flex; }

	.nav-menu {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #0e0f11;
		border-bottom: 1px solid #222;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 10px 20px 18px;
		display: none;
	}

	.nav-menu.is-open { display: flex; }
	.nav-menu > li > a { padding: 12px 0; border-bottom: 1px solid #1c1e21; }

	.nav-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		background: transparent;
		border: 0;
		padding: 0 0 6px 14px;
	}

	.nav .nav-cta { margin-left: auto; }
}

@media (max-width: 520px) {
	.nav .nav-cta { display: none; }
	.brand { font-size: 1rem; }
}

/* ==========================================================================
   5. Hero
   ========================================================================== */
.hero {
	background:
		radial-gradient(900px 500px at 85% 10%, rgba(22, 226, 127, .22), transparent 60%),
		radial-gradient(700px 500px at 0% 100%, rgba(22, 226, 127, .12), transparent 60%),
		var(--ink);
	color: #fff;
	overflow: hidden;
}

.hero-inner {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 40px;
	align-items: center;
	padding-block: 80px 0;
}

.pill {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	border: 1px solid #2c3b33;
	background: #0f1a14;
	color: #b8f5d5;
	padding: 6px 14px;
	border-radius: 99px;
	font-size: .82rem;
	font-weight: 600;
}

.pill i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--g);
	box-shadow: 0 0 10px var(--g);
	flex: none;
}

.hero h1 {
	font-size: clamp(2.4rem, 5.4vw, 4.2rem);
	margin: 20px 0 18px;
}

.hero .lead {
	color: #b4b8bc;
	font-size: 1.13rem;
	max-width: 520px;
}

.cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 30px 0;
}

.trust {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	color: #9ea3a8;
	font-size: .88rem;
	padding-bottom: 80px;
	margin: 0;
	list-style: none;
}

.trust li::before,
.trust span::before {
	/* Non-breaking space: a plain trailing space collapses in CSS content. */
	content: "\2713\00a0";
	color: var(--g);
	font-weight: 800;
}

.phone {
	justify-self: center;
	width: min(340px, 100%);
	border-radius: 40px;
	border: 10px solid #1d1f21;
	box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1px #2e3033;
	overflow: hidden;
	align-self: end;
	margin-bottom: -60px;
	position: relative;
}

.sos-float {
	position: absolute;
	right: -6px;
	top: 38%;
	background: var(--red);
	color: #fff;
	font-weight: 900;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	box-shadow: 0 0 0 8px rgba(225, 29, 46, .25);
	animation: safrly-pulse 2s infinite;
}

@keyframes safrly-pulse {
	50% { box-shadow: 0 0 0 18px rgba(225, 29, 46, 0); }
}

@media (max-width: 860px) {
	.hero-inner { grid-template-columns: 1fr; padding-top: 56px; }
	.trust { padding-bottom: 30px; }
	.phone { margin-bottom: -40px; }
}

/* ==========================================================================
   6. Sections & cards
   ========================================================================== */
.section { padding-block: 96px; }
.section--flush-top { padding-top: 0; }

.eyebrow {
	color: var(--gd);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: .78rem;
	display: block;
}

.eyebrow.g { color: var(--g); }

.head { max-width: 640px; margin-bottom: 48px; }
.head.is-center { margin-inline: auto; text-align: center; }
.head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.head p { color: var(--mut); margin: 0; }
.head .eyebrow + h2 { margin-top: .35em; }

.grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid--wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--r);
	padding: 28px;
}

.card h3 { font-size: 1.15rem; }
.card p { color: var(--mut); margin: 0; font-size: .96rem; }

.ic {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: #e3fbef;
	color: var(--gd);
	display: grid;
	place-items: center;
	margin-bottom: 16px;
}

.ic svg { width: 24px; height: 24px; }
.ic i { font-size: 22px; line-height: 1; }
.ic img { width: 24px; height: 24px; }

/* Numbered steps */
.steps { counter-reset: s; }
.steps .card { position: relative; }

.steps .card::before {
	counter-increment: s;
	content: "0" counter(s);
	font-weight: 800;
	color: var(--g);
	font-size: .9rem;
	display: block;
	margin-bottom: 10px;
}

.steps.steps--plain .card::before { content: none; }

/* Stats band */
.stats {
	background: var(--ink);
	color: #fff;
	padding-block: 60px;
}

.stats .grid {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	text-align: center;
}

.stats b {
	display: block;
	font-size: 2.4rem;
	color: var(--g);
	font-family: var(--font-head);
	line-height: 1.1;
}

.stats span { color: #9ea3a8; }

/* ==========================================================================
   7. Safety band
   ========================================================================== */
.safety {
	background: var(--ink);
	color: #fff;
	border-radius: 32px;
	padding: 56px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

.safety--single { grid-template-columns: 1fr; }
.safety h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.safety p { color: #b4b8bc; }

.checklist {
	list-style: none;
	padding: 0;
	margin: 24px 0 0;
	display: grid;
	gap: 14px;
}

.checklist li { display: flex; gap: 12px; color: #dfe2e4; }

.checklist li::before {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--g) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304130b' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat;
	margin-top: 2px;
}

.sosbox {
	background: #141517;
	border: 1px solid #2a2c2f;
	border-radius: 24px;
	padding: 36px;
	text-align: center;
}

.sosbtn {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	margin: 0 auto 22px;
	background: radial-gradient(circle at 35% 30%, #ff5a67, var(--red));
	display: grid;
	place-items: center;
	font-size: 2.3rem;
	font-weight: 900;
	color: #fff;
	font-family: var(--font-head);
	box-shadow: 0 0 0 14px rgba(225, 29, 46, .18), 0 0 0 28px rgba(225, 29, 46, .08);
	animation: safrly-pulse 2s infinite;
}

.sosbox small { color: #8b9095; display: block; margin-top: 10px; }

@media (max-width: 860px) {
	.safety { grid-template-columns: 1fr; padding: 32px 22px; }
}

/* ==========================================================================
   8. FAQ
   ========================================================================== */
details.faq-item {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 18px 22px;
	margin-bottom: 12px;
}

details.faq-item summary {
	font-weight: 700;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary::after {
	content: "+";
	color: var(--gd);
	font-size: 1.3rem;
	line-height: 1;
	flex: none;
}

details.faq-item[open] summary::after { content: "\2013"; }
details.faq-item .faq-answer { color: var(--mut); margin: 12px 0 0; }

/* ==========================================================================
   9. Download band
   ========================================================================== */
.dl {
	background: linear-gradient(135deg, #0b0b0c 0%, #0e2a1b 100%);
	color: #fff;
	border-radius: 32px;
	padding: 64px 40px;
	text-align: center;
}

.dl h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.dl p { color: #b4b8bc; max-width: 520px; margin: 0 auto 28px; }
.dl .cta { justify-content: center; margin: 0; }
.dl .dl-logo { width: 84px; border-radius: 20px; margin: 0 auto 20px; }

.store {
	background: #fff;
	color: #000;
	padding: 10px 20px;
	border-radius: 14px;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 10px;
	text-align: left;
	line-height: 1.15;
	transition: transform .15s ease;
}

.store:hover { transform: translateY(-2px); }
.store small { font-size: .7rem; display: block; }
.store strong { font-size: 1.05rem; }
.store svg { flex: none; }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.site-footer {
	background: var(--ink);
	color: #9ea3a8;
	padding-block: 56px 28px;
	font-size: .92rem;
}

.fgrid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 32px;
}

.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: .95rem; }
.site-footer p { max-width: 320px; }

.site-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 8px;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--g); }

.copy {
	border-top: 1px solid #222;
	margin-top: 40px;
	padding-top: 22px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

.footer-social { display: flex; gap: 12px; margin-top: 16px; }

.footer-social a {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #16181a;
	border: 1px solid #26282b;
	display: grid;
	place-items: center;
	color: #c9ccd0;
}

.footer-social a:hover { background: var(--g); color: #04130b; border-color: var(--g); }

@media (max-width: 760px) {
	.fgrid { grid-template-columns: 1fr 1fr; }
	.fgrid > div:first-child { grid-column: 1 / -1; }
}

/* ==========================================================================
   11. Inner page hero + legal document
   ========================================================================== */
.lhero {
	background: var(--ink);
	color: #fff;
	padding-block: 64px 56px;
}

.lhero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.lhero p { color: #9ea3a8; margin: 0; }
.lhero .lhero-meta { color: #9ea3a8; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
.lhero .lhero-meta a { color: var(--g); text-decoration: none; }

.legal {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 48px;
	padding-block: 56px 96px;
	align-items: start;
}

.legal--reverse { grid-template-columns: 1fr 300px; }
.legal--single { grid-template-columns: 1fr; }

.toc {
	position: sticky;
	top: 90px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 20px;
}

.admin-bar .toc { top: 122px; }

.toc b {
	display: block;
	margin-bottom: 10px;
	font-size: .85rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--mut);
}

.toc a {
	display: block;
	text-decoration: none;
	color: var(--mut);
	font-size: .9rem;
	padding: 5px 0;
}

.toc a:hover,
.toc a.is-active { color: var(--gd); }

.doc {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 24px;
	padding: 44px;
}

.doc > h2 { font-size: 1.35rem; margin-top: 36px; scroll-margin-top: 90px; }
.doc > h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.1rem; margin-top: 28px; }
.doc p, .doc li { color: #34383c; }
.doc a { color: var(--gd); font-weight: 600; }
.doc ul, .doc ol { padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc > *:first-child { margin-top: 0; }
.doc > *:last-child { margin-bottom: 0; }

.doc blockquote {
	margin: 24px 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--g);
	color: var(--mut);
	font-style: italic;
}

.doc table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	font-size: .94rem;
}

.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.doc th { background: #fafbfa; font-weight: 700; }

.doc pre {
	background: var(--ink);
	color: #e6e8ea;
	padding: 18px 20px;
	border-radius: 14px;
	overflow-x: auto;
	font-size: .88rem;
}

.doc code { font-size: .9em; background: #f1f3f1; padding: 2px 6px; border-radius: 6px; }
.doc pre code { background: none; padding: 0; color: inherit; }

.note {
	background: #e9fbf2;
	border: 1px solid #bdeed4;
	border-radius: 14px;
	padding: 16px 18px;
	color: #0d5132;
}

.warn {
	background: #fff1f2;
	border: 1px solid #fecdd3;
	border-radius: 14px;
	padding: 16px 18px;
	color: #881337;
}

.info {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 14px;
	padding: 16px 18px;
	color: #1e3a8a;
}

.note p:last-child, .warn p:last-child, .info p:last-child { margin-bottom: 0; }

.safrly-callout { border-radius: 14px; padding: 16px 18px; border: 1px solid transparent; }
.safrly-callout.note { background: #e9fbf2; border-color: #bdeed4; color: #0d5132; }
.safrly-callout.warn { background: #fff1f2; border-color: #fecdd3; color: #881337; }
.safrly-callout.info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.safrly-callout strong { display: block; margin-bottom: 6px; font-family: var(--font-head); }
.safrly-callout p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
	.legal,
	.legal--reverse { grid-template-columns: 1fr; }
	.toc { position: static; }
	.doc { padding: 26px 20px; }
}

/* ==========================================================================
   12. Forms
   ========================================================================== */
.safrly-form {
	display: grid;
	gap: 16px;
	margin-top: 20px;
}

.safrly-form label,
.doc label {
	font-weight: 600;
	font-size: .92rem;
	display: grid;
	gap: 6px;
}

input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], input[type="date"],
select, textarea {
	font: inherit;
	padding: 12px 14px;
	border: 1px solid #d5d8d6;
	border-radius: 12px;
	background: #fafbfa;
	width: 100%;
	color: var(--ink);
}

input:focus, select:focus, textarea:focus {
	outline: 2px solid var(--g);
	border-color: transparent;
}

.chk {
	display: flex;
	gap: 10px;
	font-weight: 400;
	align-items: flex-start;
}

.chk input { width: auto; margin-top: 5px; }

.stepsl {
	counter-reset: k;
	list-style: none;
	padding: 0;
}

.stepsl li {
	counter-increment: k;
	display: flex;
	gap: 14px;
	margin-bottom: 14px;
	align-items: flex-start;
}

.stepsl li::before {
	content: counter(k);
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ink);
	color: var(--g);
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: .85rem;
}

.form-note { font-size: .9rem; color: var(--mut); margin-top: 14px; }

/* Search form */
.search-form { display: flex; gap: 10px; }
.search-form label { flex: 1; }
.search-form .search-submit { white-space: nowrap; }

/* ==========================================================================
   13. Blog — archive & cards
   ========================================================================== */
.blog-wrap { padding-block: 64px 96px; }

.blog-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 40px;
	align-items: start;
}

.blog-layout--full { grid-template-columns: 1fr; }

.post-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.post-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.post-grid--1 { grid-template-columns: 1fr; }

.post-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--r);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .18s ease, box-shadow .18s ease;
}

.post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(11, 11, 12, .08);
}

.post-card__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e9ebe9;
}

.post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.post-card:hover .post-card__thumb img { transform: scale(1.04); }

.post-card__body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.post-card__cat {
	color: var(--gd);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: .72rem;
}

.post-card__cat a { text-decoration: none; }

.post-card__title {
	font-size: 1.2rem;
	margin: 0;
	line-height: 1.25;
}

.post-card__title a { text-decoration: none; }
.post-card__title a:hover { color: var(--gd); }
.post-card__excerpt { color: var(--mut); font-size: .95rem; margin: 0; }

.post-card__meta {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	color: var(--mut);
	font-size: .82rem;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
}

.post-card__meta .avatar { border-radius: 50%; }

.post-card__more {
	color: var(--gd);
	font-weight: 700;
	text-decoration: none;
	font-size: .9rem;
}

.post-card--sticky { border-color: var(--g); box-shadow: 0 0 0 3px rgba(22, 226, 127, .14); }

.sticky-flag {
	display: inline-block;
	background: var(--g);
	color: #04130b;
	font-size: .68rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: 99px;
}

/* Pagination */
.safrly-pagination {
	margin-top: 48px;
	display: flex;
	justify-content: center;
}

.safrly-pagination .nav-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}

.safrly-pagination .page-numbers {
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--line);
	display: grid;
	place-items: center;
	text-decoration: none;
	font-weight: 600;
	color: var(--ink);
}

.safrly-pagination .page-numbers:hover { border-color: var(--g); color: var(--gd); }

.safrly-pagination .page-numbers.current {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--g);
}

.safrly-pagination .dots { background: transparent; border-color: transparent; }

/* ==========================================================================
   14. Blog — single post
   ========================================================================== */
.post-hero {
	background:
		radial-gradient(800px 400px at 80% 0%, rgba(22, 226, 127, .16), transparent 60%),
		var(--ink);
	color: #fff;
	padding-block: 64px 56px;
}

.post-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 860px; }
.post-hero .eyebrow { color: var(--g); }

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: center;
	color: #9ea3a8;
	font-size: .9rem;
	margin-top: 18px;
}

.post-meta a { color: #c9ccd0; text-decoration: none; }
.post-meta a:hover { color: var(--g); }
.post-meta .avatar { border-radius: 50%; }

.post-meta .meta-author {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

/* Centred article column — comfortable measure for long-form reading */
.legal--narrow {
	grid-template-columns: minmax(0, 860px);
	justify-content: center;
}

.post-feature {
	margin: -40px auto 0;
	max-width: var(--wrap);
	padding-inline: 20px;
	position: relative;
	z-index: 2;
}

.post-feature img {
	width: 100%;
	border-radius: 24px;
	border: 1px solid var(--line);
	box-shadow: 0 30px 60px rgba(11, 11, 12, .18);
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.entry-tags a {
	background: #f1f3f1;
	border: 1px solid var(--line);
	border-radius: 99px;
	padding: 5px 13px;
	font-size: .82rem;
	text-decoration: none;
	color: var(--mut);
}

.entry-tags a:hover { background: var(--g); color: #04130b; border-color: var(--g); }

.author-box {
	display: flex;
	gap: 18px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r);
	padding: 24px;
	margin-top: 28px;
}

.author-box img { border-radius: 50%; flex: none; }
.author-box h4 { margin: 0 0 6px; font-size: 1.05rem; }
.author-box p { color: var(--mut); font-size: .93rem; margin: 0; }

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 28px;
}

.post-nav a {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 20px 22px;
	text-decoration: none;
	display: block;
}

.post-nav a:hover { border-color: var(--g); }
.post-nav small { color: var(--gd); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; }
.post-nav strong { display: block; margin-top: 6px; font-family: var(--font-head); font-size: 1rem; line-height: 1.3; }
.post-nav .is-next { text-align: right; }

@media (max-width: 640px) {
	.post-nav { grid-template-columns: 1fr; }
	.post-nav .is-next { text-align: left; }
}

.related-posts { margin-top: 56px; }
.related-posts > h3 { font-size: 1.4rem; margin-bottom: 22px; }

/* ==========================================================================
   15. Sidebar widgets
   ========================================================================== */
.sidebar { display: grid; gap: 20px; position: sticky; top: 90px; }
.admin-bar .sidebar { top: 122px; }

.sidebar .widget {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 24px;
}

.sidebar .widget-title,
.sidebar .wp-block-heading {
	font-size: .85rem;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--mut);
	margin: 0 0 14px;
	font-family: var(--font-body);
	font-weight: 700;
}

.sidebar ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sidebar ul li { font-size: .94rem; }
.sidebar ul a { text-decoration: none; color: var(--ink); }
.sidebar ul a:hover { color: var(--gd); }
.sidebar .sub-menu, .sidebar .children { padding-left: 14px; margin-top: 10px; }

@media (max-width: 900px) {
	.blog-layout { grid-template-columns: 1fr; }
	.sidebar { position: static; }
}

/* ==========================================================================
   16. Comments
   ========================================================================== */
.comments-area { margin-top: 48px; }
.comments-area > h3 { font-size: 1.4rem; margin-bottom: 22px; }

.comment-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 18px; }
.comment-list .children { list-style: none; padding-left: 28px; margin: 18px 0 0; display: grid; gap: 18px; }

.comment-body {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 22px;
}

.comment-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.comment-meta img { border-radius: 50%; }
.comment-author { font-weight: 700; font-size: .95rem; }
.comment-author a { text-decoration: none; }
.comment-metadata { font-size: .8rem; color: var(--mut); }
.comment-metadata a { text-decoration: none; color: var(--mut); }
.comment-content { color: #34383c; font-size: .95rem; }
.comment-reply-link { font-size: .85rem; font-weight: 700; color: var(--gd); text-decoration: none; }
.bypostauthor > .comment-body { border-color: var(--g); }

.comment-respond {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r);
	padding: 28px;
}

.comment-reply-title { font-size: 1.25rem; }
.comment-form { display: grid; gap: 16px; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.comment-form .comment-form-cookies-consent input { width: auto; margin-top: 4px; }
.comment-form label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: 6px; }
.comment-form .submit { justify-self: start; }
.comment-notes, .logged-in-as { font-size: .88rem; color: var(--mut); }

/* ==========================================================================
   17. 404 / empty states
   ========================================================================== */
.state-block {
	text-align: center;
	max-width: 620px;
	margin: 0 auto;
	padding-block: 90px;
}

.state-block .big {
	font-family: var(--font-head);
	font-size: clamp(4rem, 12vw, 8rem);
	color: var(--g);
	line-height: 1;
	margin: 0 0 10px;
}

.state-block p { color: var(--mut); margin-bottom: 26px; }
.state-block .search-form { max-width: 420px; margin: 0 auto 22px; }

/* ==========================================================================
   18. WordPress core classes
   ========================================================================== */
.alignleft { float: left; margin: 6px 24px 18px 0; }
.alignright { float: right; margin: 6px 0 18px 24px; }
.aligncenter { margin: 18px auto; display: block; }
.alignwide { max-width: 1140px; margin-inline: auto; }
.alignfull { max-width: 100%; }

.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-element-caption, figcaption {
	font-size: .85rem;
	color: var(--mut);
	text-align: center;
	margin-top: 8px;
}

.wp-block-image { margin-bottom: 22px; }
.wp-block-image img { border-radius: 16px; }
.wp-block-button__link { border-radius: 14px; font-weight: 700; }
.gallery-caption { display: block; }

/* ==========================================================================
   19. Elementor integration
   ========================================================================== */
.elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--wrap); }
.elementor-widget-safrly-hero,
.elementor-widget-safrly-safety,
.elementor-widget-safrly-download { width: 100%; }

/* Menu widget used inside Elementor header/footer templates */
.safrly-nav-wrap { position: relative; }
.safrly-nav-wrap .nav-menu { flex-wrap: wrap; }
.safrly-nav-wrap .nav-menu--vertical { flex-direction: column; align-items: flex-start; gap: 10px; }
.safrly-nav-wrap .nav-menu--vertical .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border: 0; box-shadow: none; padding: 6px 0 0 14px; }

@media (max-width: 900px) {
	.safrly-nav-wrap.has-toggle .nav-menu {
		position: absolute;
		top: calc(100% + 10px);
		left: 0;
		min-width: 220px;
		background: #0e0f11;
		border: 1px solid #222;
		border-radius: 16px;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 10px 16px 14px;
		display: none;
		z-index: 60;
	}

	.safrly-nav-wrap.has-toggle .nav-menu.is-open { display: flex; }
	.safrly-nav-wrap.has-toggle .nav-menu > li > a { padding: 10px 0; border-bottom: 1px solid #1c1e21; }
	.safrly-nav-wrap.has-toggle .nav-menu > li:last-child > a { border-bottom: 0; }
	.safrly-nav-wrap.has-toggle .nav-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		background: transparent;
		border: 0;
		padding: 0 0 6px 14px;
	}
}

@media (min-width: 901px) {
	.safrly-nav-wrap .nav-toggle { display: none; }
}

/* Editor placeholder for dynamic widgets */
.safrly-editor-note {
	background: #fff8e5;
	border: 1px dashed #e0c476;
	border-radius: 12px;
	padding: 16px 18px;
	color: #7a5b12;
	font-size: .9rem;
}

/* Header/footer template wrappers keep their own spacing */
.safrly-tpl-header .elementor-section,
.safrly-tpl-footer .elementor-section { max-width: 100%; }

/* An Elementor-built header must stay one compact row on small screens */
@media (max-width: 767px) {
	.safrly-tpl-header .elementor-column { min-width: 0; }
	.safrly-tpl-header .brand { font-size: .92rem; letter-spacing: .08em; }
	.safrly-tpl-header .brand img { width: 32px; height: 32px; }
	.safrly-tpl-header .btn { padding: 10px 14px; font-size: .82rem; gap: 6px; }
}

@media (max-width: 400px) {
	.safrly-tpl-header .brand span { font-size: .82rem; }
	.safrly-tpl-header .btn { padding: 9px 12px; font-size: .76rem; }
}

/* Utility spacing used by widgets */
.safrly-mt-0 { margin-top: 0 !important; }
.safrly-center { text-align: center; }
