/*
Theme Name:   IPRoyals Pro
Theme URI:    https://iproyals.com/
Description:  Premium standalone theme for IPRoyals: service-style homepage, modern blog, SEO-ready templates, newsletter, table of contents, related posts and more.
Author:       IPRoyals
Version:      2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  iproyals
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--c-ink: #0B1220;
	--c-ink-2: #1E293B;
	--c-body: #475569;
	--c-muted: #64748B;
	--c-line: #E2E8F0;
	--c-line-2: #EEF2F7;
	--c-bg: #FFFFFF;
	--c-soft: #F6F8FB;
	--c-brand: #0E7490;
	--c-brand-600: #0B5F76;
	--c-brand-2: #14B8A6;
	--c-brand-50: #ECFEFF;
	--c-mint: #CCFBF1;
	--c-accent: #F59E0B;
	--c-navy: #0B1220;
	--c-navy-2: #0F1B2E;
	--grad-brand: linear-gradient(135deg, #14B8A6 0%, #0E7490 100%);
	--grad-hero: radial-gradient(1200px 600px at 85% -10%, rgba(20,184,166,.28), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(14,116,144,.35), transparent 60%), linear-gradient(180deg, #0B1220 0%, #0E1A2E 100%);
	--r-sm: 10px;
	--r: 16px;
	--r-lg: 24px;
	--sh-sm: 0 1px 2px rgba(11,18,32,.05);
	--sh: 0 1px 2px rgba(11,18,32,.04), 0 10px 30px -12px rgba(11,18,32,.12);
	--sh-lg: 0 24px 60px -20px rgba(11,18,32,.28);
	--f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--f-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
	--wrap: 1200px;
	--gutter: 16px;
	--header-h: 72px;
	--ease: cubic-bezier(.2,.7,.2,1);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--c-bg); color: var(--c-body); font: 400 16px/1.7 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--c-brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--c-brand-2); }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); color: var(--c-ink); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 22px); font-weight: 700; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(20,184,166,.55); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--c-mint); color: var(--c-ink); }
.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; left: 12px; top: 12px; z-index: 999; clip: auto; width: auto; height: auto; padding: 10px 16px; background: #fff; color: var(--c-ink); border-radius: 8px; box-shadow: var(--sh); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--soft { background: var(--c-soft); }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }

/* ==========================================================================
   3. Buttons, chips, badges
   ========================================================================== */
