/* ----------------------------------------------------------------
  Custom CSS — Advanced Mulching Solutions
  Updated: 2026
-----------------------------------------------------------------*/

/* ---- CSS Variables ---- */
:root {
  --ams-navy: #132e53;
  --ams-tan: #cdb897;
  --ams-green: #3a6b35;
  --ams-green-hover: #4e8f47;
  --ams-light-bg: #f7f6f2;
  --ams-text: #333;
}

/* ============================================================
   MAX-WIDTH CONTAINER
   Constrain the site to 1280px. Body matches the wrapper
   background so no gutters are visible on wide monitors.
============================================================ */
body {
  background-color: #fff;
}
body #wrapper,
body.stretched #wrapper {
  max-width: 1440px !important;
  margin: 0 auto !important;
}

/* ---- Base icons / shared ---- */
.fbox-icon i {
  background-color: var(--ams-tan);
  text-shadow: 1px 1px 4px #000;
}
.fbox-content a {
  color: var(--ams-tan);
}

/* ---- Sticky header — stays within the 1280px column ---- */
/* position:fixed escapes #wrapper, so we re-centre it manually */
#header-wrap {
  max-width: 1440px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
}

/* ---- Side Panel ---- */
.side-panel-wrap a {
  color: var(--ams-tan);
}
.side-panel-wrap a:hover {
  color: #fff;
}

/* ---- HR dividers ---- */
hr {
  min-width: 0;
  max-width: 700px;
  margin: 0 auto;
  border: none;
  height: 3px !important;
  background: linear-gradient(
    to right,
    transparent,
    var(--ams-tan),
    transparent
  );
}

/* ---- Headings ---- */
h2 {
  color: var(--ams-navy) !important;
}

.section-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78em;
  color: var(--ams-tan);
  font-weight: 700;
  margin-bottom: 10px;
}

/* ---- Body copy ---- */
p {
  font-size: 1.05em;
  line-height: 1.85;
}

/* ---- Layout ---- */
.page-section {
  padding: 80px 40px;
}
.page-section.bg-light {
  background-color: var(--ams-light-bg);
}
/* Contact section breaks out to full viewport width */
#section-contact {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}

/* ============================================================
   HERO — Video Background
============================================================ */

/* Fallback image lives on the section itself */
#slider {
  position: relative;
  width: auto;
  background-image: url("./one-page/images/ams/hero.jpg");
  background-size: cover;
  background-position: center center;
  overflow: hidden;
  margin: 0 clamp(8px, 1.5vw, 20px);
  border-radius: 12px;
}

/* slider-inner must be transparent so the video behind it shows through */
#slider .slider-inner {
  background-image: none !important;
  z-index: 3;
}

/* Override theme z-index:-1 so video-wrap is actually visible */
#slider .video-wrap {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  overflow: hidden;
}

/* Fill the container, maintain aspect ratio via object-fit */
/* Also override Canvas theme's opacity:0 hide — it requires a JS plugin
   to add .has-plugin-html5video to <body>, which doesn't fire reliably on
   iOS Safari. Our hero video manages its own visibility. */
#slider .video-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 1 !important;
}

/* Overlay above video, below content */
#slider .video-wrap .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* ============================================================
   HERO
============================================================ */

/* Bottom-left caption container */
#slider .slider-inner {
  background-image: none !important;
  z-index: 3;
}
#slider .slider-inner .container {
  position: static;
}
.ams-hero-caption {
  position: absolute;
  bottom: 60px;
  left: 40px;
  z-index: 4;
  max-width: 620px;
}
.ams-hero-caption h1 {
  color: #fff !important;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 28px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  letter-spacing: -0.5px;
}
.ams-hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* Social icons — bottom right of hero */
.ams-hero-social {
  position: absolute;
  bottom: 60px;
  right: 40px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ams-hero-social a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2em;
  text-decoration: none;
  transition:
    color 0.2s,
    transform 0.2s;
  line-height: 1;
}
.ams-hero-social a:hover {
  color: #fff;
  transform: scale(1.15);
}
.ams-hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  font-size: 1.4em;
  font-weight: 700;
  text-decoration: none !important;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
  transition: opacity 0.2s;
}
.ams-hero-phone:hover {
  opacity: 0.85;
}
.ams-hero-phone i {
  color: var(--ams-tan);
  font-size: 1.1em;
}

