/*
Theme Name: Hello Elementor Child
Theme URI: https://alphostech.com
Description: Alphos Technologies child theme for Hello Elementor 3.4.9. Centralizes design tokens plus Header 140 and Footer 151 visual foundations. Does not rebuild page documents.
Author: Alphos Technologies
Author URI: https://alphostech.com
Template: hello-elementor
Version: 1.16.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: hello-elementor-child
*/

/* -------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */

:root {
	--alphos-black: #0B0B0B;
	--alphos-charcoal: #151515;
	--alphos-green: #00C853;
	--alphos-mint: #69F0AE;
	--alphos-white: #FFFFFF;
	--alphos-text-secondary: #B5B5B5;
	--alphos-text-muted: #7A7A7A;
	--alphos-border: #2A2A2A;

	--alphos-font: "Segoe UI", system-ui, -apple-system, blinkmacsystemfont, "Helvetica Neue", arial, sans-serif;

	--alphos-text-size: 1rem;
	--alphos-text-leading: 1.6;
	--alphos-heading-leading: 1.2;
	--alphos-radius: 8px;
	--alphos-focus-ring: 2px;
}

/*
 * Align Elementor Kit 8 CSS variables with Alphos tokens.
 * Widget-level colors (including light cards, Header 140, Footer 151)
 * keep their own saved values and are not overridden here.
 */
body.elementor-kit-8 {
	--e-global-color-primary: var(--alphos-white);
	--e-global-color-secondary: var(--alphos-text-secondary);
	--e-global-color-text: var(--alphos-text-secondary);
	--e-global-color-accent: var(--alphos-green);
	--e-global-color-alphos_black: var(--alphos-black);
	--e-global-color-alphos_charcoal: var(--alphos-charcoal);
	--e-global-color-alphos_green: var(--alphos-green);
	--e-global-color-alphos_mint: var(--alphos-mint);
	--e-global-color-alphos_white: var(--alphos-white);
	--e-global-color-alphos_text_secondary: var(--alphos-text-secondary);
	--e-global-color-alphos_muted: var(--alphos-text-muted);
	--e-global-color-alphos_border: var(--alphos-border);
	background-color: var(--alphos-black);
}

/* -------------------------------------------------------------------------
   2. Typography foundation
   Do not force heading/body colors here: Elementor widgets already set
   those, including light cards. Tokens are available for later phases.
   ------------------------------------------------------------------------- */

html {
	font-size: 100%;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--alphos-font);
	font-size: var(--alphos-text-size);
	line-height: var(--alphos-text-leading);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--alphos-font);
	line-height: var(--alphos-heading-leading);
}

/* -------------------------------------------------------------------------
   3. Buttons
   ------------------------------------------------------------------------- */

.elementor-button,
button[type="submit"],
input[type="submit"] {
	font-family: var(--alphos-font);
	font-weight: 600;
	letter-spacing: 0.01em;
	border-radius: var(--alphos-radius);
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.elementor-button {
	background-color: var(--alphos-green);
	color: var(--alphos-white);
	border-color: var(--alphos-green);
}

.elementor-button:hover,
.elementor-button:focus {
	background-color: var(--alphos-mint);
	border-color: var(--alphos-mint);
	color: var(--alphos-black);
}

/* -------------------------------------------------------------------------
   4. Focus states
   ------------------------------------------------------------------------- */

:focus-visible {
	outline: var(--alphos-focus-ring) solid var(--alphos-green);
	outline-offset: 3px;
}

.elementor-button:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: var(--alphos-focus-ring) solid var(--alphos-green);
	outline-offset: 3px;
}

/* -------------------------------------------------------------------------
   5. Reduced motion
   ------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html:focus-within {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* -------------------------------------------------------------------------
   6. Responsive foundation
   ------------------------------------------------------------------------- */

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

iframe {
	max-width: 100%;
}

body.elementor-kit-8 .elementor-field-group label {
	color: var(--alphos-text-secondary);
}

body.elementor-kit-8 .elementor-field-textual,
body.elementor-kit-8 .elementor-field-group input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
body.elementor-kit-8 .elementor-field-group textarea {
	color: var(--alphos-white);
	background-color: var(--alphos-charcoal);
	border: 1px solid var(--alphos-border);
	border-radius: var(--alphos-radius);
}

body.elementor-kit-8 .elementor-field-textual:focus,
body.elementor-kit-8 .elementor-field-group input:focus:not([type="button"]):not([type="submit"]),
body.elementor-kit-8 .elementor-field-group textarea:focus {
	border-color: var(--alphos-green);
}

@media (max-width: 767px) {
	body {
		--alphos-text-size: 0.9375rem;
	}
}
