/*
Theme Name: OITS UAE
Theme URI: https://oitsuae.com/
Author: SEOsurfer.in
Author URI: https://www.seosurfer.in/
Description: Custom theme for OITS UAE, an IT services company in Dubai. Native home page, service, contact and blog templates with a three-level dropdown menu, Customizer options for contact details, hero, stats and images, a built-in contact form, and full compatibility with pages built in Elementor.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
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: oits-uae
*/

/* ---------- Tokens ---------- */
:root {
	--brand: #7e0b80;
	--brand-dark: #5b075d;
	--brand-light: #c838c1;
	--brand-tint: #f6ecf6;
	--ink: #2c2c2c;
	--text: #333;
	--muted: #585858;
	--line: #e3e4ea;
	--surface: #f2f3f6;
	--white: #fff;
	--radius: 10px;
	--radius-sm: 6px;
	--shadow: 0 10px 30px rgba(44, 12, 45, .08);
	--container: 1280px;
	--gutter: clamp(20px, 4vw, 40px);
	--header-h: 92px;
	--font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	color: var(--ink);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -.02em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 400; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 2px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	z-index: 1000; top: 8px; left: 8px;
	padding: 10px 16px;
	background: var(--white); color: var(--brand);
	border-radius: var(--radius-sm);
}

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(900px + var(--gutter) * 2); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.eyebrow {
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--brand);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 24px;
	font: 600 14px/1.2 var(--font);
	text-transform: capitalize;
	text-align: center;
	color: var(--white);
	background: var(--brand);
	border: 2px solid var(--brand);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--white); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--brand); }
