/*
Theme Name: SNR Services
Theme URI: https://snrservices.com
Author: SNR Services
Author URI: https://snrservices.com
Description: Тема для SNR Services — ремонт и реконструкция домов. Полный спектр услуг от А до Я. Цвет бренда #e02443.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: snr-services
*/

/* Primary brand color override (replaces yellow #ffb703) */
:root {
  --snr-primary: #e02443;
}

/* Accessibility: skip link visible on focus */
.skip-link.screen-reader-text {
  position: absolute;
  left: -9999px;
  z-index: 999999;
  padding: 12px 20px;
  background: var(--snr-primary, #e02443);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
}
.skip-link.screen-reader-text:focus {
  left: 50%;
  transform: translateX(-50%);
  top: 10px;
}

/* Language switcher (EN/FR) */
.toolbar-sl-share .clearfix > li a[href*="lang="] {
  margin: 0 4px;
  font-weight: 600;
  text-decoration: none;
}
.toolbar-sl-share .clearfix > li a[href*="lang="].active {
  color: var(--snr-primary, #e02443);
  text-decoration: underline;
}

/* Mobile menu: language switcher (EN/FR) – visible on light and dark backgrounds */
.mobile-lang-switcher {
  padding: 16px 20px 14px;
  margin: 0 0 8px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.mobile-lang-switcher a {
  font-size: 17px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  padding: 6px 12px;
  margin: 0 2px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  min-width: 44px;
  text-align: center;
  display: inline-block;
}
.mobile-lang-switcher a:hover {
  color: #e02443;
  background: rgba(224, 36, 67, 0.1);
}
.mobile-lang-switcher a.active {
  color: #fff;
  background: #e02443;
}
.mobile-lang-switcher .lang-sep {
  color: #999;
  margin: 0 2px;
  font-weight: 400;
  font-size: 14px;
}

/* Contact form success/error message */
.rs-contact .alert { margin-bottom: 1.5rem; }

/* Hero slider: overlay so text is readable on photo */
.rs-slider.slider-style1 .slider-item {
  position: relative;
}
.rs-slider.slider-style1 .slider-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(1, 13, 20, 0.45);
  pointer-events: none;
}
.rs-slider.slider-style1 .slider-inner .content-part .sl-title,
.rs-slider.slider-style1 .slider-inner .content-part .sl-desc,
.rs-slider.slider-style1 .slider-inner .content-part .sl-subtitle { position: relative; z-index: 1; }

.rs-slider.slider-style1 .slider .slider-item .slider-inner .content-part .sl-title {
  font-size: 65px !important;
  font-weight: 700 !important;
  line-height: 75px !important;
  color: white !important;
  margin: 0 0 15px !important;
}
.rs-slider.slider-style1 .slider .slider-item .slider-inner .content-part .sl-desc {
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 28px !important;
  color: white !important;
  margin: 0 0 40px !important;
}
.rs-slider.slider-style1 .slider .slider-item .slider-inner .content-part .sl-subtitle {
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 28px !important;
  color: white !important;
  text-transform: uppercase !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 0 10px !important;
}

/* Hero slider: mobile – smaller text so it fits */
@media (max-width: 991px) {
  .rs-slider.slider-style1 .slider .slider-item .slider-inner .content-part .sl-title {
    font-size: 38px !important;
    line-height: 1.2 !important;
    margin: 0 0 10px !important;
  }
  .rs-slider.slider-style1 .slider .slider-item .slider-inner .content-part .sl-desc {
    font-size: 15px !important;
    line-height: 1.45 !important;
    margin: 0 0 20px !important;
  }
  .rs-slider.slider-style1 .slider .slider-item .slider-inner .content-part .sl-subtitle {
    font-size: 13px !important;
    line-height: 1.35 !important;
    margin: 0 0 6px !important;
  }
}
@media (max-width: 575px) {
  .rs-slider.slider-style1 .slider .slider-item .slider-inner .content-part .sl-title {
    font-size: 26px !important;
    line-height: 1.25 !important;
    margin: 0 0 8px !important;
  }
  .rs-slider.slider-style1 .slider .slider-item .slider-inner .content-part .sl-desc {
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin: 0 0 16px !important;
  }
  .rs-slider.slider-style1 .slider .slider-item .slider-inner .content-part .sl-subtitle {
    font-size: 12px !important;
    margin: 0 0 4px !important;
  }
  .rs-slider.slider-style1 .slider-inner .content-part {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
}

/* CTA section: overlay so white text is readable on photo */
.rs-cta.cta-style1 { position: relative; }
.rs-cta.cta-style1 .container { position: relative; z-index: 1; }
.rs-cta.cta-style1::before {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(1, 13, 20, 0.75);
  pointer-events: none;
}

/* Search modal – form full width */
.search-modal .search-block { padding: 1.5rem; }
.search-modal .search-form .search-wrap,
.search-modal .search-form .search-input { width: 100%; max-width: 100%; }
.search-modal .search-form .search-input { padding: 12px 50px 12px 16px; font-size: 1rem; }
.search-modal .search-form button[type="submit"] { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: transparent; border: none; cursor: pointer; color: var(--snr-primary, #e02443); }
.search-modal .search-form .search-wrap { position: relative; }

/* Text visibility: headings and body text readable on light backgrounds */
.rs-about .sec-title .title,
.rs-about .sec-title .desc,
.rs-services .sec-title .title,
.rs-services .sec-title .desc,
.rs-why-choose .sec-title .title,
.rs-why-choose .sec-title .desc,
.rs-testimonial .sec-title .title,
.rs-testimonial .sec-title .desc,
.rs-cta .sec-title .title,
.rs-cta .sec-title .desc,
.main-content .sec-title .title,
.main-content .sec-title .desc,
.main-content .entry-content,
.main-content .rs-about .desc { color: #010d14; }
.main-content .entry-content p,
.main-content .entry-content li { color: #333333; }

/* Header: custom logo */
.logo-area .custom-logo,
.header-logo .custom-logo,
.header-logo img.normal-logo { max-height: 50px !important; width: auto !important; height: auto !important; }

/* Footer: logo width auto (do not stretch) */
.rs-footer .footer-top .footer-logo .custom-logo,
.rs-footer .footer-top .footer-logo img { width: auto !important; max-height: 50px !important; height: auto !important; }

/* Primary buttons .readon.more */
.readon.more {
  background: #e02443;
  background-color: rgb(224, 36, 67);
  padding: 17px 23px;
  color: #010d14;
  font-weight: 500;
  text-transform: uppercase;
  color: white !important;
}
.readon,
.readon.more,
.readon.more.submit,
a.readon.more,
button.readon.more,
input[type="submit"].readon,
.quote-button,
.btn-theme { color: #ffffff !important; }
.readon:hover,
.readon.more:hover,
.readon.more.submit:hover { color: #ffffff !important; }

/* Footer: text black on light background (override inc/style.css) */
.rs-footer.footer-main-home .footer-top .footer-title,
.rs-footer.footer-main-home .footer-top .widget-desc { color: black !important; }
.rs-footer.footer-main-home .footer-top .textwidget p {
  color: black !important;
  margin: 0;
}
.rs-footer.footer-main-home .footer-top .address-widget li .desc {
  color: black !important;
}
.rs-footer.footer-main-home .footer-top .address-widget li .desc a,
.rs-footer.footer-main-home .footer-top .desc a {
  color: black !important;
}
.rs-footer.footer-main-home .footer-top .site-map a {
  color: black !important;
}
.rs-footer.footer-main-home .footer-top .address-widget li .desc a:hover,
.rs-footer.footer-main-home .footer-top .site-map a:hover { color: #e02443 !important; }

.pb-20 { padding-bottom: 20px; }

/* ========== Contact page – beautiful design ========== */
.snr-contact-page {
  background: linear-gradient(160deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
  position: relative;
}
.snr-contact-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e02443, #c41e3a);
  pointer-events: none;
}
.snr-contact-row {
  align-items: stretch;
}
.snr-contact-info {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  padding: 40px 36px;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.06);
}
.snr-contact-heading {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: #010d14;
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 3px solid #e02443;
  display: inline-block;
}
.snr-contact-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.snr-contact-list li {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 12px;
}
.snr-contact-list li i {
  color: #e02443;
  font-size: 20px;
  flex-shrink: 0;
}
.snr-contact-list li a {
  color: #e02443;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.snr-contact-list li a:hover { color: #c41e3a; }
.snr-contact-desc {
  color: #333;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}
.snr-contact-desc p { margin: 0 0 12px; }
.snr-contact-desc p:last-child { margin-bottom: 0; }
.snr-contact-form-wrap {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  padding: 40px 36px;
  border: 1px solid rgba(0,0,0,0.06);
}
.snr-contact-form .snr-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.snr-contact-form .snr-input::placeholder { color: #6c757d; }
.snr-contact-form .snr-input:focus {
  outline: none;
  border-color: #e02443;
  box-shadow: 0 0 0 3px rgba(224, 36, 67, 0.15);
}
.snr-contact-form .snr-textarea {
  min-height: 140px;
  resize: vertical;
}
.snr-contact-form .mb-24 { margin-bottom: 24px; }
.snr-contact-form .snr-submit {
  padding: 16px 32px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.snr-contact-form .snr-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(224, 36, 67, 0.4);
}
/* Contact Form 7 compatibility */
.snr-contact-page .wpcf7-form-control-wrap { display: block; margin-bottom: 24px; }
.snr-contact-page .wpcf7 input[type="text"],
.snr-contact-page .wpcf7 input[type="email"],
.snr-contact-page .wpcf7 textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #f8f9fa;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.snr-contact-page .wpcf7 input:focus,
.snr-contact-page .wpcf7 textarea:focus {
  outline: none;
  border-color: #e02443;
  box-shadow: 0 0 0 3px rgba(224, 36, 67, 0.15);
}
.snr-contact-page .wpcf7 .wpcf7-submit {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 8px;
  background: #e02443;
  color: #fff !important;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.snr-contact-page .wpcf7 .wpcf7-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(224, 36, 67, 0.4);
}

/* Services: ensure images always display (fallback bg) */
.rs-services .services-item > a[style*="background:url"],
.rs-services .services-item > a[style*="background: url"] {
  background-color: #e9ecef;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Theme uses main style from parent template - enqueued in functions.php */
