/*
Theme Name: Specialty Trenchless
Theme URI: https://primarydm.com
Author: Adrian Chromenko
Author URI: https://primarydm.com
Description: A modern, clean WordPress theme for Specialty Trenchless.
Version: 1.0
*/

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #ffffff;
  color: #1e1e1e;
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #111;
}

h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }

p {
  margin-bottom: 16px;
  font-size: 17px;
  color: #333;
}

a {
  color: #4d8d2e;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #3b6f23;
  text-decoration: underline;
}

/* Layout container */
.st-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* CTA Button */
.st-cta-btn {
  padding: 12px 32px;
  background: #4d8d2e;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
  display: inline-block;
}

.st-cta-btn:hover {
  background: #3b6f23;
  color: white;
}

/* === Navbar === */
.st-navbar {
  background: #ffffff;
  border-bottom: 0 solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0px 0px 30px #0000001f;
}

.st-navbar.shrink {
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.st-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  transition: padding 0.3s ease;
}

.st-navbar.shrink .st-navbar-inner {
  padding: 6px 0;
}

.st-logo img {
  max-height: 44px;
  transition: max-height 0.3s ease;
}

.st-navbar.shrink .st-logo img {
  max-height: 36px;
}

.st-navigation {
  display: flex;
}

.st-menu {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.st-menu li {
  display: inline-block;
}

.st-menu a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  font-size: 15px;
  padding: 4px 8px;
  transition: color 0.3s;
}

.st-menu a:hover {
  color: #4d8d2e;
}

/* Mobile Menu */
.st-menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .st-navigation {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  .st-navigation.active {
    display: flex;
  }
  .st-menu {
    flex-direction: column;
    gap: 16px;
    padding: 0;
    margin: 0;
  }
  .st-menu li {
    display: block;
  }
  .st-menu a {
    display: block;
    padding: 12px 16px;
  }
  .st-menu-toggle {
    display: block;
  }
}

/* === Hero Slider === */
.hero-slider-wrapper {
  overflow: hidden;
  position: relative;
}

#hero-slider {
  display: flex;
  transition: transform 0.5s ease;
}

.hero-slide {
  min-width: 100vw;
  padding: 96px 16px;
  box-sizing: border-box;
}

.hero-slide:nth-child(odd) {
  background: #f9fcf7;
}

.hero-slide:nth-child(even) {
  background: #ffffff;
}

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #4d8d2e;
  color: white;
  border: none;
  padding: 12px 16px;
  font-size: 24px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 2;
}

.left-arrow {
  left: 16px;
}

.right-arrow {
  right: 16px;
}

/* Slider Dots */
.slider-dots {
  position: absolute; 
  bottom: 20px; 
  left: 0; 
  right: 0; 
  display: flex; 
  justify-content: center; 
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: white;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #4d8d2e;
  border-color: #4d8d2e;
}

@media (max-width: 768px) {
  .slider-dots {
    bottom: 10px;
  }
  .dot {
    width: 10px;
    height: 10px;
  }
}

.hero-image-wrapper {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.ken-burns-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 7px;
  transform: scale(1);
  animation: kenburns 20s ease-in-out infinite alternate;
}

@keyframes kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

/* Modified Hero Separator Styles */
.hero-separator {
  width: 120px;
  height: 6px;
  background: linear-gradient(90deg, #4d8d2e 0%, #6fa84d 100%);
  border-radius: 5px;
}

.hero-separator.center {
  display: inline-block;
  margin: 8px auto 24px;
}

.hero-separator.left {
  display: inline-block;
  margin: 8px 0 24px;
}

/* Text Alignment Helpers */
.text-left { text-align: left; }
.text-center { text-align: center; }

/* ==== Custom CSS for Featured Products ==== */
.featured-products ul.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch; /* Ensure all boxes are same height */
  gap: 16px;
  list-style: none;
  padding-left: 0;
}

.featured-products ul.products li.product {
  flex: 1 1 calc(10rem);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: #f9fcf7;
  border: none;
  border-radius: 5px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  margin: 0;
}

.featured-products ul.products li.product:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Product Image Container */
.product-image-container {
  height: 250px; /* Fixed height for consistency */
  display: flex;
  align-items: center; /* Center image vertically */
  justify-content: center;
  overflow: hidden;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Product Info: Use flex layout for natural spacing */
.featured-products li.product .product-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.featured-products li.product .product-title {
  min-height: 40px; /* Minimal height to avoid collapse */
  margin-bottom: 8px;
  overflow: hidden;
}

.featured-products li.product .product-footer {
  margin-top: 8px;
}

/* Product Buttons: Two buttons aligned on one line with fixed pixel values */
.product-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
  margin-top: 8px;
}

