/*
Theme Name: Triple A Technology
Theme URI: https://www.tripleatechnologybd.com
Author: Triple A Technology
Description: Company website theme for Triple A Technology. Built for the free Elementor plugin: every page is editable visually. Includes a built-in hero slider (works with Smart Slider 3 shortcodes) and a contact form that emails info@tripleatechnologybd.com.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: triple-a-tech
*/

:root {
	--ink: #14232f;
	--ink-2: #3b4d5c;
	--green: #3f7f1f;
	--green-bright: #6db33f;
	--steel: #2f5f8f;
	--ice: #eaf3fb;
	--ice-2: #f6fafd;
	--line: #c9daea;
	--white: #fff;
	--f-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	--f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
	--radius: 6px;
	--wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink-2);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--steel); }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.taa-skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.taa-skip:focus { left: 8px; top: 8px; }
.taa-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.taa-btn,
body .elementor-widget-button .elementor-button {
	display: inline-block;
	font-family: var(--f-body);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	padding: 14px 24px;
	background: var(--green);
	color: #fff;
	border: 2px solid var(--green);
	border-radius: var(--radius);
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.taa-btn:hover,
body .elementor-widget-button .elementor-button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.taa-btn--ghost,
body .elementor-widget-button.taa-btn--ghost .elementor-button { background: transparent; color: var(--ink); border-color: var(--ink); }
.taa-btn--ghost:hover,
body .elementor-widget-button.taa-btn--ghost .elementor-button:hover { background: var(--ink); color: #fff; }
body .elementor-widget-button.taa-btn--light .elementor-button { background: #fff; color: var(--ink); border-color: #fff; }
body .elementor-widget-button.taa-btn--light .elementor-button:hover { background: var(--green-bright); border-color: var(--green-bright); color: var(--ink); }

/* ---------- Top bar & header ---------- */
.taa-topbar { background: var(--ice); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.taa-topbar__in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 7px; padding-bottom: 7px; }
.taa-topbar__links { display: flex; gap: 20px; flex-wrap: wrap; }
.taa-topbar a { color: var(--ink); text-decoration: none; font-weight: 600; }
.taa-topbar a:hover { color: var(--green); }

.taa-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.admin-bar .taa-header { top: 32px; }
.taa-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.taa-brand img, .taa-brand .custom-logo { display: block; height: 62px; width: auto; }
.taa-nav { display: flex; align-items: center; gap: 24px; }
.taa-nav__list, .taa-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.taa-nav li { position: relative; }
.taa-nav a { display: block; padding: 10px 14px; color: var(--ink); font-weight: 600; text-decoration: none; border-radius: var(--radius); }
.taa-nav a:hover { color: var(--green); background: var(--ice-2); }
.taa-nav .current-menu-item > a,
.taa-nav .current_page_item > a { color: var(--green); box-shadow: inset 0 -3px 0 var(--green-bright); border-radius: 0; }
.taa-nav .sub-menu, .taa-nav .children {
	position: absolute; left: 0; top: 100%; min-width: 270px; display: none; flex-direction: column; align-items: stretch; gap: 0;
	background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--green-bright); padding: 6px; z-index: 60;
	box-shadow: 0 14px 30px rgba(20, 35, 47, .12);
}
.taa-nav li:hover > .sub-menu, .taa-nav li:focus-within > .sub-menu,
.taa-nav li:hover > .children, .taa-nav li:focus-within > .children { display: flex; }
.taa-nav .sub-menu a, .taa-nav .children a { font-weight: 400; }
.taa-nav .taa-nav__cta { color: #fff; padding: 12px 20px; }
.taa-nav .taa-nav__cta:hover { color: #fff; background: var(--ink); }
.taa-burger { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px; cursor: pointer; }
.taa-burger__bar { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

/* ---------- Page wrappers ---------- */
.taa-main { min-height: 50vh; }
.taa-entry { padding-top: 56px; padding-bottom: 72px; }
.taa-entry__title { font-family: var(--f-head); color: var(--ink); font-size: clamp(30px, 4vw, 46px); line-height: 1.1; margin: 0 0 24px; }
.taa-entry__title a { color: inherit; text-decoration: none; }

/* ---------- Elementor sections ---------- */
body .taa-sec { padding: 76px 24px; }
body .taa-sec > .elementor-container { max-width: var(--wrap); }
body .taa-sec.taa-tight { padding-top: 0; padding-bottom: 56px; }
body .taa-ice { background: var(--ice-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
body .taa-sec.taa-slider-zone { padding: 0; }
body .taa-slider-zone > .elementor-container { max-width: none; }
body .taa-slider-zone .elementor-widget-wrap { padding: 0; }
body .taa-slider-zone .elementor-element-populated { padding: 0; }
body .taa-slider-zone .elementor-widget:not(:last-child) { margin-bottom: 0; }

body .taa-sec .elementor-widget-heading .elementor-heading-title {
	font-family: var(--f-head);
	font-weight: 700;
	color: var(--ink);
	line-height: 1.1;
	letter-spacing: -.01em;
}
body .taa-sec .taa-title .elementor-heading-title { font-size: clamp(28px, 3.3vw, 42px); }
body .taa-sec .taa-title--sm .elementor-heading-title { font-size: 24px; }
body .taa-sec .elementor-widget-text-editor { color: var(--ink-2); font-family: var(--f-body); font-size: 17px; line-height: 1.65; }
body .taa-sec .taa-lead { font-size: 19px; }
body .taa-sec .elementor-widget-text-editor p { margin: 0 0 1em; }
body .taa-sec .elementor-widget:not(:last-child) { margin-bottom: 18px; }
body .taa-head { margin-bottom: 20px; }
body .taa-head .taa-lead { max-width: 720px; }
body .taa-center { text-align: center; }
body .taa-center .elementor-widget-image img { margin: 0 auto; }

.taa-list { list-style: none; margin: 0 0 1em; padding: 0; }
.taa-list li { position: relative; padding: 6px 0 6px 26px; }
.taa-list li::before { content: ""; position: absolute; left: 0; top: 15px; width: 12px; height: 12px; border: 2px solid var(--green); border-radius: 50%; }

/* Intro row */
body .taa-intro .elementor-widget-button { margin-top: 6px; }

/* Cells and cards */
body .taa-cell > .elementor-widget-wrap { padding: 12px; }
body .taa-cell > .elementor-element-populated { padding: 12px; }
body .taa-card .elementor-image-box-wrapper,
body .taa-cell .elementor-widget-icon-box .elementor-icon-box-wrapper,
body .taa-clients .elementor-image-box-wrapper {
	height: 100%;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 0 0 24px;
	text-align: left;
	transition: border-color .2s;
}
body .taa-cell .elementor-widget-icon-box .elementor-icon-box-wrapper { padding: 28px 24px; }
body .taa-card .elementor-image-box-wrapper:hover { border-color: var(--green); }
body .taa-cell .elementor-widget { height: 100%; }
body .taa-cell .elementor-widget-container { height: 100%; }
body .taa-sec .elementor-image-box-img { display: block; margin: 0 0 18px !important; width: 100% !important; background: var(--ice); border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
body .taa-sec .elementor-image-box-img a { display: block; }
body .taa-sec .elementor-image-box-img img { display: block; width: 100%; height: 190px; object-fit: contain; padding: 18px; }
body .taa-sec .elementor-image-box-content { padding: 0 24px; }
body .taa-sec .elementor-image-box-title,
body .taa-sec .elementor-icon-box-title { font-family: var(--f-head); font-size: 21px; line-height: 1.2; margin: 0 0 8px; color: var(--ink); }
body .taa-sec .elementor-image-box-title a { color: var(--ink); text-decoration: none; }
body .taa-sec .elementor-image-box-title a:hover { color: var(--green); }
body .taa-sec .elementor-image-box-description,
body .taa-sec .elementor-icon-box-description { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
body .taa-sec .elementor-icon-box-icon { margin-bottom: 14px !important; display: block; text-align: left; }
body .taa-sec .elementor-icon-box-icon .elementor-icon { color: var(--green); font-size: 30px; }
body .taa-sec .elementor-icon-box-icon .elementor-icon svg { fill: var(--green); width: 30px; height: 30px; }
body .taa-sec .elementor-icon-box-wrapper { text-align: left; }
body .taa-clients .elementor-image-box-title { font-size: 17px; }
body .taa-clients .elementor-image-box-img img { height: 150px; }

/* Panels (vision / mission / objectives) */
body .taa-panel > .elementor-element-populated { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 10px; }
body .taa-panel .elementor-widget-heading { margin-bottom: 10px; }

/* Logos */
body .taa-brands .elementor-widget-image img { display: block; width: auto; max-width: 100%; max-height: 64px; margin: 0 auto; object-fit: contain; }
body .taa-logo-cell > .elementor-element-populated { padding: 18px; align-items: center; justify-content: center; }
body .taa-logo-carousel .swiper-slide-image { height: 64px; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; }
body .taa-logo-carousel .swiper-slide { display: flex; align-items: center; justify-content: center; padding: 10px 16px; }
body .taa-logo-carousel .swiper-slide figure { margin: 0; }
.taa-garrett { display: inline-flex; flex-direction: column; align-items: center; background: #000; padding: 8px 14px; line-height: 1.1; font-family: Georgia, "Times New Roman", serif; }
.taa-garrett strong { color: #ffee00; font-size: 30px; letter-spacing: .02em; }
.taa-garrett span { color: #ffee00; font-weight: 700; font-size: 14px; }
body .taa-product img { max-height: 320px; width: auto; object-fit: contain; }

/* Quote */
body .taa-quote blockquote { margin: 0 auto 18px; max-width: 760px; font-family: var(--f-head); font-size: clamp(21px, 2.4vw, 28px); line-height: 1.35; color: var(--ink); }
body .taa-quote .taa-sign { margin: 0; }

/* Call to action band */
body .taa-sec.taa-cta { background: var(--ink); padding: 84px 24px; }
body .taa-on-dark .elementor-heading-title { color: #fff !important; }
body .taa-sec .taa-on-dark.elementor-widget-text-editor, body .taa-on-dark.elementor-widget-text-editor { color: #dbe7f1; max-width: 640px; margin-left: auto; margin-right: auto; }

/* Contact page */
.taa-contact { list-style: none; margin: 0; padding: 0; }
.taa-contact li { padding: 12px 0; border-top: 1px solid var(--line); }
.taa-contact li:last-child { border-bottom: 1px solid var(--line); }
.taa-contact strong { color: var(--ink); }
.taa-map { display: block; width: 100%; height: 380px; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Contact form ---------- */
.taa-form { display: flex; flex-wrap: wrap; gap: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.taa-field { flex: 1 1 100%; display: flex; flex-direction: column; gap: 6px; }
.taa-field--half { flex: 1 1 calc(50% - 10px); min-width: 220px; }
.taa-field label { font-weight: 700; color: var(--ink); font-size: 15px; }
.taa-field input, .taa-field textarea {
	width: 100%; font: inherit; color: var(--ink); background: var(--ice-2);
	border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
}
.taa-field input:focus, .taa-field textarea:focus { border-color: var(--green); background: #fff; outline: 3px solid rgba(109, 179, 63, .35); outline-offset: 0; }
.taa-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.taa-notice { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 600; }
.taa-notice--ok { background: #e6f4dc; color: #25500f; border: 1px solid #a9d48a; }
.taa-notice--err { background: #fdeaea; color: #7a1f1f; border: 1px solid #e5a3a3; }

/* ---------- Hero slider ---------- */
.taa-hero {
	position: relative;
	background-color: var(--ice);
	background-image:
		linear-gradient(rgba(47, 95, 143, .08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(47, 95, 143, .08) 1px, transparent 1px);
	background-size: 44px 44px;
	border-bottom: 1px solid var(--line);
	overflow: hidden;
}
.taa-slides { display: grid; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.taa-slide {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 40px;
	align-items: center;
	padding: 60px 0 96px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s ease, visibility .6s;
}
.taa-slide.is-active { opacity: 1; visibility: visible; }
.taa-slide__title {
	font-family: var(--f-head);
	font-weight: 700;
	font-size: clamp(34px, 4.8vw, 62px);
	line-height: 1.04;
	letter-spacing: -.02em;
	color: var(--ink);
	margin: 0 0 20px;
}
.taa-slide__lead { font-size: 20px; line-height: 1.55; max-width: 560px; margin: 0 0 28px; color: var(--ink-2); }
.taa-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.taa-hero a.taa-btn { color: #fff; }
.taa-hero a.taa-btn:hover { color: #fff; }
.taa-hero a.taa-btn--ghost { color: var(--ink); }
.taa-hero a.taa-btn--ghost:hover { color: #fff; }

.taa-orbit { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin: 0 auto; }
.taa-orbit__ring { position: absolute; left: 0; right: 0; top: 29%; height: 42%; border: 2px solid rgba(47, 95, 143, .32); border-radius: 50%; }
.taa-orbit__ring--b { transform: rotate(60deg); }
.taa-orbit__ring--c { transform: rotate(120deg); }
.taa-orbit__dot { position: absolute; inset: 0; animation: taa-spin 20s linear infinite; }
.taa-orbit__dot::before { content: ""; position: absolute; top: 2%; left: calc(50% - 9px); width: 18px; height: 18px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 5px rgba(109, 179, 63, .22); }
.taa-orbit__core { position: absolute; inset: 17%; display: grid; place-items: center; background: #fff; border-radius: 50%; box-shadow: 0 0 0 10px rgba(255, 255, 255, .55), 0 18px 40px rgba(20, 35, 47, .12); }
.taa-orbit__core img { width: 72%; height: 72%; object-fit: contain; }
@keyframes taa-spin { to { transform: rotate(360deg); } }

.taa-hero__nav { position: relative; z-index: 2; max-width: var(--wrap); margin: -64px auto 0; padding: 0 24px 30px; display: flex; align-items: center; gap: 12px; }
.taa-hero__arrow { width: 42px; height: 42px; border: 2px solid var(--ink); border-radius: var(--radius); background: transparent; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 0 3px; }
.taa-hero__arrow:hover { background: var(--ink); color: #fff; }
.taa-hero__dots { display: flex; gap: 8px; }
.taa-hero__dot { width: 34px; height: 6px; border: 0; border-radius: 3px; background: rgba(20, 35, 47, .22); cursor: pointer; padding: 0; }
.taa-hero__dot.is-active { background: var(--green); }

/* ---------- Footer ---------- */
.taa-footer { background: var(--ice); border-top: 4px solid var(--green-bright); color: var(--ink-2); }
.taa-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.2fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.taa-footer__about { margin: 14px 0 0; font-size: 15px; max-width: 320px; }
.taa-footer__h { font-family: var(--f-head); font-size: 18px; color: var(--ink); margin: 0 0 12px; }
.taa-footer__list, .taa-footer .taa-footer__list { list-style: none; margin: 0; padding: 0; }
.taa-footer__list li { padding: 4px 0; font-size: 15px; }
.taa-footer a { color: var(--ink); text-decoration: none; }
.taa-footer a:hover { color: var(--green); text-decoration: underline; }
.taa-footer__bar { border-top: 1px solid var(--line); padding: 16px 0; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.taa-footer__grid { grid-template-columns: 1fr 1fr; }
	.taa-burger { display: block; }
	.taa-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
		box-shadow: 0 16px 30px rgba(20, 35, 47, .1);
	}
	.taa-nav.is-open { display: flex; }
	.taa-nav__list, .taa-nav ul { flex-direction: column; align-items: stretch; }
	.taa-nav .sub-menu, .taa-nav .children { position: static; display: flex; box-shadow: none; border: 0; border-left: 3px solid var(--line); margin-left: 12px; padding: 0; min-width: 0; }
	.taa-nav .taa-nav__cta { text-align: center; margin-top: 10px; }
	.taa-header { position: relative; }
	.taa-nav a { padding: 12px 8px; }
	.taa-slide { grid-template-columns: 1fr; gap: 20px; padding: 36px 0 90px; }
	.taa-slide__media { order: -1; }
	.taa-orbit { width: min(70%, 260px); }
	body .taa-sec { padding: 52px 20px; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.taa-topbar__in { justify-content: center; text-align: center; }
	.taa-footer__grid { grid-template-columns: 1fr; }
	.taa-slide__lead { font-size: 18px; }
	.taa-form { padding: 20px; }
}
@media (max-width: 782px) {
	.admin-bar .taa-header { top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.taa-orbit__dot { animation: none; }
	.taa-slide { transition: none; }
}
