/* Reset and base styles */
*, *:before, *:after {
    
    box-sizing: border-box;
}


.nav-wrapper * {
    font-family: "Agipo Reg Ext", sans-serif !important;
    line-height: inherit;
    margin: 0;
    /* overflow-x: hidden; */
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    border: 0 solid #e5e7eb;
}


/* Container */
.w-container {
    margin-left: auto;
    margin-right: auto;
    max-width: 1536px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (min-width: 768px) {
    .w-container {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

/* Utility classes */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { 
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.flex { display: flex; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.space-x-7 > :not([hidden]) ~ :not([hidden]) {
    margin-left: 1.75rem;
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 1rem;
}
.space-y-5 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 1.25rem;
}
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.w-7 { width: 1.75rem; }
.w-40 { width: 10rem; }
.w-52 { width: 13rem; }
.text-xl { 
    font-size: 1.25rem;
    line-height: 1.75rem;
}
.font-semibold { font-weight: 600; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-5 { margin-top: 1.25rem; }

@media (min-width: 768px) {
    .md\:w-52 { width: 13rem; }
    .md\:py-7 { 
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .lg\:flex-row { flex-direction: row; }
    .lg\:gap-10 { gap: 2.5rem; }
    .lg\:pb-20 { padding-bottom: 5rem; }
    .lg\:mt-0 { margin-top: 0; }
}

@media (min-width: 1280px) {
    .xl\:block { display: block; }
    .xl\:hidden { display: none; }
    .xl\:top-2 { top: 0.5rem; }
    .xl\:rounded-3xl { border-radius: 1.5rem; }
    .xl\:pt-32 { padding-top: 8rem; }
    .xl\:gap-14 { gap: 3.5rem; }
    .xl\:w-auto { width: auto; }
    .xl\:justify-normal { justify-content: normal; }
}

/* Navigation wrapper */
.nav-wrapper {
    background-color: white;
    border-bottom-width: 1px;
    border-color: #e5e7eb;
}

.nav-wrapper nav {
    display: none;
}

@media (min-width: 1280px) {
    .nav-wrapper nav {
        display: flex;
    }
}

.nav-wrapper nav ul {
    align-items: center;
    display: flex;
}

.nav-wrapper nav ul > :not([hidden]) ~ :not([hidden]) {
    margin-left: 1.75rem;
}

.nav-wrapper nav ul li a {
    display: inline-block;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition-duration: 0.3s;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1536px) {
    .nav-wrapper nav ul li a {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}

.nav-wrapper nav ul li a:hover {
    color: #ff6f00;
}

/* Top panel */
.top-panel {
    transition-duration: 0.3s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transition-property: all;
    visibility: hidden;
}

.top-panel-backdrop {
    backdrop-filter: blur(24px);
    background-color: rgba(0, 0, 0, 0.4);
    position: fixed;
    transition-duration: 1s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transition-property: all;
    visibility: hidden;
    height: 100vh;
    width: 100%;
    right: 0;
}

.top-panel-content {
    opacity: 0;
    overflow: hidden;
    transition-duration: 0.5s;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    position: absolute;
    top: 0;
    width: 100%;
    background-color: white;
}

@media (min-width: 1280px) {
    .top-panel-content {
        top: 0.5rem;
        border-radius: 1.5rem;
    }
}

.top-panel.show {
    opacity: 1;
    visibility: visible;
}

.top-panel.show .top-panel-content {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.top-panel.show .top-panel-backdrop {
    opacity: 1;
    visibility: visible;
}

.top-panel .has-submenu.active {
    color: #ff6f00;
}

.top-panel .submenu {
    display: flex;
    flex-direction: column;
}
.top-panel .submenu a{
    color: #222222;
}

.top-panel .submenu > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.5rem;
}

@media (min-width: 1024px) {
    .top-panel .submenu > :not([hidden]) ~ :not([hidden]) {
        margin-top: 1rem;
    }
}

.top-panel .submenu a {
    display: inline-block;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

@media (min-width: 1024px) {
    .top-panel .submenu a {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}

.top-panel .menu-list > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.5rem;
}

@media (min-width: 1024px) {
    .top-panel .menu-list > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0.75rem;
    }
}

.top-panel .menu-list li a {
    color: #222222;
    align-items: center;
    display: flex;
    font-size: 0.875rem;
    font-weight: 600;
    gap: 0.25rem;
    line-height: 1.25rem;
    transition-duration: 0.3s;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

@media (min-width: 1024px) {
    .top-panel .menu-list li a {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }
}

.top-panel .menu-list li a:hover {
    color: #ff6f00;
}

/* Main navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

@media (min-width: 768px) {
    .main-nav {
        padding: 1.75rem 0;
    }
}

.nav-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

@media (min-width: 1280px) {
    .nav-left {
        width: auto;
        justify-content: normal;
        gap: 1.75rem;
    }
}

.mobile-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Languages */
.langs {
    align-items: center;
    display: flex;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.langs > :not([hidden]) ~ :not([hidden]) {
    border-left-width: 1px;
}

.langs .lang-btn {
    color: #9ca3af;
    display: inline-block;
    font-weight: 600;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    text-decoration: none;
}

@media (min-width: 768px) {
    .langs .lang-btn {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

.langs .lang-btn.active {
    color: #000000;
}

.langs.mobile-only {
    display: flex;
}

.langs.desktop-only {
    display: none;
}

@media (min-width: 1280px) {
    .langs.mobile-only {
        display: none;
    }
    .langs.desktop-only {
        display: flex;
    }
}

/* Hamburger */
.hamburger {
    background: transparent;
    border-bottom: 2px solid;
    border-top: 2px solid;
    color: #222;
    display: block;
    font-size: 0;
    height: 16px;
    position: relative;
    transition: all 0.25s ease-in-out;
    width: 26px;
    cursor: pointer;
}

.hamburger:after, .hamburger:before {
    background: currentColor;
    border-radius: 0;
    content: "";
    display: block;
    height: 2px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease-in-out;
    width: 100%;
}

button.is-active {
    border-color: transparent;
    z-index: 9999;
}

button.is-active:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

button.is-active:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Button */
.btn {
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    transition-duration: 0.3s;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn.default {
    border-color: #d1d5db;
    border-width: 1px;
    color: inherit;
    cursor: pointer;
}

.btn.default:hover {
    border-color: #ff6f00;
    background-color: #ff6f00;
    color:#fff;
}

/* Top panel layout */
.top-panel-inner {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    padding-top: 5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 1024px) {
    .top-panel-inner {
        flex-direction: row;
        padding-bottom: 5rem;
    }
}

@media (min-width: 1280px) {
    .top-panel-inner {
        padding-top: 8rem;
    }
}

.top-panel-left {
    display: flex;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .top-panel-left {
        gap: 2.5rem;
    }
}

@media (min-width: 1280px) {
    .top-panel-left {
        gap: 3.5rem;
    }
}

.menu-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.anchor-menu {
    display: block;
}

@media (min-width: 1280px) {
    .anchor-menu {
        display: none;
    }
}

.top-panel-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.25rem;
}

@media (min-width: 1024px) {
    .top-panel-right {
        margin-top: 0;
    }
}

.contact-section p {
    margin-bottom: 0.5rem;
    color: #6b7280;
    font-size: 14px;
}

.phone-link {
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: #1f2937;
    text-decoration: none;
    display: inline-block;
}

.social-links, .app-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-links img, .app-links img {
    width: 1.75rem;
}

/* Desktop navigation */
.desktop-nav {
    display: none;
}

@media (min-width: 1280px) {
    .desktop-nav {
        display: block;
    }
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav ul > :not([hidden]) ~ :not([hidden]) {
    margin-left: 1.75rem;
}

.desktop-nav a {
    text-decoration: none;
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition-duration: 0.3s;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1536px) {
    .desktop-nav a {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}

.desktop-nav a:hover {
    color: #1f2937;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-desktop-only {
    display: none;
}

@media (min-width: 1280px) {
    .btn-desktop-only {
        display: inline-block;
    }
}
