/* =========================================================
   3W THEME — MAIN STYLESHEET
   Light theme, blue/green accent driven by CSS custom
   properties set dynamically in inc/theme-colors.php
   ========================================================= */

:root {
	--threew-primary: #0b5fff;
	--threew-primary-light: #e8f0ff;
	--threew-secondary: #062e6f;
	--threew-text: #1c2635;
	--threew-text-light: #5b6b82;
	--threew-bg: #ffffff;
	--threew-bg-soft: #f7f9fc;
	--threew-border: #e6eaf0;
	--font-heading: 'Manrope', 'Inter', -apple-system, sans-serif;
	--font-body: 'Inter', -apple-system, sans-serif;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(6, 35, 90, 0.08);
	--container: 1200px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
	font-family: var(--font-body);
	color: var(--threew-text);
	background: var(--threew-bg);
	line-height: 1.65;
	font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--threew-text);
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 16px;
}
h1 { font-size: 44px; }
h2 { font-size: 34px; }
h3 { font-size: 22px; }
p { margin: 0 0 16px; color: var(--threew-text-light); }
a { color: var(--threew-primary); transition: color .2s ease; }
a:hover { color: var(--threew-secondary); }
ul { padding-left: 20px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
img { display: block; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font-heading);
	font-weight: 700;
	border-radius: 10px;
	padding: 13px 26px;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all .2s ease;
	font-size: 15px;
}
.btn-primary { background: var(--threew-primary); color: #fff; }
.btn-primary:hover { background: var(--threew-secondary); color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: var(--threew-border); color: var(--threew-text); background: #fff; }
.btn-outline:hover { border-color: var(--threew-primary); color: var(--threew-primary); }
.btn-white { background: #fff; color: var(--threew-primary); }
.btn-white:hover { background: var(--threew-bg-soft); color: var(--threew-secondary); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ---------- Topbar ---------- */
.threew-topbar { background: var(--threew-secondary); color: #cfe0ff; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 8px 24px; }
.topbar-contacts { display: flex; gap: 22px; }
.topbar-contacts a { color: #e4edff; display: inline-flex; align-items: center; gap: 6px; }
.topbar-contacts a:hover { color: #fff; }
.topbar-contacts .dashicons { font-size: 15px; width: 15px; height: 15px; }
.topbar-social { display: flex; gap: 10px; }

/* ---------- Header ---------- */
.site-header {
	background: rgba(255,255,255,0.92);
	backdrop-filter: blur(8px);
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid var(--threew-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 24px; }
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding a { text-decoration: none; }
.site-branding-text { display: flex; flex-direction: column; line-height: 1.25; }
.site-branding-text .site-title { font-family: var(--font-heading); font-weight: 800; font-size: 18px; color: var(--threew-text); }
.site-branding-text .site-description { font-size: 12.5px; color: var(--threew-text-light); }
.site-logo-text { display: flex; align-items: center; gap: 10px; }
.logo-mark {
	background: linear-gradient(135deg, var(--threew-primary), var(--threew-secondary));
	color: #fff;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 18px;
	width: 42px; height: 42px;
	border-radius: 10px;
	display: flex; align-items: center; justify-content: center;
}
.logo-name { font-family: var(--font-heading); font-weight: 800; font-size: 19px; color: var(--threew-text); }
.custom-logo { max-height: 48px; width: auto; }

.main-navigation ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.main-navigation li { position: relative; }
.main-navigation a {
	display: block;
	padding: 10px 14px;
	color: var(--threew-text);
	font-weight: 600;
	font-size: 15px;
	border-radius: 8px;
	text-decoration: none;
}
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--threew-primary); background: var(--threew-primary-light); }

.main-navigation .sub-menu {
	list-style: none;
	position: absolute;
	top: 100%; left: 0;
	background: #fff;
	box-shadow: var(--shadow);
	border-radius: 10px;
	padding: 8px;
	min-width: 220px;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all .2s ease;
	z-index: 50;
}
.main-navigation li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-navigation .sub-menu a { padding: 9px 12px; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle-bar { width: 24px; height: 2px; background: var(--threew-text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero-section { background: linear-gradient(180deg, var(--threew-primary-light) 0%, #ffffff 65%); padding: 80px 0 60px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero-badge {
	display: inline-block; background: #fff; color: var(--threew-primary);
	border: 1px solid var(--threew-primary-light); padding: 7px 16px; border-radius: 100px;
	font-size: 13px; font-weight: 700; margin-bottom: 18px;
}
.hero-title { font-size: 46px; margin-bottom: 18px; }
.hero-subtitle { font-size: 18px; margin-bottom: 30px; max-width: 560px; }
.hero-buttons { display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-number { font-family: var(--font-heading); font-size: 26px; font-weight: 800; color: var(--threew-primary); }
.hero-stat-label { font-size: 13px; color: var(--threew-text-light); }

.hero-media { position: relative; }
.hero-image { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.hero-image-placeholder, .about-image-placeholder {
	background: #fff; border: 2px dashed var(--threew-border); border-radius: var(--radius);
	aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.hero-image-placeholder .dashicons, .about-image-placeholder .dashicons { font-size: 64px; width: 64px; height: 64px; color: var(--threew-primary-light); }

/* ---------- Section heading shared ---------- */
.section-heading { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-badge {
	display: inline-block; background: var(--threew-primary-light); color: var(--threew-primary);
	padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 700; margin-bottom: 14px;
}

/* ---------- Services ---------- */
.services-section { padding: 90px 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
	background: #fff; border: 1px solid var(--threew-border); border-radius: var(--radius);
	padding: 32px 26px; transition: all .25s ease;
}
.service-card:hover { border-color: var(--threew-primary); box-shadow: var(--shadow); transform: translateY(-4px); }
.service-icon {
	width: 56px; height: 56px; border-radius: 12px; background: var(--threew-primary-light);
	display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.service-icon .dashicons { font-size: 26px; width: 26px; height: 26px; color: var(--threew-primary); }
.service-title { margin-bottom: 10px; font-size: 20px; }
.service-text { font-size: 14.5px; margin-bottom: 16px; }
.service-link { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.service-link .dashicons { font-size: 16px; width: 16px; height: 16px; }

/* ---------- About ---------- */
.about-section { padding: 90px 0; background: var(--threew-bg-soft); }
.about-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.about-image { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.about-content p { font-size: 16px; }

/* ---------- Why us ---------- */
.whyus-section { padding: 90px 0; }
.whyus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.whyus-card { text-align: center; padding: 10px; }
.whyus-icon {
	width: 64px; height: 64px; border-radius: 50%; background: var(--threew-primary-light);
	display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.whyus-icon .dashicons { font-size: 28px; width: 28px; height: 28px; color: var(--threew-primary); }
.whyus-card h3 { font-size: 18px; margin-bottom: 8px; }
.whyus-card p { font-size: 14px; }

/* ---------- Latest posts (front page) ---------- */
.latest-posts-section { padding: 90px 0; background: var(--threew-bg-soft); }
.latest-posts-section .posts-grid { grid-template-columns: repeat(3, 1fr); }
.latest-posts-more { text-align: center; margin-top: 40px; }
.cta-section {
	background: linear-gradient(120deg, var(--threew-primary), var(--threew-secondary));
	padding: 60px 0; margin: 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-text h2 { color: #fff; margin-bottom: 8px; font-size: 30px; }
.cta-text p { color: #dce8ff; margin: 0; }

/* ---------- Contact ---------- */
.contact-section { padding: 90px 0; }
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; background: var(--threew-bg-soft); padding: 18px; border-radius: 12px; }
.contact-info-item .dashicons { color: var(--threew-primary); font-size: 22px; width: 22px; height: 22px; margin-top: 2px; }
.ci-label { display: block; font-size: 12.5px; color: var(--threew-text-light); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 3px; }
.contact-info-item a, .contact-info-item span:not(.ci-label) { color: var(--threew-text); font-weight: 600; text-decoration: none; }
.contact-form-wrap { border-radius: var(--radius); background: var(--threew-bg-soft); padding: 30px; min-height: 320px; }
.contact-form-placeholder { height: 100%; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--threew-text-light); gap: 8px; }
.contact-form-placeholder .dashicons { font-size: 40px; width: 40px; height: 40px; color: var(--threew-primary-light); }

/* Contact Form 7 — matched to theme styles */
.contact-form-wrap .wpcf7-form p { margin-bottom: 16px; }
.contact-form-wrap .wpcf7-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--threew-text); }
.contact-form-wrap .wpcf7-form input[type=text],
.contact-form-wrap .wpcf7-form input[type=email],
.contact-form-wrap .wpcf7-form input[type=tel],
.contact-form-wrap .wpcf7-form input[type=url],
.contact-form-wrap .wpcf7-form textarea,
.contact-form-wrap .wpcf7-form select {
	width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--threew-border);
	font-family: var(--font-body); font-size: 15px; background: #fff;
}
.contact-form-wrap .wpcf7-form input:focus,
.contact-form-wrap .wpcf7-form textarea:focus,
.contact-form-wrap .wpcf7-form select:focus { outline: none; border-color: var(--threew-primary); }
.contact-form-wrap .wpcf7-form textarea { min-height: 130px; resize: vertical; }
.contact-form-wrap .wpcf7-form input[type=submit] {
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--font-heading); font-weight: 700; font-size: 15px;
	border-radius: 10px; padding: 13px 28px; border: 2px solid transparent;
	background: var(--threew-primary); color: #fff; cursor: pointer; transition: all .2s ease;
}
.contact-form-wrap .wpcf7-form input[type=submit]:hover { background: var(--threew-secondary); transform: translateY(-2px); }
.contact-form-wrap .wpcf7-response-output { border-radius: 10px; margin-top: 16px; font-size: 14px; }
.contact-form-wrap .wpcf7-not-valid-tip { color: #d63638; font-size: 13px; margin-top: 4px; }
.contact-form-wrap .wpcf7-spinner { margin-left: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--threew-secondary); color: #c4d3ef; padding: 60px 0 0; margin-top: 0; }
.footer-widgets { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-col .widget-title { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo a { display: inline-flex; align-items: center; }
.footer-logo .logo-name { color: #fff; }
.footer-logo-text .logo-name { color: #fff; }
.footer-col p { color: #a9bfe4; font-size: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.social-icon {
	width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08);
	display: flex; align-items: center; justify-content: center; color: #fff;
}
.social-icon:hover { background: var(--threew-primary); color: #fff; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 10px; }
.footer-menu a { color: #a9bfe4; font-size: 14px; }
.footer-menu a:hover { color: #fff; }
.footer-contacts-list { list-style: none; margin: 0; padding: 0; }
.footer-contacts-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 14px; color: #a9bfe4; }
.footer-contacts-list a { color: #a9bfe4; }
.footer-contacts-list a:hover { color: #fff; }
.footer-contacts-list .dashicons { font-size: 17px; width: 17px; height: 17px; margin-top: 1px; color: #8fb0ea; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; text-align: center; }
.footer-copyright { color: #8fa8d3; font-size: 13px; margin: 0; }

/* Widgets generic */
.widget { margin-bottom: 28px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget_search .search-form { display: flex; }
.widget select, .widget input[type=text], .widget input[type=email] { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--threew-border); }

/* Scroll to top */
.scroll-top {
	position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%;
	background: var(--threew-primary); color: #fff; display: flex; align-items: center; justify-content: center;
	box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease; z-index: 90;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Inner pages / blog ---------- */
.inner-page { padding: 60px 0 90px; }
.inner-page-inner { display: grid; grid-template-columns: 1fr 320px; gap: 50px; align-items: start; }
.inner-page-inner .content-area { min-width: 0; }
.threew-breadcrumbs { font-size: 13.5px; color: var(--threew-text-light); margin-bottom: 24px; }
.threew-breadcrumbs a { color: var(--threew-text-light); }
.threew-breadcrumbs .sep { margin: 0 6px; }
.page-title { font-size: 32px; margin-bottom: 24px; }
.page-header { margin-bottom: 30px; }

.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.post-card { background: #fff; border: 1px solid var(--threew-border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s ease; }
.post-card:hover { box-shadow: var(--shadow); }
.post-card-thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-card-body { padding: 22px; }
.post-card-title { font-size: 19px; margin-bottom: 8px; }
.post-card-title a { color: var(--threew-text); }
.post-card-meta { font-size: 12.5px; color: var(--threew-text-light); margin-bottom: 10px; display: flex; gap: 12px; flex-wrap: wrap; }
.post-card-excerpt { font-size: 14.5px; }
.post-card-link { font-weight: 700; font-size: 13.5px; }
.pagination { margin-top: 40px; display: flex; gap: 10px; justify-content: center; }
.pagination .page-numbers { padding: 9px 15px; border: 1px solid var(--threew-border); border-radius: 8px; color: var(--threew-text); text-decoration: none; font-weight: 600; font-size: 14px; }
.pagination .page-numbers.current { background: var(--threew-primary); border-color: var(--threew-primary); color: #fff; }

.entry-content { font-size: 16px; }
.entry-content img { border-radius: 10px; margin: 10px 0; }
.entry-content h2, .entry-content h3 { margin-top: 32px; }
.page-thumb img { width: 100%; border-radius: var(--radius); margin-bottom: 30px; aspect-ratio: 16/8; object-fit: cover; }
.page-links, .post-tags { margin-top: 24px; font-size: 14px; }

.widget-area .widget { background: #fff; border: 1px solid var(--threew-border); border-radius: var(--radius); padding: 22px; }
.widget-area .widget-title { font-size: 16px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--threew-primary-light); }
.widget-area .widget li { margin-bottom: 10px; }

.error-404-page { padding: 100px 0; text-align: center; }
.error-code { font-family: var(--font-heading); font-size: 90px; font-weight: 800; color: var(--threew-primary-light); display: block; }
.error-404-inner { max-width: 460px; margin: 0 auto; }
.error-search { margin-top: 26px; }
.search-form { display: flex; gap: 10px; }
.search-field { flex: 1; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--threew-border); }
.search-submit { background: var(--threew-primary); border: none; color: #fff; border-radius: 10px; padding: 0 16px; cursor: pointer; }

/* Comments */
.comments-area { margin-top: 50px; padding-top: 40px; border-top: 1px solid var(--threew-border); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 30px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid var(--threew-border); margin-bottom: 14px; font-family: var(--font-body); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.hero-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; }
	.hero-media, .about-media { order: -1; }
	.services-grid { grid-template-columns: repeat(2, 1fr); }
	.whyus-grid { grid-template-columns: repeat(2, 1fr); }
	.latest-posts-section .posts-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-widgets { grid-template-columns: 1fr 1fr; }
	.inner-page-inner { grid-template-columns: 1fr; }
	.topbar-contacts { gap: 14px; }
}
@media (max-width: 782px) {
	.main-navigation { position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100vh; background: #fff; flex-direction: column; padding: 90px 24px 24px; box-shadow: -10px 0 30px rgba(0,0,0,0.1); transition: right .3s ease; overflow-y: auto; }
	.main-navigation.is-open { right: 0; }
	.main-navigation ul { flex-direction: column; gap: 2px; }
	.main-navigation .sub-menu { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
	.main-navigation li.is-open .sub-menu { display: block; }
	.menu-toggle { display: flex; }
	.header-cta { display: none; }
	.hero-title { font-size: 32px; }
	h2 { font-size: 26px; }
	.services-grid, .whyus-grid, .posts-grid, .latest-posts-section .posts-grid { grid-template-columns: 1fr; }
	.footer-widgets { grid-template-columns: 1fr; }
	.topbar-inner { flex-direction: column; gap: 6px; padding: 10px 24px; }
	.cta-inner { flex-direction: column; text-align: center; }
}
