/* Import Google Fonts as fallback for Aquawax */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Font definitions using original Aquawax fonts from Alto Robotics website */
@font-face {
    font-family: 'aquawax_regular';
    src: url('https://www.altorobotics.ai/templates/yootheme_alto/fonts/Aquawax-Pro-Regular.woff2') format('woff2'),
         url('https://www.altorobotics.ai/templates/yootheme_alto/fonts/Aquawax-Pro-Regular.woff') format('woff'),
         url('https://www.altorobotics.ai/templates/yootheme_alto/fonts/Aquawax-Pro-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'aquawax_bold';
    src: url('https://www.altorobotics.ai/templates/yootheme_alto/fonts/Aquawax-Pro-Bold.woff2') format('woff2'),
         url('https://www.altorobotics.ai/templates/yootheme_alto/fonts/Aquawax-Pro-Bold.woff') format('woff'),
         url('https://www.altorobotics.ai/templates/yootheme_alto/fonts/Aquawax-Pro-Bold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'aquawax_heavy';
    src: url('https://www.altorobotics.ai/templates/yootheme_alto/fonts/Aquawax-Pro-Heavy.woff2') format('woff2'),
         url('https://www.altorobotics.ai/templates/yootheme_alto/fonts/Aquawax-Pro-Heavy.woff') format('woff'),
         url('https://www.altorobotics.ai/templates/yootheme_alto/fonts/Aquawax-Pro-Heavy.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'aquawax_thin';
    src: url('https://www.altorobotics.ai/templates/yootheme_alto/fonts/Aquawax-Pro-Thin.woff2') format('woff2'),
         url('https://www.altorobotics.ai/templates/yootheme_alto/fonts/Aquawax-Pro-Thin.woff') format('woff'),
         url('https://www.altorobotics.ai/templates/yootheme_alto/fonts/Aquawax-Pro-Thin.ttf') format('truetype');
    font-weight: inherit;
    font-style: normal;
    font-display: swap;
}

/* Override the original font definitions in the theme */
.uk-font-default {
    font-family: 'aquawax_regular', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 400 !important;
}

.uk-font-primary {
    font-family: 'aquawax_bold', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 600 !important;
}

.uk-font-secondary {
    font-family: 'aquawax_heavy', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 400 !important;
}

.uk-font-tertiary {
    font-family: 'aquawax_thin', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: inherit !important;
}

/* Additional font overrides for specific elements */
.tm-section-title {
    font-family: 'aquawax_heavy', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 400 !important;
}

/* Ensure all text elements use the correct font */
body, p, div, span, h1, h2, h3, h4, h5, h6, a, button, input, textarea, select {
    font-family: 'aquawax_regular', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Specific overrides for headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'aquawax_bold', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 600 !important;
}

/* Navigation elements */
.uk-navbar-nav > li > a,
.uk-nav-default > li > a {
    font-family: 'aquawax_regular', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 400 !important;
    color: #666666 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
}

/* Button text */
.uk-button {
    font-family: 'aquawax_bold', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 600 !important;
}

/* BOOK A DEMO button alignment */
.uk-navbar-item .uk-button {
    vertical-align: middle !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Navbar item alignment */
.uk-navbar-item {
    display: flex !important;
    align-items: center !important;
    vertical-align: middle !important;
}

/* Form elements */
.uk-input, .uk-textarea, .uk-select {
    font-family: 'aquawax_regular', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 400 !important;
}

/* Language selector */
.uk-navbar-item a[href*="lang"] {
    color: #666666 !important;
    font-weight: 400 !important;
}

/* Language selector active state */
.uk-navbar-item a[href*="lang"].uk-active {
    color: #8B5CF6 !important;
    font-weight: 400 !important;
}

/* Ensure proper font rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ALTO ROBOTICS Logo */
.alto-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.alto-text {
    font-family: 'aquawax_bold', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 700 !important;
    font-size: 32px !important;
    color: #8B5CF6 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.robotics-text {
    font-family: 'aquawax_regular', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    color: #666666 !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-top: -2px !important;
}
