/* =========================================================
   NICHE FPP - MOBILE RESPONSIVE CSS
   File: mobile.css

   Breakpoints:
   - Mobile:      <= 767.98px
   - Small phone: <= 480px
   ========================================================= */


/* =========================================================
   MOBILE - TABLET / PHONE
   ========================================================= */

@media (max-width: 767.98px) {

    /* -----------------------------------------------------
       GLOBAL
       ----------------------------------------------------- */
	.navbar {
			/* padding:0px !important; */
	}
	
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        font-size: 15px;
        line-height: 1.6;
    }

    .container,
    .container-fluid,
    .site-container {
        width: 100% !important;
        max-width: 100% !important;

        padding-left: 15px !important;
        padding-right: 15px !important;

        margin-left: auto;
        margin-right: auto;
    }

    .row {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }

    /* Prevent media from overflowing */
    img,
    video,
    iframe,
    svg {
        max-width: 100%;
    }

    img {
        height: auto;
    }


    /* =====================================================
       NAVBAR
       ===================================================== */

    .site-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;

        z-index: 1050;

        width: 100%;
        height: 72px !important;

        padding: 0 !important;

        background: rgba(248, 249, 250, 0.97);

        border-bottom: 1px solid #e5e7eb;

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }


    /* Navbar container */

    .site-nav > .container,
    .site-nav > .container-fluid,
    .site-nav > .site-container,

    .site-nav .container,
    .site-nav .container-fluid,
    .site-nav .site-container {
        width: 100% !important;
        max-width: 100% !important;

        height: 72px;

        padding-left: 18px !important;
        padding-right: 18px !important;

        margin: 0 !important;

        display: flex;
        align-items: center;
    }


    /* Logo */

    .brand-logo {
        display: inline-flex !important;

        align-items: center;

        flex: 0 0 auto;

        margin: 0 !important;

        z-index: 1060;
    }

    .brand-logo img {
        display: block;

        width: 200px !important;
        /* max-width: 155px !important; */

        height: auto !important;

        margin: 0;
    }


    /* -----------------------------------------------------
       DESKTOP MENU HIDDEN
       ----------------------------------------------------- */

    .site-nav .navbar-nav {
        display: none !important;
    }


    /* -----------------------------------------------------
       NAVBAR TOGGLER
       ----------------------------------------------------- */

    .site-nav .navbar-toggler {
        display: flex !important;

        align-items: center;
        justify-content: center;

        width: 44px;
        height: 44px;

        margin-left: auto;
        padding: 0 !important;

        border: 0 !important;
        border-radius: 0 !important;

        outline: none !important;
        box-shadow: none !important;

        background: transparent !important;
    }

    .site-nav .navbar-toggler:focus,
    .site-nav .navbar-toggler:active {
        outline: none !important;
        box-shadow: none !important;
    }


    /* Hamburger icon */

    .site-nav .navbar-toggler-icon {
        position: relative;

        display: block;

        width: 27px;
        height: 20px;

        background-image: none !important;
    }

    .site-nav .navbar-toggler-icon::before,
    .site-nav .navbar-toggler-icon::after {
        content: "";

        position: absolute;
        left: 0;

        width: 27px;
        height: 2.5px;

        border-radius: 10px;

        background: #555;
    }

    .site-nav .navbar-toggler-icon::before {
        top: 1px;

        box-shadow:
            0 8px 0 #555,
            0 16px 0 #555;
    }

    .site-nav .navbar-toggler-icon::after {
        display: none;
    }


    /* -----------------------------------------------------
       MOBILE MENU
       ----------------------------------------------------- */

    .site-nav .navbar-collapse {
        display: none !important;
    }

    .site-nav .navbar-collapse.show,
    .site-nav .navbar-collapse.collapsing {
        display: block !important;

        position: absolute;

        top: 72px;
        left: 0;
        right: 0;

        width: 100%;

        padding: 8px 18px 18px;

        background: rgba(248, 249, 250, 0.99);

        border-top: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;

        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    }


    /* Mobile menu list */

    .site-nav .navbar-collapse .navbar-nav {
        display: flex !important;

        flex-direction: column;

        width: 100%;

        margin: 0 !important;
        padding: 0 !important;

        gap: 0;
    }

    .site-nav .navbar-collapse .nav-item {
        width: 100%;
    }


    /* Mobile links */

    .site-nav .navbar-collapse .nav-link,
    .site-nav .navbar-collapse .nav-link-niche {
        display: flex;

        align-items: center;

        width: 100%;
        min-height: 52px;

        padding: 14px 5px !important;

        color: #50555b !important;

        font-size: 1rem !important;
        font-weight: 600;

        border-bottom: 1px solid #eceef0;

        background: transparent;
    }

    .site-nav .navbar-collapse .nav-link:hover,
    .site-nav .navbar-collapse .nav-link:focus {
        color: #087ff5 !important;
    }


    /* Dropdown */

    .site-nav .dropdown-menu {
        position: static !important;

        width: 100%;

        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;
        border-radius: 0 !important;

        background: #f3f4f5 !important;

        box-shadow: none !important;
    }

    .site-nav .dropdown-item {
        padding: 12px 15px !important;

        font-size: 0.9rem;

        white-space: normal;
    }


    /* Main content below fixed navbar */

    main {
        margin-top: 72px !important;
    }


    /* =====================================================
       TYPOGRAPHY
       ===================================================== */

    h1,
    .hero-title {
        font-size: 2.2rem !important;

        line-height: 1.15 !important;

        letter-spacing: -0.5px;

        margin-bottom: 15px;
    }

    h2,
    .section-title {
        font-size: 1.8rem !important;

        line-height: 1.25 !important;

        letter-spacing: -0.3px;
    }

    h3 {
        font-size: 1.4rem !important;

        line-height: 1.3;
    }

    h4 {
        font-size: 1.2rem !important;
    }

    p,
    .hero-lead,
    .section-intro {
        font-size: 0.95rem !important;

        line-height: 1.7;
    }

    .eyebrow {
        font-size: 0.7rem;

        letter-spacing: 0.5px;
    }


    /* =====================================================
       HERO
       ===================================================== */

    .hero {
        min-height: auto !important;

        padding: 35px 0 50px !important;

        text-align: left;
    }

    .hero .row {
        flex-direction: column-reverse;
    }

    .hero-title {
        max-width: 100%;

        margin: 15px 0 18px !important;
    }

    .hero-lead {
        max-width: 100%;

        margin-bottom: 25px;
    }


    /* Hero image */

    .hero img,
    .product-hero-image {
        display: block;

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;

        margin: 0 auto;
    }


    /* Hero media */

    .hero-media {
        width: 100%;

        min-height: 240px;

        height: auto;

        border-radius: 20px;

        overflow: hidden;
    }

    .hero-media img {
        width: 100%;
        height: 100%;

        object-fit: cover;
    }

    .hero-caption {
        left: 14px;
        right: 14px;
        bottom: 15px;

        font-size: 0.55rem;
    }


    /* Hero image card */

    .hero-img-card {
        width: 100%;

        padding: 15px !important;

        margin-bottom: 25px;
    }


    /* =====================================================
       SECTIONS
       ===================================================== */

    .section-pad {
        padding: 60px 0 !important;
    }

    .contact-section {
        padding: 60px 0 !important;
    }

    .section-title {
        margin-bottom: 18px;
    }

    .section-intro {
        max-width: 100%;
    }


    /* =====================================================
       PRODUCT CARDS
       ===================================================== */

    .product-card {
        width: 100%;

        padding: 25px 20px !important;

        margin-bottom: 20px;

        border-radius: 20px !important;

        overflow: hidden;
    }

    .product-title {
        max-width: 100%;

        font-size: 1.5rem !important;

        line-height: 1.15;
    }

    .product-copy {
        max-width: 100%;

        font-size: 0.9rem;

        line-height: 1.6;
    }

    .product-image {
        width: 100%;

        margin-top: 20px;

        overflow: hidden;
    }

    .product-image img {
        display: block;

        width: 100%;

        max-width: 250px;

        height: auto;

        margin: 0 auto;
    }


    /* Product hero cards */

    .product-hero-cards .product-card {
        width: 100%;

        min-height: 0 !important;

        padding: 15px !important;
    }


    /* Existing product sections */

    #tubing-pipe .product-card,
    #foundry .product-card {
        padding: 20px !important;
    }


    /* =====================================================
       INDUSTRIES
       ===================================================== */

    .industries .industry-row,
    .industry-row {
        display: grid;

        grid-template-columns: 1fr !important;

        gap: 10px;

        padding: 20px 0;

        text-align: left;
    }

    .industries .industry-number,
    .industry-number {
        font-size: 1rem !important;

        line-height: 1;
    }

    .industry-title {
        font-size: 1.2rem !important;

        line-height: 1.3;
    }

    .industry-copy {
        margin: 8px 0 0;

        font-size: 0.9rem;

        line-height: 1.6;
    }

    .industry-arrow {
        display: none !important;
    }


    /* =====================================================
       DARK SECTIONS
       ===================================================== */

    .dark-section {
        overflow: hidden;
    }

    .big-statement {
        font-size: 2rem !important;

        line-height: 1.15;
    }


    /* =====================================================
       FINDER
       ===================================================== */

    .finder-box {
        width: 100%;

        padding: 20px !important;

        border-radius: 20px !important;
    }

    .step-card {
        width: 100%;

        min-height: auto;

        padding: 20px !important;

        margin-bottom: 15px;

        border-radius: 18px !important;
    }

    .step-card strong {
        font-size: 1rem;
    }

    .step-card span {
        font-size: 0.875rem;
    }

    .finder-cta {
        padding: 16px;

        border-radius: 16px;
    }


    /* =====================================================
       RESOURCE CARDS
       ===================================================== */

    .resource-card {
        width: 100%;

        min-height: 170px;

        padding: 20px !important;

        margin-bottom: 20px;

        border-radius: 20px !important;
    }

    .resource-title {
        font-size: 1.4rem !important;

        line-height: 1.15;
    }

    .resource-copy {
        font-size: 0.875rem;

        line-height: 1.6;
    }


    /* =====================================================
       BUTTONS
       ===================================================== */

    .btn,
    .btn-niche,
    .btn-outline-niche {
        min-height: 44px;

        padding: 11px 18px;

        font-size: 0.9rem;

        display: inline-flex;

        align-items: center;
        justify-content: center;

        text-align: center;
    }

    /* Full-width only when inside mobile button groups */

    .mobile-full-btn {
        width: 100% !important;
    }


    /* =====================================================
       CONTACT
       ===================================================== */

    .contact-title {
        max-width: 100%;
    }

    .contact-copy {
        margin: 18px auto 24px;

        font-size: 0.95rem;
    }


    /* =====================================================
       FOOTER
       ===================================================== */

    .footer-top {
        padding-top: 35px;

        text-align: center;
    }

    .footer-description {
        max-width: 100%;

        margin-left: auto;
        margin-right: auto;
    }

    .footer-col {
        margin-top: 25px;

        text-align: center;
    }

    .footer-bottom {
        margin-top: 30px;

        text-align: center;
    }

    .footer-bottom .copyright,
    .footer-bottom .legal {
        display: block;
    }

    .footer-bottom .legal {
        margin-top: 8px;
    }


    /* =====================================================
       TABLES
       ===================================================== */

    .table-responsive {
        width: 100%;

        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }

    table {
        width: 100%;

        min-width: 600px;

        white-space: nowrap;
    }


    /* =====================================================
       BOOTSTRAP COLUMNS
       ===================================================== */

    [class*="col-"] {
        margin-bottom: 20px;
    }

    .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }


    /* =====================================================
       SPACING UTILITIES
       ===================================================== */

    .p-15 {
        padding: 15px !important;
    }

    .mobile-mb-0 {
        margin-bottom: 0 !important;
    }

    .mobile-mt-0 {
        margin-top: 0 !important;
    }

    .mobile-text-center {
        text-align: center !important;
    }

    .mobile-text-left {
        text-align: left !important;
    }


    /* =====================================================
       VIDEO / IFRAME
       ===================================================== */

    video,
    iframe {
        max-width: 100%;
    }

    iframe {
        width: 100%;
    }


    /* =====================================================
       LONG TEXT
       ===================================================== */

    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    a,
    span {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
}


