/* =====================================================================
   SHILOTECH Enterprise — layout.css
   Containers, header, sections, grids, footer.
   ===================================================================== */

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

.section { padding: var(--section-pad) 0; }

/* ---------------------------------------------------------------------
 * TOP BAR
 * ------------------------------------------------------------------- */
.topbar {
	background: var(--shilo-secondary);
	color: #C9D6E6;
	font-size: .8rem;
	position: relative;
	z-index: 60;
}
.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
	min-height: 40px;
	flex-wrap: wrap;
}
@media (min-width: 993px) {
	.topbar-inner { flex-wrap: nowrap; }
	.topbar-item span { white-space: nowrap; }
}
/* If it ever wraps, keep rows tidy and centered */
.topbar-inner > * { margin-block: 4px; }
.topbar-contacts { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.topbar-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #C9D6E6;
}
.topbar-item:hover { color: var(--shilo-primary); }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-social { display: flex; gap: 4px; }
.topbar-social a {
	display: inline-flex;
	padding: 6px;
	color: #C9D6E6;
	border-radius: 8px;
	transition: color .25s var(--ease), background .25s var(--ease);
}
.topbar-social a:hover { color: #fff; background: rgba(255,255,255,.1); }

.lang-switch { display: inline-flex; background: rgba(255,255,255,.08); border-radius: 20px; padding: 2px; }
.lang-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 12px;
	border-radius: 18px;
	color: #C9D6E6;
	font-weight: 600;
}
.lang-btn.is-active { background: var(--shilo-primary); color: #06263C; }
.lang-btn .flag {
	display: inline-block;
	flex: 0 0 auto;
	border-radius: 3px;
	box-shadow: 0 0 0 1px rgba(255,255,255,.25);
}
.lang-btn .lang-code { font-size: .82rem; letter-spacing: .03em; }

/* ---------------------------------------------------------------------
 * MAIN HEADER — sticky, transparent on hero, shrinks on scroll
 * ------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--surface);
	box-shadow: 0 1px 0 var(--line);
	transition: background var(--speed) var(--ease), box-shadow var(--speed) var(--ease), padding var(--speed) var(--ease);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 78px;
	transition: min-height var(--speed) var(--ease);
}
.site-header.is-shrunk .header-inner { min-height: 62px; }
.site-header.is-shrunk { box-shadow: var(--shadow-light); }

/* Header is always solid — the site logo has dark text, so a
   transparent header over the navy hero would hide it. */

/* Branding */
.site-branding .custom-logo { max-height: 56px; width: auto; }
.logo-text {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 1.35rem;
	letter-spacing: .02em;
	color: var(--ink);
}
.logo-mark {
	width: 26px; height: 26px;
	border-radius: 7px;
	background:
		linear-gradient(135deg, var(--shilo-primary) 0 55%, var(--shilo-cta) 55% 100%);
	box-shadow: 0 4px 12px rgba(41,182,246,.4);
}

/* Navigation */
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-menu { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-menu > .menu-item { position: relative; }
.nav-menu > .menu-item > a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 10px 16px;
	font-weight: 700;
	font-size: .95rem;
	white-space: nowrap;
	color: #000;
	position: relative;
}
/* Dark mode keeps light text for readability */
[data-theme="dark"] .nav-menu > .menu-item > a { color: var(--ink); }
/* Underline grows from center on hover */
.nav-menu > .menu-item > a::after {
	content: "";
	position: absolute;
	left: 50%; bottom: 4px;
	width: 0; height: 2.5px;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--shilo-primary), var(--shilo-cta));
	transform: translateX(-50%);
	transition: width .3s var(--ease);
}
.nav-menu > .menu-item > a:hover::after,
.nav-menu > .menu-item.current-menu-item > a::after { width: calc(100% - 32px); }

