/* TechCan Professional - main styles */
:root {
	--navy: #0b2545;
	--navy-dark: #071a33;
	--accent: #2f7fd1;
	--accent-dark: #2368ad;
	--accent-soft: #e8f1fb;
	--gray-50: #f5f7fa;
	--gray-100: #eef1f5;
	--gray-300: #d3d9e2;
	--gray-600: #5b6678;
	--text: #1d2635;
	--white: #fff;
	--radius: 10px;
	--shadow: 0 2px 12px rgba(11, 37, 69, .08);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); }
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--accent-dark); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal; }
.screen-reader-text:focus, .skip-link:focus { background: #fff; clip: auto; clip-path: none; color: var(--navy); display: block; height: auto; left: 8px; top: 8px; padding: 12px 18px; width: auto; z-index: 100000; box-shadow: var(--shadow); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.text-center { text-align: center; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; font-family: inherit; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--outline-light { border-color: rgba(255,255,255,.8); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--accent-soft); color: var(--navy); }
.btn--sm { padding: 9px 18px; font-size: .95rem; }
.btn--lg { padding: 15px 30px; font-size: 1.05rem; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--gray-100); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.site-title { display: inline-flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 800; color: var(--navy); text-decoration: none; letter-spacing: -.02em; }
.logo-mark { width: 14px; height: 28px; background: linear-gradient(180deg, var(--navy), var(--accent)); border-radius: 3px; display: inline-block; }
.custom-logo { max-height: 56px; width: auto; display: block; }
.primary-nav { display: flex; align-items: center; gap: 24px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; padding: 10px 12px; color: var(--navy); font-weight: 600; text-decoration: none; border-radius: 6px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--accent-dark); background: var(--accent-soft); }
.primary-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--gray-100); box-shadow: var(--shadow); border-radius: 8px; padding: 6px; flex-direction: column; gap: 0; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: flex; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 2px; position: relative; content: ""; }
.nav-toggle-bar::before { position: absolute; top: -8px; }
.nav-toggle-bar::after { position: absolute; top: 8px; }

