/**
Theme Name: car8.ai
Author: Matysiewicz Studio
Author URI: https://matysiewicz.studio
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful 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: car8.ai
Template: astra
*/
@media (min-width: 1200px) {
  .max1200 {
    max-width: 1200px!important;
    margin: 0 auto!important;
  }
}
@media (min-width: 600px) {
  .max600 {
    max-width: 600px!important;
    margin: 0 auto!important;
  }
}

.ast-primary-header-bar,
.site-primary-footer-wrap[data-section="section-primary-footer-builder"],
.site-below-footer-wrap[data-section="section-below-footer-builder"] {
    /* background: linear-gradient(to right, #1e3d8d, #314e8f); */
    background: linear-gradient(to right, #3051a5, #09235c);
}

.herovideo {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  max-height: 400px;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
}
.cf7form {
  margin: auto!important;
}
input[type="submit"] {
    color: #fff;
    border-radius: 20px;
    padding: 25px 45px;
    font-weight: bold;
    text-transform: uppercase;
}
.site-footer {
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

h2 strong {
  color: var(--ast-global-color-7);
}
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 {
    border-radius: 15px;
    box-shadow: none;
    border: 2px solid var(--ast-global-color-2);
    padding: 25px !important;
}
.wpcf7 input.wpcf7-form-control:not([type=submit]):focus, .wpcf7 select.wpcf7-form-control:focus, .wpcf7 textarea.wpcf7-form-control:focus {
    border-radius: 15px;
    box-shadow: none;
    border: 2px solid var(--ast-global-color-7);
    padding: 25px !important;
}

/* menu */

/*
 * Styl dla elementów linków w menu
 */
#ast-hf-menu-1 .menu-item a,
#ast-hf-menu-1-sticky .menu-item a  {
  padding: .5em .8em;
  /* color: var(--ast-global-color-7); */
  position: relative;
  text-decoration: none;
  box-sizing: border-box; /* Ważne, aby padding nie powiększał elementu */
  transition: all .35s ease;
}

/*
 * Pseudoelementy ::before i ::after do tworzenia "ramki"
 */
#ast-hf-menu-1 .menu-item a::before,
#ast-hf-menu-1 .menu-item a::after,
#ast-hf-menu-1-sticky .menu-item a::before,
#ast-hf-menu-1-sticky .menu-item a::after {
  content: '';
  height: 14px;
  width: 14px;
  position: absolute;
  transition: all .35s ease;
  opacity: 0;
}

/*
 * Górna i prawa krawędź "ramki"
 */
#ast-hf-menu-1 .menu-item a::before,
#ast-hf-menu-1-sticky .menu-item a::before  {
  right: 0;
  top: 0;
  border-top: 3px solid var(--ast-global-color-7);
  border-right: 3px solid var(--ast-global-color-7);
  transform: translate(-100%, 50%);
}

/*
 * Dolna i lewa krawędź "ramki"
 */
#ast-hf-menu-1 .menu-item a::after,
#ast-hf-menu-1-sticky .menu-item a::after {
  left: 0;
  bottom: 0;
  border-bottom: 3px solid var(--ast-global-color-7);
  border-left: 3px solid var(--ast-global-color-7);
  transform: translate(100%, -50%);
}

/*
 * Stan hover - animacja "ramki"
 * Używamy selektora :hover
 */
#ast-hf-menu-1 .menu-item a:hover::before,
#ast-hf-menu-1 .menu-item a:hover::after,
#ast-hf-menu-1-sticky .menu-item a:hover::before,
#ast-hf-menu-1-sticky .menu-item a:hover::after {
  transform: translate(0, 0);
  opacity: 1;
}

/*
 * Stan hover - zmiana koloru tekstu
 */
#ast-hf-menu-1 .menu-item a:hover,
#ast-hf-menu-1-sticky .menu-item a:hover {
  color: var(--ast-global-color-7);
}

.ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item {
    line-height: 40px;
}


/* buttons */
.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link.wp-element-button, .ast-outline-button, .wp-block-uagb-buttons-child .uagb-buttons-repeater.ast-outline-button {
    padding-top: 20px;
    padding-right: 35px;
    padding-bottom: 20px;
    padding-left: 35px;
    border: none;
}

.wp-block-buttons .wp-block-button__link,
.wpcf7-submit { /* Added .wpcf7-submit */
    transition: transform 0.3s, color 0.6s !important; 
    position: relative !important;
    z-index: 10 !important; 
}