.btn--outline:hover { background: var(--brand); border-color: var(--brand); color: var(--white); }
.btn--white { background: var(--white); border-color: var(--white); color: var(--brand); }
.btn--white:hover { background: var(--brand-tint); border-color: var(--brand-tint); color: var(--brand-dark); }
.btn--pill { border-radius: 100px; }
.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--white);
	transition: box-shadow .2s;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-stuck { box-shadow: 0 4px 20px rgba(0, 0, 0, .07); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.custom-logo-link { display: block; }
.custom-logo, .site-branding img { width: auto; height: 62px; }
.site-title { font-size: 1.5rem; font-weight: 700; color: var(--brand); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav .menu { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.site-nav .menu-item { position: relative; display: flex; align-items: center; }
.site-nav .menu > .menu-item > a {
	padding: 10px 14px;
	font-size: 12px; font-weight: 600;
	letter-spacing: .8px; text-transform: uppercase;
	color: var(--brand);
}
.site-nav .menu > .menu-item > a:hover,
.site-nav .menu > .current-menu-item > a,
.site-nav .menu > .current-menu-ancestor > a { color: var(--brand-light); }
.sub-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 22px; height: 22px; margin-left: -10px; padding: 0;
	color: var(--brand); background: none; border: 0; border-radius: 4px; cursor: pointer;
}
.sub-toggle .icon { width: 12px; height: 12px; transition: transform .2s; }
.is-open > .sub-toggle .icon { transform: rotate(45deg); }

.site-nav .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 10;
	min-width: 280px;
	padding: 8px;
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: 0 18px 40px rgba(44, 12, 45, .16);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .18s, transform .18s, visibility .18s;
}
.site-nav .sub-menu .menu-item { justify-content: space-between; }
.site-nav .sub-menu a {
	flex: 1;
	padding: 9px 12px;
	font-size: 14px; font-weight: 500; line-height: 1.35;
	color: var(--ink);
	border-radius: var(--radius-sm);
}
.site-nav .sub-menu a:hover, .site-nav .sub-menu .current-menu-item > a { background: var(--brand-tint); color: var(--brand); }
.site-nav .sub-menu .sub-toggle { margin: 0 4px 0 0; }
.site-nav .sub-menu .sub-menu { top: -8px; left: 100%; }
.site-nav .sub-menu .flip > .sub-menu { left: auto; right: 100%; }
.site-nav__cta { white-space: nowrap; }
.nav-toggle { display: none; }

@media (min-width: 1101px) {
	.site-nav .menu-item:hover > .sub-menu,
	.site-nav .menu-item:focus-within > .sub-menu,
	.site-nav .menu-item.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	/* Long flat lists (Cybersecurity) flow into two columns */
	.site-nav .menu > .menu-item > .sub-menu:has(> li:nth-child(12)) { columns: 2; column-gap: 8px; min-width: 580px; left: 50%; margin-left: -290px; }
	.site-nav .menu > .menu-item > .sub-menu:has(> li:nth-child(12)) > li { break-inside: avoid; }
}

@media (max-width: 1100px) {
	:root { --header-h: 76px; }
	.custom-logo, .site-branding img { height: 50px; }
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 44px; height: 44px; padding: 0;
		color: var(--brand); background: var(--brand-tint); border: 0; border-radius: var(--radius-sm); cursor: pointer;
	}
	.nav-toggle .icon { width: 24px; height: 24px; }
	.nav-toggle__close, .nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: inline-flex; }
	.site-nav {
		position: fixed; inset: var(--header-h) 0 0 0;
		flex-direction: column; align-items: stretch; gap: 20px;
		padding: 16px var(--gutter) 32px;
		background: var(--white);
		overflow-y: auto;
		transform: translateX(100%); visibility: hidden;
		transition: transform .25s, visibility .25s;
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.site-nav > * { flex: none; }
	.nav-open .site-nav { transform: none; visibility: visible; }
	.nav-open { overflow: hidden; }
	.site-nav .menu { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
	.site-nav .menu-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.site-nav .menu > .menu-item > a { flex: 1; padding: 14px 0; font-size: 13px; }
	.sub-toggle { width: 44px; height: 44px; margin: 0; }
	.sub-toggle .icon { width: 16px; height: 16px; }
	.site-nav .sub-menu, .site-nav .sub-menu .sub-menu {
		position: static; display: none; flex-basis: 100%;
		min-width: 0; padding: 0 0 8px 12px;
		box-shadow: none; border-radius: 0;
		opacity: 1; visibility: visible; transform: none;
	}
	.site-nav .sub-menu .menu-item { border: 0; }
	.site-nav .is-open > .sub-menu { display: block; }
	.site-nav__cta { align-self: flex-start; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 100px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--alt { background: var(--surface); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin: 0; }
.section-head--center { text-align: center; max-width: 720px; margin-inline: auto; }
.section-head--split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.section-head--middle { align-items: center; margin-bottom: 0; }
.section-head__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; text-align: right; font-size: 15px; }
.section-head__aside p { margin: 0; max-width: 46ch; }

.media-placeholder {
	width: 100%; height: 100%; min-height: 180px;
	background:
		radial-gradient(circle at 20% 20%, rgba(200, 56, 193, .35), transparent 55%),
		linear-gradient(135deg, #3a0a3b, var(--brand) 60%, #a52aa0);
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 72px) clamp(48px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px) clamp(28px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.2rem, 4.6vw, 3.25rem); font-weight: 400; color: #4a4a4a; margin-bottom: 20px; }
.hero__text { max-width: 54ch; margin-bottom: 28px; color: var(--muted); }
.hero__visual { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 11; }
.hero__visual > * { width: 100%; height: 100%; object-fit: cover; }
.hero__tiles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tile {
	display: flex; flex-direction: column; justify-content: center; gap: 6px;
	min-height: 150px; padding: 22px;
	background: var(--surface);
	border-radius: var(--radius);
}
.tile__label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--brand); }
.tile__num { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 400; line-height: 1; color: var(--ink); letter-spacing: -.03em; }
.tile--ring { align-items: center; text-align: center; background: var(--white); box-shadow: inset 0 0 0 8px var(--surface); }
.tile--ring .tile__num { color: var(--brand); }
.tile--clients { background: var(--brand); color: var(--white); }
.tile__tagline { margin: 0; font-size: 1.05rem; font-weight: 500; line-height: 1.35; }
.tile__clients { margin: 0; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.tile__clients strong { font-size: 1.25rem; letter-spacing: 0; }
.tile--img { padding: 0; overflow: hidden; }
.tile--img > * { width: 100%; height: 100%; object-fit: cover; min-height: 150px; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.service-card {
	display: flex; flex-direction: column;
	min-height: 260px; padding: 32px;
	color: var(--white);
	background: var(--brand);
	border-radius: var(--radius);
	transition: transform .25s, box-shadow .25s, background .25s;
}
.service-card:hover { color: var(--white); background: var(--brand-dark); transform: translateY(-6px); box-shadow: 0 18px 36px rgba(126, 11, 128, .28); }
.service-card > .icon { width: 54px; height: 54px; stroke-width: 1; margin-bottom: 44px; }
.service-card h3 { margin: 0 0 18px; font-size: 1.25rem; font-weight: 500; color: var(--white); letter-spacing: -.02em; }
.service-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 13px; font-weight: 500; }
.service-card__more .icon { width: 14px; height: 14px; transition: transform .2s; }
.service-card:hover .service-card__more .icon { transform: translateX(4px); }

/* ---------- About ---------- */
.about-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-template-areas: "c1 i1 tall tall" "i2 c2 tall tall";
	gap: 24px;
}
.about-card { display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius); min-height: 340px; }
.about-card > .icon { width: 60px; height: 60px; stroke-width: 1; margin-bottom: 36px; }
.about-card h3 { font-size: 1.3rem; }
.about-card p { margin: 0; font-size: 14px; line-height: 1.7; }
.about-card--light { grid-area: c1; background: var(--surface); color: var(--brand); }
.about-card--light h3 { color: var(--brand); }
.about-card--brand { grid-area: c2; background: var(--brand); color: var(--white); }
.about-card--brand h3 { color: var(--white); }
.about-img { border-radius: var(--radius); overflow: hidden; }
.about-img > * { width: 100%; height: 100%; object-fit: cover; }
.about-img--1 { grid-area: i1; }
.about-img--2 { grid-area: i2; }
.about-img--tall { grid-area: tall; }

