/*
Theme Name: WeaWeb Theme
Theme URI: https://weainfotech.com/
Author: Wea Infotech
Author URI: https://weainfotech.com/
Description: A premium, conversion-focused WordPress theme for WeaInfotech. Single-page homepage built from reusable section parts, with a first-visit enquiry popup, secure AJAX enquiry forms, and page templates ready for a multi-page future. No frontend frameworks.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: weaweb
Tags: business, one-column, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
	--wt-ink: #0b1730;
	--wt-navy: #14213d;
	--wt-primary: #2d4fd6;
	--wt-primary-dark: #2340b8;
	--wt-violet: #6a4fe0;
	--wt-gold: #c9a24b;
	--wt-gold-ink: #8a6a1f;

	--wt-bg: #ffffff;
	--wt-alt: #f5f7fc;
	--wt-soft: #ecf1ff;
	--wt-text: #2a3650;
	--wt-muted: #59687f;
	--wt-border: #e2e8f3;
	--wt-dark: #0b1730;
	--wt-dark-2: #101f3f;

	--wt-gradient: linear-gradient(120deg, #2d4fd6 0%, #6a4fe0 100%);
	--wt-gradient-light: linear-gradient(120deg, #9db4ff 0%, #c9b8ff 100%);

	--wt-font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wt-font-head: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;

	--wt-fs-hero: clamp(2.2rem, 1.35rem + 3.6vw, 3.7rem);
	--wt-fs-title: clamp(1.75rem, 1.2rem + 2.2vw, 2.7rem);
	--wt-fs-sub: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
	--wt-fs-lead: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
	--wt-fs-card: 1.15rem;

	--wt-radius-sm: 10px;
	--wt-radius: 14px;
	--wt-radius-lg: 20px;
	--wt-shadow-sm: 0 1px 2px rgba(11, 23, 48, 0.05), 0 4px 14px rgba(11, 23, 48, 0.05);
	--wt-shadow: 0 2px 4px rgba(11, 23, 48, 0.04), 0 14px 34px rgba(24, 40, 90, 0.1);
	--wt-shadow-lg: 0 30px 70px rgba(15, 28, 70, 0.22);

	--wt-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--wt-header-h: 76px;
	--wt-section-y: clamp(4rem, 3rem + 5vw, 7rem);
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	scrollbar-gutter: stable;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--wt-header-h) + 12px);
}

body {
	margin: 0;
	font-family: var(--wt-font-body);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--wt-text);
	background: var(--wt-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body.wt-modal-open { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; }
a { color: var(--wt-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--wt-primary-dark); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 0.75rem; color: var(--wt-navy); line-height: 1.18; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
	outline: 3px solid rgba(45, 79, 214, 0.55);
	outline-offset: 3px;
	border-radius: 6px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap;
}

.wt-skip {
	position: fixed; top: -60px; left: 12px; z-index: 300;
	padding: 0.7rem 1rem; background: var(--wt-ink); color: #fff;
	border-radius: var(--wt-radius-sm); text-decoration: none;
	transition: top 0.2s;
}
.wt-skip:focus { top: 12px; color: #fff; }

/* ==========================================================================
   Layout + typography system
   ========================================================================== */
.wt-container { width: min(100% - 2.5rem, 1200px); margin-inline: auto; }
.wt-container--wide { width: min(100% - 2.5rem, 1260px); }
.wt-container--narrow { width: min(100% - 2.5rem, 820px); }
.wt-center { text-align: center; }

