/*
 * Creative Management - Comprehensive Responsive Overrides
 * Fixes layout for: 14" laptops, tablets, phones, wide screens
 * This file loads AFTER style.css and overrides where needed
 */

/* =============================================
   14-INCH LAPTOP FIX (1024px – 1366px)
   This is the primary issue reported by user
   ============================================= */
@media (min-width: 980px) and (max-width: 1366px) {
    body {
        overflow-x: hidden;
    }

    :root {
        --container: 95%;
        --gutter: 1rem;
    }

    /* --- Header: Compress nav items --- */
    .site-header {
        width: min(96%, 1200px);
        top: 0.5rem;
    }

    .site-header.scrolled {
        width: min(98%, 1300px);
    }

    .header-inner {
        padding: 0.4rem 1.15rem;
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.1rem;
        gap: 0.5rem;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    .site-header.scrolled .logo img {
        width: 36px;
        height: 36px;
    }

    .nav-menu {
        gap: 0.1rem;
    }

    .nav-menu li a {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .nav-dropdown-toggle {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .lang-toggle {
        padding: 0.4rem 0.65rem;
        font-size: 0.8rem;
        min-width: 58px;
    }

    .theme-toggle {
        padding: 0.4rem 0.65rem;
        font-size: 0.88rem;
    }

    .lang-switcher-wrapper {
        margin-right: 0.25rem;
    }

    .theme-toggle {
        margin-left: 0.25rem;
    }

    /* --- Hero: Fit in laptop viewport --- */
    .hero {
        min-height: calc(100vh - var(--header-height));
    }

    .hero-inner {
        padding: 2rem 0;
        max-width: 920px;
    }

    .hero-content {
        max-width: 820px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 3vw + 0.5rem, 2.8rem);
        margin-bottom: 0.85rem;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        max-width: 650px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.85rem;
        margin-bottom: 0.75rem;
    }

    .hero-features {
        gap: 0.65rem;
        margin-bottom: 1rem;
    }

    .hero-feature {
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
    }

    .hero-cta {
        gap: 0.65rem;
        margin-top: 0.75rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.88rem;
        border-radius: 12px;
    }

    /* --- Section Spacing --- */
    .section {
        padding-block: 3.5rem;
    }

    .section-head {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 2.5vw, 2rem);
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    /* --- About Layout --- */
    .about-layout {
        gap: 2rem;
    }

    .about-metrics {
        gap: 0.75rem;
    }

    .metric-value {
        font-size: clamp(1.5rem, 2.5vw, 2rem);
    }

    .metric-label {
        font-size: 0.75rem;
    }

    .about-aside-card {
        padding: 1.75rem;
        gap: 1.5rem;
    }

    .about-aside-media img {
        width: 110px;
    }

    .about-pillars {
        gap: 0.75rem;
    }

    .pillar {
        padding: 0.85rem;
        gap: 0.75rem;
    }

    .pillar-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .pillar h4 {
        font-size: 0.95rem;
    }

    .pillar p {
        font-size: 0.82rem;
    }

    .about-checklist li {
        font-size: 0.88rem;
    }

    .about-timeline {
        gap: 1rem;
    }

    .timeline-card {
        padding: 1.25rem 1.1rem;
    }

    .timeline-card h4 {
        font-size: 1rem;
    }

    /* --- Services Cards --- */
    .grid.three {
        gap: 1rem;
    }

    .card {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .card .icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.35rem;
    }

    .card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* --- Solutions Grid --- */
    .solutions-grid {
        gap: 1.25rem;
    }

    .solution {
        padding: 1.25rem;
        gap: 1rem;
    }

    .solution-media {
        width: 75px;
        height: 75px;
        min-width: 75px;
    }

    .solution-body h3 {
        font-size: 1.05rem;
    }

    .solution-body p {
        font-size: 0.88rem;
    }

    /* --- Strengths --- */
    .strengths-grid {
        gap: 1.25rem;
    }

    .strength {
        padding: clamp(1.5rem, 2vw, 2rem);
    }

    .strength .icon.xl {
        width: 65px;
        height: 65px;
        font-size: 1.5rem;
    }

    .strength h3 {
        font-size: clamp(1.05rem, 0.8vw + 0.8rem, 1.25rem);
    }

    .strength p {
        font-size: 0.88rem;
    }

    /* --- Clients --- */
    .client-item {
        min-width: 180px;
        height: 120px;
        padding: 1.25rem 1.75rem;
    }

    .client-item img {
        max-height: 55px;
    }

    /* --- Contact Section --- */
    .contact-section {
        padding: 4rem 0;
    }

    .contact-layout {
        gap: 2.5rem;
        margin-top: 2rem;
    }

    .contact-form-container {
        padding: 2rem;
        border-radius: 24px;
    }

    .info-header h3 {
        font-size: 1.5rem;
    }

    .detail-item {
        padding: 1rem;
        gap: 1rem;
        border-radius: 16px;
    }

    .detail-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1.1rem;
    }

    .detail-text h4 {
        font-size: 1rem;
    }

    .detail-text p,
    .detail-text a {
        font-size: 0.88rem;
    }

    .quick-btn {
        padding: 0.7rem;
        font-size: 0.78rem;
    }

    /* --- Footer --- */
    .site-footer {
        padding: 3.5rem 0 1.5rem;
    }

    .footer-grid {
        gap: 2.5rem;
        margin-bottom: 3rem;
    }

    .footer-column h4 {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .footer-link {
        padding-block: 0.35rem;
        font-size: 0.88rem;
    }

    /* --- Reach Page --- */
    .reach-content {
        gap: 1.5rem;
    }

    .reach-stat {
        padding: 0.85rem;
    }

    .reach-stat .stat-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .reach-stat .stat-content h3 {
        font-size: 0.9rem;
    }

    .reach-stat .stat-content p {
        font-size: 0.8rem;
    }

    /* --- Gallery --- */
    .gallery-hero-section .hero-inner {
        margin-top: -3rem;
    }

    .gallery-hero-section .gallery-hero-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem) !important;
    }

    .gallery-hero-section .gallery-hero-subtitle {
        font-size: 0.95rem;
    }

    .gallery-hero-section .gallery-hero-description {
        font-size: 0.9rem;
    }

    .gallery-grid {
        gap: 0.75rem;
    }

    /* --- WhatsApp Float --- */
    .whatsapp-float {
        bottom: 1.25rem;
        right: 1.25rem;
    }
}