/* Hero */
.hero { position: relative; background: linear-gradient(135deg, var(--navy-dark), var(--navy) 55%, #17407a); background-size: cover; background-position: center; color: #fff; padding: clamp(70px, 12vw, 150px) 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(7,26,51,.88), rgba(11,37,69,.7)); opacity: 0; }
.hero--image .hero-overlay { opacity: 1; }
.hero-inner { position: relative; }
.hero-title { max-width: 780px; }
.hero-title { color: #fff; font-size: clamp(2.2rem, 5.5vw, 3.8rem); letter-spacing: -.02em; margin-bottom: .4em; }
.hero-text { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #d9e5f5; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--alt { background: var(--gray-50); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head p { color: var(--gray-600); }
.section-more { text-align: center; margin: 40px 0 0; }
.admin-hint { text-align: center; color: var(--gray-600); font-size: .9rem; background: var(--accent-soft); padding: 10px 14px; border-radius: 8px; }

/* Grids and cards */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(11,37,69,.12); }
.card-media { display: block; aspect-ratio: 16 / 10; background: var(--gray-100); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy), var(--accent)); opacity: .9; }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card--service:not(:has(.card-media)) .card-body { border-top: 4px solid var(--accent); }
.card-title { margin-bottom: .4em; }
.card-title a { color: var(--navy); text-decoration: none; }
.card-title a:hover { color: var(--accent-dark); }
.card-body p { color: var(--gray-600); }
.card-meta { font-size: .85rem; color: var(--accent-dark); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .4em; }
.card-meta a { color: inherit; text-decoration: none; }
.card-link { margin-top: auto; font-weight: 600; text-decoration: none; }
.card-excerpt p { margin-bottom: .8em; }
.card--post .card-title { font-size: 1.3rem; }

.feature { text-align: center; padding: 10px; }
.feature-num { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; }
.feature p { color: var(--gray-600); }

/* CTA */
.cta { background: linear-gradient(135deg, var(--navy), #17407a); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; color: #d9e5f5; }

/* Page header */
.page-header { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: #fff; padding: 52px 0; }
.page-title { color: #fff; margin: 0; }
.page-subtitle { color: #d9e5f5; margin: 10px 0 0; max-width: 720px; }
.page-subtitle p { margin: 0; }

/* Content */
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
.entry--narrow { max-width: 820px; margin: 0 auto; }
.entry-thumb { margin-bottom: 28px; border-radius: var(--radius); overflow: hidden; }
.entry-thumb img { display: block; width: 100%; }
.entry-meta, .entry-tags { color: var(--gray-600); font-size: .92rem; }
.entry-content { font-size: 1.05rem; }
.entry-content img { border-radius: 6px; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content blockquote { border-left: 4px solid var(--accent); margin: 1.5em 0; padding: .4em 1.2em; background: var(--gray-50); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--gray-300); padding: 8px 12px; }
.entry-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption-text, figcaption { font-size: .88rem; color: var(--gray-600); }
.sticky .card-title::before { content: "\2605 "; color: var(--accent); }
.bypostauthor { display: block; }
.project-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.project-gallery img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; display: block; }
.filter-list { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.filter-list a { display: block; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--gray-300); text-decoration: none; color: var(--navy); font-weight: 600; font-size: .95rem; }
.filter-list a:hover, .filter-list a.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Sidebar & widgets */
.widget { margin-bottom: 32px; }
.widget-title { font-size: 1.05rem; border-bottom: 2px solid var(--accent); padding-bottom: 8px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--gray-100); }
.widget a { text-decoration: none; }

/* Search & pagination */
.search-form { display: flex; gap: 8px; }
.search-field { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--gray-300); border-radius: 8px; font: inherit; }
.narrow-search { max-width: 420px; margin: 24px auto; }
.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--gray-300); border-radius: 8px; text-decoration: none; color: var(--navy); }
.page-numbers.current, .page-numbers:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.post-navigation .nav-links { justify-content: space-between; margin-top: 36px; }

/* Comments */
.comments-area { margin-top: 48px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--gray-100); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--gray-300); border-radius: 8px; font: inherit; }
.comment-form .submit { background: var(--accent); color: #fff; border: 0; padding: 12px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact-info-col { background: var(--gray-50); padding: 28px; border-radius: var(--radius); }
.contact-details { list-style: none; padding: 0; margin: 0; }
.contact-details li { margin-bottom: 16px; display: flex; flex-direction: column; }
.contact-details strong { color: var(--navy); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.contact-form .form-row { margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form select, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--gray-300); border-radius: 8px; font: inherit; background: #fff; color: var(--text); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
.req { color: #b3261e; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 14px 18px; border-radius: 8px; margin-bottom: 22px; }
.form-notice ul { margin: 6px 0 0; }
.form-notice--success { background: #e7f6ec; border: 1px solid #8fd0a3; color: #14532d; }
.form-notice--error { background: #fdecea; border: 1px solid #f1a9a3; color: #7a1c14; }
.map-wrap { margin-top: 48px; border-radius: var(--radius); overflow: hidden; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }
.contact-intro { margin-bottom: 32px; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #c3d0e3; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-title { color: #fff; font-size: 1.05rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-menu, .site-footer .menu, .contact-list { list-style: none; padding: 0; margin: 0; }
.footer-menu li, .site-footer .menu li, .contact-list li { padding: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: .9rem; }
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 1000px) {
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.layout-sidebar { grid-template-columns: 1fr; gap: 32px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--gray-100); box-shadow: var(--shadow); gap: 12px; }
	.primary-nav.is-open { display: flex; }
	.primary-nav ul { flex-direction: column; }
	.primary-nav .sub-menu { display: flex; position: static; box-shadow: none; border: 0; padding-left: 14px; }
	.header-cta { text-align: center; }
	.contact-layout { grid-template-columns: 1fr; }
	.cta-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.grid--2, .grid--3, .grid--4, .form-grid, .footer-grid { grid-template-columns: 1fr; }
	.hero-actions .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