.btn { --b: var(--c-brand); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font: 600 15px/1 var(--f-body); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s; white-space: nowrap; text-decoration: none; }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(14,116,144,.7); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(14,116,144,.8); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.btn--ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn--outline { background: #fff; color: var(--c-ink); border-color: var(--c-line); }
.btn--outline:hover { border-color: var(--c-brand); color: var(--c-brand); }
.btn--dark { background: var(--c-ink); color: #fff; }
.btn--dark:hover { background: var(--c-brand); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--c-brand); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad-brand); }
.eyebrow--light { color: #5EEAD4; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--c-line); color: var(--c-ink-2); font: 600 14px/1 var(--f-body); transition: all .2s var(--ease); }
.chip:hover, .chip.is-active { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.chip small { font-weight: 600; opacity: .6; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }

.badge { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; background: var(--c-brand-50); color: var(--c-brand); font: 700 11px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; }
.badge:hover { background: var(--c-brand); color: #fff; }
.badge--light { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(6px); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 640px; }
.section-head p { margin: 10px 0 0; max-width: 620px; font-size: 17px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--c-ink); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--c-brand); }
.link-arrow:hover svg { transform: translateX(4px); }
.icon { width: 24px; height: 24px; flex: none; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { border-color: var(--c-line); box-shadow: 0 6px 24px -18px rgba(11,18,32,.35); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; gap: 4px; }
.nav li { position: relative; }
.nav a { display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 10px; color: var(--c-ink-2); font: 600 15px/1.2 var(--f-body); }
.nav a:hover, .nav .current-menu-item > a, .nav .current-menu-ancestor > a, .nav .current_page_item > a { color: var(--c-brand); background: var(--c-brand-50); }
.nav .sub-toggle { display: none; }
.nav .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 6px; opacity: .6; }
.nav .sub-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; padding: 8px; background: #fff; border: 1px solid var(--c-line); border-radius: 14px; box-shadow: var(--sh-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s var(--ease); }
.nav .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { padding: 10px 12px; font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--c-line); background: #fff; color: var(--c-ink); cursor: pointer; transition: all .2s; }
.icon-btn:hover { border-color: var(--c-brand); color: var(--c-brand); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-toggle { display: none; }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(11,18,32,.6); backdrop-filter: blur(6px); display: grid; align-items: start; justify-items: center; padding: 12vh 16px 16px; opacity: 0; visibility: hidden; transition: all .2s var(--ease); }
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-overlay__box { width: 100%; max-width: 680px; background: #fff; border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-lg); transform: translateY(-10px); transition: transform .25s var(--ease); }
.search-overlay.is-open .search-overlay__box { transform: none; }
.search-overlay__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 700; color: var(--c-ink); }
.search-overlay__hint { margin: 14px 0 0; font-size: 14px; color: var(--c-muted); }
.search-overlay__hint a { margin-right: 10px; }

/* Search form */
.search-form { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--c-line); border-radius: 999px; padding: 6px 6px 6px 18px; transition: border-color .2s, box-shadow .2s; }
.search-form:focus-within { border-color: var(--c-brand-2); box-shadow: 0 0 0 4px rgba(20,184,166,.15); }
.search-form svg { width: 20px; height: 20px; color: var(--c-muted); flex: none; }
.search-form input[type="search"] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 10px 4px; font-size: 16px; color: var(--c-ink); }
.search-form .btn { min-height: 42px; }

/* ==========================================================================
   5. Hero (home)
   ========================================================================== */
