/*
Theme Name: Techlific
Theme URI: https://techlific.com
Author: Techlific
Description: Website theme for Techlific — software development and technology consulting. Includes Home, Services and Contact page templates and a built-in contact form.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techlific
*/

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #F3F7FB; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: #0B2239; }
a:hover { color: #0A6A9C; }

.gridbg {
	background-color: #0B2239;
	background-image:
		linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
	background-size: 56px 56px;
}
.navlink { color: #C6D3E0; text-decoration: none; }
.navlink:hover, .navlink.is-active { color: #FFFFFF; }
.card { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11,34,57,.08); }
.btn { transition: filter .15s ease; }
.btn:hover { filter: brightness(1.08); }

.field {
	font: inherit; font-size: 16px; color: #0B2239; background: #FFFFFF;
	border: 1px solid #B6C6D5; border-radius: 8px; padding: 13px 14px;
	min-height: 48px; width: 100%;
}
.field:focus { outline: 2px solid #0B2239; outline-offset: 1px; border-color: #0B2239; }
label { font-size: 14px; font-weight: 600; }
.tl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #F4C21F; color: #0B2239; padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip-link:focus { left: 8px; }

/* Default pages and blog posts */
.tl-content { max-width: 760px; margin: 0 auto; padding: 72px 24px 100px; font-size: 18px; line-height: 1.7; color: #24364A; }
.tl-content h1, .tl-content h2, .tl-content h3 { font-family: 'Schibsted Grotesk', sans-serif; color: #0B2239; letter-spacing: -0.02em; line-height: 1.2; }
.tl-content img { height: auto; border-radius: 10px; }
.tl-post + .tl-post { margin-top: 48px; padding-top: 48px; border-top: 1px solid #DCE5EE; }

/* Sticky top bar with navigation */
.tl-topbar {
	position: sticky; top: 0; z-index: 50;
	background: #0B2239; color: #FFFFFF;
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-bar .tl-topbar { top: 32px; }
.tl-topbar-inner {
	max-width: 1240px; margin: 0 auto; padding: 16px 24px;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 18px;
}
.tl-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #FFFFFF; }
.tl-brand:hover { color: #FFFFFF; }
.tl-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.tl-cta {
	background: #F4C21F; color: #0B2239; text-decoration: none; font-weight: 600; font-size: 15px;
	padding: 12px 20px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; margin-left: 8px;
}
.tl-cta:hover { color: #0B2239; }
.tl-menu-toggle {
	display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
	font: inherit; font-size: 15px; font-weight: 600; color: #FFFFFF; background: transparent;
	border: 1px solid rgba(255,255,255,.28); border-radius: 8px; cursor: pointer;
}

/* Sections reached from the menu stop below the sticky bar */
section[id], [id="form"] { scroll-margin-top: 76px; }
.admin-bar section[id], .admin-bar [id="form"] { scroll-margin-top: 108px; }

@media (max-width: 900px) {
	.js .tl-menu-toggle { display: inline-flex; }
	.js .tl-nav { display: none; }
	.js .tl-nav.is-open { display: flex; }
	.tl-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 6px; }
	.tl-nav .navlink { padding: 13px 2px; border-top: 1px solid rgba(255,255,255,.08); font-size: 17px; }
	.tl-cta { margin: 12px 0 4px; justify-content: center; }
}
@media (max-width: 782px) {
	.admin-bar .tl-topbar { top: 46px; }
	.admin-bar section[id], .admin-bar [id="form"] { scroll-margin-top: 122px; }
}
@media (max-width: 600px) {
	.admin-bar .tl-topbar { top: 0; } /* WordPress admin bar scrolls away on phones */
	.admin-bar section[id], .admin-bar [id="form"] { scroll-margin-top: 76px; }
}
