/*
Theme Name: HomeImproIdeas
Theme URI: https://homeimproideas.com/
Author: HomeImproIdeas
Author URI: https://homeimproideas.com/
Description: A warm, modern magazine theme for homeimproideas.com — Home Improvement, Kitchen, Interior and Decoration blog with a built-in Guest Post Services page, enquiry inbox, floating WhatsApp button (number never shown), SEO schema and one-click setup.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: homeimproideas
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
	--forest: #1f3a33;
	--forest-2: #2a4b42;
	--forest-3: #36594f;
	--terra: #d9643f;
	--terra-d: #bb4f2d;
	--sand: #f2c48d;
	--sand-d: #e9b06c;
	--cream: #fbf5ec;
	--cream-2: #f5ede1;
	--paper: #ffffff;
	--ink: #1b2623;
	--body: #3a4642;
	--muted: #66736f;
	--line: #e9e1d5;
	--wa: #25d366;
	--wa-d: #1eb257;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(31, 58, 51, .06), 0 8px 24px rgba(31, 58, 51, .07);
	--shadow-lg: 0 18px 50px rgba(31, 58, 51, .16);
	--serif: "DM Serif Display", Georgia, "Times New Roman", serif;
	--sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--container: 1240px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.7;
	color: var(--body);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--terra-d); text-decoration: none; transition: color .2s; }
a:hover { color: var(--forest); }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.005em; }
p { margin: 0 0 1.1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 10px; left: 10px; width: auto; height: auto; clip: auto; z-index: 9999; background: var(--forest); color: #fff; padding: 10px 16px; border-radius: 8px; }
.hp { position: absolute; left: -9999px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }

/* ---------- Buttons & chips ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
	font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap;
	transition: background .2s, transform .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--terra); color: #fff; box-shadow: 0 6px 16px rgba(217, 100, 63, .28); }
.btn--primary:hover { background: var(--terra-d); color: #fff; }
.btn--sand { background: var(--sand); color: var(--forest); }
.btn--sand:hover { background: var(--sand-d); color: var(--forest); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-d); color: #fff; }
.btn--block { display: flex; width: 100%; }
.btn--block + .btn--block { margin-top: 10px; }

.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px;
	border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
	color: var(--forest); cursor: pointer; transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: var(--cream); border-color: var(--sand); }

.eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); margin: 0 0 10px; }
.eyebrow--light { color: var(--sand); }

.cat-pill {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
	color: var(--cat, var(--terra)); margin-bottom: 8px;
}
.cat-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.cat-pill:hover { color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chips--center { justify-content: center; margin: 26px 0; }
.chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px;
	background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 14px;
}
.chip .hii-icon { color: var(--cat); }
.chip:hover { border-color: var(--cat); color: var(--cat); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta__dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.meta--light { color: rgba(255, 255, 255, .82); }

.ticks { list-style: none; padding: 0; margin: 0 0 20px; }
.ticks li { display: flex; align-items: flex-start; gap: 9px; padding: 5px 0; font-size: 15px; }
.ticks .hii-icon { flex: none; margin-top: 4px; color: var(--wa-d); }

/* ---------- Top bar ---------- */
.topbar { background: var(--forest); color: #dfe8e4; font-size: 13.5px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__text { margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__text .hii-icon { color: var(--sand); flex: none; }
.topbar__links { display: flex; gap: 20px; flex: none; }
.topbar__links a { color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.topbar__links a:hover { color: var(--sand); }
.topbar__wa .hii-icon { color: var(--wa); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 90; background: #fff; border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand .hii-logo-svg, .brand__img { height: 50px; width: auto; }
.nav { flex: 1; display: flex; align-items: center; justify-content: center; }
.nav__head, .nav__cta { display: none; }
.nav .menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav .menu > li { position: relative; }
.nav .menu a { display: block; padding: 10px 13px; color: var(--ink); font-weight: 700; font-size: 15px; border-radius: 999px; white-space: nowrap; }
.nav .menu a:hover, .nav .menu .current-menu-item > a, .nav .menu .current-menu-parent > a, .nav .menu .current-post-ancestor > a { color: var(--terra-d); background: var(--cream); }
.nav .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.nav .menu li:hover > .sub-menu, .nav .menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { border-radius: 8px; }
.site-header__tools { display: flex; align-items: center; gap: 10px; flex: none; }
.burger { display: none; }
.search-panel { border-top: 1px solid var(--line); background: var(--cream); padding: 18px 0; }
.search-panel[hidden] { display: none; }

/* ---------- Search form ---------- */
.search-form { position: relative; display: flex; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 5px; max-width: 560px; transition: border-color .2s, box-shadow .2s; }
.search-form:focus-within { border-color: var(--sand); box-shadow: 0 0 0 4px rgba(242, 196, 141, .35); }
.search-form__icon { display: grid; place-items: center; padding: 0 6px 0 12px; color: var(--muted); }
.search-form__input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 6px; outline: 0; font-size: 15.5px; }
.search-form__input::-webkit-search-cancel-button { display: none; }
.search-form__btn { border: 0; background: var(--forest); color: #fff; font-weight: 700; padding: 10px 20px; border-radius: 999px; cursor: pointer; font-size: 14.5px; }
.search-form__btn:hover { background: var(--forest-3); }
.search-panel .search-form { max-width: none; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 500px at 0% 0%, #fff 0%, transparent 60%), var(--cream); padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgba(242, 196, 141, .25); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero__title { font-size: clamp(38px, 5vw, 60px); line-height: 1.07; margin-bottom: 18px; }
.hero__text { font-size: 18.5px; color: var(--body); max-width: 540px; margin-bottom: 26px; }
.hero__posts { display: grid; gap: 16px; }
.hero__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hero__list .card--mini { background: #fff; border-radius: 14px; padding: 10px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
.hero__list .card--mini .thumb { width: 100%; height: 86px; }
.hero__list .card--mini .card__title { font-size: 15px; }

.feature { position: relative; border-radius: 22px; overflow: hidden; min-height: 360px; display: flex; align-items: flex-end; box-shadow: var(--shadow-lg); isolation: isolate; }
.feature .feature__thumb { position: absolute; aspect-ratio: auto; inset: 0; z-index: -2; border-radius: 0; }
.feature__thumb .thumb__img, .feature__thumb .thumb__ph { width: 100%; height: 100%; object-fit: cover; }
.feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 38, 33, 0) 25%, rgba(20, 38, 33, .88) 100%); }
.feature__body { padding: 30px; }
.feature .cat-pill { color: #fff; background: var(--cat, var(--terra)); padding: 5px 11px; border-radius: 999px; }
.feature .cat-pill::before { display: none; }
.feature .cat-pill:hover { color: #fff; filter: brightness(1.08); }
.feature__title { font-size: clamp(24px, 2.6vw, 34px); margin: 4px 0 10px; }
.feature__title a { color: #fff; }
.feature__title a:hover { color: var(--sand); }

/* ---------- Thumbnails ---------- */
.thumb { display: block; position: relative; overflow: hidden; border-radius: 14px; background: var(--cream-2); aspect-ratio: 3 / 2; }
.thumb__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .thumb__img { transform: scale(1.04); }
.thumb__ph {
	display: grid; place-items: center; width: 100%; height: 100%; color: #fff;
	background:
		radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .22) 0 18%, transparent 19%),
		radial-gradient(circle at 85% 90%, rgba(255, 255, 255, .14) 0 26%, transparent 27%),
		linear-gradient(135deg, var(--cat, var(--forest)) 0%, color-mix(in srgb, var(--cat, var(--forest)) 55%, #1f3a33) 100%);
}
.thumb__ph .hii-icon { width: 30%; height: auto; max-width: 84px; min-width: 22px; opacity: .92; stroke-width: 1.4; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--tint { background: var(--cream); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-title { font-size: clamp(28px, 3.2vw, 40px); margin: 0; }
.section-title--sm { font-size: 26px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.section-head__cat { display: flex; align-items: center; gap: 14px; }
.section-head__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--cat) 14%, #fff); color: var(--cat); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; color: var(--forest); white-space: nowrap; }
.link-more:hover { color: var(--terra-d); }
.cat-row + .cat-row { padding-top: 0; }

/* Topics */
.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.topic { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--body); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.topic::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--cat); }
.topic:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--body); }
.topic__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: color-mix(in srgb, var(--cat) 13%, #fff); color: var(--cat); }
.topic__name { font-family: var(--serif); font-size: 25px; color: var(--ink); line-height: 1.2; }
.topic__desc { font-size: 15px; line-height: 1.6; flex: 1; }
.topic__count { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--cat); }

/* Grids + cards */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card__body { min-width: 0; }
.card__title { font-size: 23px; line-height: 1.25; margin: 0 0 8px; }
.card__title a { color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s; }
.card__title a:hover { color: var(--ink); background-size: 100% 1.5px; }
.card__excerpt { font-size: 15.5px; color: var(--body); margin-bottom: 10px; }
.section--tint .card { background: #fff; padding: 14px 14px 20px; border-radius: 18px; box-shadow: var(--shadow); }
.section--tint .card .card__body { padding: 0 6px; }

.card--mini { flex-direction: row; align-items: center; gap: 14px; }
.card--mini .thumb { width: 84px; flex: none; aspect-ratio: 1; border-radius: 12px; }
.card--mini .thumb__ph .hii-icon { width: 40%; }
.card--mini .card__title { font-size: 16.5px; margin-bottom: 4px; }
.card--mini .meta { font-size: 12.5px; }

/* ---------- Page hero ---------- */
.page-hero { background: var(--cream); padding: 38px 0 44px; border-bottom: 1px solid var(--line); }
.page-hero--cat { background: linear-gradient(180deg, color-mix(in srgb, var(--cat) 10%, #fff), var(--cream)); }
.page-hero__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--cat); color: #fff; margin-bottom: 16px; }
.page-hero__title { font-size: clamp(34px, 4.4vw, 52px); margin: 0 0 10px; }
.page-hero__desc { max-width: 720px; font-size: 18px; }
.page-hero__desc p:last-child { margin: 0; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; font-size: 13.5px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.crumbs li + li::before { content: "/"; opacity: .5; }
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--terra-d); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding-top: 48px; padding-bottom: 80px; align-items: start; }
.layout__main { min-width: 0; }

/* Sidebar */
.sidebar { position: sticky; top: 110px; display: grid; gap: 24px; }
.admin-bar .sidebar { top: 142px; }
.widget { min-width: 0; overflow-wrap: anywhere; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.widget-title { font-size: 21px; margin-bottom: 14px; }
.widget ul:not(.side-cats):not(.ticks) { margin: 0; padding-left: 18px; }
.widget .search-form { max-width: none; }
.widget .wp-block-search__inside-wrapper { display: flex; min-width: 0; }
.widget .wp-block-search__input { min-width: 0; flex: 1; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; }
.widget .wp-block-search__button { border: 0; background: var(--forest); color: #fff; border-radius: 10px; padding: 10px 14px; margin-left: 8px; }
.widget .search-form__btn { padding: 10px 14px; }
.widget--gp { background: var(--forest); border-color: var(--forest); color: #dfe8e4; }
.widget--gp .widget-title { color: #fff; }
.widget--gp .ticks .hii-icon { color: var(--sand); }
.widget--gp__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(242, 196, 141, .16); color: var(--sand); margin-bottom: 14px; }
.side-cats { list-style: none; margin: 0; padding: 0; }
.side-cats a { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--ink); font-weight: 700; border-bottom: 1px dashed var(--line); }
.side-cats li:last-child a { border-bottom: 0; }
.side-cats__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--cat) 13%, #fff); color: var(--cat); }
.side-cats__name { flex: 1; }
.side-cats__count { font-size: 13px; background: var(--cream); padding: 2px 10px; border-radius: 999px; color: var(--muted); }
.side-cats a:hover .side-cats__name { color: var(--cat); }
.side-posts { display: grid; gap: 16px; }

/* ---------- Single ---------- */
.single__head { background: var(--cream); padding: 40px 0 44px; }
.single__title { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.1; margin: 4px 0 16px; }
.single__lede { font-size: 20px; line-height: 1.6; color: var(--body); margin-bottom: 24px; }
.byline { display: flex; align-items: center; gap: 14px; }
.byline__avatar { border-radius: 50%; }
.byline__name { font-weight: 800; color: var(--ink); }
.single .layout { padding-top: 36px; }
.single__media { margin: 0 0 36px; border-radius: 20px; aspect-ratio: 16 / 9; }
.single__media .thumb__ph .hii-icon { max-width: 120px; }

/* Entry content */
.entry { font-size: 18px; line-height: 1.8; color: var(--body); }
.entry > * { margin-top: 0; margin-bottom: 1.2em; }
.entry h2 { font-size: 32px; margin-top: 1.6em; margin-bottom: .5em; }
.entry h3 { font-size: 25px; margin-top: 1.4em; }
.entry h4 { font-size: 21px; }
.entry a { color: var(--terra-d); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.entry a:hover { color: var(--forest); }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .45em; }
.entry li::marker { color: var(--terra); font-weight: 800; }
.entry strong { color: var(--ink); }
.entry blockquote { margin: 1.8em 0; padding: 20px 26px; border-left: 4px solid var(--terra); background: var(--cream); border-radius: 0 14px 14px 0; font-size: 19px; color: var(--ink); }
.entry blockquote p:last-child { margin: 0; }
.entry img { border-radius: 14px; }
.entry figure { margin-left: 0; margin-right: 0; }
.entry figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.entry table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.entry thead th { background: var(--forest); color: #fff; text-align: left; font-weight: 700; }
.entry th, .entry td { padding: 12px 14px; border-bottom: 1px solid var(--line); min-width: 120px; }
.entry tbody tr:nth-child(even) { background: var(--cream); }
.entry hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.entry code { background: var(--cream-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.alignwide { margin-left: -40px; margin-right: -40px; max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.page-body { padding-top: 48px; padding-bottom: 80px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }
.tags a { font-size: 14px; font-weight: 700; padding: 6px 13px; border-radius: 999px; background: var(--cream); color: var(--forest); }
.tags a:hover { background: var(--sand); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share__label { font-weight: 800; color: var(--ink); margin-right: 6px; }
.share__btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: var(--cream); color: var(--forest); transition: .2s; }
.share__btn:hover { transform: translateY(-2px); color: #fff; }
.share__btn--whatsapp:hover { background: var(--wa); }
.share__btn--facebook:hover { background: #1877f2; }
.share__btn--pinterest:hover { background: #e60023; }
.share__btn--x:hover { background: #111; }
.share__btn--linkedin:hover { background: #0a66c2; }
.share__btn--copy:hover { background: var(--forest); }
.share__btn.is-copied { background: var(--wa); color: #fff; }

.ask-box { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--radius); background: #eafaf0; border: 1px solid #c9eed6; margin-bottom: 28px; }
.ask-box__icon { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--wa); color: #fff; }
.ask-box__title { font-size: 22px; margin: 0 0 2px; }
.ask-box p { margin: 0; font-size: 15px; }
.ask-box > div { flex: 1; }

.author-box { display: flex; gap: 20px; padding: 26px; border-radius: var(--radius); background: var(--cream); margin-bottom: 32px; }
.author-box__avatar { border-radius: 50%; flex: none; }
.author-box__name { font-size: 24px; margin: 0 0 6px; }
.author-box__name a { color: var(--ink); }
.author-box p:last-child { margin: 0; font-size: 15.5px; }

.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 44px; }
.post-navigation a { display: block; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.post-navigation a:hover { border-color: var(--sand); background: var(--cream); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-nav__label { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--terra); margin-bottom: 4px; }
.post-nav__title { font-family: var(--serif); font-size: 19px; line-height: 1.3; }
.related { margin-bottom: 40px; }

/* Comments */
.comments { border-top: 1px solid var(--line); padding-top: 36px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-meta a, .comment-metadata a { font-size: 13px; color: var(--muted); }
.comment-form label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 500; }

/* Pagination */
.pagination { margin-top: 48px; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.pagination .current { background: var(--forest); color: #fff; border-color: var(--forest); }
.pagination a:hover { border-color: var(--sand); background: var(--cream); }

.empty, .notfound { text-align: center; padding: 60px 20px; }
.empty .search-form, .notfound .search-form { margin: 24px auto 0; }
.empty__icon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--cream); color: var(--terra); margin-bottom: 16px; }
.notfound { padding: 80px 24px 100px; }
.notfound__code { font-family: var(--serif); font-size: clamp(90px, 16vw, 160px); line-height: 1; margin: 0; color: var(--sand); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; scroll-margin-top: 140px; }
[id] { scroll-margin-top: 110px; }
.form label { display: grid; gap: 6px; font-size: 14.5px; font-weight: 700; color: var(--ink); min-width: 0; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form input:not([type="hidden"]):not([type="checkbox"]), .form select, .form textarea,
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 15.5px; font-weight: 500; outline: 0; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus, .comment-form input:focus, .comment-form textarea:focus { border-color: var(--sand-d); box-shadow: 0 0 0 4px rgba(242, 196, 141, .3); }
.form textarea { resize: vertical; min-height: 130px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); min-width: 0; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; font-size: 15px; line-height: 1.55; }
.notice .hii-icon { flex: none; margin-top: 2px; }
.notice--ok { background: #eafaf0; color: #14532d; border: 1px solid #bfe8cd; }
.notice--ok a { color: #0f7a3b; font-weight: 800; text-decoration: underline; }
.notice--err { background: #fdecea; color: #7f1d1d; border: 1px solid #f5c6c0; }

/* ---------- Guest post page ---------- */
.gp-hero { background: var(--forest); color: #dce6e2; padding: 44px 0 72px; position: relative; overflow: hidden; }
.gp-hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; bottom: -260px; background: rgba(242, 196, 141, .12); }
.gp-hero .crumbs a, .gp-hero .crumbs ol { color: #a9bdb6; }
.gp-hero .crumbs [aria-current] { color: #fff; }
.gp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; position: relative; }
.gp-hero__title { color: #fff; font-size: clamp(36px, 4.8vw, 58px); line-height: 1.08; }
.gp-hero__text { font-size: 18.5px; max-width: 600px; }
.gp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 24px; }
.stat__num { display: block; font-family: var(--serif); font-size: clamp(32px, 3.4vw, 44px); color: var(--sand); line-height: 1.1; }
.stat__label { font-size: 14px; font-weight: 700; color: #cfdcd7; }

.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.benefit { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.benefit__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fbe7df; color: var(--terra-d); margin-bottom: 16px; }
.benefit h3 { font-size: 22px; margin-bottom: 8px; }
.benefit p { margin: 0; font-size: 15.5px; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan .ticks { flex: 1; }
.plan--popular { border: 2px solid var(--terra); transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.plan__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--terra); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.plan__name { font-size: 25px; margin-bottom: 4px; }
.plan__note { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.plan__price { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--ink); margin-bottom: 20px; }
.plan__cur { font-size: 28px; vertical-align: top; margin-right: 2px; }
.plan__per { font-family: var(--sans); font-size: 15px; color: var(--muted); margin-left: 4px; }
.plans__foot { text-align: center; margin: 32px 0 0; font-weight: 600; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: s; }
.steps li { position: relative; padding: 26px; border-radius: var(--radius); background: var(--cream); }
.steps__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--forest); color: var(--sand); font-family: var(--serif); font-size: 22px; margin-bottom: 14px; }
.steps h3 { font-size: 21px; margin-bottom: 6px; }
.steps p { margin: 0; font-size: 15px; }

.guidelines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.guide { background: #fff; border-radius: 20px; padding: 30px; border-top: 5px solid var(--wa); box-shadow: var(--shadow); }
.guide--dont { border-top-color: #e25b45; }
.guide--do .section-title .hii-icon { color: var(--wa-d); }
.guide--dont .section-title .hii-icon { color: #e25b45; }
.guide ul { margin: 0; padding-left: 20px; }
.guide li { padding: 4px 0; }

.gp-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.faq { margin-top: 28px; }
.faq__title { font-size: 24px; margin-bottom: 12px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 800; color: var(--ink); position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--terra); transition: transform .2s; }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding-bottom: 16px; margin: 0; font-size: 15.5px; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; padding-top: 48px; padding-bottom: 80px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--body); }
.contact-card:hover { border-color: var(--sand); box-shadow: var(--shadow); color: var(--body); }
.contact-card strong { display: block; color: var(--ink); font-size: 17px; }
.contact-card span span { font-size: 15px; word-break: break-word; }
.contact-card__icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--cream); color: var(--terra-d); }
.contact-card--wa { background: #eafaf0; border-color: #c9eed6; }
.contact-card--wa .contact-card__icon { background: var(--wa); color: #fff; }

/* ---------- Guest post band ---------- */
.gp-band { background: var(--terra); color: #fff3ec; padding: 56px 0; position: relative; overflow: hidden; }
.gp-band::after { content: ""; position: absolute; left: -80px; top: -120px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.gp-band__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 40px; align-items: center; position: relative; z-index: 1; }
.gp-band .eyebrow--light { color: #ffe0c7; }
.gp-band__title { color: #fff; font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 10px; }
.gp-band__text { margin: 0; font-size: 17px; max-width: 640px; }
.gp-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: #17302a; color: #b9c9c3; font-size: 15.5px; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.35fr); gap: 40px; padding-bottom: 48px; }
.brand--footer .hii-logo-svg { height: 52px; margin-bottom: 18px; }
.footer-title { color: #fff; font-size: 21px; margin-bottom: 16px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { padding: 5px 0; }
.footer-list a { overflow-wrap: anywhere; color: #b9c9c3; display: inline-flex; align-items: center; gap: 9px; }
.footer-list a:hover { color: var(--sand); }
.footer-contact .hii-icon { color: var(--sand); flex: none; }
.footer-contact .footer-wa { color: #fff; font-weight: 700; }
.footer-contact .footer-wa .hii-icon { color: var(--wa); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; }
.social a:hover { background: var(--terra); color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { color: #b9c9c3; }
.footer-bottom a:hover { color: var(--sand); }

/* ---------- Floating WhatsApp (right side) ---------- */
.wa-float {
	position: fixed; right: 22px; bottom: 24px; z-index: 999;
	display: flex; align-items: center; gap: 0; height: 62px; min-width: 62px; padding: 0 16px;
	border-radius: 999px; background: var(--wa); color: #fff;
	box-shadow: 0 10px 28px rgba(37, 211, 102, .45), 0 2px 6px rgba(0, 0, 0, .15);
	transition: gap .3s ease, padding .3s ease, background .2s, transform .2s;
}
.wa-float:hover, .wa-float:focus-visible { background: var(--wa-d); color: #fff; gap: 10px; padding: 0 22px 0 16px; transform: translateY(-2px); }
.wa-float__icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 800; font-size: 15px; transition: max-width .35s ease; }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { max-width: 160px; }
.wa-float__pulse { position: absolute; inset: 0; border-radius: inherit; background: var(--wa); z-index: -1; animation: wa-pulse 2.2s ease-out infinite; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.45); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float__pulse { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Mobile nav ---------- */
.nav-backdrop { position: fixed; inset: 0; background: rgba(15, 30, 26, .5); z-index: 95; }
.nav-backdrop[hidden] { display: none; }
.nav-open .site-header { z-index: 101; }
.nav-open { overflow: hidden; }

@media (max-width: 1320px) {
	.site-header__inner { gap: 16px; }
	.nav .menu a { padding: 10px 10px; font-size: 14.5px; }
	.header-cta { display: none; }
}

@media (max-width: 1200px) {
	.burger { display: inline-grid; }
	.site-header__inner { justify-content: space-between; }
	.nav {
		display: none; position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); z-index: 100;
		background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start;
		padding: 18px 20px 28px; overflow-y: auto; box-shadow: var(--shadow-lg);
	}
	.nav.is-open { display: flex; animation: nav-in .28s ease; }
	@keyframes nav-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
	.nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
	.nav__title { font-family: var(--serif); font-size: 24px; color: var(--ink); }
	.nav .menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.nav .menu a { padding: 12px 14px; font-size: 16.5px; border-radius: 12px; }
	.nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
	.nav__cta { display: flex; margin-top: 18px; }
	.admin-bar .nav { top: 46px; }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-col--about { grid-column: 1 / -1; }

}

@media (max-width: 1040px) {
	.hero__grid, .gp-hero__grid, .gp-contact, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	.benefits, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.plan--popular { transform: none; }
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gp-band__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
	.topbar__text { display: none; }
	.topbar__inner { justify-content: center; }
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
	body { font-size: 16px; }
	.container { padding: 0 16px; }
	.site-header__inner { min-height: 66px; }
	.brand .hii-logo-svg, .brand__img { height: 40px; }
	.hero { padding: 36px 0 44px; }
	.hero__text { font-size: 17px; }
	.hero__list { grid-template-columns: minmax(0, 1fr); }
	.hero__list .card--mini { flex-direction: row; align-items: center; }
	.hero__list .card--mini .thumb { width: 72px; height: auto; }
	.feature { min-height: 300px; border-radius: 18px; }
	.feature__body { padding: 22px; }
	.section { padding: 52px 0; }
	.section-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 24px; }
	.section-head--center { align-items: center; }
	.grid--3, .grid--2, .topics, .benefits, .plans, .steps, .guidelines, .form__row, .sidebar { grid-template-columns: minmax(0, 1fr); }
	.footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
	.card__title { font-size: 21px; }
	.entry { font-size: 17px; }
	.entry h2 { font-size: 27px; }
	.single__lede { font-size: 18px; }
	.ask-box { flex-direction: column; align-items: flex-start; }
	.author-box { flex-direction: column; }
	.post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); }
	.post-navigation .nav-next { grid-column: auto; text-align: left; }
	.form-card { padding: 22px; }
	.form__actions .btn { width: 100%; }
	.search-form__btn { padding: 10px 14px; }
	.wa-float { right: 16px; bottom: 18px; height: 56px; min-width: 56px; padding: 0 13px; }
	.crumbs [aria-current] { max-width: 200px; }
	.alignwide { margin-left: 0; margin-right: 0; }
}

@media (max-width: 400px) {
	.site-header__inner { gap: 10px; }
	.brand .hii-logo-svg, .brand__img { height: 34px; }
	.site-header__tools { gap: 6px; }
	.icon-btn { width: 40px; height: 40px; }
}