.hero { position: relative; background: var(--grad-hero); color: #CBD5E1; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(148,163,184,.16) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 85%); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(36px, 5.6vw, 64px); line-height: 1.06; margin-bottom: 22px; }
.hero h1 .grad { background: linear-gradient(90deg, #5EEAD4, #22D3EE); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(17px, 1.6vw, 19px); max-width: 560px; color: #CBD5E1; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero__topics { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: #94A3B8; }
.hero__topics a { padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #E2E8F0; font-weight: 500; }
.hero__topics a:hover { background: rgba(94,234,212,.14); border-color: rgba(94,234,212,.4); color: #fff; }
.hero__visual { position: relative; }
.hero__frame { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.2; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.12); background: #0F1B2E; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(11,18,32,.88)); }
.hero__frame-cap { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; color: #fff; }
.hero__frame-cap h2 { color: #fff; font-size: clamp(18px, 2vw, 22px); line-height: 1.3; margin: 10px 0 0; }
.hero__frame-cap a { color: #fff; }
.hero__float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.96); color: var(--c-ink); box-shadow: var(--sh-lg); font: 600 14px/1.3 var(--f-body); animation: float 6s ease-in-out infinite; }
.hero__float small { display: block; color: var(--c-muted); font-weight: 500; font-size: 12px; }
.hero__float .ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad-brand); color: #fff; }
.hero__float .ico svg { width: 20px; height: 20px; }
.hero__float--a { top: 8%; left: -28px; }
.hero__float--b { bottom: 30%; right: -22px; animation-delay: -3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ==========================================================================
   6. Cards & grids
   ========================================================================== */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; }

/* Service card */
.service-card { padding: 28px; }
.service-card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--c-brand-50); color: var(--c-brand); margin-bottom: 22px; transition: all .3s var(--ease); }
.service-card__icon svg { width: 26px; height: 26px; }
.service-card:hover .service-card__icon { background: var(--grad-brand); color: #fff; transform: rotate(-6deg) scale(1.05); }
.service-card h3 { margin-bottom: 10px; }
.service-card h3 a { color: var(--c-ink); }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; }
.service-card p { margin-bottom: 20px; font-size: 15px; }
.service-card .link-arrow { margin-top: auto; font-size: 15px; }
.service-card:hover .link-arrow { color: var(--c-brand); }

/* Post card */
.post-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__media .badge { position: absolute; left: 14px; top: 14px; z-index: 2; background: rgba(255,255,255,.95); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.post-card__title { font-size: 19px; line-height: 1.35; margin: 0 0 10px; }
.post-card__title a { color: var(--c-ink); background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s var(--ease), color .2s; }
.post-card:hover .post-card__title a { color: var(--c-brand); }
.post-card__excerpt { font-size: 15px; margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--c-muted); margin-top: auto; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 15px; height: 15px; }
.meta img { width: 26px; height: 26px; border-radius: 50%; }
.meta a { color: var(--c-ink-2); font-weight: 600; }

/* Horizontal post card */
.post-card--row { flex-direction: row; }
.post-card--row .post-card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 100%; }
.post-card--row .post-card__title { font-size: 17px; }

/* Featured big card */
.feature-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.feature-grid__side { display: grid; gap: 24px; }
.post-card--hero { min-height: 480px; color: #fff; border: 0; }
.post-card--hero .post-card__media { position: absolute; inset: 0; aspect-ratio: auto; }
.post-card--hero .post-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,18,32,.05) 20%, rgba(11,18,32,.92)); }
.post-card--hero .post-card__body { position: relative; z-index: 2; justify-content: flex-end; padding: 32px; }
.post-card--hero .post-card__title { font-size: clamp(22px, 2.6vw, 32px); }
.post-card--hero .post-card__title a, .post-card--hero:hover .post-card__title a { color: #fff; }
.post-card--hero .post-card__excerpt, .post-card--hero .meta, .post-card--hero .meta a { color: #CBD5E1; }
.post-card--hero .badge { position: static; align-self: flex-start; margin-bottom: 14px; }

/* Category card */
.cat-card { padding: 24px; display: flex; align-items: center; gap: 16px; }
.cat-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--grad-brand); color: #fff; flex: none; }
.cat-card__icon svg { width: 24px; height: 24px; }
.cat-card h3 { font-size: 18px; margin: 0 0 2px; }
.cat-card h3 a { color: var(--c-ink); }
.cat-card h3 a::after { content: ""; position: absolute; inset: 0; }
.cat-card p { margin: 0; font-size: 14px; color: var(--c-muted); }
.cat-card .arrow { margin-left: auto; color: var(--c-muted); transition: transform .2s var(--ease), color .2s; }
.cat-card:hover .arrow { color: var(--c-brand); transform: translateX(4px); }

/* Why choose us */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.why__list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.why__item { padding: 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--c-line); transition: all .3s var(--ease); }
.why__item:hover { border-color: var(--c-brand-2); box-shadow: var(--sh); }
.why__item .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c-brand-50); color: var(--c-brand); margin-bottom: 14px; }
.why__item .ico svg { width: 22px; height: 22px; }
.why__item h3 { font-size: 17px; margin-bottom: 6px; }
.why__item p { margin: 0; font-size: 15px; }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--c-ink-2); font-weight: 500; }
.checklist svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--c-mint); color: var(--c-brand); margin-top: 1px; }

