/**
 * ATEE global base styles — body, typography, layout utilities.
 */

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--atee-color-bg-page);
	color: var(--atee-color-text);
	font-family: var(--atee-font-family);
	font-size: var(--atee-text-p2-size);
	font-weight: var(--atee-font-weight-medium);
	line-height: var(--atee-text-p2-line);
	letter-spacing: var(--atee-letter-spacing);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.atee-site {
	background-color: var(--atee-page-bg, var(--atee-green-50));
}

body.atee-site .atee-header {
	background: var(--atee-page-bg, var(--atee-green-50));
}

img,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--atee-color-link);
	text-decoration: none;
	transition: color var(--atee-transition-fast);
}

a:hover {
	color: var(--atee-color-link-hover);
}

.atee-content a:focus-visible,
.entry-content a:focus-visible,
main:not(.atee-header):not(.atee-mobile):not(.atee-search-page) a:focus-visible,
.atee-footer a:focus-visible {
	color: var(--atee-color-link-hover);
}

.atee-footer a:focus-visible {
	color: var(--atee-white);
}

/* Typography utilities (Figma text styles) */
.atee-h2,
h1.atee-h2,
h2.atee-h2 {
	margin: 0 0 var(--atee-space-md);
	font-size: var(--atee-text-h2-size);
	font-weight: var(--atee-font-weight-semibold);
	line-height: var(--atee-text-h2-line);
	letter-spacing: var(--atee-letter-spacing);
	color: var(--atee-color-text);
}

.atee-h3,
h2.atee-h3,
h3.atee-h3 {
	margin: 0 0 var(--atee-space-md);
	font-size: var(--atee-text-h3-size);
	font-weight: var(--atee-font-weight-semibold);
	line-height: var(--atee-text-h3-line);
	letter-spacing: var(--atee-letter-spacing);
	color: var(--atee-color-text);
}

.atee-h4,
h3.atee-h4,
h4.atee-h4 {
	margin: 0 0 var(--atee-space-md);
	font-size: var(--atee-text-h4-size);
	font-weight: var(--atee-font-weight-semibold);
	line-height: var(--atee-text-h4-line);
	letter-spacing: var(--atee-letter-spacing);
	color: var(--atee-color-primary-dark);
}

.atee-h5,
h4.atee-h5,
h5.atee-h5 {
	margin: 0 0 var(--atee-space-sm);
	font-size: var(--atee-text-h5-size);
	font-weight: var(--atee-font-weight-semibold);
	line-height: var(--atee-text-h5-line);
	letter-spacing: var(--atee-letter-spacing);
	color: var(--atee-color-primary-deep);
}

.atee-p1 {
	font-size: var(--atee-text-p1-size);
	line-height: var(--atee-text-p1-line);
}

.atee-p2 {
	font-size: var(--atee-text-p2-size);
	line-height: var(--atee-text-p2-line);
}

.atee-p3 {
	font-size: var(--atee-text-p3-size);
	line-height: var(--atee-text-p3-line);
}

.atee-p4 {
	font-size: var(--atee-text-p4-size);
	line-height: var(--atee-text-p4-line);
}

.atee-label-section {
	font-size: var(--atee-text-label-size);
	font-weight: var(--atee-font-weight-bold);
	line-height: var(--atee-text-label-line);
	letter-spacing: var(--atee-letter-spacing);
	text-transform: uppercase;
}

.atee-text-muted {
	color: var(--atee-color-text-muted);
}

/* Layout utilities */
.atee-shell {
	width: 100%;
	max-width: var(--atee-layout-max);
	margin-inline: auto;
}

.atee-container {
	width: 100%;
	max-width: var(--atee-layout-max);
	margin-inline: auto;
	padding-inline: var(--atee-gutter);
	box-sizing: border-box;
}

.atee-container--wide {
	max-width: var(--atee-layout-max);
}

.atee-section {
	padding-block: var(--atee-space-section-y);
}

.atee-section--tight {
	padding-block: var(--atee-space-lg);
}

/* Main content area — Figma 1440 shell / 80px gutters (matches header) */
#content.site-main,
main.site-main {
	background: transparent;
}

/* Fallback templates — Figma 1440 shell / 80px gutters (matches header) */
body.atee-site:not([class*="elementor-page-"]) #content.site-main,
body.atee-site:not([class*="elementor-page-"]) main.site-main {
	width: 100%;
	max-width: var(--atee-layout-max);
	margin-inline: auto;
	padding-inline: var(--atee-gutter);
	padding-block: var(--atee-space-section-y);
	box-sizing: border-box;
}

body.atee-site:not([class*="elementor-page-"]) .site-main .page-header .entry-title {
	width: auto;
	max-width: none;
	margin-inline: 0;
	padding-inline: 0;
}

body.atee-site:not([class*="elementor-page-"]) .site-main .page-header,
body.atee-site:not([class*="elementor-page-"]) .site-main .page-content,
body.atee-site:not([class*="elementor-page-"]) .site-main > .pagination,
body.atee-site:not([class*="elementor-page-"]) .site-main > .comments-area {
	max-width: none;
	margin-inline: 0;
	padding-inline: var(--atee-space-lg);
	padding-block: 0;
	box-sizing: border-box;
}

body.atee-site:not([class*="elementor-page-"]) .site-main .page-header {
	padding-block-end: var(--atee-space-lg);
}

body.atee-site:not([class*="elementor-page-"]) .site-main .page-header .entry-title {
	margin: 0;
	font-size: var(--atee-text-h2-size);
	font-weight: var(--atee-font-weight-semibold);
	line-height: var(--atee-text-h2-line);
	color: var(--atee-color-text);
}