/* ---------- Why choose us ---------- */
.why { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: start; }
.why__list { list-style: none; margin: 0; padding: 12px 28px; background: var(--white); border-radius: var(--radius); }
.why__list li { display: flex; align-items: center; gap: 20px; padding: 24px 0; color: var(--brand); }
.why__list li + li { border-top: 1px solid var(--line); }
.why__list .icon { width: 48px; height: 48px; stroke-width: 1; }
.why__list h3 { margin: 0 0 2px; font-size: 1.2rem; color: var(--brand); }
.why__list p { margin: 0; font-size: 14px; }
.why__main h2 { margin-bottom: 32px; }
.why__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.why__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; }
.why__img > * { width: 100%; height: 100%; object-fit: cover; }
.quote { margin: 0; }
.quote h3 { font-size: 1.3rem; margin-bottom: 20px; }
.quote blockquote { margin: 0 0 24px; font-size: 15px; line-height: 1.75; }
.quote blockquote p { margin: 0; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote figcaption img, .quote__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.quote__avatar { display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.quote figcaption strong { display: block; font-size: 1.15rem; font-weight: 500; color: var(--ink); }
.quote figcaption small { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--brand); }

/* ---------- Portfolio ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.project {
	display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: box-shadow .25s, border-color .25s;
}
.project:hover { border-color: transparent; box-shadow: var(--shadow); }
.project__img { border-radius: var(--radius-sm); overflow: hidden; min-height: 210px; }
.project__img > * { width: 100%; height: 100%; object-fit: cover; }
.project__body { display: flex; flex-direction: column; padding: 4px 0; }
.project__body h3 { margin-bottom: 8px; font-size: 1.3rem; }
.project__body p { margin-bottom: 12px; font-size: 14px; }
.project__body ul { list-style: none; margin: 0 0 16px; padding: 0; font-size: 14px; }
.project__body li { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.project__body li .icon { color: var(--brand); width: 16px; height: 16px; }
.project__body .btn { margin-top: auto; }

/* ---------- Pricing ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; align-items: stretch; }
.plan { padding: 32px; background: var(--white); border-radius: var(--radius); }
.plan__name { margin-bottom: 20px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.plan__best { margin: 28px 0 20px; font-size: 14px; color: var(--brand); }
.plan h4 { margin-bottom: 16px; font-size: 1.25rem; font-weight: 400; }
.check-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.check-list .icon { margin-top: 3px; width: 16px; height: 16px; stroke-width: 2.5; color: var(--brand); }
.plan--featured { background: var(--brand); color: var(--white); box-shadow: 0 18px 40px rgba(126, 11, 128, .3); }
.plan--featured h3, .plan--featured h4, .plan--featured .plan__best, .plan--featured .check-list .icon { color: var(--white); }

/* ---------- CTA ---------- */
.cta {
	position: relative; isolation: isolate; overflow: hidden;
	padding: clamp(48px, 7vw, 88px) clamp(24px, 6vw, 80px);
	text-align: center; color: var(--white);
	background: linear-gradient(120deg, #9a2c9b, var(--brand) 55%, #5b075d);
	border-radius: 14px;
}
.cta::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--cta-img, none) center / cover no-repeat;
	opacity: .22; mix-blend-mode: luminosity;
}
.cta .eyebrow { color: rgba(255, 255, 255, .85); }
.cta h2 { color: var(--white); margin-bottom: 20px; }
.cta p:not(.eyebrow) { max-width: 62ch; margin: 0 auto 24px; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.faq__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; position: sticky; top: calc(var(--header-h) + 24px); }
.faq__img > * { width: 100%; height: 100%; object-fit: cover; }
.faq__main h2 { text-align: center; margin-bottom: 32px; }
.accordion details { margin-bottom: 8px; }
.accordion summary {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 18px 40px;
	font-size: 14px; font-weight: 700; color: var(--ink);
	background: var(--surface);
	cursor: pointer; list-style: none;
	transition: color .2s;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 20px; font-weight: 400; line-height: 1; color: var(--brand); }