/* Expertise */
.expertise { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.exp-item { padding: 26px; border-radius: var(--r); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transition: all .3s var(--ease); }
.exp-item:hover { background: rgba(255,255,255,.07); border-color: rgba(94,234,212,.35); transform: translateY(-3px); }
.exp-item .num { font: 800 40px/1 var(--f-head); background: linear-gradient(90deg, #5EEAD4, #22D3EE); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.exp-item h3 { color: #fff; font-size: 18px; margin: 0 0 6px; }
.exp-item p { margin: 0 0 14px; font-size: 14px; color: #94A3B8; }
.exp-item a { font-weight: 600; font-size: 14px; color: #5EEAD4; }
.section--dark { background: var(--grad-hero); color: #CBD5E1; position: relative; overflow: hidden; }
.section--dark h2 { color: #fff; }
.section--dark .section-head p { color: #94A3B8; }

/* Testimonials (empty state) */
.feedback { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.feedback__card { padding: 32px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--c-line); }
.feedback__card--accent { background: var(--grad-brand); color: #E6FFFB; border: 0; }
.feedback__card--accent h3 { color: #fff; }
.feedback__quote { width: 40px; height: 40px; color: var(--c-brand-2); margin-bottom: 14px; }
.testimonial { padding: 28px; }
.testimonial blockquote { margin: 0 0 18px; font-size: 16px; color: var(--c-ink-2); }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--c-ink); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--c-line); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--c-brand-2); box-shadow: var(--sh); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font: 700 17px/1.4 var(--f-head); color: var(--c-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-soft); color: var(--c-brand); font: 600 20px/1 var(--f-body); transition: transform .25s var(--ease), background .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--c-mint); }
.faq details > *:not(summary) { padding: 0 22px; margin-top: 0; }
.faq details > *:last-child { padding-bottom: 20px; margin-bottom: 0; }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 72px); align-items: start; }

/* Newsletter */
.newsletter { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(32px, 5vw, 56px); background: var(--grad-hero); color: #CBD5E1; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.newsletter::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(20,184,166,.45), transparent 70%); pointer-events: none; }
.newsletter h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.newsletter p { margin: 0; }
.nl-form { position: relative; z-index: 1; }
.nl-form__row { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.nl-form__row input[type="email"] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; padding: 0 16px; font-size: 16px; }
.nl-form__row input::placeholder { color: #94A3B8; }
.nl-form__consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 13px; color: #94A3B8; }
.nl-form__consent input { margin-top: 3px; accent-color: var(--c-brand-2); }
.nl-form__consent a { color: #5EEAD4; }
.nl-form__msg { min-height: 22px; margin: 10px 0 0; font-size: 14px; font-weight: 600; }
.nl-form__msg.is-ok { color: #5EEAD4; }
.nl-form__msg.is-err { color: #FCA5A5; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.nl-form--light .nl-form__row { background: #fff; border-color: var(--c-line); }
.nl-form--light .nl-form__row input[type="email"] { color: var(--c-ink); }
.nl-form--light .nl-form__consent { color: var(--c-muted); }
.nl-form--light .nl-form__consent a { color: var(--c-brand); }
.nl-form--light .nl-form__msg.is-ok { color: var(--c-brand); }
.nl-form--light .nl-form__msg.is-err { color: #DC2626; }

/* CTA band */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); background: var(--c-soft); border: 1px solid var(--c-line); }
.cta-band h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 6px; }
.cta-band p { margin: 0; }

/* ==========================================================================
   7. Page hero / breadcrumbs
   ========================================================================== */
.page-hero { position: relative; background: var(--grad-hero); color: #CBD5E1; padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(148,163,184,.14) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 90%); pointer-events: none; }
.page-hero > .wrap { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 52px); margin: 0 0 14px; max-width: 900px; }
.page-hero p.lead { font-size: clamp(16px, 1.5vw, 19px); max-width: 680px; margin: 0; color: #CBD5E1; }
.page-hero .search-form { max-width: 560px; margin-top: 28px; }
.page-hero .chips { margin-top: 24px; }
.page-hero .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #E2E8F0; }
.page-hero .chip:hover, .page-hero .chip.is-active { background: #fff; color: var(--c-ink); border-color: #fff; }
.breadcrumbs { margin-bottom: 18px; font-size: 14px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; color: #94A3B8; }
.breadcrumbs li + li::before { content: "/"; opacity: .5; }
.breadcrumbs a { color: #CBD5E1; }
.breadcrumbs a:hover { color: #5EEAD4; }
.breadcrumbs [aria-current] { color: #fff; font-weight: 600; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================================
   8. Blog layout
   ========================================================================== */
.layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 40px; align-items: start; }
.sidebar { display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 24px); }
.widget-box { padding: 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--c-line); }
.widget-box h2, .widget-box h3 { font-size: 17px; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.widget-box h2::before, .widget-box h3::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: var(--grad-brand); }
.mini-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: mp; }
.mini-post { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; }
.mini-post img { width: 72px; height: 60px; object-fit: cover; border-radius: 10px; }
.mini-post a.t { display: block; font: 600 14px/1.4 var(--f-body); color: var(--c-ink); }
.mini-post a.t:hover { color: var(--c-brand); }
.mini-post small { color: var(--c-muted); font-size: 12px; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--c-line); color: var(--c-ink-2); font-weight: 500; }
.cat-list li:last-child a { border-bottom: 0; }
.cat-list li a:hover { color: var(--c-brand); }
.cat-list li a span { min-width: 30px; text-align: center; padding: 2px 8px; border-radius: 999px; background: var(--c-soft); font-size: 12px; font-weight: 700; color: var(--c-muted); }
.widget-box--dark { background: var(--grad-hero); border: 0; color: #CBD5E1; }
.widget-box--dark h2, .widget-box--dark h3 { color: #fff; }
.widget-box--dark p { font-size: 14px; }
.widget-box--dark .nl-form__row { border-radius: 14px; flex-direction: column; }
.widget-box--dark .nl-form__row input[type="email"] { padding: 12px 14px; }

.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; color: var(--c-muted); font-size: 15px; }
.results-bar strong { color: var(--c-ink); }

/* Pagination */
.pagination, .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--c-line); background: #fff; color: var(--c-ink-2); font-weight: 600; }
.page-numbers:hover { border-color: var(--c-brand); color: var(--c-brand); }
.page-numbers.current { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.page-numbers.dots { border: 0; background: none; }

/* Empty state */
.empty { text-align: center; padding: 56px 24px; border: 1.5px dashed var(--c-line); border-radius: var(--r-lg); background: var(--c-soft); }
.empty svg { width: 48px; height: 48px; color: var(--c-brand); margin: 0 auto 16px; }
.empty .search-form { max-width: 520px; margin: 24px auto 0; }

/* ==========================================================================
   9. Single post
   ========================================================================== */
.post-hero { background: var(--grad-hero); color: #CBD5E1; padding: clamp(36px, 5vw, 64px) 0 clamp(140px, 16vw, 220px); position: relative; overflow: hidden; }
.post-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(148,163,184,.14) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 90%); pointer-events: none; }
.post-hero .wrap { position: relative; }
.post-hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 50px); max-width: 920px; margin: 14px 0 22px; }
.post-hero .meta { color: #CBD5E1; font-size: 14px; gap: 10px 20px; }
.post-hero .meta a { color: #fff; }
.post-hero .meta img { width: 36px; height: 36px; border: 2px solid rgba(255,255,255,.3); }
.post-cover { margin-top: calc(-1 * clamp(110px, 13vw, 180px)); position: relative; z-index: 2; }
.post-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-lg); }
.post-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr) 64px; gap: 48px; align-items: start; padding-top: 48px; }
.post-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.toc { padding: 20px; border-radius: var(--r); background: var(--c-soft); border: 1px solid var(--c-line); max-height: calc(100vh - var(--header-h) - 60px); overflow: auto; }
.toc__title { display: flex; align-items: center; gap: 8px; font: 700 14px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink); margin: 0 0 14px; }
.toc__title svg { width: 18px; height: 18px; color: var(--c-brand); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--c-line); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.45; color: var(--c-body); }
.toc li.lvl-3 a { padding-left: 28px; font-size: 13px; }
.toc li a:hover { color: var(--c-brand); }
.toc li a.is-active { color: var(--c-brand); border-left-color: var(--c-brand); font-weight: 600; }
.toc-mobile { display: none; margin-bottom: 28px; }
.toc-mobile summary { cursor: pointer; font-weight: 700; color: var(--c-ink); }
.share-rail { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.share-rail span { font: 700 11px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 6px; }
.share-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c-line); background: #fff; color: var(--c-ink-2); cursor: pointer; transition: all .2s var(--ease); }
.share-btn svg { width: 18px; height: 18px; }
.share-btn:hover { background: var(--c-ink); border-color: var(--c-ink); color: #fff; transform: translateY(-2px); }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share-row strong { color: var(--c-ink); margin-right: 6px; }

/* Article typography */
.entry { font-size: 18px; line-height: 1.8; color: #334155; }
.entry > * { margin-top: 0; margin-bottom: 1.3em; }
.entry h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 2em 0 .7em; scroll-margin-top: calc(var(--header-h) + 20px); }
.entry h3 { font-size: clamp(20px, 2vw, 24px); margin: 1.7em 0 .6em; scroll-margin-top: calc(var(--header-h) + 20px); }
.entry h4 { font-size: 19px; margin: 1.5em 0 .5em; }
.entry a { color: var(--c-brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry a:hover { color: var(--c-brand-2); }
.entry strong { color: var(--c-ink); }
.entry img { border-radius: var(--r); }
.entry figure { margin-left: 0; margin-right: 0; }
.entry figcaption, .entry .wp-caption-text { font-size: 14px; color: var(--c-muted); text-align: center; margin-top: 10px; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry li { margin-bottom: .5em; }
.entry ul li::marker { color: var(--c-brand-2); }
.entry blockquote, .tip-box { position: relative; margin: 2em 0; padding: 22px 24px 22px 60px; border-radius: var(--r); background: linear-gradient(135deg, #F0FDFA, #ECFEFF); border: 1px solid #CCFBF1; color: var(--c-ink-2); font-size: 17px; }
.entry blockquote::before, .tip-box::before { content: "i"; position: absolute; left: 20px; top: 22px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--grad-brand); color: #fff; font: 700 14px/1 Georgia, serif; font-style: italic; }
.entry blockquote p:last-child { margin-bottom: 0; }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.entry th, .entry td { padding: 12px 14px; border: 1px solid var(--c-line); text-align: left; }
.entry th { background: var(--c-soft); color: var(--c-ink); }
.entry code { padding: 2px 6px; border-radius: 6px; background: var(--c-soft); font-size: .9em; }
.entry pre { padding: 18px; border-radius: var(--r); background: var(--c-ink); color: #E2E8F0; overflow-x: auto; font-size: 14px; }
.entry hr { border: 0; height: 1px; background: var(--c-line); margin: 2.5em 0; }
.entry .ez-toc-container, .entry #ez-toc-container { display: none !important; }
.entry iframe { width: 100%; border-radius: var(--r); }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0; }
.post-footer { display: grid; gap: 28px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--c-line); }
.author-box { display: flex; gap: 20px; padding: 24px; border-radius: var(--r); background: var(--c-soft); border: 1px solid var(--c-line); }
.author-box img { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.author-box h3 { font-size: 18px; margin: 2px 0 6px; }
.author-box p { margin: 0; font-size: 15px; }
.author-box small { font: 700 11px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--c-brand); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--r); border: 1px solid var(--c-line); background: #fff; transition: all .2s var(--ease); }
.post-nav a:hover { border-color: var(--c-brand-2); box-shadow: var(--sh); }
.post-nav small { display: inline-flex; align-items: center; gap: 6px; color: var(--c-muted); font-size: 13px; font-weight: 600; }
.post-nav small svg { width: 16px; height: 16px; }
.post-nav strong { color: var(--c-ink); font: 700 16px/1.4 var(--f-head); }
.post-nav .next { text-align: right; align-items: flex-end; }

/* Comments */
.comments { margin-top: 56px; }
.comments h2 { font-size: 26px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 20px; border-radius: var(--r); border: 1px solid var(--c-line); margin-bottom: 14px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--c-ink); }
.comment-author img { border-radius: 50%; }
.comment-meta a { font-size: 13px; color: var(--c-muted); }
.comment-respond { padding: 28px; border-radius: var(--r-lg); background: var(--c-soft); border: 1px solid var(--c-line); }
.comment-form label { display: block; font-weight: 600; color: var(--c-ink); margin-bottom: 6px; font-size: 14px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; color: var(--c-body); }

/* Forms (generic + CF7) */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="password"], textarea, select { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--c-line); background: #fff; color: var(--c-ink); transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--c-brand-2); box-shadow: 0 0 0 4px rgba(20,184,166,.15); }
textarea { min-height: 150px; resize: vertical; }
input[type="submit"], .wpcf7-submit { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; border-radius: 999px; border: 0; background: var(--grad-brand); color: #fff; font-weight: 600; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(14,116,144,.7); transition: transform .2s; }
input[type="submit"]:hover, .wpcf7-submit:hover { transform: translateY(-2px); }
.wpcf7 p { margin-bottom: 16px; }
.wpcf7 label { display: block; font-weight: 600; color: var(--c-ink); font-size: 14px; }
.wpcf7 label input, .wpcf7 label textarea { margin-top: 6px; font-weight: 400; }
.wpcf7-not-valid { border-color: #EF4444 !important; }
.wpcf7-not-valid-tip { color: #DC2626; font-size: 13px; margin-top: 6px; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; font-size: 14px; }
.wpcf7-spinner { margin: 0 12px; }

/* ==========================================================================
   10. Pages
   ========================================================================== */
.page-body { padding: clamp(48px, 7vw, 88px) 0; }
.page-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--sh); }
.page-overlap { margin-top: calc(-1 * clamp(28px, 4vw, 48px)); position: relative; z-index: 2; }
.legal-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 40px; align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.legal-nav a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--c-ink-2); font-weight: 500; font-size: 15px; }
.legal-nav a:hover, .legal-nav a[aria-current] { background: var(--c-brand-50); color: var(--c-brand); }
.updated-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 13px; color: #CBD5E1; }
.updated-note svg { width: 16px; height: 16px; }

.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.info-item { display: flex; gap: 16px; padding: 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--c-line); }
.info-item .ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--c-brand-50); color: var(--c-brand); flex: none; }
.info-item .ico svg { width: 22px; height: 22px; }
.info-item h3 { font-size: 16px; margin: 2px 0 4px; }
.info-item p { margin: 0; font-size: 15px; }

