/*
Theme Name: Kuwait IT Solutions
Description: Custom theme for Kuwait I.T. Solutions: dark enterprise console look with mint and indigo accents, grid lines and monospace labels.
Version: 1.0.2
Author: biz-sky
Text Domain: kuwait-it-solutions
*/

:root {
	--bg: #070b16;
	--bg2: #0c1324;
	--surface: #101a30;
	--line: #1f2b47;
	--text: #e7edf8;
	--muted: #98a6c2;
	--mint: #2ee6c5;
	--mint-d: #19b89c;
	--indigo: #8190ff;
	--radius: 12px;
	--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--head: "Space Grotesk", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mint); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; color: #fff; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.screen-reader-text:focus { width: auto; height: auto; clip: auto; clip-path: none; inset-inline-start: 10px; top: 10px; z-index: 999; background: var(--mint); color: #000; padding: 8px 14px; border-radius: 6px; }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 8px; font-weight: 600; font-family: var(--head); border: 1px solid transparent; transition: .2s; cursor: pointer; line-height: 1.2; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-accent { background: var(--mint); color: #04121a; }
.btn-accent:hover { background: #fff; color: #04121a; box-shadow: 0 0 0 4px rgba(46,230,197,.18); }
.btn-line { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.02); }
.btn-line:hover { border-color: var(--mint); color: var(--mint); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-family: var(--head); color: var(--mint); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7,11,22,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-family: var(--head); font-weight: 700; font-size: 19px; }
.brand img { max-height: 46px; width: auto; }
.logo-mark { display: grid; grid-template-columns: repeat(2, 11px); gap: 4px; }
.logo-mark i { width: 11px; height: 11px; border-radius: 3px; background: var(--mint); }
.logo-mark i:nth-child(2) { background: var(--indigo); }
.logo-mark i:nth-child(3) { background: transparent; border: 2px solid var(--mint); }
.logo-mark i:nth-child(4) { background: #fff; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a { display: block; padding: 8px 12px; color: var(--muted); font-weight: 500; font-size: 15px; border-radius: 6px; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: #fff; background: var(--surface); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.h-search { display: flex; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; }
.h-search input { background: none; border: 0; color: var(--text); padding: 8px 10px; width: 130px; font: inherit; font-size: 14px; outline: none; }
.h-search button { background: none; border: 0; color: var(--muted); padding: 8px 10px; cursor: pointer; display: flex; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 10px; cursor: pointer; flex-direction: column; gap: 4px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; }

/* Hero */
.hero { position: relative; padding: 70px 0 50px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; opacity: .35; mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%); }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; inset-inline-end: -120px; top: -160px; background: radial-gradient(circle, rgba(129,144,255,.25), transparent 65%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--mint); letter-spacing: .02em; margin-bottom: 14px; }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(46,230,197,.2); }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 700; margin-bottom: 18px; }
.hero-sub { color: var(--muted); font-size: 18px; max-width: 560px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-tag { color: var(--indigo); font-size: 14px; margin: 0; }
.caret { display: inline-block; width: 8px; height: 1em; background: var(--indigo); vertical-align: -2px; margin-inline-start: 4px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }
.hero-visual { position: relative; padding-bottom: 40px; }
.hero-photo { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.hero-photo img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; filter: saturate(1.1) contrast(1.05); }
.console { position: absolute; inset-inline-start: -30px; bottom: 0; width: min(330px, 85%); background: rgba(10,16,30,.94); border: 1px solid var(--line); border-radius: 10px; font-family: var(--mono); font-size: 13px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.console-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.console-bar i { width: 9px; height: 9px; border-radius: 50%; background: #f87171; }
.console-bar i:nth-child(2) { background: #fbbf24; }
.console-bar i:nth-child(3) { background: #34d399; }
.console-bar span { margin-inline-start: 8px; }
.console ul { list-style: none; margin: 0; padding: 12px 14px; display: grid; gap: 4px; color: #cfd8ea; }
.console .ok { color: var(--mint); }
.stats { list-style: none; margin: 50px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(16,26,48,.6); position: relative; z-index: 1; }
.stats li { padding: 22px 24px; border-inline-start: 1px solid var(--line); }
.stats li:first-child { border-inline-start: 0; }
.stats strong { display: block; font-family: var(--head); font-size: 34px; color: var(--mint); line-height: 1.1; }
.stats span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg2); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); }
.section-head p { color: var(--muted); font-size: 17px; }

.solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sol { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: .25s; }
.sol:hover { border-color: var(--mint); transform: translateY(-3px); color: var(--text); }
.sol-img { display: block; background: #0a1020; }
.sol-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sol-body { display: flex; flex-direction: column; padding: 22px; flex: 1; }
.sol-num { color: var(--indigo); font-size: 13px; margin-bottom: 8px; }
.sol h3 { font-size: 20px; }
.sol p { color: var(--muted); font-size: 15px; flex: 1; }
.sol-wide { grid-column: span 2; flex-direction: row; }
.sol-wide .sol-img { flex: 1.1; }
.sol-wide .sol-img img { height: 100%; aspect-ratio: auto; min-height: 280px; }
.sol-wide .sol-body { flex: 1; padding: 30px; }
.sol-wide h3 { font-size: 26px; }

.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cap { background: var(--bg2); padding: 26px 22px; transition: .2s; }
.cap:hover { background: var(--surface); }
.cap-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; background: rgba(46,230,197,.1); color: var(--mint); margin-bottom: 14px; }
.cap-icon svg { width: 22px; height: 22px; }
.cap h3 { font-size: 17px; margin-bottom: 4px; }
.cap p { color: var(--muted); font-size: 14px; margin: 0; }
.industries { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.industries .mono { color: var(--muted); font-size: 13px; margin-inline-end: 6px; }
.chip { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--text); background: var(--surface); }
.chip-mono { font-family: var(--mono); font-size: 13px; color: var(--mint); border-radius: 6px; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media { margin: 0; position: relative; }
.about-media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 4 / 3; object-fit: cover; }
.about-media figcaption { position: absolute; inset-inline-start: 16px; bottom: 16px; background: rgba(7,11,22,.85); border: 1px solid var(--line); color: var(--mint); font-size: 12px; padding: 8px 12px; border-radius: 6px; max-width: calc(100% - 32px); }
.about-text h2 { font-size: clamp(26px, 3vw, 36px); }
.about-text > p { color: var(--muted); }
.certs { border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; margin: 22px 0 26px; }
.certs h4 { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); font-weight: 500; }
.certs h4 svg { color: var(--indigo); }
.certs div { display: flex; flex-wrap: wrap; gap: 8px; }

.quote { max-width: 900px; text-align: center; }
.quote blockquote { margin: 0 0 20px; font-family: var(--head); font-size: clamp(20px, 2.4vw, 27px); line-height: 1.5; color: #fff; }
.quote blockquote::before { content: "/* "; color: var(--indigo); font-family: var(--mono); }
.quote blockquote::after { content: " */"; color: var(--indigo); font-family: var(--mono); }

.cta { padding: 70px 0; background: linear-gradient(120deg, #0e1a3a, #0a2a33); border-top: 1px solid var(--line); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(24px, 3vw, 36px); }
.cta p { color: var(--muted); margin: 0; }

/* Footer */
.site-footer { background: #050811; border-top: 1px solid var(--line); padding: 60px 0 0; color: var(--muted); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr; gap: 40px; }
.footer-grid .brand { margin-bottom: 16px; }
.site-footer h4 { font-size: 15px; font-family: var(--mono); color: var(--mint); font-weight: 600; text-transform: lowercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--mint); }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.contact-list svg { color: var(--mint); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 40px; padding: 20px 0; font-size: 13px; }

/* Inner pages */
.page-head { padding: 54px 0 40px; border-bottom: 1px solid var(--line); background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 48px, var(--bg2); }
.page-head h1 { font-size: clamp(28px, 4vw, 44px); margin: 0; max-width: 900px; }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.crumbs a { color: var(--mint); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding: 50px 0 80px; }
.entry { min-width: 0; }
.entry-featured img { border-radius: var(--radius); margin-bottom: 26px; }
.entry-content { font-size: 16.5px; color: #d3dbea; overflow-wrap: anywhere; }
/* Post bodies on this site are written inside h2–h4, so those read as body text. */
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { font-family: "Inter", system-ui, sans-serif; font-size: 16.5px; font-weight: 400; line-height: 1.75; color: #d3dbea; margin: 0 0 1.1em; letter-spacing: 0; }
.entry-content > h2:first-child:not(:has(span[style])), .entry-content > h3:first-child:not(:has(span[style])) { font-family: var(--head); font-weight: 700; font-size: 1.3em; line-height: 1.35; color: #fff; }
.entry-content span[style*="ff00ff"] { color: var(--mint) !important; font-weight: 600; }
.entry-content h4 { color: var(--muted); }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: 10px; margin: 20px auto; background: #fff; }
.entry-content .alignleft { float: left; margin: 0 20px 12px 0; }
.entry-content .alignright { float: right; margin: 0 0 12px 20px; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content blockquote { border-inline-start: 3px solid var(--mint); margin: 1.5em 0; padding: 4px 20px; color: var(--muted); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 10px; }
.entry-content pre, .entry-content code { font-family: var(--mono); background: var(--surface); border-radius: 6px; }
.entry-content pre { padding: 16px; overflow-x: auto; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0; }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin: 0; }
.gallery br { display: none; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--muted); text-align: center; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); clear: both; }
.post-nav a { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); }
.post-nav a:hover { border-color: var(--mint); }
.post-nav .next { text-align: end; grid-column: 2; }
.post-nav span { color: var(--mint); font-size: 12px; }

.side .sticky { position: sticky; top: 96px; display: grid; gap: 20px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.box h3 { font-size: 18px; }
.box p { color: var(--muted); font-size: 14px; }
.box-cta { background: linear-gradient(150deg, #13224a, #0c2b33); }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.side-list a { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 14px; line-height: 1.4; }
.side-list a:hover { color: var(--mint); }
.side-list img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: #fff; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card .thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card .body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card .meta { color: var(--indigo); font-size: 12px; margin-bottom: 6px; }
.card h3 { font-size: 19px; }
.card h3 a { color: #fff; }
.card h3 a:hover { color: var(--mint); }
.card p { color: var(--muted); font-size: 15px; flex: 1; }
.pagination { margin-top: 36px; display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.pagination .current { background: var(--mint); color: #04121a; border-color: var(--mint); }
.empty { text-align: center; max-width: 560px; margin-inline: auto; color: var(--muted); }
.big404 { font-size: 96px; font-weight: 600; color: var(--mint); line-height: 1; margin-bottom: 12px; }
.search-form { display: flex; gap: 8px; margin: 20px 0; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: inherit; }
.search-form .search-submit { padding: 12px 20px; border-radius: 8px; border: 0; background: var(--mint); color: #04121a; font-weight: 600; cursor: pointer; font: inherit; font-weight: 600; }

/* Responsive */
@media (max-width: 1080px) {
	.h-search { display: none; }
	.caps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.nav-toggle { display: flex; }
	.main-nav { position: absolute; top: 100%; inset-inline: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; margin: 0; }
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; padding: 10px 20px 18px; }
	.main-nav a { padding: 12px; }
	.header-actions { margin-inline-start: auto; }
	.hero-inner, .about, .layout { grid-template-columns: 1fr; }
	.hero-visual { max-width: 620px; }
	.console { inset-inline-start: 12px; }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.stats li:nth-child(3) { border-inline-start: 0; }
	.stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
	.solutions, .cards { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.wrap { width: calc(100% - 32px); }
	.header-actions .btn-sm { display: none; }
	.brand { font-size: 17px; }
	.hero { padding-top: 44px; }
	.solutions, .cards, .caps, .footer-grid { grid-template-columns: 1fr; }
	.sol-wide { grid-column: auto; flex-direction: column; }
	.sol-wide .sol-img img { min-height: 0; aspect-ratio: 16 / 9; }
	.sol-wide .sol-body { padding: 22px; }
	.stats strong { font-size: 28px; }
	.stats li { padding: 18px 16px; }
	.section { padding: 60px 0; }
	.gallery { grid-template-columns: repeat(2, 1fr); }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav .next { grid-column: auto; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 16px auto; }
	.cta-inner { flex-direction: column; align-items: flex-start; }
}
.site-footer .btn-accent { color: #04121a; }
