/*!
Theme Name: Hostinger AI theme
Author: Hostinger
Author URI: https://hostinger.com
Details URI: https://hostinger.com
Description: Hostinger AI theme built with SEO and mobile responsiveness in mind, this theme ensures optimal performance and a better online presence.
Version: 2.1.2
Tested up to: 7.1
Requires at least: 5.6
Requires PHP: 8.1
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: hostinger-ai-theme
Tags: ai-theme
*/

:root {
    --tpd-navy: #091d43;
    --tpd-blue: #004bac;
    --tpd-copper: #ce661f;
    --tpd-cream: #e8ccaf;
    --tpd-white: #ffffff;
    --tpd-ink: #101820;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

.tpd-site-header {
    position: relative;
    z-index: 1000;
    background: var(--tpd-navy);
    border-bottom: 1px solid rgba(232, 204, 175, 0.25);
    color: var(--tpd-white);
}

.tpd-nav-wrap {
    width: min(1180px, calc(100% - 48px));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.tpd-brand,
.tpd-footer-brand {
    color: var(--tpd-white);
    text-decoration: none;
}

.tpd-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.tpd-brand .custom-logo-link {
    display: inline-flex;
}

.tpd-brand .custom-logo {
    width: auto;
    max-height: 52px;
}

.tpd-brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--tpd-copper);
    color: var(--tpd-white);
    font: 700 14px/1 "Open Sans", sans-serif;
    letter-spacing: 0.06em;
}

.tpd-brand-name {
    font: 400 21px/1.1 Tahoma, sans-serif;
    letter-spacing: 0.02em;
}

.tpd-primary-nav {
    margin-left: auto;
}

.tpd-menu,
.tpd-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tpd-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tpd-menu li {
    position: relative;
}

.tpd-menu a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 15px;
    border-radius: 999px;
    color: var(--tpd-white);
    font: 600 15px/1.25 "Open Sans", sans-serif;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease;
}

.tpd-menu > li > a:hover,
.tpd-menu > li > a:focus-visible,
.tpd-menu > .current-menu-item > a,
.tpd-menu > .current-menu-ancestor > a {
    background: rgba(255, 255, 255, 0.1);
    color: var(--tpd-cream);
}

.tpd-menu .menu-item-has-children > a::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.tpd-menu .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 250px;
    padding: 10px;
    border: 1px solid rgba(9, 29, 67, 0.1);
    border-radius: 16px;
    background: var(--tpd-white);
    box-shadow: 0 24px 60px rgba(9, 29, 67, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.tpd-menu .sub-menu .sub-menu {
    top: -10px;
    left: calc(100% + 8px);
}

.tpd-menu .sub-menu a {
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--tpd-ink);
    white-space: nowrap;
}

.tpd-menu .sub-menu a:hover,
.tpd-menu .sub-menu a:focus-visible,
.tpd-menu .sub-menu .current-menu-item > a {
    background: rgba(0, 75, 172, 0.08);
    color: var(--tpd-blue);
}

.tpd-menu li:hover > .sub-menu,
.tpd-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tpd-menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: transparent;
    color: var(--tpd-white);
    padding: 10px 16px;
    font: 600 15px/1 "Open Sans", sans-serif;
    cursor: pointer;
}

.tpd-menu-icon,
.tpd-menu-icon::before,
.tpd-menu-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    content: "";
    transition: transform 160ms ease;
}

.tpd-menu-icon {
    position: relative;
}

.tpd-menu-icon::before {
    position: absolute;
    top: -6px;
}

.tpd-menu-icon::after {
    position: absolute;
    top: 6px;
}

.tpd-menu-toggle[aria-expanded="true"] .tpd-menu-icon {
    background: transparent;
}

.tpd-menu-toggle[aria-expanded="true"] .tpd-menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.tpd-menu-toggle[aria-expanded="true"] .tpd-menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

.tpd-site-footer {
    padding: 52px 24px;
    background: var(--tpd-navy);
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
    font-family: "Open Sans", sans-serif;
}

.tpd-footer-wrap {
    width: min(900px, 100%);
    margin: 0 auto;
}

.tpd-footer-brand {
    display: inline-block;
    margin-bottom: 10px;
    font: 400 24px/1.2 Tahoma, sans-serif;
}

.tpd-site-footer p {
    margin: 8px 0;
}

.tpd-copyright {
    font-size: 13px;
    opacity: 0.72;
}

@media (max-width: 900px) {
    .tpd-nav-wrap {
        width: min(100% - 32px, 1180px);
        min-height: 72px;
        flex-wrap: wrap;
    }

    .tpd-menu-toggle {
        display: inline-flex;
    }

    .tpd-primary-nav {
        display: none;
        width: 100%;
        margin: 0;
        padding: 0 0 20px;
    }

    .tpd-primary-nav.is-open {
        display: block;
    }

    .tpd-menu {
        display: block;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    .tpd-menu a {
        min-height: 44px;
        padding: 8px 12px;
        border-radius: 10px;
    }

    .tpd-menu .sub-menu,
    .tpd-menu .sub-menu .sub-menu {
        position: static;
        min-width: 0;
        margin: 0 0 4px 16px;
        padding: 0 0 0 12px;
        border: 0;
        border-left: 1px solid rgba(232, 204, 175, 0.3);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .tpd-menu .sub-menu a {
        color: rgba(255, 255, 255, 0.88);
        white-space: normal;
    }

    .tpd-menu .sub-menu a:hover,
    .tpd-menu .sub-menu a:focus-visible,
    .tpd-menu .sub-menu .current-menu-item > a {
        background: rgba(255, 255, 255, 0.08);
        color: var(--tpd-cream);
    }

    .tpd-menu .menu-item-has-children > a::after {
        display: none;
    }

    body.tpd-menu-open {
        overflow: hidden;
    }
}

