/**
 * Theme Name:     TarpsRUs
 * Author:         Vintage Black Graphix
 * Template:       astra
 * Text Domain:	   tarpsrus
 * Description:    TarpsRUs website
 */

/* Logo on login page */
.login h1 a {
    background-image: url("https://tarpsrus.co.za/wp-content/uploads/2026/07/Tarps-R-Us-Logo-scaled.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 300px;        
    height: 100px;       
    display: block;
    margin: 0 auto 30px; 
}

/* Login form box */
.login form {
    background-color: #fff; 
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(31, 49, 97, 0.25);
    padding: 40px 30px;
}

/* Labels inside form */
.login label {
    color: #0F3566;
}

/* Links below form */
.login #backtoblog a,
.login #nav a {
    color: #DC5800 !important;
    text-decoration: none;
    transition: color 0.3s;
}

.login #backtoblog a:hover,
.login #nav a:hover {
    color: #FF6600 !important; 
}

/* Login button */
.wp-core-ui .button-primary {
    background: #FF6600;
    border-color: #FF6600;
    color: #fff;
    text-shadow: none;
    box-shadow: none;
    border-radius: 5px;
}

.wp-core-ui .button-primary:hover {
    background: transparent;
    border-color: #FF6600;
	color: #FF6600;
}

/* Remember me checkbox text */
.login .forgetmenot label {
    color: #1F3161;
}

/* Optional: adjust spacing of the login page */
.login .message {
    border-left: 4px solid #1F3161; 
    padding-left: 10px;
}

.login form input:focus,
.login form input:active,
.login form textarea:focus {
    border-color: #ff6600; 
    box-shadow: 0 0 2px #ff6600; 
    outline: none;
}

/* Home Page CSS */

/* ==========================================
   HERO
========================================== */

.tarpsrus-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            to bottom,
            rgba(31,49,97,.10) 0%,
            rgba(31,49,97,.35) 55%,
            rgba(18,28,54,.70) 70%,
            rgba(18,28,54,.90) 100%
        ),
   url("https://tarpsrus.co.za/wp-content/uploads/2026/07/TarpsRUs-BG.webp") center center / cover no-repeat;
    background-attachment: fixed;
	padding-top: 8em;
}

.tarpsrus-hero-content {
    width: 100% !important;
    padding-right: 50px;
}

.tarpsrus-hero-text {
    max-width: 50vw;
    margin-left: auto;
    color: #FFFFFF;
    text-align: right;
}

.tarpsrus-hero h1 {
    margin-bottom: 30px;
    color: #121C36;
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
}

.tarpsrus-hero p {
    margin-bottom: 45px;
    color: rgba(255,255,255,.92);
    font-size: 1.2rem;
    line-height: 1.8;
}

/* ==========================================
   BUTTONS
========================================== */

.tarpsrus-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-bottom: 50px;
}

.tarpsrus-button {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 16px 34px;
    background: #FF6600;
    color: #FFFFFF !important;
    border: 2px solid #FF6600;
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: 700;
    transition: .3s ease;
}

.tarpsrus-button:hover {
    background: transparent;
    color: #FF6600 !important;
    border-color: #FF6600;
}

/* ==========================================
   FEATURES
========================================== */

.tarpsrus-hero-features {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
}

.tarpsrus-hero-features div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    font-weight: 400;
}

.tarpsrus-check {
    color: #FF6600;
    font-size: 1.1rem;
    font-weight: 700;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 921px) {

    .tarpsrus-hero {
        min-height: auto;
			padding-top: 1em;
    }

    .tarpsrus-hero-content {
        padding: 40px 0 40px;
    }

    .tarpsrus-hero-text {
        max-width: 95%;
        margin: auto;
        text-align: center;
			  padding: 0em 1em;
			  
    }

    .tarpsrus-hero h1 {
        font-size: 2.5rem;
    }

    .tarpsrus-hero-buttons {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .tarpsrus-hero-features {
        justify-content: center;
    }

}

@media (max-width: 768px) {

    .tarpsrus-hero {
        text-align: center;
    }

    .tarpsrus-hero-content {
        padding: 50px 0 50px;
    }

    .tarpsrus-hero h1 {
        font-size: 2.4rem;
    }

    .tarpsrus-hero p {
        font-size: 1rem;
    }

    .tarpsrus-hero-buttons {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .tarpsrus-hero-features {
        justify-content: center;
        gap: 20px;
    }

}

/* ==========================================
   ABOUT SECTION
========================================== */

.about-us-text {
	padding: 0em 10em !important;
}

.tarpsrus-about {
    padding: 50px 20px;
}

.tarpsrus-about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 70px;
}

/* IMAGE */

.tarpsrus-about-image {
    flex: 1;
}

.tarpsrus-about-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

/* CONTENT */

.tarpsrus-about-content {
    flex: 1;
}

.tarpsrus-about-content h3 {
    font-size: 36px;
    margin-bottom: 20px;
}

.tarpsrus-about-content > p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 35px;
}

/* FEATURES */

.tarpsrus-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.tarpsrus-feature {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.tarpsrus-feature-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: #DC5800;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
}