.accordion details[open] summary::after { content: "–"; }
.accordion summary:hover, .accordion details[open] summary { color: var(--brand); }
.accordion details > :not(summary) { margin: 0; padding: 24px 40px; font-size: 15px; }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 30px; }
.post-card { display: flex; flex-direction: column; }
.post-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #3a0a3b, var(--brand)); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 36px 30px 0; }
.post-card__title { margin-bottom: 14px; font-size: 15px; font-weight: 700; line-height: 1.5; letter-spacing: 0; }
.post-card__title a { color: var(--brand); }
.post-card__title a:hover { color: var(--brand-light); }
.post-card__excerpt { margin-bottom: 12px; font-size: 15px; }
.post-card .btn { margin-top: auto; }

.pagination, .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 56px; }
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 14px;
	font-weight: 600; font-size: 14px;
	color: var(--brand); background: var(--white);
	border-radius: var(--radius-sm);
}
.page-numbers.current, a.page-numbers:hover { background: var(--brand); color: var(--white); }

/* ---------- Page banner ---------- */
.page-banner {
	position: relative; isolation: isolate;
	padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px);
	color: var(--white);
	background: linear-gradient(110deg, #8f2391, var(--brand) 50%, #9c3a9d);
}
.page-banner::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--banner-img, none) center / cover no-repeat;
	opacity: .2; mix-blend-mode: luminosity;
}
.page-banner__title { max-width: 22ch; margin-bottom: 18px; color: var(--white); font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 500; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; }
.breadcrumb a { color: var(--white); }
.breadcrumb a:hover { text-decoration: underline; }
.crumb-sep { display: inline-flex; }
.crumb-sep .icon { width: 14px; height: 14px; }

/* ---------- Content ---------- */
.entry-content { font-size: 16px; line-height: 1.75; }
.entry-content > * { margin-block: 0 1.2em; }
.entry-content h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; }
.entry-content h3 { margin-top: 1.4em; font-size: 1.3rem; }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; }
.entry-content img { border-radius: var(--radius); }
.entry-content ul li::marker { color: var(--brand); }
.entry-content blockquote { margin-inline: 0; padding: 20px 28px; border-left: 4px solid var(--brand); background: var(--brand-tint); border-radius: 0 var(--radius) var(--radius) 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--surface); }
.entry-content .wp-block-button__link { background: var(--brand); border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; }
.entry-content .alignwide { margin-inline: calc(-1 * min(8vw, 120px)); max-width: none; }
.entry-thumb { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; }
.entry-thumb img { width: 100%; }

/* ---------- Single post ---------- */
.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 4vw, 56px); align-items: start; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0 0 24px; padding: 0; font-size: 14px; color: var(--muted); }
.post-meta li { display: flex; align-items: center; gap: 8px; }
.post-meta .icon { color: var(--brand); width: 16px; height: 16px; }
.single-sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.widget { padding: 24px; background: var(--surface); border-radius: var(--radius); font-size: 14px; }
.widget-title { margin-bottom: 14px; font-size: 1.1rem; font-weight: 600; }
.widget ul, .widget ol { margin: 0; }
.toc ol { padding-left: 1.2em; }
.toc li { padding: 4px 0; }
.toc li.toc-sub { margin-left: 14px; list-style: circle; font-size: 13px; }
.toc a { color: var(--ink); }
.toc a:hover { color: var(--brand); }
.mini-posts { list-style: none; padding: 0; }
.mini-posts li + li { margin-top: 14px; }
.mini-posts a { display: flex; gap: 12px; align-items: center; font-weight: 600; line-height: 1.4; color: var(--ink); }
.mini-posts a:hover { color: var(--brand); }
.mini-posts img { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }

.comments-area { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; }
.comment-body { margin-bottom: 20px; padding: 20px; background: var(--surface); border-radius: var(--radius); }
.comment-author { display: flex; align-items: center; gap: 10px; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 13px; margin: 6px 0 10px; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], textarea, select {
	width: 100%;
	padding: 13px 16px;
	font: inherit; font-size: 14px; color: var(--text);
	background: var(--white);
	border: 1px solid #cfcfd8;
	border-radius: var(--radius-sm);
	transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(126, 11, 128, .15); }