.wp-block-buttons .is-style-outline,
.wp-block-buttons .is-style-fill,
.wpcf7-submit { /* Added .wpcf7-submit */
    position: relative !important;
    border-radius: 20px;
    /* overflow: hidden; */
}

/* --- Shrink Border Base Pseudo-Elements (Applied to BOTH and CF7) --- */
.wp-block-buttons .is-style-outline::before,
.wp-block-buttons .is-style-fill::before,
.wpcf7-submit::before, /* Added .wpcf7-submit::before */
.wp-block-buttons .is-style-outline::after,
.wp-block-buttons .is-style-fill::after,
.wpcf7-submit::after { /* Added .wpcf7-submit::after */
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    opacity: 0 !important; 
    z-index: -1 !important; 
}

/* Base ::before (The initial dark border that disappears) */
.wp-block-buttons .is-style-outline::before,
.wp-block-buttons .is-style-fill::before,
.wpcf7-submit::before { /* Added .wpcf7-submit::before */
    opacity: 1 !important; 
    width: 100% !important;
    height: 100% !important;
    border: 3px solid var(--ast-global-color-1) !important; 
    transition: transform 0.3s, opacity 0.3s, border 0.3s !important; 
    z-index: -2 !important; 
    border-radius: 20px;
}

/* Base ::after (The new light border that appears) */
.wp-block-buttons .is-style-outline::after,
.wp-block-buttons .is-style-fill::after,
.wpcf7-submit::after { /* Added .wpcf7-submit::after */
    width: 100% !important;
    height: 100% !important;
    border: 3px solid var(--ast-global-color-7) !important;
    transform: scaleX(1.15) scaleY(1.4) !important; 
    transition: transform 0.6s, opacity 0.3s !important;
    /* z-index: 13 !important; */
    border-radius: 20px;
}


/* --- Base Interaction --- */
.wp-block-buttons .wp-block-button__link:active,
.wpcf7-submit:active { /* Added .wpcf7-submit:active */
    transform: translateY(3px) !important;
}

/* --- HOVER COLOR (Apply dark fill and white text to BOTH link styles and CF7) --- */
.wp-block-buttons .is-style-outline .wp-block-button__link:hover,
.wp-block-buttons .is-style-fill .wp-block-button__link:hover,
.wp-block-buttons .wp-block-button__link:focus,
.wpcf7-submit:hover, /* Added .wpcf7-submit:hover */
.wpcf7-submit:focus { /* Added .wpcf7-submit:focus */
    color: #ffffff !important;
    background-color: var(--ast-global-color-1) !important;
    border-color: var(--ast-global-color-1) !important;
    box-shadow: none !important; 
    transform: scale(1.05);
}


/* --- SHRINK BORDER HOVER EFFECTS (Applied to BOTH and CF7) --- */

/* 1a. Hide initial dark border */
.wp-block-buttons .is-style-outline:hover::before,
.wp-block-buttons .is-style-fill:hover::before,
.wpcf7-submit:hover::before { /* Added .wpcf7-submit:hover::before */
    opacity: 0 !important;
}

/* 1b. Show and shrink the new light border */
.wp-block-buttons .is-style-outline:hover::after,
.wp-block-buttons .is-style-fill:hover::after,
.wpcf7-submit:hover::after { /* Added .wpcf7-submit:hover::after */
    opacity: 1 !important;
    transform: scaleX(1) scaleY(1) !important;
}
input.wpcf7-form-control.wpcf7-submit.has-spinner {
  background-color: var(--ast-global-color-1) !important;
}


.yt-video {
    border-radius: 25px;
    overflow: hidden;
}

/* Tło z nałożonym kolorem dla sekcji .bg-features */
.bg-features {
  position: relative;
  background-image: url('https://car8.ai/wp-content/uploads/2025/10/global-connectivity.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Nakładka koloru z przezroczystością */
.bg-features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--ast-global-color-1);
  opacity: 0.8;
  z-index: -1;
}

/* Siatka 2x2 dla .features */
.features.wp-block-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.gif-image {
  max-width: 120px;
}

@media (max-width: 768px) {
  .features.wp-block-columns {
    grid-template-columns: 1fr;
  }
}
/* zoom gif */
.image-interface.wp-block-image {
  position: relative;
  overflow: hidden;
}

.image-interface.wp-block-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: url('https://car8.ai/wp-content/uploads/2025/10/zoom_8121315-ezgif.com-optimize.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 80px;
  height: 80px;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  border-radius: 50%;
}

.image-interface.wp-block-image:hover::before {
  opacity: 0;
}