.tarpsrus-feature h4 {
    margin: 0 0 8px;
    font-size: 20px;
}

.tarpsrus-feature p {
    margin: 0;
    line-height: 1.6;
}

/* MOBILE */

@media (max-width: 768px) {

    .tarpsrus-about {
        padding: 30px 20px;
    }


    .tarpsrus-about-container {
        flex-direction: column;
        gap: 40px;
    }


    .tarpsrus-about-image img {
        height: 350px;
    }


    .tarpsrus-about-content h3 {
        font-size: 30px;
    }
	
	.about-us-text {
	padding: 0em 1.5em !important;
}

}

/* ==========================================
   TARPSRUS IMAGE CARDS
========================================== */

.tarpsrus-cards {
    position: relative;
    padding: 140px 20px;
    background: #0b1f3a;
    overflow: visible;
		z-index:2;
}


/* ==========================================
   CURVED TOP
========================================== */

.tarpsrus-cards::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -5%;
    width: 110%;
    height: 90px;
    background: #ffffff;
    border-radius: 0 0 50% 50%;
}



/* ==========================================
   CONTAINER
========================================== */

.tarpsrus-cards-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}


/* ==========================================
   HEADER
========================================== */

.tarpsrus-cards-header {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
    color: #ffffff;
}

.tarpsrus-cards-header h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.tarpsrus-cards-header p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
}


/* ==========================================
   GRID
========================================== */

.tarpsrus-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 500px);
    justify-content: center;
    gap: 30px;

}


/* ==========================================
   CARD
========================================== */

.tarpsrus-card {
    position: relative;
    width: 450px;
    height:300px;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0,0,0,.25);
    transition: all .35s ease;
}


.tarpsrus-card:hover {
    transform: translateY(-8px);
}


.tarpsrus-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.tarpsrus-card:hover img {
    transform: scale(1.06);
}


/* ==========================================
   OVERLAY
========================================== */

.tarpsrus-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(
        transparent 5%,
        rgba(0,0,0,.90)
    );

}

.tarpsrus-card-overlay h3 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.2;
    color: #ff6600;
}

.tarpsrus-card-overlay p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

.tarpsrus-products {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.25);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 900px) {
    .tarpsrus-card-grid {
        grid-template-columns: repeat(2, 280px);
        gap: 24px;
    }

    .tarpsrus-card {
        width: 280px;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {
    .tarpsrus-cards {
        padding: 100px 20px;
    }
	
	.tarpsrus-cards-container {
		padding-top:40px;
	}

    .tarpsrus-cards-header {
        margin-bottom: 40px;
    }

    .tarpsrus-cards-header h2 {
        font-size: 30px;
    }

    .tarpsrus-card-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 24px;
    }

    .tarpsrus-card {
        width: min(340px, 100%);
    }

    .tarpsrus-card-overlay {
        padding: 20px;
    }

    .tarpsrus-card-overlay h3 {
        font-size: 24px;
    }

    .tarpsrus-card-overlay p,
    .tarpsrus-products {
        font-size: 14px;
    }

}

/* ==========================================
   WE'VE GOT YOU COVERED
========================================== */

.tarpsrus-performance {
    position: relative;
    background: #0b1f3a url("https://tarpsrus.co.za/wp-content/uploads/2026/07/blue-tarp-bg.webp") center center / cover no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}


/* ==========================================
   OVERLAY
========================================== */

.tarpsrus-performance::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11,31,58,.50);
    z-index: 1;
}


/* ==========================================
   SVG DIVIDERS
========================================== */

.tarpsrus-divider-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: block;
    z-index: 2;
}

.desktop-divider {
    display: block;
    height: 90px;
}

.mobile-divider {
    display: none;
}


/* ==========================================
   CONTENT
========================================== */

.tarpsrus-performance-content {
    position: relative;
    z-index: 3;
    max-width: 1100px;
    margin: 0 auto;
    padding: 140px 20px 110px;
    text-align: center;
    color: #ffffff;
}


/* ==========================================
   HEADING
========================================== */

.tarpsrus-performance h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ffffff;
}

.tarpsrus-performance p {
    max-width: 760px;
    margin: 0 auto 60px;
    font-size: 18px;
    line-height: 1.8;
}


/* ==========================================
   FEATURES
========================================== */

.tarpsrus-performance-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 60px;
}

.tarpsrus-performance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tarpsrus-performance-item img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform .3s ease;
}

.tarpsrus-performance-item:hover img {
    transform: translateY(-6px);
}

.tarpsrus-performance-item h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}


/* ==========================================
   BUTTON
========================================== */

