/*
 * Carsora — Design Refresh Layer
 * Loaded after main.css so it overrides safely without touching the original.
 */

:root {
  --carsora-radius: 24px;
  --carsora-btn-radius: 28px;
  --carsora-input-radius: 6px;
  --carsora-shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.06);
  --carsora-shadow-md: 0 10px 30px rgba(16, 24, 40, 0.12);
  --carsora-heading-color: #181a1d;
  --carsora-body-color: #65666a;
  --carsora-red: #df1c2f;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
  color: var(--carsora-body-color);
}

::selection {
  background: var(--theme-primary-color, #df1c2f);
  color: #fff;
}
button,
.button,
.button-outline,
input[type="button"],
input[type="reset"],
input[type="submit"],
.wp-block-button__link {
  border-radius: var(--carsora-btn-radius);
  box-shadow: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover,
.button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  background-color: #c21326;
  background-image: none;
  transform: none;
  box-shadow: none;
  border-color: transparent;
  color: #fff;
}

.button-outline {
  background: transparent;
  border: 1.5px solid currentColor;
  color: inherit;
  box-shadow: none;
}

.button-outline:hover {
  background-color: var(--theme-primary-color, #df1c2f);
  border-color: transparent;
  color: #fff;
}

button:active,
.button:active,
input[type="submit"]:active {
  transform: none;
  box-shadow: none;
}

/* ---------- Accessibility: restore visible keyboard focus ---------- */
button:focus,
.button:focus,
.button-outline:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
a:focus-visible,
.wp-block-button__link:focus {
  outline: 2px solid var(--theme-primary-color, #df1c2f);
  outline-offset: 3px;
}

/* ---------- Forms: softer fields, clearer focus ring ---------- */
select,
textarea,
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="date"] {
  border-radius: var(--carsora-radius);
  border-color: #e7e7ec;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="date"]:focus {
  box-shadow: 0 0 0 3px var(--theme-primary-rgba, rgba(208, 24, 24, 0.13));
}

/* ---------- Cards & entries: lift on hover ---------- */
.blog .post,
.archive .post,
.widget,
.tf-item,
.tfre-listing-item {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog .post:hover,
.archive .post:hover {
  box-shadow: var(--carsora-shadow-md);
  transform: translateY(-4px);
}

/* Subtle image zoom on entry thumbnails */
.post .featured-post,
.post .featured-image,
.entry-image {
  overflow: hidden;
}

.post .featured-post img,
.post .featured-image img,
.entry-image img {
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.post:hover .featured-post img,
.post:hover .featured-image img,
.post:hover .entry-image img {
  transform: scale(1.05);
}

/* ---------- Headings & links — Peloton: Carbon Black, light display weight ---------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--carsora-heading-color);
  letter-spacing: -0.006em;
}

/* Display headlines: whisper-weight signature of the system */
h1, .title-footer-top {
  font-weight: 300;
  letter-spacing: -0.008em;
}

/* Elementor heading widgets follow the Peloton type system:
   300 for display (h1), 500 for section headings — never 700/800 */
.elementor-widget-heading .elementor-heading-title {
  font-weight: 500;
  letter-spacing: -0.006em;
}

.elementor-widget-heading h1.elementor-heading-title {
  font-weight: 300;
  letter-spacing: -0.008em;
}

a {
  transition: color 0.2s ease;
}

/* ---------- Widgets ---------- */
.widget-title {
  letter-spacing: 0.02em;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* =====================================================
   Footer — exact match of cars.orazen.online footer
   ===================================================== */
.carsora-footer {
  background-color: #090a0a;
  position: relative;
  overflow: hidden;
}

.carsora-footer .carsora-container {
  width: 1380px;
  max-width: 100%;
  margin: 0 auto;
  padding: 81px 15px 0;
  position: relative;
}

/* CTA row */
.carsora-footer .carsora-footer-top {
  padding-bottom: 34px;
  align-items: center;
}

.carsora-footer .carsora-footer-top .title-footer-top {
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.26;
}

.carsora-footer .carsora-footer-top .red-title {
  color: #df1c2f;
}

.carsora-footer .carsora-footer-top .btn-sell {
  display: inline-block;
  background-color: #df1c2f;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  padding: 22px 32px;
  border-radius: 9px;
  text-transform: uppercase;
  transition: all .3s ease;
}

.carsora-footer .carsora-footer-top .btn-sell:hover {
  background-color: #fff;
  color: #df1c2f;
}

.carsora-footer .carsora-footer-top .t-al-right {
  text-align: right;
}

/* Main columns */
.carsora-footer .carsora-footer-main {
  border-top: 1px solid #18181a;
  border-bottom: 1px solid #18181a;
  padding: 64px 0 69px;
}

.carsora-footer .widget-info img {
  width: 123px;
  height: auto;
  margin-bottom: 21px;
  margin-left: 5px;
}

.carsora-footer .widget-info p {
  color: #fffefe;
  line-height: 1.85;
  margin-bottom: 20px;
}

.carsora-footer .widget-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.carsora-footer .widget-info ul li {
  display: flex;
  align-items: flex-start;
}

.carsora-footer .widget-info ul li i {
  color: #df1c2f;
  width: 36px;
  margin-top: 7px;
  font-size: 18px;
}

.carsora-footer .widget-info ul li p {
  margin-bottom: 9px;
  text-transform: capitalize;
  color: #fffefe;
}

.carsora-footer .widget-menu h3 {
  font-size: 22px;
  font-weight: 600;
  color: #fffefe;
  margin-bottom: 19px;
  line-height: 1.26;
  margin-top: 6px;
}

.carsora-footer .carsora-pl-60 {
  padding-left: 60px;
}

.carsora-footer .carsora-pl-30 {
  padding-left: 30px;
}

.carsora-footer .widget-menu ul.box-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.carsora-footer .widget-menu ul.box-menu li a {
  color: #fffefe;
  font-size: 16px;
  font-weight: 400;
  line-height: 2.6;
  position: relative;
}

.carsora-footer .widget-menu ul.box-menu li a:hover {
  color: #df1c2f;
}

.carsora-footer .widget-menu ul.box-menu li a::before {
  content: "";
  width: 100%;
  height: 1px;
  position: absolute;
  left: 0;
  bottom: -10%;
  background: #df1c2f;
  transition: transform .5s ease 0s;
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.carsora-footer .widget-menu ul.box-menu li a:hover::before {
  transform: scaleX(1);
}

/* Newsletter form */
.carsora-footer .widget-form .email-footer-form {
  margin-top: 65px;
}

.carsora-footer .widget-form .email-footer-form .text-wrap {
  position: relative;
  margin-bottom: 21px;
}

.carsora-footer .widget-form .email-footer-form .tb-my-input {
  background-color: transparent !important;
  border: unset;
  padding: 0 30px 15px 0;
  border-bottom: 1px solid #2c2e34;
  color: #b4b4b4 !important;
  font-size: 17px;
  font-weight: 400;
  height: 45px;
  border-radius: unset;
  width: 100%;
  box-shadow: none !important;
}

.carsora-footer .widget-form .email-footer-form .btn-submit-email {
  display: inline-block;
  background-color: transparent;
  position: absolute;
  right: 0;
  width: auto;
  top: 0;
  padding: 5px;
  border: none;
  box-shadow: none;
}

.carsora-footer .widget-form .email-footer-form .btn-submit-email i {
  color: #fffefe;
  font-size: 20px;
}

.carsora-footer .widget-form .radio {
  display: flex;
  align-items: center;
}

.carsora-footer .widget-form .radio input[type="checkbox"] {
  margin: 0 10px 0 7px;
  accent-color: #df1c2f;
}

.carsora-footer .widget-form .radio label {
  color: #fffefe;
  font-size: 15px;
  font-weight: 400;
  line-height: 2.8;
}

.carsora-footer .widget-form .wpcf7 .wpcf7-form-control-wrap {
  display: block;
}

/* Bottom bar */
.carsora-footer .carsora-footer-bottom {
  padding-top: 25px;
  padding-bottom: 22px;
  align-items: center;
}

.carsora-footer .carsora-footer-bottom .coppy-right {
  font-weight: 500;
  color: #d1d1d1;
  margin: 0;
}

.carsora-footer .carsora-footer-bottom .coppy-right a {
  color: #d1d1d1;
}

.carsora-footer .carsora-footer-bottom .coppy-right a:hover {
  color: #df1c2f;
}

.carsora-footer .carsora-footer-bottom ul.social-icon {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.carsora-footer .carsora-footer-bottom ul.social-icon li a i {
  color: #fffefe;
  font-size: 16px;
  width: 40px;
  height: 40px;
  background-color: hsla(0, 0%, 100%, .04);
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  margin: 0 10px;
  display: block;
  transition: all .3s ease;
}

.carsora-footer .carsora-footer-bottom ul.social-icon li a i:hover {
  background-color: #df1c2f;
  color: #fffefe;
}

.carsora-footer .carsora-footer-bottom ul.bottom-bar-menu {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 35px;
  padding: 0;
  margin: 0;
}

.carsora-footer .carsora-footer-bottom ul.bottom-bar-menu a {
  color: #d1d1d1;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
}

.carsora-footer .carsora-footer-bottom ul.bottom-bar-menu a:hover {
  color: #df1c2f;
}

/* Decorative corner shapes — reference positioning */
.carsora-footer .shape-left {
  position: absolute;
  left: -37%;
  bottom: -19%;
  width: 50%;
  height: auto;
  pointer-events: none;
}

.carsora-footer .shape-right {
  position: absolute;
  right: -32%;
  bottom: -12%;
  width: 46%;
  height: auto;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 1399px) {
  .carsora-footer .shape-left,
  .carsora-footer .shape-right {
    display: none;
  }
}

@media (max-width: 991px) {
  .carsora-footer .carsora-footer-top .title-footer-top {
    font-size: 36px;
    text-align: center;
  }
  .carsora-footer .carsora-footer-top .t-al-right {
    text-align: center;
  }
  .carsora-footer .carsora-footer-bottom {
    text-align: center;
  }
  .carsora-footer .carsora-footer-bottom ul.social-icon {
    justify-content: center;
    margin-top: 20px;
  }
  .carsora-footer .carsora-footer-bottom ul.bottom-bar-menu {
    justify-content: center;
    margin-top: 20px;
  }
  .carsora-footer .carsora-pl-60,
  .carsora-footer .carsora-pl-30 {
    padding-left: 0;
  }
}