/* =============================================
   SMALL LAPTOP (980px – 1024px)
   ============================================= */
@media (min-width: 980px) and (max-width: 1024px) {
    .hero-title {
        font-size: clamp(1.6rem, 3vw, 2.2rem);
    }

    .hero-features {
        flex-wrap: wrap;
    }

    .hero-feature {
        font-size: 0.78rem;
        padding: 0.4rem 0.65rem;
    }

    .nav-menu li a {
        padding: 0.45rem 0.7rem;
        font-size: 0.82rem;
    }

    .nav-dropdown-toggle {
        font-size: 0.82rem;
        padding: 0.45rem 0.7rem;
    }
}

/* =============================================
   TABLET: 768px – 979px
   ============================================= */
@media (min-width: 768px) and (max-width: 979px) {
    body {
        overflow-x: hidden;
    }

    :root {
        --container: 94%;
    }

    .container {
        width: min(100% - 1.5rem, var(--container));
    }

    .hero-inner {
        padding-top: 3.5rem;
        padding-bottom: 2rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: 0.92rem;
        max-width: 90%;
    }

    .hero-features {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .hero-feature {
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
        min-width: 0;
    }

    /* Section Spacing */
    .section {
        padding-block: 3.5rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    /* Grid: 2 columns on tablet */
    .grid.three {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .strengths-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    /* About: single column */
    .about-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-aside {
        order: -1;
    }

    .about-aside-card {
        position: static;
    }

    /* Solutions: single column */
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Contact: single column */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Reach: single column */
    .reach-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer: 3 columns */
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 2rem;
    }

    .footer-contact-v2 {
        grid-column: 1 / -1;
    }

    /* Gallery hero */
    .gallery-hero-section .hero-inner {
        margin-top: 0;
        padding-top: 4rem;
    }

    .hero-content-wrapper {
        grid-template-columns: 1fr;
    }

    .gallery-hero-content {
        align-items: center;
        text-align: center;
        max-width: 100%;
        padding-left: 0;
    }

    .gallery-hero-section .hero-features {
        justify-content: center !important;
        flex-wrap: wrap;
    }

    .gallery-hero-section .hero-cta {
        justify-content: center !important;
    }
}

/* =============================================
   PHONE: max-width 480px
   ============================================= */
@media (max-width: 480px) {
    body {
        overflow-x: hidden;
    }

    :root {
        --container: 100%;
        --gutter: 0.75rem;
    }

    .container {
        width: calc(100% - 1.25rem);
    }

    /* Hero */
    .hero {
        min-height: auto;
    }

    .hero-inner {
        padding-top: 4rem;
        padding-bottom: 1.5rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        letter-spacing: -0.5px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        max-width: 100%;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.75rem;
    }

    .hero-features {
        gap: 0.35rem;
        flex-wrap: wrap;
    }

    .hero-feature {
        flex: 1;
        min-width: 0;
        padding: 0.4rem 0.5rem;
        font-size: 0.72rem;
    }

    .hero-feature i {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0.5rem;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 260px;
        justify-content: center;
        padding: 0.8rem 1.25rem;
        font-size: 0.88rem;
    }

    /* Sections */
    .section {
        padding-block: 2.5rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    .section-head {
        margin-bottom: 1.5rem;
    }

    /* About */
    .about-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }

    .metric {
        padding: 0.75rem 0.5rem;
    }

    .metric-value {
        font-size: 1.4rem;
    }

    .metric-label {
        font-size: 0.68rem;
    }

    .about-pillars {
        grid-template-columns: 1fr;
    }

    .pillar {
        padding: 0.85rem;
    }

    .about-timeline {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .timeline-card {
        padding: 1.1rem;
    }

    /* Strengths */
    .strengths-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .strength {
        padding: 1.5rem;
    }

    .strength .icon.xl {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }

    .strength h3 {
        font-size: 1.1rem;
    }

    .strength p {
        font-size: 0.85rem;
    }

    /* Clients */
    .clients-track {
        gap: 1rem;
    }

    .clients-slide {
        gap: 0.75rem;
    }

    .client-item {
        min-width: 120px;
        height: 75px;
        padding: 0.6rem 0.85rem;
        border-radius: 10px;
    }

    .client-item img {
        max-height: 40px;
    }

    .clients-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    /* Footer */
    .site-footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-column h4 {
        margin-bottom: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    /* Contact */
    .contact-section {
        padding: 2.5rem 0;
    }

    .contact-layout {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .contact-form-container {
        padding: 1.15rem;
        border-radius: 20px;
    }

    .form-input {
        padding: 0.8rem 1rem;
        font-size: 0.92rem;
        border-radius: 12px;
    }

    .form-label {
        font-size: 0.85rem;
    }

    .btn-send {
        padding: 0.8rem;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    /* Gallery */
    .gallery-hero-section .hero-inner {
        margin-top: 0;
        padding-top: 4rem;
    }

    .gallery-hero-section .gallery-hero-title {
        font-size: 1.5rem !important;
        text-align: center;
    }

    .gallery-hero-section .gallery-hero-subtitle {
        text-align: center;
        font-size: 0.85rem;
    }

    .gallery-hero-section .gallery-hero-description {
        text-align: center;
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }

    .gallery-hero-content {
        align-items: center;
        text-align: center;
        padding-left: 0;
        max-width: 100%;
    }

    .gallery-hero-section .hero-features {
        justify-content: center !important;
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .gallery-hero-section .hero-cta {
        justify-content: center !important;
    }

    /* Reach */
    .reach-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .reach-map-3d {
        aspect-ratio: 16 / 10;
    }

    .reach-stat {
        padding: 0.85rem;
    }

    .reach-stat .stat-icon {
        width: 40px;
        height: 40px;
    }

    /* WhatsApp float */
    .whatsapp-float {
        bottom: 0.75rem;
        right: 0.75rem;
    }

    /* Privacy & Terms pages */
    .privacy-content,
    .terms-content {
        padding: 1.5rem;
    }
}

/* =============================================
   VERY SMALL PHONES: max 360px
   ============================================= */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.35rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .hero-feature {
        width: 100%;
        max-width: 220px;
        justify-content: center;
    }

    .about-metrics {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .metric-value {
        font-size: 1.2rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .contact-form-container {
        padding: 1rem;
    }

    .detail-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* =============================================
   LARGE SCREENS / 4K: min 1600px
   ============================================= */
@media (min-width: 1600px) {
    :root {
        --container: 1400px;
    }

    .hero-title {
        font-size: 4.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .card {
        padding: 2rem;
    }

    .card h3 {
        font-size: 1.25rem;
    }

    .card p {
        font-size: 1rem;
    }

    .strength .icon.xl {
        width: 90px;
        height: 90px;
        font-size: 2rem;
    }
}

/* =============================================
   LANDSCAPE PHONE FIX
   ============================================= */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-inner {
        padding: 1rem 0;
    }

    .hero-shape {
        display: none;
    }

    .hero-3d-elements {
        display: none;
    }
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {

    .site-header,
    .whatsapp-float,
    .hero-3d-elements,
    .hero-bg-image,
    .nav-toggle,
    .theme-toggle,
    .lang-switcher-wrapper {
        display: none !important;
    }

    body {
        padding-top: 0;
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .hero {
        min-height: auto;
        page-break-after: always;
    }

    .section {
        page-break-inside: avoid;
        padding: 1.5rem 0;
    }

    .card,
    .solution,
    .strength {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .site-footer {
        background: #333;
    }
}