.tarpsrus-performance .tarpsrus-button {
    display: inline-block;
    width: 50%;
    margin-top: 10px;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width:900px){

    .desktop-divider{
        display:none;
    }

    .mobile-divider{
        display:block;
        height:45px;
    }

    .tarpsrus-performance{
        background-attachment:scroll;
    }

    .tarpsrus-performance-content{
        padding:100px 20px 90px;
    }

    .tarpsrus-performance h2{
        font-size:40px;
    }

    .tarpsrus-performance p{
        font-size:17px;
        margin-bottom:45px;
    }

    .tarpsrus-performance-features{
        grid-template-columns:repeat(2,1fr);
        gap:40px 30px;
        max-width:520px;
        margin:0 auto 50px;
    }

    .tarpsrus-performance-item img{
        width:110px;
        height:110px;
    }

    .tarpsrus-performance-item h3{
        font-size:18px;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width:768px){

    .tarpsrus-performance-content{
        padding:90px 20px 80px;
    }
	
	.tarpsrus-divider-top {
    width: 100%;
    height: auto;
    display: block;
}

    .tarpsrus-performance h2{
        font-size:34px;
    }

    .tarpsrus-performance p{
        font-size:16px;
        margin-bottom:40px;
    }

    .tarpsrus-performance-features{
        grid-template-columns:repeat(2,1fr);
        gap:35px 20px;
        max-width:400px;
        margin:0 auto 40px;
    }

    .tarpsrus-performance-item img{
        width:90px;
        height:90px;
    }

    .tarpsrus-performance-item h3{
        font-size:17px;
    }

    .tarpsrus-performance .tarpsrus-button{
        width:100%;
    }

}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width:480px){

    .tarpsrus-performance-features{
        grid-template-columns:repeat(2,1fr);
        gap:25px 15px;
        max-width:320px;
    }

    .tarpsrus-performance-item img{
        width:90px;
        height:90px;
    }

    .tarpsrus-performance-item h3{
        font-size:15px;
    }

}

/* ==========================================
   CONTACT INFO
========================================== */

.tarpsrus-contact-info{
    padding:20px 0;
}


.tarpsrus-contact-info h2{
    font-size:42px;
    color:#0b1f3a;
    margin-bottom:20px;
}


.tarpsrus-contact-intro{
    max-width:700px;
    font-size:17px;
    line-height:1.8;
    margin-bottom:45px;
    color:#555;
}


/* ==========================================
   TWO COLUMNS
========================================== */

.tarpsrus-contact-columns{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
}


/* ==========================================
   GROUPS
========================================== */

.tarpsrus-contact-group h3{
    font-size:24px;
    color:#ff6600;
    margin-bottom:18px;
}


.tarpsrus-contact-group p{
    margin:0 0 20px;
    line-height:1.8;
    color:#333;
}


.tarpsrus-contact-group strong{
    color:#0b1f3a;
    font-weight:600;
}


.tarpsrus-contact-group a{
    color:#0b1f3a;
    text-decoration:none;
    transition:.3s ease;
}


.tarpsrus-contact-group a:hover{
    color:#ff6600;
}

/* ==========================================
   MAP
========================================== */

.tarpsrus-map iframe{
    width:100%;
    height:100%;
    min-height:420px;
    border:0;
    border-radius:12px;
}


/* ==========================================
   MOBILE
========================================== */

@media(max-width:768px){
    .tarpsrus-contact-info h2{
        font-size:34px;
        text-align:center;
    }

    .tarpsrus-contact-intro{
        text-align:center;
        margin:0 auto 40px;
    }

    .tarpsrus-contact-columns{
        grid-template-columns:1fr;
        gap:5px !important;
    }
	
	.tarpsrus-contact-info{
    padding:10px 0;
}

}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

.site,
.site-content,
.ast-container,
.entry-content {
    overflow-x: hidden;
}

/* ==========================================
   CALL MODAL
========================================== */

.tarpsrus-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    justify-content:center;
    align-items:center;
    z-index:99999;
}

.tarpsrus-modal.show{
    display:flex;
}

.tarpsrus-modal-box{
    position:relative;
    width:min(430px,90%);
    background:#FFFFFF;
    border-radius:20px;
    border-top:6px solid #FF6600;
    padding:45px 35px;
    text-align:center;
    box-shadow:0 20px 60px rgba(31,49,97,.30);
    animation:tarpsrusModal .25s ease;
}

@keyframes tarpsrusModal{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.tarpsrus-modal-logo{
    display:block;
    width:180px;
    max-width:80%;
    margin:0 auto 25px;
}

.tarpsrus-modal-box h2{
    color:#1F3161;
    font-size:32px;
    margin-bottom:10px;
}

.tarpsrus-modal-box p{
    color:#666666;
    margin-bottom:30px;
    line-height:1.6;
}

.tarpsrus-modal-contact{
    background:#F7F9FC;
    border:1px solid #DCE4F1;
    border-radius:14px;
    padding:18px;
    margin-bottom:18px;
    transition:.3s ease;
}


.tarpsrus-modal-contact strong{
    display:block;
    color:#FF6600;
    font-size:20px;
    margin-bottom:8px;
}

.tarpsrus-modal-number{
    color:#1F3161;
    font-size:22px;
    font-weight:700;
}

.tarpsrus-modal-close{
    position:absolute;
    top:15px;
    right:18px;
    font-size:34px;
    color:#999999;
    cursor:pointer;
    transition:.3s ease;
}

.tarpsrus-modal-close:hover{
    color:#FF6600;
}
