/**
 * Responsive Header & Footer Styles
 * Breakpoints: Tablet (768-1199px), Mobile (480-767px), Small Mobile (<480px)
 */

/* ===========================
   TABLET (768px - 1199px)
   =========================== */

@media (min-width: 768px) and (max-width: 1199px) {
    /* Navigation - Tablet (touch device, no hover!) */
    .main-nav {
        width: 100% !important;
        position: relative;
		
    }
	.main-nav .container{
		background: #fff;
	}
	.nav-brand {
       	background: #7a5b9d url('/assets/images/logo_footer.webp') no-repeat center;
		background-size: 160px;
    	height: 70px;
    	padding: 15px;
    	margin-left: 0px;
    	width: 90%;
    	display: flex;
    	align-items: center;
    	justify-content: center;
    }

    .nav-toggle {
        display: flex !important;
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 1001;
    }

    .nav-toggle span {
        width: 25px;
        height: 3px;
        background-color: var(--color-primary);
        margin: 3px 0;
        transition: 0.3s ease;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100vw !important;
        flex-direction: column;
        gap: 0;
        background-color: var(--color-primary) !important;
        padding: 1rem 0;
        max-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        z-index: 10000 !important;
    }

    .nav-menu.active {
        max-height: 800px !important;
        opacity: 1 !important;
        overflow: visible !important;
        visibility: visible !important;
		border-bottom:0px solid;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-list li {
        margin: 0;
        border-bottom: 0px solid rgba(255, 255, 255, 0.1);
        display: block;
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        text-align: left;
        color: white;
    }

    .nav-submenu-toggle {
        display: inline-block;
        padding: 0.5rem 1rem;
        margin-left: auto;
    }

    .nav-item-wrapper {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        padding: 0;
    }

    .nav-item-wrapper .nav-link {
        flex: 1;
        padding: 1rem;
    }
	.language-switcher{
		width:100%;
		border-left: 0px solid #e5e5e5
	}

	.nav-link.active::after{
		background-color: var(--color-primary);
	}
    /* Tablet submenu - NO hover (touch device!) */
    .nav-submenu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        background-color: rgba(95, 58, 76, 0.1);
        padding: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    .nav-submenu.active {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
        padding: 0.5rem 0;
    }

    /* Main Content */
    .main-content {
        width: 100%;
        max-width: 100%;
    }

    /* Footer */
    .main-footer .container {
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 2rem 1rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .footer-section img {
        padding-top: 0;
        padding-left: 0;
        margin-bottom: 1rem;
    }

    .footer-bottom {
        padding: 1.5rem;
    }

    .footer-copyright p:first-child {
        font-size: 9px;
    }

    /* Hide desktop user menu on tablet, show mobile version */
    .user-menu {
        display: none !important;
    }

    .user-menu-mobile {
        display: contents !important;
    }
}

/* ===========================
   MOBILE (480px - 767px)
   =========================== */

@media (max-width: 767px) {
    /* Navigation */
    .main-nav {
        width: 100% !important;
    }

    .main-nav .container {
        display: flex;
        flex-direction: column;
        padding: 0;
		background: #fff;
    }
	.nav-brand {
       	background: #7a5b9d url('/assets/images/logo_footer.webp') no-repeat center;
		background-size: 160px;
    	height: 80px;
    	padding: 15px;
    	margin-left: 0px;
    	width: 80%;
    	display: flex;
    	align-items: center;
    	justify-content: center;
    }
    .nav-menu {
        display: flex !important;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100vw !important;
        right: 0 !important;
        flex-direction: column;
        gap: 0;
        height: auto;
        background-color: #7a5b9d;
        padding: 1rem 0;
        max-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        z-index: 10000 !important;
    }

    .nav-menu.active {
        max-height: 800px !important;
        opacity: 1 !important;
        overflow: visible !important;
        visibility: visible !important;
        background-color: var(--color-primary) !important;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-list li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        text-align: left;
        color: white;
    }

    .nav-link.active::after {
        display: none;
    }

    /* Submenu Toggle */
    .nav-submenu-toggle {
        display: inline-block;
        padding: 0.5rem 1rem;
        margin-left: auto;
    }

    .nav-item-wrapper {
        position: static;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .nav-item-wrapper .nav-link {
        flex: 1;
        padding: 1rem;
        margin: 0;
    }

    /* Submenu styling for mobile */
    .nav-submenu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        background-color: rgba(95, 58, 76, 0.1);
        padding: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    .nav-submenu.active {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
        padding: 0.5rem 0;
    }

    /* Language Switcher */
    .language-switcher {
        width: 100%;
        padding: 0.5rem 1rem;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        gap: 0.75rem;
    }

    .lang-option {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    /* Hamburger Toggle */
    .nav-toggle {
        display: flex;
        position: absolute;
        top: 5px;
        right: 15px;
        z-index: 1001;
    }

    /* Main Content */
    .main-content {
        width: 100%;
        max-width: 100%;
        padding: 0rem;
    }

    /* Footer */
    .main-footer .container {
        width: 100%;
        height: auto;
        background-image: none;
        background-color: #7a5b9d;
        padding: 1.5rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-section {
        text-align: left;
    }

    .footer-section h4 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .footer-section img {
        height: auto;
        padding: 0;
        margin-bottom: 1rem;
    }

    /* Social Links */
    .social-links {
        gap: 0.75rem;
    }

    .social-links a {
        width: 35px;
        height: 35px;
    }

    .contact-info {
        font-size: 0.9rem;
    }

    .contact-info a[href^="mailto:"] {
        font-size: 24px;
    }

    .contact-info a[href^="tel:"] {
        font-size: 20px;
        padding-left: 15px;
    }

    .contact-info a[href*="wa.me"] {
        font-size: 24px;
        padding-left: 30px;
    }

    .footer-bottom {
        padding: 1rem;
    }

    /* Hide desktop user menu on mobile, show mobile version */
    .user-menu {
        display: none !important;
    }

    .user-menu-mobile {
        display: contents !important;
    }

    .footer-copyright p {
        font-size: 0.8rem;
    }
}

/* ===========================
   SMALL MOBILE (< 480px)
   =========================== */

@media (max-width: 479px) {
    /* Navigation */
    .main-nav {
        width: 100%;
    }

    .main-nav .container {
        display: flex;
        flex-direction: column;
        padding: 0;
		background: #fff;
		align-items: start;
    }
	.nav-brand {
       	background: #7a5b9d url('/assets/images/logo_footer.webp') no-repeat center;
		background-size: 120px;
    	height: 60px;
    	padding: 15px;
    	margin-left: 0px;
    	width: 80%;
    	display: flex;
    	align-items: center;
    	justify-content: center;
    }

    .nav-menu {
        display: flex !important;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100vw !important;
        right: 0 !important;
        flex-direction: column;
        gap: 0;
        height: auto;
        background-color: #7a5b9d;
        padding: 1rem 0;
        max-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        z-index: 10000 !important;
    }


    .nav-menu.active {
        max-height: 800px !important;
        opacity: 1 !important;
        overflow: visible !important;
        visibility: visible !important;
        z-index: 10000 !important;
    }

    .nav-link {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .language-switcher {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .lang-option {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }

    /* Main Content */
    .main-content {
        width: 100%;
        padding: 0rem;
    }

    /* Footer */
    .main-footer .container {
        padding: 0.5rem 0rem;
    	background-image: url('/assets/images/footer.webp');
    	background-color: white;
    	background-size: 450px;
    	background-repeat: no-repeat;
    	width: 100%;
    }
	.foot{
		margin-top:-50px	
	}
    .footer-content {
        gap: 1rem;
    	background: var(--color-primary);
    	margin-top: 50px;
    }
	
    .footer-section h4 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .footer-section img {
        max-height: 50px;
        max-width: 100%;
		margin-left: 50px;
    }

    .social-links {
        gap: 0.5rem;
    }

    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .contact-info {
        font-size: 1.5rem;
    	padding-left: 80px;
    }

    .contact-info p {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .contact-info a[href^="mailto:"] {
        font-size: 40px;
    }

    .contact-info a[href^="tel:"] {
        font-size: 18px;
        padding-left: 10px;
    }

    .contact-info a[href*="wa.me"] {
        font-size: 40px;
        padding-left: 40px;
    }

    .footer-links {
        font-size: 1.2rem;
    }

    .footer-links li {
        margin-bottom: 0.35rem;
    }

    .footer-bottom {
        padding: 0.75rem;
    }

    .footer-copyright p {
        font-size: 0.75rem;
    }

    .footer-copyright p:first-child {
        font-size: 7px;
    }
}