/* Ensure buttons inside the product-buttons container display inline-block */
.product-buttons > a,
.product-buttons > form,
.product-buttons > button {
  display: inline-block;
  margin: 0;
}

/* Apply fixed pixel styling to both buttons */
.featured-products ul.products li.product .product-buttons a.st-cta-btn,
.featured-products ul.products li.product .product-buttons a.button,
.featured-products ul.products li.product .product-buttons button {
  font-size: 14px !important;
  padding: 6px 12px !important;
  white-space: nowrap;
  background: #4d8d2e !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 5px !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  margin-top: 0 !important;
}

/* Footer Main Container */
#site-footer {
  background: #222;
  color: #fff;
  padding: 64px 16px;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-column {
  flex: 1 1 250px;
  margin: 16px;
}

.footer-column h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #fff;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: #6fa84d;
}

.footer-bottom {
  border-top: 1px solid #444;
  margin-top: 32px;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icon i {
  font-size: 19px;
  transition: color 0.3s;
}

.social-icon:hover i {
  color: #6fa84d;
}

@media (max-width: 768px) {
  .footer-container, 
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom {
    gap: 16px;
  }
}

.footer-bottom p, .footer-container p { 
  color: white;
}



.product-category-box {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #535353;
  color: #ffffff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 3px;
  z-index: 2;
  border: 1px solid white;
}

/* Override anchor color within the product category box */
.product-category-box a {
  color: #ffffff !important;
  text-decoration: none;
}

/* Force consistent dimensions and alignment for product buttons */
.product-buttons a,
.product-buttons button,
.product-buttons form button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
  padding: 0 !important; /* reset padding to prevent internal differences */
  height: 32px !important;
  line-height: 32px !important;
  width: auto !important;  /* let width adjust, but height remains fixed */
  background: #4d8d2e !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 5px !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

/* Apply consistent padding to all buttons */
.product-buttons a.st-cta-btn,
.product-buttons a.button,
.product-buttons button,
.product-buttons form button {
  padding: 6px 12px !important;
}

.product-buttons {margin-left:auto;
margin-right:auto;}

/* Add these styles to your style.css file */

/* Right nav container for cart icon and mobile menu toggle */
.st-right-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Cart Icon Styling */
.st-cart-icon {
  position: relative;
  font-size: 18px;
  color: #4d8d2e;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 4px;
}

.st-cart-icon:hover {
  color: #3b6f23;
  text-decoration: none;
}

.st-cart-icon .cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #4d8d2e;
  color: white;
  font-size: 10px;
  font-weight: bold;
  height: 16px;
  width: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Hide count if cart is empty */
.st-cart-icon .cart-count:empty,
.st-cart-icon .cart-count.empty {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .st-right-nav {
    order: 2; /* Ensure it stays on the right side */
  }
  
  .st-logo {
    order: 1; /* Ensure logo stays on the left */
  }
  
  .st-navigation {
    order: 3; /* Menu below in mobile view */
  }
}

/* === Product Hero === */
.product-hero {
  padding: 4rem 1rem;
  background: #ffffff;
}
.product-hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4rem;
}
.product-hero__image {
  flex: 0 0 300px;
}
.product-hero__info {
  flex: 1 1 400px;
  min-width: 300px;
}
.product-hero .hero-image-wrapper {
  border: 1px solid #ccc;
  overflow: hidden;
  cursor: zoom-in;
  background: #fff;
  width: 100%;
  aspect-ratio: 1;
}
.product-hero .hero-image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}
.product-hero .hero-image-wrapper:hover img {
  transform: scale(1.1);
}

/* === Additional Details === */
.product-details-section {
  padding: 4rem 1rem;
  background: #f9fcf7;
}
.product-details-section .product-details {
  font-size: 1.15rem;
  line-height: 1.8;
}

