/* =============================================
   UNIWELLSYS - Responsive Stylesheet
   ============================================= */

/* === Large Desktop (1400px+) === */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    .hero-slider {
        height: 700px;
    }
    .slide-title {
        font-size: 54px;
    }
}

/* === Tablet Landscape (1024px - 1279px) === */
@media (max-width: 1279px) {
    .nav-item > a {
        padding: 0 20px;
        font-size: 15px;
    }

    .business-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content-wrapper {
        gap: 50px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
        gap: 30px;
    }
}

/* === Tablet Portrait (768px - 1023px) === */
@media (max-width: 1023px) {
    :root {
        --header-height: 70px;
    }

    .top-bar {
        display: none;
    }

    .header-content {
        padding: 0 20px;
    }

    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: 320px;
        height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        overflow-y: auto;
        padding: 80px 0 40px;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        height: auto;
        gap: 0;
    }

    .nav-item {
        height: auto;
        flex-direction: column;
        border-bottom: 1px solid var(--border);
    }

    .nav-item > a {
        padding: 16px 24px;
        width: 100%;
        justify-content: space-between;
    }

    .nav-item > a::after {
        display: none;
    }

    .dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        visibility: visible;
        opacity: 1;
        background: var(--bg-light);
        transition: max-height 0.3s ease;
    }

    .dropdown::before {
        display: none;
    }

    .nav-item.dropdown-open .dropdown {
        max-height: 500px;
        padding: 8px 0;
    }

    .dropdown li a {
        padding: 10px 40px;
    }

    /* Overlay */
    body.nav-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    /* Slider */
    .hero-slider {
        height: 500px;
    }

    .slide-title {
        font-size: 36px;
    }

    .slide-desc {
        font-size: 15px;
    }

    .slider-prev, .slider-next {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    /* About */
    .about-content-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .about-bg-pattern {
        display: none;
    }

    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .about-badge-box {
        right: 20px;
        bottom: -10px;
    }

    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* News */
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

/* === Mobile (max-width: 767px) === */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-desc {
        font-size: 14px;
    }

    /* Header */
    .logo img {
        height: 36px;
    }

    .header.scrolled .logo img {
        height: 32px;
    }

    /* Slider */
    .hero-slider {
        height: 450px;
    }

    .slide-subtitle {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .slide-title {
        font-size: 28px;
    }

    .slide-desc {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .slide-btn {
        padding: 12px 28px;
        font-size: 14px;
    }

    .slider-controls {
        padding: 0 12px;
    }

    .slider-prev, .slider-next {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .slider-dots {
        bottom: 24px;
    }

    /* Business */
    .business-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .business-card {
        padding: 30px 24px;
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 20px;
    }

    .business-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        font-size: 24px;
        margin: 0;
        border-radius: 14px;
    }

    .business-card h3 {
        font-size: 17px;
        margin-bottom: 6px;
    }

    .business-card p {
        font-size: 13px;
        margin-bottom: 8px;
        display: none;
    }

    /* About */
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 12px;
    }

    .about-img-wrapper img {
        height: 280px;
    }

    .about-badge-box {
        padding: 16px;
        right: 10px;
        bottom: -10px;
    }

    .about-badge-box i {
        font-size: 24px;
    }

    .about-badge-box span {
        font-size: 12px;
    }

    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-image {
        height: 220px;
    }

    /* Partners */
    .partner-item {
        width: 200px;
        height: 100px;
        margin: 0 16px;
        padding: 16px 22px;
    }

    .partner-item span {
        font-size: 14px;
    }

    /* News */
    .news-block {
        padding: 24px;
    }

    .notice-list li a {
        padding: 12px 0;
        flex-wrap: wrap;
    }

    .notice-date {
        width: 100%;
        margin-top: 4px;
    }

    .phone-number {
        font-size: 22px;
    }

    .contact-buttons {
        flex-direction: column;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-about {
        grid-column: auto;
    }

    .footer-col h4 {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .footer-address p {
        font-size: 12px;
    }

    /* Floating */
    .floating-menu {
        bottom: 16px;
        right: 16px;
    }

    .float-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .scroll-top {
        bottom: 88px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* === Small Mobile (max-width: 480px) === */
@media (max-width: 480px) {
    .hero-slider {
        height: 400px;
    }

    .slide-title {
        font-size: 24px;
    }

    .slide-desc br {
        display: none;
    }

    .about-content-wrapper .about-text .section-title {
        font-size: 26px;
    }
}
