/* =========================================================
   WIDE COMMUNICATION THEME — MAIN STYLESHEET
   Dark navy / electric-blue premium design, glassmorphism,
   dark-mode-first with a light-mode toggle.
========================================================= */

/* ---------- 1. Theme variables ---------- */
:root,
html[data-theme="dark"] {
	--bg-body: #060a17;
	--bg-alt: #0a1128;
	--bg-card: rgba(255, 255, 255, 0.045);
	--bg-card-solid: #101a38;
	--border-glass: rgba(255, 255, 255, 0.09);
	--text-main: #eaf1ff;
	--text-muted: #9fb3d9;
	--text-dim: #6d80a8;
	--accent: #2f7bff;
	--accent-2: #00d4ff;
	--accent-grad: linear-gradient(135deg, #2f7bff 0%, #00d4ff 100%);
	--shadow-glow: 0 20px 60px rgba(47, 123, 255, 0.25);
	--overlay: rgba(4, 8, 20, 0.72);
	--header-bg: rgba(8, 13, 30, 0.72);
}

html[data-theme="light"] {
	--bg-body: #f4f7fd;
	--bg-alt: #ffffff;
	--bg-card: #ffffff;
	--bg-card-solid: #ffffff;
	--border-glass: rgba(10, 25, 60, 0.08);
	--text-main: #0d1730;
	--text-muted: #4c5a7d;
	--text-dim: #7c88a6;
	--accent: #1c5ff0;
	--accent-2: #0091b8;
	--accent-grad: linear-gradient(135deg, #1c5ff0 0%, #0091b8 100%);
	--shadow-glow: 0 20px 50px rgba(28, 95, 240, 0.12);
	--overlay: rgba(244, 247, 253, 0.82);
	--header-bg: rgba(255, 255, 255, 0.82);
}

/* ---------- 2. Base ---------- */
body {
	background: var(--bg-body);
	color: var(--text-main);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	transition: background-color 0.35s ease, color 0.35s ease;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
	font-family: 'Poppins', 'Inter', sans-serif;
	font-weight: 700;
	line-height: 1.25;
	color: var(--text-main);
	margin: 0 0 16px;
}

p {
	margin: 0 0 16px;
	color: var(--text-muted);
}

.container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
}

.narrow-container {
	max-width: 860px;
}

section {
	position: relative;
}

::selection {
	background: var(--accent);
	color: #fff;
}

/* ---------- 3. Buttons ---------- */
.btn-primary,
.btn-outline,
.btn-outline-light,
.btn-call {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 30px;
	border-radius: 50px;
	font-weight: 600;
	font-size: 15px;
	white-space: nowrap;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color .25s ease;
	border: 2px solid transparent;
	cursor: pointer;
}

.btn-primary {
	background: var(--accent-grad);
	color: #fff;
	box-shadow: 0 12px 30px rgba(47, 123, 255, 0.35);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 40px rgba(47, 123, 255, 0.45);
}

.btn-outline {
	background: transparent;
	color: var(--text-main);
	border-color: var(--border-glass);
}

.btn-outline:hover {
	border-color: var(--accent);
	color: var(--accent-2);
	transform: translateY(-2px);
}

.btn-outline-light {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.25);
	backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
	background: rgba(255, 255, 255, 0.16);
	transform: translateY(-2px);
}

.btn-call {
	padding: 10px 20px;
	background: var(--bg-card);
	border-color: var(--border-glass);
	color: var(--text-main);
	font-size: 14px;
}

.btn-call:hover {
	border-color: var(--accent);
	color: var(--accent-2);
}

.eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent-2);
	margin-bottom: 14px;
}

