/**
 * Growtele Global Styles & Design Tokens
 * Extracted from Figma design system
 */

:root {
	/* Colors */
	--gt-primary: #ff9300;
	--gt-primary-rgb: 255, 147, 0;
	--gt-primary-dark: #995800;
	--gt-accent-red: #f9363d;
	--gt-accent-red-alt: #f93a3a;
	--gt-accent-orange: #fe8d03;
	--gt-navy: #121348;
	--gt-navy-dark: #0e0f3a;
	--gt-navy-footer: #090a2c;
	--gt-white: #ffffff;
	--gt-off-white: #fefefe;
	--gt-cream: #fdf3e6;
	--gt-peach: #fee7ce;
	--gt-peach-light: #fff2df;
	--gt-text: #121348;
	--gt-text-muted: rgba(18, 19, 72, 0.7);
	--gt-border: rgba(0, 0, 0, 0.25);
	/* Glass UI — bump --gt-glass-blur (e.g. 30px / 40px) to frost more */
	--gt-header-glass: rgba(255, 255, 255, 0.1);
	--gt-glass-blur: 20px;

	/* Typography — Tomato Grotesk (headings) + Roboto (body) only */
	--gt-font-body: 'Roboto', sans-serif;
	--gt-font-heading: 'Tomato Grotesk', sans-serif;

	/* Layout */
	--gt-container-max: 1480px;
	--gt-page-gutter: clamp(56px, 5vw, 140px);
	--gt-container-padding: clamp(24px, 2vw, 48px);
	--gt-header-height: 72px;
	--gt-section-gap: 150px;

	/* Border Radius */
	--gt-radius-sm: 16px;
	--gt-radius-md: 20px;
	--gt-radius-lg: 30px;
	--gt-radius-xl: 50px;
	--gt-radius-2xl: 80px;

	/* Transitions */
	--gt-ease: cubic-bezier(0.4, 0, 0.2, 1);
	--gt-duration: 0.3s;
	--gt-duration-slow: 0.6s;

	/* Shadows */
	--gt-shadow-card: 0 4px 24px rgba(18, 19, 72, 0.08);
	--gt-shadow-hover: 0 12px 40px rgba(18, 19, 72, 0.15);
}

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

html {
	scroll-behavior: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

html:has(body.gt-smooth-scroll) {
	scroll-behavior: auto;
}

body {
	margin: 0;
	font-family: var(--gt-font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--gt-text);
	background: var(--gt-white);
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--gt-duration) var(--gt-ease);
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--gt-font-body);
	margin: 0;
	line-height: 1.2;
}

p,
li,
label,
input,
textarea,
select,
button {
	font-family: var(--gt-font-body);
}

p {
	margin: 0 0 1em;
}

/* Layout Utilities */
.gt-container {
	width: min(var(--gt-container-max), calc(100% - var(--gt-page-gutter) * 2));
	margin: 0 auto;
	padding-left: var(--gt-container-padding);
	padding-right: var(--gt-container-padding);
}

.gt-section {
	position: relative;
	padding-top: 0;
	padding-bottom: 0;
	margin-bottom: var(--gt-section-gap);
}

/* First content section after hero */
.gt-outcomes {
	margin-top: 120px;
}

.gt-page-content {
	padding: calc(var(--gt-header-height) + 40px) 0 80px;
}

/* Section Headings */
.gt-section-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: last baseline;
	justify-content: space-between;
	gap: 40px;
	margin-bottom: 40px;
}

.gt-section-heading__title {
	font-family: var(--gt-font-heading);
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 600;
	color: var(--gt-navy);
	line-height: 1.25;
	text-align: left;
	margin: 0;
}

.gt-section-heading__desc {
	font-family: var(--gt-font-heading);
	font-size: clamp(16px, 1.5vw, 22px);
	font-weight: 400;
	color: var(--gt-navy);
	line-height: 1.5;
	text-align: left;
	margin: 0 0 0 auto;
}

.gt-section-heading--light .gt-section-heading__title,
.gt-section-heading--light .gt-section-heading__desc {
	color: var(--gt-white);
}

/* Buttons */
.gt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 18px;
	border: none;
	border-radius: 18.5px;
	font-family: var(--gt-font-body);
	font-size: 15px;
	font-weight: 400;
	color: var(--gt-white);
	cursor: pointer;
	transition: transform var(--gt-duration) var(--gt-ease), box-shadow var(--gt-duration) var(--gt-ease);
	will-change: transform;
}