label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--ink); }
.contact-form p, .comment-form p { margin: 0 0 16px; }
.hp-field { position: absolute; left: -9999px; }
.form-card { padding: 28px; border: 1px solid var(--brand); border-radius: var(--radius); }
.form-notice { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; }
.form-notice--ok { background: #e7f6ec; color: #17633a; }
.form-notice--err { background: #fdeaea; color: #9b1c1c; }
.search-form { display: flex; gap: 8px; max-width: 480px; margin: 20px auto; }
.comment-form input[type="submit"], .wp-block-search__button {
	padding: 12px 24px; font: 600 14px var(--font); color: var(--white);
	background: var(--brand); border: 0; border-radius: var(--radius-sm); cursor: pointer;
}

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
.contact-card {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-height: 230px; padding: 32px 24px;
	text-align: center; color: var(--white);
	background: var(--brand); border-radius: var(--radius);
	transition: background .2s, transform .2s;
}
a.contact-card:hover { color: var(--white); background: var(--brand-dark); transform: translateY(-4px); }
.contact-card .icon { width: 52px; height: 52px; stroke-width: 1; margin-bottom: 16px; }
.contact-card h2 { margin-bottom: 14px; font-size: 1.75rem; font-weight: 500; color: var(--white); }
.contact-card p { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.contact-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }

.empty-state { text-align: center; max-width: 560px; }
.fullwidth-content > .alignfull { width: 100%; }

/* ---------- Footer ---------- */
.site-footer {
	padding: 72px 0 0;
	color: rgba(255, 255, 255, .92);
	font-size: 14px;
	background: linear-gradient(182deg, var(--brand) -9%, #000 127%);
}
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr) 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand__logo img { width: auto; height: 62px; margin-bottom: 24px; }
.footer-brand .site-title { display: block; margin-bottom: 16px; color: var(--white); }
.footer-brand p { max-width: 30ch; }
.social { display: flex; gap: 12px; list-style: none; margin: 24px 0 0; padding: 0; }
.social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--white); color: var(--brand); }
.social a:hover { background: var(--brand-tint); color: var(--brand-dark); }
.social .icon { width: 18px; height: 18px; }
.footer-col__title { margin-bottom: 22px; font-size: 1.25rem; font-weight: 500; color: var(--white); letter-spacing: -.01em; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-links li { position: relative; padding: 6px 0 6px 18px; }
.footer-links li::before {
	content: ""; position: absolute; left: 2px; top: 14px;
	width: 6px; height: 6px;
	border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
}
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.footer-contact .icon { margin-top: 3px; width: 16px; height: 16px; }
.site-footer__copy { margin: 0; padding: 24px 0; text-align: center; font-size: 12px; border-top: 1px solid rgba(255, 255, 255, .12); }

/* ---------- WhatsApp ---------- */
.wa-float {
	position: fixed; right: 16px; bottom: 16px; z-index: 90;
	display: grid; place-items: center;
	width: 54px; height: 54px;
	color: #fff; background: #25d366; border-radius: 14px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}
.wa-float:hover { color: #fff; background: #1ebe5b; }
.wa-float .icon { width: 30px; height: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "c1 i1" "i2 c2" "tall tall"; }
	.about-img--tall { aspect-ratio: 16 / 10; }
	.why { grid-template-columns: 1fr; }
	.portfolio-grid { grid-template-columns: 1fr; }
	.plan-grid { gap: 20px; }
	.site-footer__grid { grid-template-columns: repeat(3, 1fr); }
	.footer-brand { grid-column: 1 / -1; }
	.single-layout { grid-template-columns: 1fr; }
	.single-sidebar { position: static; }
}
@media (max-width: 820px) {
	.hero__grid, .section-head--split, .why__row, .faq, .contact-split { grid-template-columns: 1fr; }
	.section-head__aside { align-items: flex-start; text-align: left; }
	.plan-grid, .contact-cards { grid-template-columns: 1fr; }
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.faq__img { position: static; aspect-ratio: 16 / 9; }
	.faq__main h2 { text-align: left; }
	.accordion summary, .accordion details > :not(summary) { padding-inline: 20px; }
	.entry-content .alignwide { margin-inline: 0; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
	.service-grid, .post-grid, .hero__tiles { grid-template-columns: 1fr; }
	.hero__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tile--clients { grid-column: 1 / -1; }
	.service-card { min-height: 0; }
	.service-card > .icon { margin-bottom: 24px; }
	.about-grid { grid-template-columns: 1fr; grid-template-areas: "c1" "i1" "c2" "i2" "tall"; }
	.about-card { min-height: 0; }
	.about-img { aspect-ratio: 4 / 3; }
	.project { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.post-card__body { padding: 24px 0 0; }
	.btn-row .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