/* ---------- 4. Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: var(--header-bg);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border-glass);
	transition: box-shadow 0.3s ease, background 0.35s ease;
}

.site-header.is-scrolled {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.site-branding img,
.custom-logo {
	max-height: 52px;
	width: auto;
}

.main-navigation .nav-menu {
	display: flex;
	align-items: center;
	gap: 32px;
}

.main-navigation .nav-menu a {
	font-weight: 600;
	font-size: 15px;
	color: var(--text-main);
	position: relative;
	padding: 6px 0;
	transition: color 0.2s ease;
}

.main-navigation .nav-menu a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background: var(--accent-grad);
	transition: width 0.25s ease;
}

.main-navigation .nav-menu a:hover,
.main-navigation .nav-menu li.current-menu-item > a {
	color: var(--accent-2);
}

.main-navigation .nav-menu a:hover::after,
.main-navigation .nav-menu li.current-menu-item > a::after {
	width: 100%;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.theme-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--border-glass);
	background: var(--bg-card);
	color: var(--text-main);
	transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.theme-toggle:hover {
	border-color: var(--accent);
	color: var(--accent-2);
	transform: rotate(20deg);
}

.icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: block; }

.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	border: 1px solid var(--border-glass);
	background: var(--bg-card);
}

.menu-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	margin: 0 auto;
	background: var(--text-main);
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero {
	position: relative;
	min-height: 88vh;
	display: flex;
	align-items: center;
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1.05);
	filter: saturate(1.05);
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, var(--overlay) 0%, var(--bg-body) 96%);
}

.hero-glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.55;
	pointer-events: none;
	animation: floaty 10s ease-in-out infinite;
}

.hero-glow-a {
	width: 420px;
	height: 420px;
	background: var(--accent);
	top: -100px;
	right: -80px;
}

.hero-glow-b {
	width: 340px;
	height: 340px;
	background: var(--accent-2);
	bottom: -120px;
	left: -60px;
	animation-delay: 2.5s;
}

@keyframes floaty {
	0%, 100% { transform: translateY(0) scale(1); }
	50% { transform: translateY(-25px) scale(1.08); }
}

.hero-inner {
	position: relative;
	z-index: 2;
	max-width: 760px;
	text-align: left;
}

.hero h1 {
	font-size: clamp(34px, 5.4vw, 60px);
	margin-bottom: 20px;
	background: linear-gradient(135deg, #fff 20%, var(--accent-2) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

html[data-theme="light"] .hero h1 {
	background: linear-gradient(135deg, #0d1730 20%, var(--accent) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hero-sub {
	font-size: 18px;
	color: var(--text-muted);
	max-width: 560px;
	margin-bottom: 32px;
}

.hero-cta {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

/* ---------- 6. Section heading ---------- */
.section-heading {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 56px;
}

.section-heading.with-action {
	max-width: 100%;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	text-align: left;
	gap: 24px;
	flex-wrap: wrap;
}

.section-heading h2 {
	font-size: clamp(28px, 3.6vw, 42px);
	margin: 0;
}

/* ---------- 7. Services ---------- */
.services-section {
	padding: 100px 0;
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.service-card {
	background: var(--bg-card);
	border: 1px solid var(--border-glass);
	border-radius: 22px;
	overflow: hidden;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-glow);
	border-color: rgba(47, 123, 255, 0.4);
}

.service-image {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 22px 22px 0 0;
}

.service-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 22px 22px 0 0;
	transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
	transform: scale(1.07);
}

.service-copyright {
	position: absolute;
	right: 10px;
	bottom: 10px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #fff;
	background: rgba(6, 10, 23, 0.55);
	padding: 4px 10px;
	border-radius: 50px;
	backdrop-filter: blur(6px);
}

.service-body {
	padding: 24px 24px 28px;
}

.service-body h3 {
	font-size: 19px;
	margin-bottom: 10px;
}

.service-body p {
	font-size: 14.5px;
	margin: 0;
}

/* ---------- 8. Guides slider ---------- */
.guides-section {
	padding: 100px 0;
	background: var(--bg-alt);
}

.guides-slider-wrap {
	position: relative;
	margin-top: 20px;
}