.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about-visual { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--grad-hero); display: grid; place-items: center; box-shadow: var(--sh-lg); }
.about-visual img { width: 70%; height: auto; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 28px; }
.stat { padding: 18px; border-radius: var(--r); background: var(--c-soft); border: 1px solid var(--c-line); }
.stat b { display: block; font: 800 28px/1 var(--f-head); color: var(--c-ink); margin-bottom: 6px; }
.stat span { font-size: 13px; color: var(--c-muted); }

.service-hero-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--grad-brand); color: #fff; margin-bottom: 20px; box-shadow: 0 14px 30px -12px rgba(20,184,166,.7); }
.service-hero-icon svg { width: 30px; height: 30px; }
.service-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 40px; align-items: start; }
.service-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.service-aside .services-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.service-aside .services-mini a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--c-ink-2); font-weight: 500; }
.service-aside .services-mini a svg { width: 18px; height: 18px; color: var(--c-brand); }
.service-aside .services-mini a:hover, .service-aside .services-mini a[aria-current] { background: var(--c-brand-50); color: var(--c-brand); }

.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.sitemap-grid h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.sitemap-grid h2 svg { width: 22px; height: 22px; color: var(--c-brand); }
.sitemap-grid ul { list-style: none; padding: 0; margin: 0; }
.sitemap-grid li a { display: block; padding: 7px 0; border-bottom: 1px dashed var(--c-line); color: var(--c-ink-2); font-size: 15px; }
.sitemap-grid li a:hover { color: var(--c-brand); }

