/**
Theme Name: SRTPI
Author: Shale
Author URI: https://shale.net.nz
Description: SRTPI performance and custom fonts theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: srtpi
Template: astra
*/


@font-face {
    font-family: 'Bebas-Neue';
    src: local('Bebas-Neue Bold'), local('BebasNeue-Bold'),
        url('fonts/BebasNeue-Bold.woff2') format('woff2'),
        url('fonts/BebasNeue-Bold.woff') format('woff'),
        url('fonts/BebasNeue-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    size-adjust: 100%;
    ascent-override: 91%;
    descent-override: 18%;
    line-gap-override: 0%;
    font-display: swap;
}

@font-face {
    font-family: 'Bebas-Neue';
    src: local('Bebas-Neue Book'), local('BebasNeue-Book'),
        url('fonts/BebasNeue-Book.woff2') format('woff2'),
        url('fonts/BebasNeue-Book.woff') format('woff'),
        url('fonts/BebasNeue-Book.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    size-adjust: 100%;
    ascent-override: 91%;
    descent-override: 18%;
    line-gap-override: 0%;
    font-display: swap;
}

/* Fallback Fonts */

@font-face {
    font-family: 'H1 Fallback';
    src: local(Arial Narrow);
    size-adjust: 83%;
    ascent-override: 98%;
    descent-override: 18%;
    line-gap-override: 7%;
}

@font-face {
    font-family: 'Body Fallback';
    src: local(Arial);
    size-adjust: 105%;
    ascent-override: normal;
    descent-override: 25%;
    line-gap-override: normal;
}

body, button, input, select, textarea, .ast-button, .ast-custom-button {
  font-family: 'Libre Franklin', sans-serif;

}

h1,
.entry-content h1,
h2,
.entry-content h2,
h3,
.entry-content h3,
h4,
.entry-content h4,
h5,
.entry-content h5,
h6,
.entry-content h6,
.site-title,
.site-title a,
.wp-block-button__link,
button {
    font-family: 'Bebas-Neue', Impact, sans-serif;
}

.wp-block-button .wp-block-button__link, .wp-block-search .wp-block-search__button, body .wp-block-file .wp-block-file__button {
    font-family: 'Bebas-Neue', Impact, sans-serif;
}

/* Styling for contact form */

fieldset {
    padding: 0;
    border: none;
}

label {
    font-size: 1rem;
}

input[type="text"], input[type="number"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="reset"], input[type="tel"], input[type="date"], select, textarea {
    font-size: 1rem;
    box-shadow: unset;
    height: auto;
    margin: 0.5rem 0 0;
    border-color: #9c9a9d;
}

.frm_description {
    font-size: 0.7rem;
}

.form-field {
    margin-bottom: 1rem
}

.vertical_radio {
    margin: 0 0 1rem;
    padding: 1rem;
    background: var(--ast-border-color);
    border-radius: 3px;
}

input[type="checkbox"], input[type="radio"] {
    margin-right: 0.5rem;
}

.frm_required {
    color: #d62436;
}

.frm_error_style {
    padding: 1em;
    border-radius: 3px;
    color: #d62436;
    background: #fbe9eb;
    
}

.frm_error {
    color: #d62436;
}

a,
button {
    transition: all .3s linear;
}

/* Styling for custom animation */

.ocpp-enabled-stanbury .stanbury-charger-overlay {
    position: relative;
    width: 100%;
}

.ocpp-enabled-stanbury .stanbury-charger-overlay::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    transition: opacity .3s linear;
    
    background-image: url(https://srtpi.com/wp-content/uploads/2025/02/stanbury-charger-sf-hover-1024x891.webp);
    background-size: 100% auto;
    background-repeat: no-repeat;
    transition: opacity .3s linear;
    opacity: 0;
}

.ocpp-enabled-stanbury .stanbury-charger-overlay:hover::before {
    opacity: 1;
}

/* Force gallery images to stack on small screens, size corrections */

.metaslider .slides img {
    width: 100%;
    height: auto;
}

@media all and (max-width:760px){
  .wp-block-gallery .wp-block-image {
    width:100% !important;
  }
}