body.atee-site:not([class*="elementor-page-"]) .site-main .page-content .entry-title {
	margin: 0 0 var(--atee-space-md);
	font-size: var(--atee-text-h4-size);
	font-weight: var(--atee-font-weight-semibold);
	line-height: var(--atee-text-h4-line);
}

body.atee-site:not([class*="elementor-page-"]) .site-main .page-content .entry-title a {
	color: var(--atee-color-link);
	text-decoration: none;
}

body.atee-site:not([class*="elementor-page-"]) .site-main .page-content .entry-title a:hover {
	color: var(--atee-color-link-hover);
}

body.atee-site:not([class*="elementor-page-"]) .site-main > .pagination {
	padding-block-start: var(--atee-space-xl);
}

.atee-page-content {
	max-width: var(--atee-layout-max);
	margin-inline: auto;
	padding-inline: var(--atee-gutter);
	padding-block: var(--atee-space-section-y);
	box-sizing: border-box;
}

@media (max-width: 1199px) {
	body.atee-site:not([class*="elementor-page-"]) .site-main .page-header,
	body.atee-site:not([class*="elementor-page-"]) .site-main .page-content,
	body.atee-site:not([class*="elementor-page-"]) .site-main > .pagination,
	body.atee-site:not([class*="elementor-page-"]) .site-main > .comments-area {
		padding-inline: var(--atee-space-md);
	}
}

/* Shared button base (matches Figma Button 1) */
.atee-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--atee-space-xs);
	padding: 12px 24px;
	border-radius: var(--atee-radius-pill);
	font-family: var(--atee-font-family);
	font-size: var(--atee-text-button-size);
	font-weight: var(--atee-font-weight-semibold);
	line-height: var(--atee-text-button-line);
	letter-spacing: var(--atee-letter-spacing);
	border: 1px solid transparent;
	cursor: pointer;
	transition:
		background-color var(--atee-transition-base),
		border-color var(--atee-transition-base),
		color var(--atee-transition-base),
		transform var(--atee-transition-fast);
}

.atee-btn--primary {
	background: var(--atee-color-primary);
	border-color: var(--atee-color-primary);
	color: var(--atee-white);
}

.atee-btn--primary:hover {
	background: var(--atee-color-primary-hover);
	border-color: var(--atee-color-primary-hover);
	color: var(--atee-white);
}

.atee-btn--dark {
	background: var(--atee-color-primary-dark);
	border-color: var(--atee-color-primary-dark);
	color: var(--atee-white);
}

.atee-btn--dark:hover {
	background: var(--atee-blue-900);
	border-color: var(--atee-blue-900);
	color: var(--atee-white);
}

.atee-btn--outline {
	background: transparent;
	border-color: var(--atee-color-primary);
	color: var(--atee-color-primary);
}

.atee-btn--outline:hover {
	background: var(--atee-color-bg-highlight);
}

.atee-btn--ghost {
	background: transparent;
	border-color: var(--atee-color-border);
	color: var(--atee-color-text-muted);
}

.atee-btn--ghost:hover {
	border-color: var(--atee-color-primary);
	color: var(--atee-color-primary);
}

.atee-btn--block {
	width: 100%;
}

.atee-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* Search results page — layout from .site-main; typography only here */
.atee-search-page {
	max-width: none;
	margin: 0;
	padding: 0;
}

.atee-search-page__title {
	margin: 0;
	font-size: var(--atee-text-h2-size);
	font-weight: var(--atee-font-weight-semibold);
	line-height: var(--atee-text-h2-line);
	color: var(--atee-color-text);
}

.atee-search-page__title span {
	display: block;
	margin-top: var(--atee-space-xs);
	color: var(--atee-color-primary);
}

.atee-search-page__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.atee-search-page__item {
	border-bottom: 1px solid var(--atee-color-border, #e5e5e6);
}

.atee-search-page__link {
	display: block;
	padding: var(--atee-space-md) 0;
	color: inherit;
}

.atee-search-page__link:hover .atee-search-page__item-title {
	color: var(--atee-color-primary);
}

.atee-search-page__type {
	display: inline-block;
	margin-bottom: var(--atee-space-xs);
	padding: 0.125rem 0.5rem;
	border-radius: 999px;
	background: var(--atee-color-bg-subtle, #f4f6fb);
	font-size: 0.75rem;
	font-weight: var(--atee-font-weight-semibold);
	color: var(--atee-color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.atee-search-page__item-title {
	display: block;
	font-size: var(--atee-text-h4-size);
	font-weight: var(--atee-font-weight-semibold);
	line-height: 1.3;
	color: var(--atee-color-text);
	transition: color var(--atee-transition-fast);
}

.atee-search-page__excerpt {
	display: block;
	margin-top: var(--atee-space-xs);
	font-size: var(--atee-text-p2-size);
	line-height: var(--atee-text-p2-line);
	color: var(--atee-color-text-muted);
}

.atee-search-page__empty {
	margin: 0;
	padding: var(--atee-space-xl) 0;
	color: var(--atee-color-text-muted);
}

.testimonial-carousel .e-n-carousel {
	padding: 16px 5px 5px 5px;
}

@media (max-width: 767px) {
	.atee-h2,
	h1.atee-h2,
	h2.atee-h2 {
		font-size: 2rem;
		line-height: 2.25rem;
	}

	.atee-h3,
	h2.atee-h3,
	h3.atee-h3 {
		font-size: 1.5rem;
		line-height: 1.875rem;
	}
}