.gt-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(var(--gt-primary-rgb), 0.35);
}

.gt-btn:active {
	transform: translateY(0);
}

.gt-btn--gradient {
	background: linear-gradient(to right, var(--gt-accent-red-alt), var(--gt-accent-orange));
	padding: 4px 6px 4px 26px;
	border-radius: var(--gt-radius-sm);
	height: 41px;
}

.gt-btn--gradient .gt-btn__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 24px;
	background: var(--gt-white);
	border-radius: 12px;
}

.gt-btn--navy {
	background: var(--gt-navy);
	border-radius: 54px;
	padding: 5px 15px;
	font-size: 17px;
}

.gt-btn--red {
	background: var(--gt-accent-red);
	border-radius: 37px;
	padding: 4px 18px;
	font-size: 18px;
	font-weight: 500;
}

.gt-btn--sm {
	font-size: 15px;
	padding: 8px 16px;
	border-radius: 10px;
}

.gt-btn--learn {
	font-size: 22px;
	padding: 4px 18px 4px 26px;
}

.gt-link {
	color: var(--gt-primary);
	font-weight: 500;
}

.gt-link:hover {
	color: var(--gt-accent-red);
}

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

/* Animation Base States */
[data-animate] {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity var(--gt-duration-slow) var(--gt-ease), transform var(--gt-duration-slow) var(--gt-ease);
}

[data-animate]:not(.is-visible) {
	will-change: opacity, transform;
}

.gt-enterprise__card[data-animate] {
	transform: translateY(16px);
	transition:
		opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.3s ease;
}

[data-animate="fade-left"] {
	transform: translateX(40px);
}

[data-animate="fade-right"] {
	transform: translateX(-40px);
}

[data-animate="scale"] {
	transform: scale(0.92);
}

[data-animate].is-visible {
	opacity: 1;
	transform: none;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	[data-animate] {
		opacity: 1;
		transform: none;
		transition: none;
	}

	html {
		scroll-behavior: auto;
	}
}

/* Elementor Compatibility */
.elementor-page .gt-page-content {
	padding-top: 0;
}

.elementor-section.elementor-section-boxed > .elementor-container {
	max-width: var(--gt-container-max);
}

/* Blog */
.gt-blog__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
}

.gt-blog-card {
	background: var(--gt-white);
	border-radius: var(--gt-radius-lg);
	overflow: hidden;
	box-shadow: var(--gt-shadow-card);
	transition: transform var(--gt-duration) var(--gt-ease), box-shadow var(--gt-duration) var(--gt-ease);
}

.gt-blog-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--gt-shadow-hover);
}

.gt-blog-card__body {
	padding: 24px;
}

.gt-blog-card__title {
	font-size: 20px;
	margin-bottom: 12px;
}

.gt-entry__title {
	font-size: clamp(32px, 4vw, 48px);
	margin-bottom: 24px;
}

.gt-404 {
	text-align: center;
	padding: 120px 0;
}

.gt-404__title {
	font-size: 120px;
	font-weight: 800;
	background: linear-gradient(to bottom, var(--gt-primary), var(--gt-accent-red));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.gt-404__subtitle {
	font-size: 32px;
	margin-bottom: 16px;
}

/* Typography lock — section headings only (Tomato Grotesk) */
.gt-section-heading__title,
.gt-section-heading__desc,
.gt-integrations__title,
.gt-cta__content h2 {
	font-family: var(--gt-font-heading);
}

.gt-section-heading__title .gt-word,
.gt-section-heading__desc .gt-word {
	font-family: inherit;
}

/* Cards — all inner text uses Roboto only */
:is(.gt-channels .card, .gt-industries__panel-inner, .gt-case-studies__card, .gt-outcomes__card, .gt-enterprise__card)
	:is(h1, h2, h3, h4, h5, h6, p, span, a, li, cite, blockquote, button, label) {
	font-family: var(--gt-font-body);
}

/* Elementor — enforce theme fonts only */
.elementor-widget-heading .elementor-heading-title {
	font-family: var(--gt-font-heading) !important;
}

.elementor-widget-text-editor,
.elementor-widget-text-editor p {
	font-family: var(--gt-font-body) !important;
}
