/*
Theme Name: Iconsoft
Theme URI: https://iconsoftmalta.com
Author: Iconsoft Software
Description: Company website theme for Iconsoft — Perfect Control System and Catering System.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: iconsoft
*/

:root {
	--ink: #0f1c2e;
	--ink-soft: #46556a;
	--line: #dde3ec;
	--bg: #ffffff;
	--bg-alt: #f4f7fb;
	--navy: #0c2240;
	--navy-2: #143461;
	--pcs: #1d5fd1;
	--pcs-tint: #e8f0fd;
	--cat: #d9622b;
	--cat-tint: #fdeee6;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(12, 34, 64, .08);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--pcs); }
img { max-width: 100%; height: auto; }

/* Remove WordPress flow-layout gaps between full-width sections. */
.site-main > *, .wp-block-post-content > *, .wp-block-template-part > * { margin-block: 0; }
.wp-block-template-part { margin: 0; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 88px; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pcs); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.wp-block-buttons.center { justify-content: center; }
.wp-block-button { margin: 0; }
.wp-block-button__link, .btn {
	display: inline-block;
	padding: 14px 26px;
	border-radius: 10px;
	background: var(--pcs);
	color: #fff;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	border: 2px solid transparent;
	transition: transform .15s ease, background .15s ease;
}
.wp-block-button__link:hover, .btn:hover { transform: translateY(-1px); background: #164db0; color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border-color: currentColor; color: inherit; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(255, 255, 255, .1); }
.wp-block-button.cat .wp-block-button__link { background: var(--cat); }
.wp-block-button.cat .wp-block-button__link:hover { background: #bd5221; }
.wp-block-button.light .wp-block-button__link { background: #fff; color: var(--navy); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; font-size: 1.3rem; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--pcs), var(--navy)); display: grid; place-items: center; color: #fff; font-size: 1rem; }
.brand small { font-weight: 500; color: var(--ink-soft); font-size: .8rem; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:hover { color: var(--pcs); }
.nav a.btn { color: #fff; padding: 10px 18px; }
.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 860px) {
	.nav-toggle-label { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; border-radius: 8px; }
	.nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after { content: ""; display: block; width: 22px; height: 2px; background: var(--ink); position: relative; }
	.nav-toggle-label span::before { position: absolute; top: -7px; }
	.nav-toggle-label span::after { position: absolute; top: 7px; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
	.nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
	.nav a.btn { margin-top: 12px; text-align: center; border: 0; }
	.nav-toggle:checked ~ .nav { display: flex; }
}

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #1f4f9a 0%, transparent 60%), var(--navy); color: #fff; padding-block: 96px 104px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero .eyebrow { color: #8db7ff; }
.hero .lead { color: #c4d3ea; }
.hero h1 { color: #fff; }
.hero.cat-hero { background: radial-gradient(1000px 500px at 90% -10%, #7a3315 0%, transparent 60%), #24160f; }
.hero.cat-hero .eyebrow { color: #ffb48f; }
.hero.cat-hero .lead { color: #e7d3c8; }
.hero.simple .container { grid-template-columns: 1fr; max-width: 820px; text-align: center; }
.hero.simple .wp-block-buttons { justify-content: center; }

/* Decorative app-window mock-ups */
.mock { background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; font-size: .82rem; }
.mock-bar { display: flex; gap: 6px; padding: 10px 14px; background: #eef2f7; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9d2de; }
.mock-body { display: grid; grid-template-columns: 150px 1fr; min-height: 300px; }
.mock-side { background: var(--navy-2); color: #c9d7ee; padding: 14px 0; }
.mock-side div { padding: 7px 16px; }
.mock-side div.on { background: rgba(255, 255, 255, .12); color: #fff; border-left: 3px solid #6ea3ff; }
.mock-main { padding: 16px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-kpis div { background: var(--bg-alt); border-radius: 8px; padding: 10px; }
.mock-kpis b { display: block; font-size: 1.05rem; }
.mock-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.mock-row.head { font-weight: 700; color: var(--ink-soft); }
.mock-tables { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mock-tables div { aspect-ratio: 1; border-radius: 10px; background: var(--bg-alt); display: grid; place-items: center; font-weight: 700; }
.mock-tables div.busy { background: var(--cat-tint); color: var(--cat); }
.mock-tables div.ready { background: #e3f6ea; color: #1e8a4c; }
.cat-hero .mock-side { background: #3a2318; }
.cat-hero .mock-side div.on { border-left-color: #ff9a66; }

/* ---------- Product cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product-card .tag { display: inline-block; align-self: flex-start; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--pcs-tint); color: var(--pcs); margin-bottom: 18px; }
.product-card.cat .tag { background: var(--cat-tint); color: var(--cat); }
.product-card .wp-block-buttons { margin-top: auto; padding-top: 12px; }

.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--pcs-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231d5fd1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.cat .checks li::before, .checks.cat li::before { background-color: var(--cat-tint); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23d9622b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- Feature / module cards ---------- */
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.section.alt .feature { border-color: transparent; box-shadow: var(--shadow); }
.feature .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--pcs-tint); color: var(--pcs); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px; }
.cat .feature .icon, .feature.cat .icon { background: var(--cat-tint); color: var(--cat); }
.feature p { color: var(--ink-soft); margin: 0; }
.chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--pcs-tint); color: var(--pcs); }
.feature.more { background: transparent; border: 2px dashed var(--line); box-shadow: none; }

/* Document archive mock-up */
.archive-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 4px 4px 12px; border-bottom: 1px solid var(--line); }
.archive-head b { font-size: .95rem; }
.archive-head span { color: var(--ink-soft); }
.archive-file { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.archive-file .ft { font-size: .68rem; font-weight: 800; padding: 6px 7px; border-radius: 6px; }
.ft.img { background: var(--pcs-tint); color: var(--pcs); }
.ft.pdf { background: #fde8e8; color: #c53030; }
.ft.doc { background: #e6f0ff; color: #2b5797; }
.archive-file em { font-style: normal; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-soft); }
.archive-file em.signed { background: #e3f6ea; color: #1e8a4c; }

/* Sales tablet mock-up */
.tablet { background: #1b2433; border-radius: 26px; padding: 16px; box-shadow: 0 30px 70px rgba(12, 34, 64, .3); font-size: .78rem; }
.tablet-screen { background: #fff; border-radius: 12px; display: grid; grid-template-columns: 1.5fr 1fr; overflow: hidden; color: var(--ink); }
.tablet-cat { padding: 14px; }
.tablet-order { padding: 14px; background: var(--bg-alt); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.tablet-title { font-weight: 700; font-size: .85rem; margin-bottom: 10px; }
.tablet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tablet-grid div { border: 1px solid var(--line); border-radius: 8px; padding: 6px; line-height: 1.3; }
.tablet-grid i { display: block; height: 38px; border-radius: 6px; margin-bottom: 6px; }
.tablet-grid b { display: block; color: var(--pcs); }
.tablet-grid .p1 { background: linear-gradient(135deg, #f6e7a8, #e0b84a); }
.tablet-grid .p2 { background: linear-gradient(135deg, #fbe3c4, #e8a868); }
.tablet-grid .p3 { background: linear-gradient(135deg, #f8c4b8, #d9624b); }
.tablet-grid .p4 { background: linear-gradient(135deg, #d8c3b0, #7b5236); }
.tablet-order .pda-row b { color: var(--ink); }
.tablet-total { display: flex; justify-content: space-between; padding: 10px 2px 0; font-weight: 600; margin-top: auto; }
@media (max-width: 600px) {
	.tablet-screen { grid-template-columns: 1fr; }
	.tablet-order { border-left: 0; border-top: 1px solid var(--line); }
}

/* PDA handheld mock-up */
.pda { width: 100%; max-width: 300px; margin-inline: auto; background: #1b2433; border-radius: 34px; padding: 22px 16px 18px; box-shadow: 0 30px 70px rgba(12, 34, 64, .3); font-size: .82rem; }
.pda-screen { background: #fff; border-radius: 14px; padding: 14px; color: var(--ink); }
.pda-title { font-weight: 700; font-size: .95rem; margin-bottom: 10px; }
.pda-title small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .75rem; }
.pda-scan { background: var(--pcs-tint); color: var(--pcs); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; font-weight: 600; letter-spacing: .02em; }
.pda-row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.pda-row b { color: #1e8a4c; white-space: nowrap; }
.pda-row.pending b { color: var(--cat); }
.pda-btn { margin-top: 12px; background: var(--pcs); color: #fff; text-align: center; border-radius: 8px; padding: 10px; font-weight: 700; }
.pda-keys { display: flex; justify-content: center; gap: 14px; margin-top: 16px; }
.pda-keys i { width: 46px; height: 14px; border-radius: 7px; background: #344155; }
.pda-keys i:nth-child(2) { background: #e0a526; }

/* ---------- Split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.panel { background: var(--navy); color: #dce6f5; border-radius: var(--radius); padding: 36px; }
.panel h3 { color: #fff; }
.panel.cat { background: #2b1a12; color: #efe0d7; }
.stat-list { display: grid; gap: 18px; }
.stat-list div { display: flex; gap: 14px; align-items: baseline; }
.stat-list b { color: #fff; min-width: 120px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.step p { color: var(--ink-soft); }

/* ---------- CTu band ---------- */
.cta { background: linear-gradient(120deg, var(--pcs), var(--navy)); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #d5e2f8; max-width: 640px; margin-inline: auto; }
.cta.cat-cta { background: linear-gradient(120deg, var(--cat), #3a2318); }

/* ---------- Contact ---------- */
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card h3 { margin-bottom: .3em; }
.contact-card p { margin: 0; color: var(--ink-soft); }
.contact-card a { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Plain pages (page.html) ---------- */
.page-plain { padding-block: 64px 88px; }
.page-plain .container { max-width: 820px; }

/* ---------- Footer ---------- */
.site-footer { background: #08172c; color: #9fb0c8; padding-block: 64px 32px; font-size: .95rem; }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c9d6e8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid #1d2f4a; padding-top: 24px; margin-top: 16px; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.hero .container, .split, .grid-2 { grid-template-columns: 1fr; }
	.split > .mock:first-child, .split > .panel:first-child { order: 2; }
	.grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
	.site-footer .container { grid-template-columns: 1fr 1fr; }
	.site-footer .container > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.container { padding-inline: 16px; }
	.section { padding-block: 64px; }
	.hero { padding-block: 64px 72px; }
	.grid-3, .grid-4, .site-footer .container { grid-template-columns: 1fr; }
	.product-card, .panel { padding: 26px; }
	.mock-body { grid-template-columns: 1fr; }
	.mock-side { display: none; }
	.stat-list div { flex-direction: column; gap: 2px; }
}
