/* ============================================
   PIT Holdings - Responsive Breakpoints
   Mobile-first fixes, full device coverage
   ============================================ */

/* --- Desktop down to tablet landscape --- */
@media (max-width: 1200px) {
    .hero-visual {
        margin-bottom: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .tree-divisions {
        grid-template-columns: 1fr;
    }

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

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .solution-featured {
        grid-row: span 1;
    }
}

/* --- Tablet / Mobile --- */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Nav */
    .nav {
        padding: 0.6rem 1rem;
        gap: 1rem;
    }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-cta {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    /* Hero */
    .hero {
        padding: 8rem 1.5rem 2rem;
    }

    .hero-content {
        gap: 1.5rem;
    }

    .hero-glass-container {
        width: 340px;
        max-width: 100%;
        height: 240px;
    }

    img.hero-logo {
        width: 175px;
    }

    .hero-card-title {
        font-size: 1.5rem;
    }

    .hero-card-subtitle {
        font-size: 0.6rem;
        margin-bottom: 1rem;
    }

    .hero-stats {
        gap: 1.25rem;
    }

    .hero-stat-value {
        font-size: 1rem;
    }

    .hero-stat-label {
        font-size: 0.6rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
    }

    /* Sections */
    section {
        padding: 2rem 1.5rem;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-desc {
        font-size: 0.95rem;
    }

    .feature-card {
        padding: 1.75rem;
    }

    /* Sectors: horizontal swipe carousel */
    .sectors-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 1.5rem 1rem;
        scrollbar-width: none;
        perspective: none;
        transform-style: flat;
    }

    .sectors-track::-webkit-scrollbar {
        display: none;
    }

    .sector-card[aria-hidden="true"] {
        display: block;
    }

    .sector-card {
        scroll-snap-align: start;
        flex-shrink: 0;
        width: 80vw;
        max-width: 300px;
        transform: none !important;
        will-change: auto;
    }

    /* Kill hover effects on touch - they cause visual glitches */
    .sector-card:hover .sector-icon {
        transform: none;
    }

    .sector-card:hover::after {
        opacity: 0;
    }

    .sectors-header {
        margin-bottom: 1.5rem;
        padding: 0 1.5rem;
    }

    .sectors-hint {
        display: flex;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .contact-info h2 {
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    /* Footer */
    .site-footer {
        padding: 2rem 1.5rem;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-bottom {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding-top: 1rem;
    }

    /* Hierarchy */
    .connector-bar {
        left: 10%;
        right: 10%;
    }

    .connector-drops {
        left: 10%;
        right: 10%;
    }

    .parent-card {
        width: 100%;
        padding: 2rem;
    }

    img.parent-logo {
        width: 140px;
    }

    .parent-name {
        font-size: 2rem;
    }

    .tree-parent::after {
        height: 50px;
        bottom: -50px;
    }

    .tree-connector {
        height: 30px;
        margin-bottom: 40px;
    }

    .division-card {
        padding: 1.5rem;
    }

    .division-card::after {
        height: 40px;
        bottom: -40px;
    }

    .partner-card {
        padding: 1.25rem;
    }

    /* Floating elements hidden on mobile */
    .float-element {
        display: none;
    }

    .ambient-bg .orb {
        opacity: 0.25;
    }

    /* Solutions */
    .solution-featured {
        padding: 2rem;
    }

    .solution-featured .feature-title {
        font-size: 1.5rem;
    }

    .solution-card {
        padding: 1.75rem;
    }
}

/* --- Small mobile (iPhone SE, Galaxy S8) --- */
@media (max-width: 480px) {
    .hero {
        padding: 7rem 1rem 2rem;
    }

    .hero-content {
        gap: 1.25rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .hero-glass-container {
        width: 300px;
        max-width: 100%;
        height: 220px;
    }

    img.hero-logo {
        width: 150px;
    }

    .hero-card-title {
        font-size: 1.35rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .hero-stat-value {
        font-size: 0.95rem;
    }

    .hero-badge {
        font-size: 0.7rem;
    }

    /* Sections */
    section {
        padding: 1.5rem 1rem;
    }

    .section-header {
        margin-bottom: 1.25rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .features-grid {
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-title {
        font-size: 1.1rem;
    }

    .feature-desc {
        font-size: 0.85rem;
    }

    /* Hierarchy */
    .tree-partners {
        grid-template-columns: 1fr;
    }

    img.parent-logo {
        width: 100px;
    }

    .parent-name {
        font-size: 1.5rem;
    }

    .parent-full {
        font-size: 0.75rem;
    }

    .division-card {
        padding: 1.25rem;
    }

    .division-name {
        font-size: 1.1rem;
    }

    .partner-card {
        padding: 1rem;
    }

    .partner-name {
        font-size: 0.9rem;
    }

    /* Solutions */
    .solutions-grid {
        gap: 1rem;
    }

    .solution-featured {
        padding: 1.75rem;
    }

    .solution-featured .feature-title {
        font-size: 1.3rem;
    }

    .solution-card {
        padding: 1.5rem;
    }

    /* Contact */
    .contact-info {
        padding: 1.25rem;
    }

    .contact-info h2 {
        font-size: 1.3rem;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .form-input {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    /* Footer */
    .site-footer {
        padding: 1.5rem 1rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-desc {
        max-width: 100%;
    }

    .footer-bottom {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding-top: 1rem;
    }

    /* Nav */
    .nav {
        top: 0.75rem;
        padding: 0.5rem 0.75rem;
    }

    .nav-logo-img {
        width: 44px;
        height: 44px;
    }

    .nav-cta {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }

    /* Sector cards */
    .sector-card {
        width: 85vw;
        padding: 1.75rem;
    }

    .sector-name {
        font-size: 1.15rem;
    }

    .sector-desc {
        font-size: 0.85rem;
    }
}

/* --- Extra small (iPhone SE, tiny screens) --- */
@media (max-width: 360px) {
    .hero {
        padding: 6rem 0.75rem 1.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-glass-container {
        width: 260px;
        max-width: 100%;
        height: 200px;
    }

    img.hero-logo {
        width: 125px;
    }

    .hero-card-title {
        font-size: 1.2rem;
    }

    .hero-stat-value {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .nav {
        padding: 0.4rem 0.6rem;
        gap: 0.5rem;
    }

    .btn {
        padding: 0.8rem 1.25rem;
        font-size: 0.8rem;
    }

    section {
        padding: 1.25rem 0.75rem;
    }
}

/* --- Inner Page Components --- */
@media (max-width: 768px) {
    .page-hero {
        padding: 8rem 1.5rem 2rem;
    }

    .page-hero-title {
        font-size: 2rem;
    }

    .page-hero-desc {
        font-size: 1rem;
    }

    .page-hero-image {
        min-height: 50vh;
        padding: 0 1.5rem 3rem;
    }

    .page-hero-image .page-hero-title {
        font-size: 2.25rem;
    }

    .page-hero-image .page-hero-desc {
        font-size: 1rem;
    }

    .sector-challenge h2 {
        font-size: 1.75rem;
    }

    .solution-links {
        grid-template-columns: 1fr;
    }

    .app-grid {
        grid-template-columns: 1fr;
    }

    .breadcrumb {
        font-size: 0.75rem;
    }

    .content-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .stat-value {
        font-size: 2rem;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline-item::before {
        left: -2rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card {
        padding: 2rem 1.5rem;
    }

    .product-card {
        padding: 1.75rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        padding: 2.5rem 1.5rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .link-card {
        padding: 2rem;
    }

    .impact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 7rem 1rem 1.5rem;
    }

    .page-hero-title {
        font-size: 1.75rem;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .timeline {
        padding-left: 1.75rem;
    }

    .timeline-item::before {
        left: -1.75rem;
        width: 10px;
        height: 10px;
    }

    .content-split-card {
        padding: 1.75rem;
    }

    .product-card {
        padding: 1.5rem;
    }

    .cta-banner {
        padding: 2rem 1rem;
    }

    .cta-banner-title {
        font-size: 1.3rem;
    }

    .link-card {
        padding: 1.75rem;
    }
}

@media (max-width: 360px) {
    .page-hero {
        padding: 6rem 0.75rem 1.25rem;
    }

    .page-hero-title {
        font-size: 1.5rem;
    }

    .page-hero-image {
        min-height: 50vh;
        padding: 0 0.75rem 2rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .cta-banner {
        padding: 1.5rem 0.75rem;
    }
}

/* --- Landscape phones --- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 6rem 2rem 2rem;
    }

    .hero-content {
        flex-direction: row;
        text-align: left;
        gap: 2rem;
    }

    .hero-text {
        flex: 1;
    }

    .hero-visual {
        flex: 0 0 auto;
    }

    .hero-glass-container {
        width: 240px;
        height: 180px;
    }

    img.hero-logo {
        width: 125px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 0.9rem;
        margin: 0 0 1rem;
    }

    .hero-ctas {
        flex-direction: row;
    }

    .btn {
        width: auto;
    }
}
