/* ============================================
   HOGP - Complete Responsive Styles
   ============================================ */

/* ========== BASE RESPONSIVE ========== */
* {
    -webkit-tap-highlight-color: transparent;
}

/* ========== HEADER / NAVBAR ========== */
.navbar {
    padding: 0.6rem 0;
}

.nav-container {
    padding: 0 1.5rem;
}

.nav-brand {
    gap: 0.5rem;
}

.nav-logo-img {
    height: 38px;
}

.nav-logo-text {
    font-size: 1.5rem;
}

.nav-tagline {
    display: none;
}

.nav-menu {
    gap: 1rem;
}

.nav-link {
    font-size: 0.85rem;
}

/* Tablet Nav */
@media (max-width: 1024px) {
    .nav-tagline {
        display: inline-block;
        font-size: 0.7rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #111827;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        gap: 1.5rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link {
        font-size: 1.1rem;
        text-align: center;
        width: 100%;
        padding: 0.5rem;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
        padding: 0.5rem;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
    }

    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: #e8eaed;
        transition: all 0.3s ease;
        border-radius: 1px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        backdrop-filter: blur(3px);
    }

    .nav-menu.active ~ .nav-overlay {
        display: block;
    }
}

/* Mobile Nav */
@media (max-width: 640px) {
    .nav-logo-img {
        height: 32px;
    }

    .nav-logo-text {
        font-size: 1.3rem;
    }

    .nav-menu {
        width: 100%;
        max-width: 100%;
    }
}

/* ========== FOOTER ========== */
.site-footer {
    margin-top: 3rem;
}

.footer-container {
    padding: 3rem 1.5rem 1.5rem;
}

.footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-title {
    font-size: 0.95rem;
}

.footer-links a {
    font-size: 0.85rem;
}

.footer-contact li {
    font-size: 0.85rem;
}

/* Trust Symbols */
.footer-trust {
    padding: 1.5rem 0;
    margin: 1.5rem 0;
}

.trust-symbols-grid {
    gap: 1rem;
    justify-content: center;
}

.trust-symbol-item {
    max-width: 110px;
    min-width: 70px;
    padding: 0.4rem;
    flex: 0 0 auto;
}

/* Responsive Trust Symbols */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .trust-symbols-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
        justify-items: center;
    }

    .trust-symbol-item {
        max-width: 100px;
        min-width: 60px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .trust-symbols-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }

    .trust-symbol-item {
        max-width: 90px;
        min-width: 50px;
        padding: 0.2rem;
    }

    .footer-company {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* ========== HERO SECTION ========== */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn-lg {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }
}

/* ========== SERVICES ========== */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-number {
        font-size: 4rem;
    }
}

/* ========== PORTFOLIO ========== */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .portfolio-filters {
        gap: 0.4rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .portfolio-detail-hero {
        grid-template-columns: 1fr;
    }
}

/* ========== BLOG ========== */
@media (max-width: 1024px) {
    .blog-container {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-detail-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .post-detail-title {
        font-size: 1.5rem;
    }

    .post-detail-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .post-card {
        flex-direction: column;
    }
}

/* ========== CONTACT ========== */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ========== ABOUT ========== */
@media (max-width: 768px) {
    .mission-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .about-hero h1 {
        font-size: 2rem;
    }
}

/* ========== UTILITY CLASSES ========== */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }

    .show-on-mobile {
        display: block !important;
    }

    .text-center-mobile {
        text-align: center !important;
    }

    .w-full-mobile {
        width: 100% !important;
    }

    .flex-col-mobile {
        flex-direction: column !important;
    }
}

/* ========== BLOG LIST PAGE ========== */
@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .blog-post-card {
        margin-bottom: 1rem;
    }

    .blog-post-image {
        height: 180px !important;
    }

    .blog-post-title {
        font-size: 1rem !important;
    }

    .blog-post-excerpt {
        font-size: 0.85rem !important;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .pagination a, .pagination span {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* ========== PORTFOLIO LIST PAGE ========== */
@media (max-width: 768px) {
    .portfolio-items-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .portfolio-item-card {
        margin-bottom: 1rem;
    }

    .portfolio-item-image {
        height: 180px !important;
    }

    .portfolio-item-title {
        font-size: 1rem !important;
    }

    .portfolio-category-filter {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ========== SERVICES DETAIL PAGE ========== */
@media (max-width: 768px) {
    .services-detail-section {
        padding: 2rem 1rem !important;
    }

    .service-feature-grid {
        grid-template-columns: 1fr !important;
    }

    .service-feature-item {
        text-align: center;
    }
}

/* ========== CONTACT PAGE ========== */
@media (max-width: 768px) {
    .contact-form {
        padding: 1rem !important;
    }

    .contact-info-cards {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .contact-card {
        text-align: center;
    }

    .map-container {
        height: 200px !important;
    }
}

/* ========== ABOUT PAGE ========== */
@media (max-width: 768px) {
    .about-stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.8rem;
    }

    .about-stat-card {
        padding: 1rem;
    }

    .about-stat-number {
        font-size: 1.2rem !important;
    }

    .company-story {
        padding: 1rem;
    }

    .mission-vision {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ========== BREADCRUMB ========== */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.75rem;
        flex-wrap: wrap;
    }
}

/* ========== SIDEBAR ========== */
@media (max-width: 768px) {
    .sidebar-widget {
        padding: 1rem !important;
    }

    .sidebar-widget h3 {
        font-size: 1rem !important;
    }

    .popular-posts-list li,
    .recent-posts-list li {
        flex-direction: column;
        gap: 0.3rem;
    }
}

/* ========== COMMENTS SECTION ========== */
@media (max-width: 768px) {
    .comment-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
    }

    .comment-form-row {
        grid-template-columns: 1fr !important;
    }
}

/* ========== PAGINATION ========== */
@media (max-width: 768px) {
    .pagination {
        gap: 0.3rem;
    }

    .pagination a, .pagination .current {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        min-width: 32px;
    }
}

/* ========== TABLES ========== */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 600px;
    }

    th, td {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
}

/* Smooth transitions */
.nav-menu, .hamburger span, .trust-symbol-item {
    transition: all 0.3s ease;
}

/* Touch-friendly */
@media (hover: none) and (pointer: coarse) {
    .btn, .nav-link, .filter-btn, a, button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    input, select, textarea {
        font-size: 16px !important;
    }
}