/* Simple dropdown for menus built in wp-admin */
.nav-menu .sub-menu {
	position: absolute;
	top: 100%; left: 0;
	min-width: 230px;
	background: var(--surface-glass);
	backdrop-filter: blur(18px);
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: var(--shadow-hover);
	padding: 10px;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: all .3s var(--ease);
}
.nav-menu .menu-item:hover > .sub-menu,
.nav-menu .menu-item:focus-within > .sub-menu {
	opacity: 1; visibility: visible; transform: translateY(4px);
}
.nav-menu .sub-menu a {
	display: block;
	padding: 9px 14px;
	border-radius: 9px;
	color: var(--ink);
	font-weight: 500;
}
.nav-menu .sub-menu a:hover { background: var(--primary-soft); color: var(--shilo-primary); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px; height: 42px;
	border-radius: 12px;
	color: var(--ink);
	transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.icon-btn:hover { background: var(--primary-soft); color: var(--shilo-primary); transform: scale(1.06); }

[data-theme-toggle] .show-dark { display: none; }
[data-theme="dark"] [data-theme-toggle] .show-dark { display: inline-flex; }
[data-theme="dark"] [data-theme-toggle] .show-light { display: none; }

.mobile-toggle { display: none; }
.mobile-toggle .show-open { display: none; }
.site-header.is-mobile-open .mobile-toggle .show-open { display: inline-flex; }
.site-header.is-mobile-open .mobile-toggle .show-closed { display: none; }

/* Mobile menu */
.mobile-menu {
	background: var(--surface);
	border-top: 1px solid var(--line);
	box-shadow: var(--shadow-hover);
	padding: 18px 24px 26px;
	animation: shilo-mobile-in .28s var(--ease);
}
.mobile-menu[hidden] { display: none; }
@keyframes shilo-mobile-in {
	from { opacity: 0; transform: translateY(-10px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Compact language switch shown on mobile, before the hamburger */
.lang-switch-mobile { display: none; }
@media (max-width: 992px) {
	.lang-switch-mobile {
		display: inline-flex;
		background: var(--navy-soft, rgba(41,182,246,.1));
		border: 1px solid var(--line);
		margin-right: 4px;
	}
	.lang-switch-mobile .lang-btn { color: var(--ink); padding: 3px 10px; }
	.lang-switch-mobile .lang-btn.is-active { background: var(--shilo-primary); color: #06263C; }
}
.mobile-nav { list-style: none; }
.mobile-nav > li { border-bottom: 1px solid var(--line); }
.mobile-nav a,
.mobile-nav button {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	padding: 14px 4px;
	font-weight: 700;
	color: #000;
	text-align: left;
}
[data-theme="dark"] .mobile-nav a,
[data-theme="dark"] .mobile-nav button { color: var(--ink); }
.mobile-quote { margin-top: 18px; width: 100%; justify-content: center; }

/* ---------------------------------------------------------------------
 * PAGE HERO (inner pages)
 * ------------------------------------------------------------------- */
.page-hero {
	background:
		radial-gradient(1000px 400px at 85% -10%, rgba(41,182,246,.28), transparent 60%),
		var(--shilo-secondary);
	color: #fff;
	padding: 72px 0;
}
.page-hero .page-title { color: #fff; margin: 0; }
.project-meta-hero { margin-top: 14px; }
.project-meta-hero li { color: #C9D6E6; }

/* Breadcrumbs */
.breadcrumbs {
	background: var(--navy-soft);
	font-size: .85rem;
	border-bottom: 1px solid var(--line);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 10px 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--ink-soft); }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--shilo-primary); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------------
 * GRIDS
 * ------------------------------------------------------------------- */
.services-grid   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.projects-grid   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.posts-grid      { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.why-grid        { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.about-grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 64px;
	align-items: center;
}
/* Mobile: single column — image first, then text */
@media (max-width: 900px) {
	.about-grid { grid-template-columns: 1fr; gap: 34px; align-items: start; }
}
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: 48px;
	align-items: start;
}

/* ---------------------------------------------------------------------
 * SECTION BACKGROUNDS
 * ------------------------------------------------------------------- */
.section-partners { background: var(--surface); padding-bottom: 80px; }
.section-about    { background: var(--bg); }
.section-services { background: var(--navy-soft); }
.section-why      {
	background:
		radial-gradient(900px 500px at 15% 0%, rgba(41,182,246,.15), transparent 55%),
		var(--shilo-secondary);
	color: #fff;
}
.section-why .section-title { color: #fff; }
.section-industries { background: var(--surface); }
.section-process    { background: var(--navy-soft); }
.section-cta {
	position: relative;
	background:
		linear-gradient(100deg, rgba(6, 20, 44, .93) 0%, rgba(9, 30, 62, .88) 45%, rgba(13, 44, 89, .8) 100%),
		url('../images/cta-server-room.svg') center/cover no-repeat,
		#081B37;
	color: #fff;
	padding: 88px 0;
}
/* Drop a real photo at assets/images/cta-bg.jpg and uncomment to use it:
.section-cta {
	background:
		linear-gradient(100deg, rgba(6, 20, 44, .93) 0%, rgba(9, 30, 62, .88) 45%, rgba(13, 44, 89, .8) 100%),
		url('../images/cta-bg.jpg') center/cover no-repeat;
}
*/
.section-contact { background: var(--surface); }

/* ---------------------------------------------------------------------
 * FOOTER
 * ------------------------------------------------------------------- */
.site-footer { background: var(--shilo-secondary); color: #B9C7DB; }
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
	gap: 44px;
	padding: 80px 24px 56px;
}
.footer-logo { color: #fff; margin-bottom: 14px; }
.footer-logo-img {
	display: inline-block;
	background: #fff;
	padding: 10px 16px;
	border-radius: 12px;
	line-height: 0;
}
.footer-logo-img img { max-height: 52px; width: auto; display: block; }
.footer-about p { color: #B9C7DB; }
.footer-heading {
	color: #fff;
	font-size: 1rem;
	margin-bottom: 18px;
	position: relative;
	padding-bottom: 10px;
}
.footer-heading::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 34px; height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--shilo-primary), var(--shilo-cta));
}

/* Visitors widget (matches approved design: gold side bar + icon list) */
.footer-heading-bar {
	padding: 0 0 0 12px;
	border-left: 3px solid var(--shilo-cta);
	font-size: 1.15rem;
	font-weight: 700;
}
.footer-heading-bar::after { display: none; }

.visitor-stats { list-style: none; margin: 0; padding: 0; }
.visitor-stats li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	color: #CBD8EA;
	font-size: 1rem;
}
.visitor-stats .vis-ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	flex: 0 0 auto;
	color: var(--shilo-cta);
}
.visitor-stats .vis-count {
	margin-left: auto;
	color: #fff;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.dot-online {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #2EBD6B;
	box-shadow: 0 0 0 3px rgba(46, 189, 107, .22);
}
.footer-links { list-style: none; }
.footer-links a {
	display: inline-block;
	padding: 5px 0;
	color: #B9C7DB;
	transition: color .25s var(--ease), transform .25s var(--ease);
}
.footer-links a:hover { color: var(--shilo-primary); transform: translateX(4px); }
.footer-contact { list-style: none; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.footer-contact svg { flex: none; margin-top: 4px; color: var(--shilo-primary); }
.footer-contact a { color: #B9C7DB; }
.footer-contact a:hover { color: var(--shilo-primary); }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a {
	display: inline-flex;
	padding: 9px;
	border-radius: 10px;
	background: rgba(255,255,255,.07);
	color: #B9C7DB;
	transition: all .25s var(--ease);
}
.footer-social a:hover { background: var(--shilo-primary); color: #06263C; transform: translateY(-3px); }

.newsletter-heading { margin-top: 26px; }
.newsletter-note { font-size: .85rem; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
	flex: 1;
	min-width: 0;
	padding: 11px 14px;
	border-radius: var(--radius-btn);
	border: 1px solid rgba(255,255,255,.18);
	background: rgba(255,255,255,.07);
	color: #fff;
}
.newsletter-form input::placeholder { color: #8FA2BD; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 20px;
	padding-bottom: 20px;
	font-size: .84rem;
}
.footer-bottom p { margin: 0; color: #8FA2BD; }
.footer-legal { display: flex; gap: 20px; list-style: none; }
.footer-legal a { color: #8FA2BD; }
.footer-legal a:hover { color: var(--shilo-primary); }

/* Page hero subtitle (inner pages) */
.page-hero .page-sub {
	margin: 12px 0 0;
	max-width: 640px;
	color: #C9D6E6;
	font-size: 1.05rem;
}

/* Mission / Vision / Values cards (About page) */
.mv-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.mv-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 30px 26px;
	box-shadow: var(--shadow-light);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.mv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.mv-card .mv-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px; height: 52px;
	border-radius: 14px;
	background: var(--primary-soft, rgba(41,182,246,.12));
	color: var(--shilo-primary);
	margin-bottom: 16px;
}
.mv-card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.mv-card p { margin: 0; color: var(--ink-soft); }
.mv-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .mv-grid, .mv-grid-2 { grid-template-columns: 1fr; } }

/* Service detail blocks (Services page) */
.svc-details {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}
.svc-detail {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 30px 26px;
	box-shadow: var(--shadow-light);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.svc-detail:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.svc-detail-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
}
.svc-detail-head h3 { margin: 0; font-size: 1.2rem; }
.svc-detail p { color: var(--ink-soft); }
.svc-detail .about-checks { margin-top: 14px; }
@media (max-width: 900px) { .svc-details { grid-template-columns: 1fr; } }