.wt-section { position: relative; padding-block: var(--wt-section-y); overflow: hidden; }
.wt-main > .wt-section:first-child:not(.wt-hero) { padding-top: calc(var(--wt-header-h) + clamp(2.5rem, 5vw, 4.5rem)); }
.wt-section--alt { background: var(--wt-alt); }
.wt-section--soft { background: var(--wt-soft); }
.wt-section--dark {
	background: radial-gradient(ellipse at 15% 0%, #1a2d66 0%, transparent 55%), var(--wt-dark);
	color: #c9d3ea;
}
.wt-section--dark h2, .wt-section--dark h3 { color: #fff; }

.wt-title {
	font-family: var(--wt-font-head);
	font-size: var(--wt-fs-title);
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.15;
	color: var(--wt-navy);
}
.wt-title--light { color: #fff; }
.wt-lead { font-size: var(--wt-fs-lead); color: var(--wt-muted); max-width: 62ch; line-height: 1.75; }
.wt-lead--light { color: #c9d3ea; }
.wt-section--dark .wt-lead { color: #b9c5e2; }
.wt-section-head { max-width: 760px; margin: 0 auto clamp(2.2rem, 4vw, 3.5rem); text-align: center; }
.wt-section-head .wt-lead { margin-inline: auto; }
.wt-center .wt-lead { margin-inline: auto; }
.wt-note { margin: 1.75rem auto 0; max-width: 78ch; text-align: center; font-size: 0.9rem; color: var(--wt-muted); }
.wt-note--light { color: #9fb0d4; }

.wt-gradient-text {
	background: var(--wt-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--wt-primary);
}
.wt-gradient-text--light { background-image: var(--wt-gradient-light); color: #b7c6ff; }

.wt-card__title { font-family: var(--wt-font-body); font-size: var(--wt-fs-card); font-weight: 700; letter-spacing: -0.005em; margin-bottom: 0.5rem; }

.wt-prose > * + * { margin-top: 1rem; }
.wt-prose a { text-decoration: underline; }

.wt-icon { width: 1.25em; height: 1.25em; flex: none; }

.wt-btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.wt-btn-row--center { justify-content: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.wt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
	min-height: 48px; padding: 0.7rem 1.4rem;
	font-family: var(--wt-font-body); font-size: 0.97rem; font-weight: 600; line-height: 1.2;
	text-decoration: none; text-align: center; cursor: pointer;
	border: 1.5px solid transparent; border-radius: var(--wt-radius);
	transition: background-color 0.2s var(--wt-ease), color 0.2s var(--wt-ease), border-color 0.2s var(--wt-ease), box-shadow 0.25s var(--wt-ease), transform 0.2s var(--wt-ease);
	-webkit-tap-highlight-color: transparent;
}
.wt-btn--sm { min-height: 42px; padding: 0.5rem 1.05rem; font-size: 0.9rem; }
.wt-btn--lg { min-height: 54px; padding: 0.8rem 1.75rem; font-size: 1rem; }
.wt-btn--block { display: flex; width: 100%; }
.wt-btn__icon { width: 1.1em; height: 1.1em; transition: transform 0.2s var(--wt-ease); }
.wt-btn:hover .wt-btn__icon { transform: translateX(3px); }
.wt-btn:active { transform: translateY(1px); }
.wt-btn[disabled], .wt-btn.is-loading { opacity: 0.65; pointer-events: none; }

.wt-btn--primary { background: var(--wt-primary); color: #fff; box-shadow: 0 6px 16px rgba(45, 79, 214, 0.28); }
.wt-btn--primary:hover { background: var(--wt-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(45, 79, 214, 0.34); }

.wt-btn--secondary { background: var(--wt-soft); color: var(--wt-primary-dark); }
.wt-btn--secondary:hover { background: #dfe8ff; color: var(--wt-primary-dark); }

.wt-btn--outline { background: transparent; color: var(--wt-primary); border-color: #bfcbf3; }
.wt-btn--outline:hover { background: var(--wt-soft); border-color: var(--wt-primary); color: var(--wt-primary-dark); transform: translateY(-1px); }

.wt-btn--text { min-height: 0; padding: 0.25rem 0; color: var(--wt-primary); border-radius: 6px; }
.wt-btn--text:hover { color: var(--wt-primary-dark); }

.wt-btn--light { background: #fff; color: var(--wt-ink); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18); }
.wt-btn--light:hover { background: #f1f4ff; color: var(--wt-ink); transform: translateY(-2px); }

.wt-btn--ghost-light { background: rgba(255, 255, 255, 0.04); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.wt-btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; transform: translateY(-1px); }

.wt-section--dark :focus-visible, .wt-final-cta :focus-visible, .wt-footer :focus-visible { outline-color: rgba(190, 205, 255, 0.9); }

/* ==========================================================================
   Cards, checklists, reveal motion
   ========================================================================== */
.wt-card {
	background: #fff; border: 1px solid var(--wt-border); border-radius: var(--wt-radius-lg);
	box-shadow: var(--wt-shadow-sm);
	transition: transform 0.3s var(--wt-ease), border-color 0.3s var(--wt-ease), box-shadow 0.3s var(--wt-ease);
}

.wt-checklist { list-style: none; display: grid; gap: 0.6rem; margin: 0 0 1.5rem; }
.wt-checklist li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; line-height: 1.5; }
.wt-checklist .wt-icon { margin-top: 0.1rem; color: var(--wt-primary); width: 1.1rem; height: 1.1rem; }

.wt-js .wt-reveal {
	opacity: 0; transform: translateY(18px);
	transition: opacity 0.7s var(--wt-ease), transform 0.7s var(--wt-ease);
	transition-delay: var(--wt-delay, 0ms);
}
.wt-js .wt-reveal.is-visible { opacity: 1; transform: none; }
.wt-reveal-failsafe .wt-reveal { opacity: 1 !important; transform: none !important; }
/* After the entrance finishes, hover transitions take over. */
.wt-js .wt-card.wt-reveal.is-visible.is-settled { transition-delay: 0ms; transition: transform 0.3s var(--wt-ease), border-color 0.3s var(--wt-ease), box-shadow 0.3s var(--wt-ease); }

/* Illustrations */
.wt-ill { width: 100%; line-height: 0; }
.wt-ill svg { width: 100%; height: auto; display: block; overflow: visible; }
.wt-ill .f1, .wt-ill .f2, .wt-ill .f3 { transform-box: fill-box; transform-origin: center; }
.wt-ill.is-animating .f1 { animation: wt-float 7s ease-in-out infinite; }
.wt-ill.is-animating .f2 { animation: wt-float 8.5s ease-in-out -2s infinite; }
.wt-ill.is-animating .f3 { animation: wt-float-sm 6s ease-in-out -1s infinite; }
@keyframes wt-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes wt-float-sm { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-7px) rotate(2deg); } }

/* ==========================================================================
   Generic pages, posts, 404
   ========================================================================== */
.wt-post-list { display: grid; gap: 1.5rem; margin-top: 2rem; }
.wt-post-list--grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.wt-post-card { padding: 1.5rem; background: #fff; border: 1px solid var(--wt-border); border-radius: var(--wt-radius-lg); }
.wt-post-card__title { font-family: var(--wt-font-head); font-size: 1.4rem; }
.wt-post-card__title a { color: var(--wt-navy); text-decoration: none; }
.wt-post-card__meta { font-size: 0.85rem; color: var(--wt-muted); }
.wt-post-card__thumb img, .wt-post-thumb img { border-radius: var(--wt-radius); }
.wt-404__code { font-family: var(--wt-font-head); font-size: clamp(4rem, 14vw, 8rem); line-height: 1; margin-bottom: 0.5rem; background: var(--wt-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Decorative shapes */
.wt-deco { position: absolute; pointer-events: none; z-index: 0; }
.wt-deco--ring { width: 340px; height: 340px; border: 1.5px solid rgba(45, 79, 214, 0.12); border-radius: 50%; right: -140px; top: -120px; }
.wt-deco--glow { width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(106, 79, 224, 0.28), transparent 65%); right: -180px; bottom: -200px; }
.wt-section > .wt-container { position: relative; z-index: 1; }

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
	.wt-js .wt-reveal { opacity: 1; transform: none; }
}

/* Generic menu list reset (header and footer menus extend this) */
.wt-menu { list-style: none; display: flex; gap: 0.15rem; align-items: center; margin: 0; padding: 0; }
