/* Schmitz Treatment Products — site stylesheet */

@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-Bold.ttf") format("truetype"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/Roboto-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/Roboto-Medium.ttf") format("truetype"); font-weight: 500 700; font-display: swap; }

:root {
  --blue: #006fff;
  --blue-deep: #0241ff;
  --navy: #05132f;
  --light: #f7f9fb;
  --text: #333;
  --white: #fff;
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-heading: Arial, Helvetica, sans-serif;
  --font-body: "Roboto", Arial, sans-serif;
  --font-brand: "Montserrat", Arial, sans-serif;
  --container: 1140px;
  --shadow-card: 0 4px 16px 8px rgba(0, 0, 0, .11);
  --shadow-image: 0 4px 16px rgba(0, 0, 0, .26);
  --header-h: 85px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; font-family: var(--font-system); font-size: 16px; line-height: 1.5; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; overflow-x: hidden; }
@supports (overflow: clip) { body { overflow-x: clip; } }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 20px; font-family: var(--font-heading); font-weight: 700; line-height: 1; color: var(--text); text-transform: capitalize; }
h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 28px; }
h4 { font-size: 20px; }
p { margin: 0 0 .9em; }
ul { margin: 0 0 .9em; }
button, input, textarea { font: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 10px; top: -60px; z-index: 1000; padding: 10px 16px; background: #fff; color: var(--text); box-shadow: 0 0 0 2px var(--blue); }
.skip-link:focus { top: 10px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 10px; }
.section { padding: 75px 0; }
.text-center { text-align: center; }
.prose { font-family: var(--font-body); }
.prose > :last-child { margin-bottom: 0; }

.bg-pumps { background: url("../images/stp-background-pumps.png") center / cover no-repeat; }
.bg-categories { background: url("../images/categories-background-1.jpg") center / cover no-repeat; }
.bg-light { background-color: var(--light); }
.bg-blue { background-color: var(--blue); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 15px 30px; border: 0; border-radius: 0; background: var(--blue); color: #fff; font-family: var(--font-heading); font-size: 16px; font-weight: 700; line-height: 1; text-transform: capitalize; text-align: center; cursor: pointer; transition: background-color .2s, color .2s; }
.btn:hover, .btn:focus-visible { background: var(--blue-deep); color: #fff; text-decoration: none; }
.btn-white { background: #fff; color: var(--blue-deep); }
.btn-white:hover, .btn-white:focus-visible { background: var(--light); color: var(--blue-deep); }
.btn-sm { padding: 12px 24px; font-size: 15px; }
.btn-block { display: block; width: 100%; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; background: var(--blue); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.site-logo { display: block; padding: 10px; }
.site-logo img { display: block; width: 210px; height: auto; }
.nav-toggle { display: none; padding: 10px; margin-right: 10px; border: 0; background: transparent; color: #fff; cursor: pointer; }
.nav-toggle svg { display: block; width: 26px; height: 26px; fill: currentColor; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.main-nav ul, .footer-nav ul { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.main-nav a, .footer-nav a { display: block; padding: 13px 20px; color: #fff; font-family: var(--font-brand); font-size: 16px; font-weight: 600; line-height: 20px; text-transform: capitalize; }
.main-nav a:hover, .footer-nav a:hover { text-decoration: none; opacity: .85; }
.main-nav { padding: 10px; }

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 0; background: var(--blue); box-shadow: 0 6px 12px rgba(0, 0, 0, .15); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 15px 20px; border-top: 1px solid rgba(255, 255, 255, .2); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; display: flex; align-items: center; justify-content: center; min-height: 300px; padding: 40px 10px; background-position: center; background-size: cover; background-repeat: no-repeat; text-align: center; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: #000; opacity: .4; }
.page-hero h1 { position: relative; margin: 0; color: #fff; }

/* ---------- Home hero ---------- */
.home-hero { position: relative; display: flex; align-items: center; min-height: 100vh; padding: 150px 0; background: url("../images/imagejpeg_0-4.jpg") center / cover no-repeat; text-align: center; }
.home-hero::before { content: ""; position: absolute; inset: 0; background: #000; opacity: .6; }
.home-hero .container { position: relative; }
.home-hero h1 { margin-bottom: 20px; font-family: var(--font-system); font-size: 70px; line-height: 1; color: #fff; }
.home-hero .lead { margin: 0 0 20px; font-family: var(--font-heading); font-size: 30px; font-weight: 400; line-height: 1; color: #fff; text-transform: capitalize; }

/* ---------- Two-column split ---------- */
.split { display: flex; align-items: center; }
.split > * { flex: 1 1 50%; min-width: 0; padding: 30px; }
.split--tight > * { padding: 10px; }
.split .media img { display: block; width: 100%; box-shadow: var(--shadow-image); }
.split > .sold-text { padding-right: 100px; }

/* ---------- Check list ---------- */
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-family: var(--font-brand); font-size: 15px; }
.check-list li + li { margin-top: 16px; }
.check-list svg { flex: none; width: 16px; height: 16px; fill: var(--blue-deep); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); }
.step { padding: 10px; text-align: center; }
.step img { width: 106px; height: auto; }
.step h4 { margin: 8px 0 16px; font-family: var(--font-brand); line-height: 1.2; }
.step p { margin: 0; font-family: var(--font-body); }

/* ---------- Equipment categories ---------- */
.categories { display: grid; grid-template-columns: repeat(5, 1fr); }
.category { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 10px; padding: 15px; background: #fff; text-align: center; }
.category img { width: 87px; height: auto; margin-bottom: 15px; }
.category h4 { margin: 0; font-family: var(--font-system); font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--blue-deep); }
.categories + .btn-row { padding-top: 25px; }
.btn-row { text-align: center; }

.band { padding: 25px 0; background: var(--blue); text-align: center; }

/* ---------- Carousel ---------- */
.carousel { --per-view: 1; position: relative; }
.carousel-viewport { overflow: hidden; touch-action: pan-y; }
.carousel-track { display: flex; transition: transform .5s ease; will-change: transform; }
.carousel-slide { flex: 0 0 calc(100% / var(--per-view)); min-width: 0; }
.carousel-btn { position: absolute; top: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; }
.carousel-btn svg { width: 22px; height: 22px; fill: currentColor; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .5)); }
.carousel-prev { left: 4px; }
.carousel-next { right: 4px; }
.carousel-dots { display: flex; justify-content: center; gap: 4px; }
.carousel-dots button { width: 14px; height: 14px; padding: 3px; border: 0; background: transparent; cursor: pointer; }
.carousel-dots button::before { content: ""; display: block; width: 8px; height: 8px; border-radius: 50%; background: #000; opacity: .2; }
.carousel-dots button[aria-current="true"]::before { opacity: 1; }
.carousel--overlay-dots .carousel-dots { position: absolute; bottom: 10px; left: 0; right: 0; }
.carousel--overlay-dots .carousel-dots button::before { background: #fff; opacity: .5; }
.carousel--overlay-dots .carousel-dots button[aria-current="true"]::before { background: var(--light); opacity: 1; }
.carousel--below-dots .carousel-dots { margin-top: 10px; }
.carousel--below-dots .carousel-dots button[aria-current="true"]::before { background: var(--blue); }

/* Home: products sold slider */
.sold-slider { box-shadow: var(--shadow-image); }
.sold-slider .carousel-slide { height: 400px; background-position: center; background-size: cover; }

/* Testimonials */
.testimonials { --per-view: 3; padding: 0 40px; }
.testimonials .carousel-slide { padding: 0 5px; }
.testimonial { height: 100%; padding: 20px; background: var(--light); text-align: center; }
.testimonial blockquote { margin: 0 0 20px; font-family: var(--font-body); font-size: 18px; font-style: italic; line-height: 1.5; }
.testimonial .name { display: block; font-size: 14px; font-weight: 700; }
.testimonial .title { display: block; font-family: var(--font-brand); font-size: 14px; font-weight: 600; font-style: italic; color: var(--blue); }
.testimonials .carousel-btn { color: #bbb; }
.testimonials .carousel-btn svg { filter: none; }
.testimonials .carousel-prev { left: 0; }
.testimonials .carousel-next { right: 0; }
.testimonials .carousel-dots { margin-top: 20px; }

/* ---------- Product listing ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 15px; }
.product-card { display: flex; flex-direction: column; }
.product-card .thumb { display: block; position: relative; padding-bottom: 70%; overflow: hidden; }
.product-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 30px; }
.product-card h3 { margin: 8px 0 15px; font-family: var(--font-system); font-size: 22px; font-weight: 500; line-height: 1.2; text-transform: none; }
.product-card h3 a { color: var(--text); }
.product-card .btn { padding: 15px; font-size: 15px; }

/* ---------- Product detail ---------- */
.product-media img { display: block; width: 100%; }
.product-gallery .carousel-slide { height: var(--gallery-h, 457px); }
.product-gallery .carousel-slide a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.product-gallery .carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: 28px; line-height: 1; }
.product-info .prose ul { padding-left: 2.25em; }

.tabs { margin-top: 20px; padding: 0 10px; }
.tab-list { display: flex; flex-wrap: wrap; }
.tab-list button { padding: 20px 25px; border: 0; background: transparent; color: var(--text); font-family: var(--font-system); font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer; }
.tab-list button[aria-selected="true"] { background: #fff; }
.tab-panel { padding: 20px; background: #fff; box-shadow: 5px 19px 24px rgba(0, 0, 0, .11); font-family: var(--font-system); }
.tab-panel > :last-child { margin-bottom: 0; }
.tab-panel h1, .tab-panel h2, .tab-panel h3, .tab-panel h4, .tab-panel h5, .tab-panel h6 { margin: 0 0 .5em; font-family: inherit; font-size: 20px; font-weight: 500; line-height: 1.2; text-transform: none; }
.tab-panel table { border-collapse: collapse; width: 100%; margin-bottom: 1em; }
.tab-panel td, .tab-panel th { padding: 8px; border: 1px solid rgba(128, 128, 128, .5); text-align: left; vertical-align: top; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .9); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 85vh; width: auto; height: auto; }
.lightbox button { position: absolute; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lightbox button svg { width: 28px; height: 28px; fill: currentColor; }
.lightbox-close { top: 10px; right: 10px; }
.lightbox-prev { left: 10px; top: 50%; margin-top: -25px; }
.lightbox-next { right: 10px; top: 50%; margin-top: -25px; }
.lightbox-count { position: absolute; bottom: 15px; left: 0; right: 0; color: #fff; font-size: 14px; text-align: center; opacity: .8; }

/* ---------- Contact block + forms ---------- */
.contact-section { padding: 75px 0; background: url("../images/contact-us-background.jpg") center bottom / cover no-repeat; text-align: center; }
.contact-section .container { max-width: 800px; }
.contact-section .intro { font-family: var(--font-body); }
.contact-email { padding: 0 10px 25px; }
.contact-email img { display: block; width: 60px; height: 60px; margin: 0 auto 5px; }
.contact-email a { font-family: var(--font-brand); font-size: 16px; font-weight: 700; color: var(--blue); overflow-wrap: anywhere; }
.contact-section .form-card { margin: 0 0 20px; }
.contact-section .brand-mark img { width: 359px; }

.form-card { padding: 30px; background: #fff; box-shadow: var(--shadow-card); text-align: left; }
.lead-form { display: flex; flex-wrap: wrap; margin: 0 -5px; }
.lead-form .field { flex: 0 0 100%; padding: 0 5px; margin-bottom: 10px; }
.lead-form .field--half { flex-basis: 50%; }
.lead-form input, .lead-form textarea { display: block; width: 100%; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 3px; background: var(--light); color: #1f2124; font-size: 15px; line-height: 1.4; }
.lead-form textarea { resize: vertical; }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: #6d7882; }
.lead-form input:focus, .lead-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; }
.lead-form .hp { position: absolute; left: -9999px; }
.lead-form .actions { flex: 0 0 100%; padding: 0 5px; }
.lead-form button[type="submit"] { width: 100%; min-height: 40px; padding: 12px 24px; font-size: 15px; }
.lead-form button[disabled] { opacity: .7; cursor: wait; }
.form-status { flex: 0 0 100%; margin: 10px 5px 0; padding: 10px 14px; font-size: 15px; }
.form-status[hidden] { display: none; }
.form-status.is-success { background: #e7f6ec; color: #17602f; }
.form-status.is-error { background: #fdecea; color: #8a1f17; }

/* Home: "find something" split with form */
.request .split > .form-col { flex: 0 1 370px; margin-right: 200px; padding: 30px; }
.request .split > .text-col { padding: 30px 100px 30px 30px; }

/* ---------- Promo bar (home) ---------- */
.promo-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: center; min-height: 80px; padding: 0 5%; background: #fff; box-shadow: 0 -2px 12px rgba(0, 0, 0, .12); transform: translateY(110%); transition: transform .8s ease; }
.promo-bar.is-visible { transform: none; }
.promo-bar[hidden] { display: none; }
.promo-bar p { flex: 0 0 70%; margin: 0; font-family: var(--font-body); font-size: 30px; line-height: 1; color: var(--navy); }
.promo-bar .promo-action { flex: 0 0 25%; text-align: center; }
.promo-close { position: absolute; top: 50%; right: 10px; display: flex; width: 34px; height: 34px; margin-top: -17px; padding: 5px; border: 0; background: transparent; color: #000; cursor: pointer; }
.promo-close svg { width: 24px; height: 24px; fill: currentColor; }

/* ---------- Plain content pages ---------- */
.page-content { padding: 40px 0 60px; }
.page-content .container { max-width: 1140px; }
.page-content h1, .page-content h2, .page-content h3 { line-height: 1.2; text-transform: none; }
.sitemap-list { font-family: var(--font-body); }
.sitemap-list li { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { padding: 20px 0; background: var(--blue); color: #fff; text-align: center; }
.site-footer .footer-logo img { width: 168px; height: auto; }
.footer-logo { display: inline-block; margin-bottom: 20px; }
.footer-nav { margin-bottom: 20px; }
.footer-nav ul { justify-content: center; }
.footer-meta { font-size: 14px; line-height: 1.5; }
.footer-meta p { margin: 0 0 .9em; }
.footer-meta a { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .home-hero h1 { font-size: 54px; }
  .categories { grid-template-columns: repeat(3, 1fr); }
  .testimonials { --per-view: 2; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .request .split > .form-col { margin-right: 0; flex-basis: 50%; }
  .request .split > .text-col, .split > .sold-text { padding-right: 30px; }
}

@media (max-width: 767px) {
  h1 { font-size: 30px; }
  h2 { font-size: 21px; }
  .section, .contact-section { padding: 50px 0; }
  .site-logo img { width: 160px; }
  .home-hero { min-height: 0; padding: 120px 0; }
  .home-hero h1 { font-size: 44px; }
  .home-hero .lead { font-size: 21px; line-height: 1.2; }
  .split { flex-direction: column; align-items: stretch; }
  .split > *, .split > .sold-text, .request .split > .text-col, .request .split > .form-col { flex-basis: auto; width: 100%; margin: 0; padding: 15px 0; }
  .request .split > .form-col { padding: 20px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .categories { grid-template-columns: repeat(2, 1fr); }
  .category { margin: 5px; }
  .category h4 { font-size: 17px; }
  .testimonials { --per-view: 1; padding: 0 30px; }
  .testimonial blockquote { font-size: 16px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-gallery .carousel-slide { height: min(var(--gallery-h, 457px), 400px); }
  .product-info h1 { font-size: 24px; }
  .tabs { padding: 0; }
  .tab-list { flex-wrap: nowrap; }
  .tab-list button { flex: 0 1 auto; padding: 14px 12px; font-size: 14px; line-height: 1.2; }
  .tab-panel { padding: 16px; }
  .tab-panel table { display: block; overflow-x: auto; }
  .contact-email { padding: 0 0 25px; }
  .contact-email a { font-size: clamp(13px, 4vw, 16px); }
  .lead-form input, .lead-form textarea { font-size: 16px; } /* stops iOS zooming in on focus */
  .sold-slider .carousel-slide { height: 300px; }
  .lead-form .field--half { flex-basis: 100%; }
  .form-card { padding: 20px; }
  .contact-section .brand-mark img { width: 260px; }
  .promo-bar { flex-wrap: wrap; justify-content: center; padding: 14px 44px 10px; }
  .promo-bar p { flex-basis: 100%; font-size: 15px; text-align: center; }
  .promo-bar .promo-action { flex-basis: 100%; padding-top: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track, .promo-bar { transition: none; }
}