/* =========================================================
   SMALL PHONES - <= 480px
   ========================================================= */

@media (max-width: 480px) {

	.navbar {
			/* padding:0px !important; */
	}
	
    /* Navbar */

    .site-nav,
    .site-nav .container,
    .site-nav .container-fluid,
    .site-nav .site-container {
        height: 68px !important;
    }

    .site-nav .container,
    .site-nav .container-fluid,
    .site-nav .site-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .brand-logo img {
        width: 200px !important;
        /* max-width: 145px !important; */
    }

    .site-nav .navbar-toggler {
        width: 42px;
        height: 42px;
    }

    .site-nav .navbar-collapse.show,
    .site-nav .navbar-collapse.collapsing {
        top: 68px;
    }

    main {
        margin-top: 68px !important;
    }


    /* Typography */

    h1,
    .hero-title {
        font-size: 1.9rem !important;

        line-height: 1.15 !important;
    }

    h2,
    .section-title {
        font-size: 1.6rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    p,
    .hero-lead,
    .section-intro {
        font-size: 0.9rem !important;
    }


    /* Hero */

    .hero {
        padding: 30px 0 40px !important;
    }

    .hero-media {
        min-height: 210px;

        border-radius: 18px;
    }


    /* Sections */

    .section-pad {
        padding: 50px 0 !important;
    }

    .contact-section {
        padding: 50px 0 !important;
    }


    /* Cards */

    .product-card,
    .resource-card,
    .step-card,
    .finder-box {
        padding: 18px !important;

        border-radius: 18px !important;
    }

    .product-title {
        font-size: 1.3rem !important;
    }

    .resource-title {
        font-size: 1.2rem !important;
    }

    .big-statement {
        font-size: 1.75rem !important;
    }


    /* Product images */

    .product-image img {
        max-width: 210px;
    }


    /* Buttons */

    .btn,
    .btn-niche,
    .btn-outline-niche {
        min-height: 44px;

        font-size: 0.875rem;
    }
}


/* =========================================================
   EXTRA SMALL PHONES - <= 360px
   ========================================================= */

@media (max-width: 360px) {

	.navbar {
			/* padding:0px !important; */
	}
	
    .brand-logo img {
        width: 200px !important;
        /* max-width: 130px !important; */
    }

    .site-nav .navbar-toggler {
        width: 40px;
        height: 40px;
    }

    .hero-title {
        font-size: 1.75rem !important;
    }

    .section-title {
        font-size: 1.45rem !important;
    }

    .product-card,
    .resource-card,
    .step-card,
    .finder-box {
        padding: 15px !important;
    }
}