.guides-slider {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 8px 24px 24px;
	scrollbar-width: none;
}

.guides-slider::-webkit-scrollbar {
	display: none;
}

.guide-slide {
	flex: 0 0 300px;
	scroll-snap-align: start;
	background: var(--bg-card);
	border: 1px solid var(--border-glass);
	border-radius: 18px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-slide:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-glow);
}

.guide-slide-thumb {
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

.guide-slide-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.guide-slide-body {
	padding: 18px 20px 22px;
}

.guide-slide-date {
	font-size: 12px;
	color: var(--accent-2);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.guide-slide-body h3 {
	font-size: 16px;
	margin: 10px 0 0;
}

.slider-arrow {
	position: absolute;
	top: 45%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--bg-card-solid);
	border: 1px solid var(--border-glass);
	color: var(--text-main);
	font-size: 18px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.slider-arrow:hover {
	border-color: var(--accent);
	color: var(--accent-2);
}

.slider-prev { left: 6px; }
.slider-next { right: 6px; }

/* ---------- 9. Why us ---------- */
.why-section {
	padding: 100px 0;
}

.why-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 60px;
	align-items: center;
}

.why-list li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 16px;
	color: var(--text-muted);
	font-size: 15.5px;
}

.why-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--accent-grad);
}

.why-image {
	border-radius: 24px;
	overflow: hidden;
	border: 1px solid var(--border-glass);
	box-shadow: var(--shadow-glow);
}

/* ---------- 10. Contact CTA ---------- */
.contact-cta {
	padding: 80px 0;
	margin: 0 24px 100px;
	max-width: 1192px;
	margin-left: auto;
	margin-right: auto;
	border-radius: 28px;
	background: var(--accent-grad);
	position: relative;
	overflow: hidden;
}

.contact-cta-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	flex-wrap: wrap;
}

.contact-cta h2,
.contact-cta p {
	color: #fff;
}

.contact-cta p {
	opacity: 0.9;
	margin-bottom: 0;
}

.contact-cta-actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.contact-cta .btn-primary {
	background: #fff;
	color: var(--accent);
	box-shadow: none;
}

/* ---------- 11. Footer ---------- */
.site-footer {
	background: var(--bg-alt);
	border-top: 1px solid var(--border-glass);
	padding-top: 70px;
}

.footer-top {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 50px;
}

.footer-logo {
	max-height: 48px;
	width: auto;
	margin-bottom: 18px;
}

.footer-brand p {
	font-size: 14.5px;
}

.footer-col h4 {
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 18px;
}

.footer-menu li,
.footer-contact p {
	margin-bottom: 12px;
}

.footer-menu a,
.footer-contact a {
	color: var(--text-muted);
	font-size: 14.5px;
	transition: color 0.2s ease;
}

.footer-menu a:hover,
.footer-contact a:hover {
	color: var(--accent-2);
}

.footer-bottom {
	border-top: 1px solid var(--border-glass);
	padding: 22px 0;
}

.footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.footer-bottom p {
	margin: 0;
	font-size: 13.5px;
}

.footer-legal {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	color: var(--text-dim);
}

.footer-legal a {
	color: var(--text-dim);
}

.footer-legal a:hover {
	color: var(--accent-2);
}

/* ---------- 12. WhatsApp float ---------- */
.whatsapp-float {
	position: fixed;
	right: 22px;
	bottom: 22px;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
	z-index: 998;
	animation: pulse-wa 2.6s infinite;
}