.error-wrap { text-align: center; padding: clamp(64px, 10vw, 120px) 0; }
.error-code { font: 800 clamp(96px, 18vw, 180px)/1 var(--f-head); letter-spacing: -.06em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.error-wrap .search-form { max-width: 520px; margin: 28px auto; }

/* ==========================================================================
   11. Footer
   ========================================================================== */
.pre-footer { padding: clamp(48px, 7vw, 80px) 0 0; }
.site-footer { background: var(--c-navy); color: #94A3B8; padding: clamp(56px, 7vw, 88px) 0 0; margin-top: clamp(48px, 7vw, 80px); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 50%; top: -260px; width: 900px; height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(20,184,166,.18), transparent); pointer-events: none; }
.pre-footer + .site-footer { margin-top: clamp(48px, 7vw, 80px); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 15px; max-width: 360px; }
.footer-col h2 { color: #fff; font-size: 15px; letter-spacing: .02em; margin: 6px 0 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: #94A3B8; font-size: 15px; }
.footer-col a:hover { color: #5EEAD4; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #CBD5E1; transition: all .2s; }
.socials a:hover { background: var(--c-brand-2); border-color: var(--c-brand-2); color: #fff; transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(148,163,184,.14); font-size: 14px; }
.footer-bottom a { color: #CBD5E1; }
.footer-bottom nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--c-ink); color: #fff; box-shadow: var(--sh-lg); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--c-brand); }
.to-top svg { width: 20px; height: 20px; transform: rotate(180deg); }

/* ==========================================================================
   12. Motion
   ========================================================================== */
.js .reveal { opacity: 0; translate: 0 18px; transition: opacity .7s var(--ease), translate .7s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.js .reveal.is-in { opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; translate: none; }
}

/* ==========================================================================
   13. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.post-layout { grid-template-columns: minmax(0,1fr) 64px; }
	.post-layout .post-aside--toc { display: none; }
	.toc-mobile { display: block; }
	.footer-grid { grid-template-columns: 1fr 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
	.site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
	.nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; margin: 0; padding: 16px var(--gutter) 32px; overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease); border-top: 1px solid var(--c-line); }
	.admin-bar .nav { top: calc(var(--header-h) + 46px); }
	.nav.is-open { transform: none; }
	.nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.nav a { padding: 14px 12px; font-size: 17px; }
	.nav .menu-item-has-children > a::after { display: none; }
	.nav .menu-item-has-children { display: grid; grid-template-columns: 1fr auto; }
	.nav .sub-toggle { display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: var(--c-soft); border-radius: 10px; cursor: pointer; color: var(--c-ink); }
	.nav .sub-toggle svg { width: 18px; height: 18px; transition: transform .2s; }
	.nav .is-sub-open > .sub-toggle svg { transform: rotate(180deg); }
	.nav .sub-menu { grid-column: 1 / -1; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; min-width: 0; }
	.nav .is-sub-open > .sub-menu { display: block; }
	.menu-toggle { display: inline-grid; }
	.header-cta { display: none; }
	.header-actions { margin-left: auto; }
	body.menu-open { overflow: hidden; }
	.hero__grid, .why, .faq-layout, .about-split, .contact-layout, .newsletter, .feedback { grid-template-columns: 1fr; }
	.hero__visual { max-width: 560px; }
	.hero__float--a { left: 12px; }
	.hero__float--b { right: 12px; }
	.layout, .service-layout, .legal-layout { grid-template-columns: 1fr; }
	.sidebar, .service-aside, .legal-nav { position: static; }
	.grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	:root { --header-h: 64px; }
	.brand img { height: 34px; }
	.grid--2, .grid--3, .grid--4, .why__list, .stat-row, .post-nav { grid-template-columns: 1fr; }
	.post-card--row { flex-direction: column; }
	.post-card--row .post-card__media { flex: none; aspect-ratio: 16 / 10; }
	.post-card--hero { min-height: 420px; }
	.post-layout { grid-template-columns: 1fr; gap: 0; padding-top: 32px; }
	.share-rail { display: none; }
	.entry { font-size: 17px; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
	.nl-form__row { flex-direction: column; border-radius: 18px; }
	.nl-form__row input[type="email"] { padding: 12px 14px; }
	.section-head { margin-bottom: 28px; }
	.hero__float { display: none; }
	.author-box { flex-direction: column; }
	.post-nav .next { text-align: left; align-items: flex-start; }
	.cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
	.footer-grid { grid-template-columns: 1fr; }
	.hero__cta .btn { width: 100%; }
}