.ams-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background-color: var(--ams-green);
  color: #fff !important;
  padding: 15px 36px;
  border-radius: 50px;
  font-size: 0.95em;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  transition:
    background 0.25s,
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.4);
}
.ams-hero-cta:hover {
  background-color: var(--ams-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 7px 30px rgba(0, 0, 0, 0.5);
  color: #fff !important;
}

/* ============================================================
   ABOUT — Benefits Grid
============================================================ */
.ams-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
  justify-content: center;
}
.ams-benefit-card {
  flex: 1 1 220px;
  max-width: 280px;
  background: #fff;
  border: 1px solid #ece9e2;
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.ams-benefit-card:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}
.ams-benefit-icon {
  width: 68px;
  height: 68px;
  background: var(--ams-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.ams-benefit-icon i {
  font-size: 26px;
  color: var(--ams-tan);
  background: none !important;
  text-shadow: none;
}
.ams-benefit-card h4 {
  color: var(--ams-navy);
  margin-bottom: 10px;
  font-size: 0.95em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ams-benefit-card p {
  font-size: 0.88em !important;
  color: #666;
  margin: 0;
  line-height: 1.65;
}

/* ============================================================
   SERVICES — Card Grid
============================================================ */
.ams-services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 44px;
  justify-content: center;
}
.ams-service-card {
  flex: 1 1 180px;
  max-width: 240px;
  background: var(--ams-navy);
  border-radius: 8px;
  padding: 28px 20px 24px;
  text-align: center;
  color: #fff;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.14);
}
.ams-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 9px 30px rgba(0, 0, 0, 0.22);
}
.ams-service-card .card-icon {
  font-size: 2.4em;
  margin-bottom: 14px;
  display: block;
  line-height: 1;
  color: var(--ams-tan);
}
.ams-service-card .card-icon i {
  line-height: 1;
}
.ams-service-card h4 {
  color: var(--ams-tan) !important;
  font-size: 0.88em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.ams-service-card p {
  font-size: 0.82em !important;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  line-height: 1.55;
}
.ams-service-card .badge-ipema {
  display: inline-block;
  background: var(--ams-tan);
  color: var(--ams-navy);
  font-size: 0.68em;
  padding: 5px 12px;
  border-radius: 4px;
  letter-spacing: 0.8px;
  font-weight: 800;
  margin-top: 11px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition:
    background 0.2s,
    transform 0.2s;
}
.ams-service-card .badge-ipema:hover {
  background: #e0caa8;
  transform: translateY(-1px);
}
.ams-service-card .badge-ipema a {
  color: var(--ams-navy) !important;
  text-decoration: none !important;
  font-weight: 800;
}

/* ============================================================
   SUBCONTRACTOR — Value Props
============================================================ */
.ams-sub-props {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 40px;
  justify-content: center;
}
.ams-sub-prop {
  flex: 1 1 220px;
  max-width: 280px;
  border-left: 4px solid var(--ams-tan);
  padding: 16px 20px;
  background: #fff;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.ams-sub-prop h5 {
  color: var(--ams-navy);
  font-weight: 700;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.ams-sub-prop p {
  font-size: 0.84em !important;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   CONTACT — Native Form
============================================================ */

/* Dark overlay on the parallax background so text is legible */
#section-contact .section.parallax {
  position: relative;
}
#section-contact .section.parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 38, 0.72);
  z-index: 0;
}
#section-contact .ams-contact-wrap {
  position: relative;
  z-index: 1;
}

.ams-contact-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
  justify-content: center;
}

/* Info column */
.ams-contact-info {
  flex: 1 1 280px;
  max-width: 340px;
}
.ams-contact-info h3 {
  color: #fff;
  font-size: 1.55em;
  margin-bottom: 8px;
}
.ams-contact-info .tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95em !important;
  margin-bottom: 32px;
  line-height: 1.6;
}
.ams-contact-info .info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.95);
}
.ams-contact-info .info-item i {
  font-size: 1.3em;
  color: var(--ams-tan);
  margin-top: 3px;
  flex-shrink: 0;
}
.ams-contact-info .info-item a {
  color: var(--ams-tan);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 1em;
}
.ams-contact-info .info-item a:hover {
  color: #fff;
}
.ams-contact-info .info-item p {
  margin: 0;
  font-size: 0.9em !important;
  line-height: 1.6;
}
.ams-contact-social {
  margin-top: 28px;
}
.ams-contact-social a {
  margin-right: 6px;
}