@keyframes pulse-wa {
	0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
	70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
	100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- 13. Standard pages / single guides / archive / search / 404 ---------- */
.standard-page {
	padding: 70px 0 100px;
}

.page-title {
	font-size: clamp(28px, 4vw, 40px);
}

.page-thumb,
.guide-feature-image {
	border-radius: 20px;
	overflow: hidden;
	margin: 26px 0 34px;
	border: 1px solid var(--border-glass);
}

.entry-content h2 { font-size: 24px; margin-top: 34px; }
.entry-content h3 { font-size: 20px; margin-top: 28px; }
.entry-content p { color: var(--text-muted); }
.entry-content a { color: var(--accent-2); text-decoration: underline; }
.entry-content img { border-radius: 16px; }

.single-guide { padding: 60px 0 40px; }

.guide-meta {
	display: flex;
	gap: 16px;
	font-size: 13px;
	color: var(--text-dim);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 14px;
}

.guide-title {
	font-size: clamp(28px, 4.4vw, 44px);
}

.guide-tags {
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid var(--border-glass);
	font-size: 14px;
	color: var(--text-dim);
}

.guide-tags a {
	color: var(--text-muted);
	margin-right: 8px;
}

.archive-wrap { padding: 70px 0 100px; }
.archive-header { text-align: center; margin-bottom: 50px; }

.guides-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.guide-card {
	background: var(--bg-card);
	border: 1px solid var(--border-glass);
	border-radius: 18px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-glow);
}

.guide-card-thumb {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

.guide-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.guide-card-body { padding: 20px 22px 26px; }

.guide-card-date {
	font-size: 12px;
	font-weight: 600;
	color: var(--accent-2);
	text-transform: uppercase;
}

.guide-card-body h3 { font-size: 18px; margin: 8px 0 10px; }
.guide-card-body p { font-size: 14px; margin-bottom: 12px; }

.read-more {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--accent-2);
}

.post-card-full {
	padding: 30px 0;
	border-bottom: 1px solid var(--border-glass);
}

.error-404-wrap {
	text-align: center;
	padding: 130px 0;
}

.error-code {
	font-family: 'Poppins', sans-serif;
	font-size: 110px;
	font-weight: 800;
	background: var(--accent-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	line-height: 1;
}

.error-search { margin-top: 30px; max-width: 380px; margin-left: auto; margin-right: auto; }

.widecom-search-form {
	display: flex;
	border: 1px solid var(--border-glass);
	border-radius: 50px;
	overflow: hidden;
	background: var(--bg-card);
}

.search-field {
	flex: 1;
	border: 0;
	background: transparent;
	color: var(--text-main);
	padding: 12px 20px;
	font-size: 14px;
}

.search-field:focus { outline: none; }

.search-submit {
	border: 0;
	background: var(--accent-grad);
	color: #fff;
	padding: 0 22px;
	font-weight: 600;
	font-size: 14px;
}

/* ---------- 14. Footer widgets fallback ---------- */
.footer-widget-title {
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 1024px) {
	.services-grid,
	.guides-grid { grid-template-columns: repeat(2, 1fr); }
	.why-grid { grid-template-columns: 1fr; }
	.why-image { order: -1; }
	.footer-top { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
	.main-navigation {
		position: fixed;
		top: 0;
		right: -100%;
		width: min(320px, 84%);
		height: 100vh;
		background: var(--bg-card-solid);
		border-left: 1px solid var(--border-glass);
		padding: 100px 30px 30px;
		transition: right 0.35s ease;
		z-index: 1000;
	}

	.main-navigation.is-open { right: 0; }

	.main-navigation .nav-menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 22px;
	}

	.menu-toggle { display: flex; }
	.btn-call { display: none; }

	.hero { min-height: auto; padding: 140px 0 90px; }
	.hero-cta { flex-direction: column; align-items: flex-start; }

	.services-grid,
	.guides-grid { grid-template-columns: 1fr; }

	.section-heading.with-action { flex-direction: column; align-items: flex-start; }

	.contact-cta-inner { flex-direction: column; align-items: flex-start; }
	.contact-cta { margin-left: 16px; margin-right: 16px; padding: 50px 30px; }

	.footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.container { padding: 0 18px; }
	.error-code { font-size: 76px; }
	.guide-slide { flex-basis: 260px; }
}