/* === Related Products === */
.related-products {
  padding: 4rem 1rem;
  background: #ffffff;
}
.related-products .products {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-products .products li.product {
  border: 1px solid #ccc;
  padding: 1rem;
  width: calc((100% - 2rem) / 3);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.related-products .products li.product img {
  display: none;
}
.related-products .products li.product .woocommerce-loop-product__title {
  margin: 0.5rem 0;
  min-height: 3em;
}
.related-products .products li.product .price {
  margin: 0.5rem 0;
  min-height: 1.5em;
}
.related-products .products li.product .button {
  margin-top: auto;
}

/* == Woo variation form styling to match theme == */
.st-variations .variations{
  display:flex;
  flex-direction:column;
  gap:1rem;
  margin:1rem 0;
}
.st-variations .variations label{
  font-weight:500;
  margin-bottom:4px;
}
.st-variations .variations select{
  width:100%;
  max-width:320px;
  padding:10px 14px;
  border:1px solid #ccc;
  border-radius:5px;
  font-size:16px;
  background:#fff;
  transition:border-color .2s ease;
}
.st-variations .variations select:focus{
  outline:none;
  border-color:#4d8d2e;
}
.st-variations .single_variation_wrap{margin-top:1rem}
.st-variations .woocommerce-variation-price{
  font-size:1.5rem;
  font-weight:bold;
  margin-bottom:.5rem;
}
.st-variations .woocommerce-variation-availability{margin-bottom:.75rem}
/* “Add to cart” button */
.st-variations .single_add_to_cart_button.button{
  background:#4d8d2e;
  color:#fff;
  border:none;
  padding:12px 32px;
  border-radius:5px;
  font-weight:500;
  transition:background .3s ease;
}
.st-variations .single_add_to_cart_button.button:hover{
  background:#3b6f23;
  color:#fff;
}

/* === Variation form: stacked rows & nice controls === */
.st-variations .variations{
  display:flex;
  flex-direction:column;
  gap:1rem;
  margin:1rem 0;
}
.st-variations .variations tr{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.st-variations .variations td{border:none;padding:0}
.st-variations .variations label{font-weight:500;margin-bottom:4px}
.st-variations .variations select{
  width:100%;
  max-width:320px;
  padding:10px 14px;
  border:1px solid #ccc;
  border-radius:5px;
  font-size:16px;
  background:#fff;
  transition:border-color .2s;
}
.st-variations .variations select:focus{border-color:#4d8d2e;outline:none}

/* Buttons side-by-side inside variable products */
.st-variations .woocommerce-variation-add-to-cart{
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
  align-items:center;
}
/* Woo’s button → theme look */
.st-variations .single_add_to_cart_button{
  background:#4d8d2e;
  color:#fff;
  border:none;
  padding:12px 32px;
  border-radius:5px;
  font-weight:500;
  transition:background .3s;
}
.st-variations .single_add_to_cart_button:hover{background:#3b6f23;color:#fff}

/* Bulk button inside variable form */
.bulk-order-button{
  background:#2c576a;
  color:#fff;
  padding:12px 32px;
  border-radius:5px;
  font-weight:500;
  transition:background .3s;
}
.bulk-order-button:hover{background:#244a5a;color:#fff}

/* === Woo buttons: match theme & align bulk link === */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .single_add_to_cart_button {
  background:#4d8d2e!important;
  color:#fff!important;
  border:none!important;
  border-radius:5px!important;
  padding:12px 32px!important;
  font-weight:500!important;
  transition:background .25s;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .single_add_to_cart_button:hover {
  background:#3b6f23!important;
  color:#fff!important;
}

/* === Variation form tidy-up === */
.st-variations .variations{
  display:flex;flex-direction:column;gap:1rem;margin:1rem 0;
}
.st-variations .variations tr{display:flex;flex-direction:column;align-items:flex-start}
.st-variations .variations td{border:none;padding:0}
.st-variations .variations label{font-weight:500;margin-bottom:4px}
.st-variations .variations select{
  width:100%;max-width:320px;padding:10px 14px;border:1px solid #ccc;border-radius:5px;
  font-size:16px;background:#fff;transition:border-color .2s;
}
.st-variations .variations select:focus{border-color:#4d8d2e;outline:none}

/* === Price + availability spacing === */
.st-variations .woocommerce-variation-price{font-size:1.5rem;font-weight:600;margin:.75rem 0}
.st-variations .woocommerce-variation-availability{margin-bottom:.75rem}

/* === Put Add-to-Cart & Bulk button on same line === */
.st-variations .woocommerce-variation-add-to-cart{display:flex;gap:1rem;flex-wrap:wrap;align-items:center}
.bulk-order-button{display:inline-flex;background:#2c576a;color:#fff;border-radius:5px;padding:12px 32px;font-weight:500}
.bulk-order-button:hover{background:#244a5a;color:#fff}

/* Same flex for simple-product group */
.product-buttons{display:flex;gap:1rem;flex-wrap:wrap;align-items:center}

/* ───────── SINGLE-PRODUCT PAGE ONLY ───────── */
body.single-product {

	/* 1) Make Add-to-Cart & Bulk buttons identical */
	.single_add_to_cart_button,        /* Woo button  */
	.bulk-order-button,                /* Bulk <a>    */
	.product-buttons .st-cta-btn {     /* simple row  */
		display:inline-flex !important;
		align-items:center !important;
		justify-content:center !important;
		font-size:16px !important;
		line-height:1 !important;
		padding:12px 32px !important;
		min-height:48px !important;
		box-sizing:border-box !important;
	}

	/* 2) Match quantity box height + style */
	.quantity input.qty {
		height:48px;
		min-height:48px;
		width:80px;           /* adjust if you need wider */
		padding:0 12px;
		font-size:16px;
		line-height:1;
		border:1px solid #ccc;
		border-radius:5px;
		margin-right:12px;
		box-sizing:border-box;
	}
	.quantity input.qty:focus {
		border-color:#4d8d2e;
		outline:none;
	}
}
/* ──────────────────────────────────────────── */

/* Gravity Forms custom styling to match the existing contact form */

/* Container styling */
.st-gravity-form {
  margin-top: 2rem;
}

/* Form fields - general */
.st-gravity-form .gform_wrapper input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]):not([type=image]):not([type=file]),
.st-gravity-form .gform_wrapper textarea,
.st-gravity-form .gform_wrapper select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  line-height: 1.5;
  font-family: inherit;
}

/* Form fields - focus state */
.st-gravity-form .gform_wrapper input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]):not([type=image]):not([type=file]):focus,
.st-gravity-form .gform_wrapper textarea:focus,
.st-gravity-form .gform_wrapper select:focus {
  border-color: #4d8d2e;
  outline: none;
}

/* Labels */
.st-gravity-form .gform_wrapper .gfield_label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
  font-size: 16px;
}

/* Field containers */
.st-gravity-form .gform_wrapper li.gfield {
  margin-bottom: 1.5rem;
  padding: 0;
}

/* Submit button */
.st-gravity-form .gform_wrapper .gform_footer input.button,
.st-gravity-form .gform_wrapper .gform_page_footer input.button {
  padding: 12px 32px;
  background: #4d8d2e;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

/* Submit button hover */
.st-gravity-form .gform_wrapper .gform_footer input.button:hover,
.st-gravity-form .gform_wrapper .gform_page_footer input.button:hover {
  background: #3b6f23;
  color: white;
}

/* Submit button container */
.st-gravity-form .gform_wrapper .gform_footer {
  padding: 0;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Required field indicator */
.st-gravity-form .gform_wrapper .gfield_required {
  color: #4d8d2e;
  margin-left: 4px;
}

/* Textarea height */
.st-gravity-form .gform_wrapper textarea {
  height: 150px;
  min-height: 150px;
}

/* Field description */
.st-gravity-form .gform_wrapper .gfield_description {
  padding-top: 5px;
  font-size: 14px;
  color: #666;
}

/* Error messages */
.st-gravity-form .gform_wrapper div.validation_error {
  color: #d32f2f;
  border-top: 2px solid #d32f2f;
  border-bottom: 2px solid #d32f2f;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.st-gravity-form .gform_wrapper li.gfield.gfield_error {
  background-color: rgba(255, 223, 224, 0.25);
  border-top: 1px solid #d32f2f;
  border-bottom: 1px solid #d32f2f;
  padding: 0.75rem;
  border-radius: 5px;
}

.st-gravity-form .gform_wrapper .validation_message {
  color: #d32f2f;
  font-weight: 500;
  padding-top: 0.5rem;
}

/* For Gravity Forms v2.5+ */
.st-gravity-form .gform_wrapper.gravity-theme .gfield {
  margin-bottom: 1.5rem;
}

.st-gravity-form .gform_wrapper.gravity-theme .gfield_label {
  margin-bottom: 0.5rem;
}

.st-gravity-form .gform_wrapper.gravity-theme input,
.st-gravity-form .gform_wrapper.gravity-theme select,
.st-gravity-form .gform_wrapper.gravity-theme textarea {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 100%;
}

.st-gravity-form .gform_wrapper.gravity-theme .gform_footer {
  margin-top: 1rem;
}

.st-gravity-form .gform_wrapper.gravity-theme .gform_footer input.button {
  padding: 12px 32px;
  background: #4d8d2e;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.st-gravity-form input[type='submit'] {

  background-color: #4d8d2e!important;
}

.stc-add-to-cart:hover {color:white;}