/* Form column */
.ams-contact-form-wrap {
  flex: 1 1 340px;
  max-width: 520px;
}
.ams-contact-form {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 10px;
  padding: 36px 40px;
  box-shadow: 0 8px 50px rgba(0, 0, 0, 0.35);
}
.ams-contact-form h3 {
  color: var(--ams-navy);
  font-size: 1.3em;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--ams-tan);
  padding-bottom: 14px;
}
.ams-contact-form .form-row {
  display: flex;
  gap: 16px;
}
.ams-contact-form .form-row .form-group {
  flex: 1;
}
.ams-contact-form .form-group {
  margin-bottom: 18px;
}
.ams-contact-form label {
  display: block;
  font-size: 0.78em;
  font-weight: 700;
  color: var(--ams-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.ams-contact-form input,
.ams-contact-form select,
.ams-contact-form textarea {
  width: 100%;
  border: 1.5px solid #ddd;
  border-radius: 5px;
  padding: 11px 14px;
  font-size: 0.97em;
  font-family: inherit;
  color: var(--ams-text);
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
}
.ams-contact-form input:focus,
.ams-contact-form select:focus,
.ams-contact-form textarea:focus {
  border-color: var(--ams-navy);
  box-shadow: 0 0 0 3px rgba(19, 46, 83, 0.1);
}
.ams-contact-form textarea {
  resize: vertical;
  min-height: 110px;
}
.ams-form-submit {
  width: 100%;
  background: var(--ams-green);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 14px 24px;
  font-size: 1em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
  margin-top: 4px;
}
.ams-form-submit:hover {
  background: var(--ams-green-hover);
  transform: translateY(-1px);
}
.ams-form-note {
  font-size: 0.73em !important;
  color: #999;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 0;
}
.ams-form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.ams-form-success .success-icon {
  font-size: 3em;
  color: var(--ams-green);
  margin-bottom: 14px;
  display: block;
}
.ams-form-success h4 {
  color: var(--ams-navy);
  font-size: 1.3em;
  margin-bottom: 10px;
}
.ams-form-success p {
  color: #666;
  font-size: 0.95em !important;
}

/* ============================================================
   FOOTER
============================================================ */
#footer {
  background-color: var(--ams-navy) !important;
  /* full-bleed: break out of the 1440px wrapper */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}
#footer .ams-footer-contact {
  font-size: 0.92em;
  margin: 6px 0;
  opacity: 0.8;
}
#footer .ams-footer-contact a {
  color: var(--ams-tan);
  transition: color 0.2s;
}
#footer .ams-footer-contact a:hover {
  color: #fff;
}
#footer .ams-copyright {
  font-size: 0.78em;
  opacity: 0.45;
  margin-top: 12px;
  margin-bottom: 0;
}

/* ============================================================
   FLOATING CTA
============================================================ */
.ams-float-cta {
  position: fixed;
  bottom: 28px;
  right: 76px;
  z-index: 199;
}
.ams-float-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ams-green);
  color: #fff !important;
  padding: 13px 22px;
  border-radius: 50px;
  font-size: 0.88em;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none !important;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.32);
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  white-space: nowrap;
}
.ams-float-btn:hover {
  background: var(--ams-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 7px 30px rgba(0, 0, 0, 0.42);
  color: #fff !important;
}
.ams-float-btn i {
  font-size: 1.1em;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 767px) {
  .page-section {
    padding: 60px 20px;
  }

  .ams-float-cta {
    bottom: 14px;
    right: 14px;
  }
  .ams-float-btn span {
    display: none;
  }
  .ams-float-btn {
    padding: 15px;
    border-radius: 50%;
    gap: 0;
  }

  .ams-contact-form {
    padding: 24px 18px;
  }
  .ams-contact-form .form-row {
    flex-direction: column;
    gap: 0;
  }

  hr {
    min-width: 0;
  }
}

/* Azure Images Feed — horizontal scroll thumbnail strip
============================================= */

/* Override masonry flex layout so the scroll wrapper fills the container */
.azure-images-feed.masonry-thumbs {
  display: block;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}

/* Scroll wrapper: single-row flex strip, hides the scrollbar */
.azure-feed-scroll-wrapper {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE / Edge legacy */
  gap: 8px;
}

.azure-feed-scroll-wrapper::-webkit-scrollbar {
  display: none;               /* Chrome / Safari */
}

/*
 * Each thumbnail occupies exactly 1/4 of the wrapper width so 4 are visible.
 * Math: 4 items + 3 gaps of 8px → 4w + 24px = 100%  →  w = calc(25% - 6px)
 */
.azure-feed-scroll-wrapper .azure-feed-item {
  flex: 0 0 calc(25% - 6px);
  width: auto;
  padding: 0;
  overflow: hidden;
  border-radius: 4px;
}

.azure-feed-scroll-wrapper .azure-feed-item img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.azure-feed-scroll-wrapper .azure-feed-item:hover img {
  transform: scale(1.05);
}

/* Prev / Next nav centred below the strip */
.azure-feed-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.azure-feed-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  color: #333;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.azure-feed-nav button:hover:not(:disabled) {
  background: #333;
  color: #fff;
  border-color: #333;
}

.azure-feed-nav button:disabled {
  opacity: 0.3;
  cursor: default;
}
