/*
Theme Name: Bartalis Theme
Theme URI: https://angry-banach.88-198-51-214.plesk.page
Author: Autopark Bartalis
Description: Custom Block Theme fuer Autopark Bartalis - Serioser Gebrauchtwagen-Haendler in Sollenau.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bartalis-theme
*/

/* ========================================
   BASE
   ======================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body.admin-bar {
  scroll-padding-top: 112px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ========================================
   ADMIN BAR OFFSET
   ======================================== */

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  body.admin-bar .site-header {
    top: 0;
  }
}

/* ========================================
   HEADER -- Transparent + Sticky Shrink
   ======================================== */

.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: transparent !important;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease, top 0.35s ease;
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.site-header.header-scrolled {
  border-bottom-color: transparent;
}

.site-header .wp-block-navigation-item a,
.site-header .header-phone a,
.site-header .header-phone p {
  color: #ffffff !important;
  text-decoration: none;
  transition: color 0.3s, opacity 0.3s;
}

.site-header .wp-block-navigation-item a:hover {
  opacity: 0.8;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.site-header .header-phone a:hover {
  opacity: 0.75;
}

.site-header .wp-block-navigation__responsive-container-open {
  color: #fff;
}

.site-header.header-scrolled {
  background: rgba(26, 26, 26, 0.93) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}

.site-header.header-scrolled .header-logo img {
  width: 150px !important;
  transition: width 0.35s ease;
}

.header-logo img {
  transition: width 0.35s ease;
}

/* ========================================
   HERO + PAGE HEADERS
   ======================================== */

.page-hero .wp-block-cover__inner-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   SERVICE ICON BOXES
   ======================================== */

.service-icon-box {
  text-align: center;
  padding: 2rem 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: 8px;
  background: transparent;
}

.service-icon-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  background: #fafafa;
}

.service-icon-box .wp-block-image {
  margin-bottom: 1rem;
}

.service-icon-box .wp-block-image img,
.service-icon-box img {
  display: block !important;
  margin: 0 auto 1rem !important;
  width: 80px !important;
  height: 80px !important;
  object-fit: contain;
}

/* ========================================
   SERVICES DETAIL (Red Section)
   ======================================== */

.service-detail-columns .wp-block-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
}

.service-detail-columns ul {
  list-style: disc;
  list-style-position: outside;
  padding-left: 1.25rem;
  margin-left: 0;
}

.service-detail-columns li {
  padding-left: 0.25rem;
}

/* ========================================
   TESTIMONIAL CARDS
   ======================================== */

.testimonial-card {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 1.75rem;
  height: 100%;
  border-left: 3px solid #a2262e;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

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

.wp-block-button__link {
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease !important;
}

.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  text-decoration: none !important;
  font-weight: 600 !important;
}

/* ========================================
   CONTACT FORM (CF7)
   ======================================== */

.wpcf7-form {
  background: #f9f9f9;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.wpcf7 label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666;
  margin-bottom: 0.4rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  background: #fff;
  border: none;
  border-bottom: 2px solid #e0e0e0;
  border-radius: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: #000;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1.5rem;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
  border-bottom-color: #a2262e;
  box-shadow: 0 2px 0 0 #a2262e;
  outline: none;
}

.wpcf7 textarea {
  min-height: 140px;
  resize: vertical;
}

.wpcf7 input[type="submit"] {
  display: block;
  width: 100%;
  background: #a2262e;
  color: #fff;
  border: none;
  padding: 1.1rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  margin-top: 0.5rem;
}

.wpcf7 input[type="submit"]:hover {
  background: #871e25;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(162, 38, 46, 0.3);
}

.wpcf7 .wpcf7-acceptance {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.wpcf7 .wpcf7-acceptance label {
  font-size: 0.82rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #555;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}

.wpcf7 .wpcf7-response-output {
  border-radius: 6px;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

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

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.contact-info-item svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  fill: #a2262e;
}

/* ========================================
   MAPS + IFRAMES
   ======================================== */

.autoscout-frame {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.autoscout-frame iframe,
#gebrauchtwagen iframe {
  display: block;
  width: 100%;
  min-height: 1800px;
  border: none;
  overflow: hidden;
}

.autoscout-frame::-webkit-scrollbar,
#gebrauchtwagen iframe::-webkit-scrollbar {
  display: none;
}

.autoscout-frame,
#gebrauchtwagen iframe {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

@media (max-width: 1150px) {
  .autoscout-frame {
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  .autoscout-frame iframe,
  #gebrauchtwagen iframe {
    min-height: 4000px;
    overflow: hidden;
  }
}

.map-frame iframe {
  width: 100%;
  height: 350px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ========================================
   FOOTER
   ======================================== */

.footer-section a {
  color: #aaaaaa !important;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #ffffff !important;
}

/* ========================================
   NAVIGATION HOVER OVERRIDES
   ======================================== */

.wp-block-navigation .wp-block-navigation-item a:hover {
  text-decoration: none !important;
}

/* ========================================
   NAV -- Mobile menu ab 1150px
   ======================================== */

@media (max-width: 1150px) {
  .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }

  .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex !important;
    align-items: center;
    cursor: pointer;
  }

  .site-header .header-cta {
    display: none;
  }
}

@media (min-width: 1151px) {
  .wp-block-navigation__responsive-container-open {
    display: none !important;
  }

  .wp-block-navigation__responsive-container {
    display: block !important;
  }
}

/* ========================================
   RESPONSIVE -- Tablet (< 782px)
   ======================================== */

@media (max-width: 781px) {
  .site-header {
    position: relative !important;
    top: auto !important;
    background: #1a1a1a !important;
    border-bottom: none;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  body.admin-bar .site-header {
    top: auto !important;
  }

  .site-header .wp-block-navigation-item a,
  .site-header .header-phone a,
  .site-header .header-phone p {
    color: #ffffff !important;
  }

  .site-header .wp-block-navigation__responsive-container-open {
    color: #fff;
  }

  .site-header .header-logo img {
    width: 150px !important;
  }

  .site-header.header-scrolled {
    background: #1a1a1a !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    box-shadow: none;
  }

  .site-header.header-scrolled .header-logo img {
    width: 150px !important;
  }

  .service-icon-box {
    padding: 1.5rem 0.75rem;
  }

  .service-icon-box .wp-block-image img,
  .service-icon-box img {
    width: 60px !important;
    height: 60px !important;
  }

  .service-detail-columns .wp-block-column {
    margin-bottom: 2.5rem;
  }

  .wpcf7-form {
    padding: 1.75rem;
  }

  .contact-info-item {
    font-size: 0.9rem;
  }

  .map-frame iframe {
    height: 260px;
  }

  .testimonial-card {
    padding: 1.25rem;
  }
}

/* ========================================
   RESPONSIVE -- Phone (< 480px)
   ======================================== */

@media (max-width: 480px) {
  .site-header .header-logo img {
    width: 130px !important;
  }

  .site-header.header-scrolled .header-logo img {
    width: 110px !important;
  }

  .site-header .header-cta {
    display: none;
  }

  .service-icon-box .wp-block-image img,
  .service-icon-box img {
    width: 48px !important;
    height: 48px !important;
  }

  .wpcf7-form {
    padding: 1.25rem;
  }

  .testimonial-card {
    padding: 1rem;
    border-left-width: 2px;
  }

  .map-frame iframe {
    height: 220px;
  }
}
