/**
 * WordPress / Elementor adapters for the original Spot HTML stylesheet.
 */

/* Map Spot Options tokens onto the HTML design tokens. */
:root {
  --green: var(--spot-green, #10aa52);
  --green-dark: var(--spot-green-dark, #08723a);
  --green-soft: var(--spot-green-soft, #a8ee70);
  --ink: var(--spot-ink, #17342d);
  --charcoal: var(--spot-charcoal, #17312b);
  --paper: var(--spot-paper, #f5f4ef);
  --white: var(--spot-white, #fff);
  --muted: var(--spot-muted, #6e7772);
}

/* Neutralize Elementor chrome so section widgets own the layout. */
.elementor {
  --widgets-spacing: 0px !important;
}

.elementor-section.elementor-section-boxed > .elementor-container,
.elementor-column-wrap,
.elementor-widget-wrap,
.e-con,
.e-con-inner,
.elementor-widget,
.elementor-widget-container {
  max-width: none !important;
}

.elementor-top-section > .elementor-container,
.elementor-section.elementor-section-boxed > .elementor-container {
  width: 100% !important;
  max-width: none !important;
}

.elementor-section.elementor-section-boxed > .elementor-container,
.elementor-column-gap-default > .elementor-column > .elementor-element-populated,
.elementor-column-gap-narrow > .elementor-column > .elementor-element-populated,
.elementor-column-gap-extended > .elementor-column > .elementor-element-populated,
.elementor-column-gap-wide > .elementor-column > .elementor-element-populated,
.elementor-column-gap-wider > .elementor-column > .elementor-element-populated,
.e-con-boxed .e-con-inner,
.elementor-widget:not(:last-child),
.elementor-widget-wrap > .elementor-element,
.elementor-element-populated {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}

.e-con {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

.elementor-widget-container {
  padding: 0 !important;
  margin: 0 !important;
}

/* Keep Spot section paddings from spot-html.css intact */
.elementor-widget-container > section.hero,
.elementor-widget-container > section.page-hero,
.elementor-widget-container > section.section,
.elementor-widget-container > section.spot-showcase,
.elementor-widget-container > section.spot-approach,
.elementor-widget-container > section.cta,
.elementor-widget-container > section.image-marquee,
.elementor-widget-container > section.spot-home-products {
  display: block;
  width: 100%;
}

.elementor .elementor-widget-container > section:first-child {
  margin-top: 0;
}

/* Keep HTML design typography when Elementor kit tries to override. */
body.elementor-page {
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.elementor-page h1,
.elementor-page h2,
.elementor-page h3,
.elementor-page h4 {
  font-family: Manrope, sans-serif;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

/* WP menu → HTML flat nav links. */
.nav-links .menu,
.nav-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: contents;
}

.nav-links li {
  display: contents;
}

.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links .current-menu-ancestor > a {
  color: var(--green);
}

.nav-links .current-menu-item > a:after,
.nav-links .current_page_item > a:after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
}

@media (max-width: 980px) {
  .nav-links.open .menu,
  .nav-links.open ul {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
  }

  .nav-links.open li {
    display: block;
  }
}

/* Reference icons from Elementor Icons_Manager. */
.reference-card > .elementor-icon,
.reference-card > svg,
.reference-card > i {
  width: 42px;
  height: 42px;
}

.reference-card .elementor-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: #0b7040;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ref-dark .elementor-icon svg {
  stroke: #fff;
}

/* Keep admin bar from covering the floating header. */
body.admin-bar .site-header {
  top: calc(14px + 32px);
}

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

/* Footer quote CTA (legacy — unused when HTML newsletter is active). */
.spot-footer-quote .spot-footer-quote-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  background: var(--green);
  color: #fff;
  font: 700 12px/1 Manrope, sans-serif;
  padding: 14px 18px;
  border-radius: 999px;
  transition: 0.2s;
}

.spot-footer-quote .spot-footer-quote-btn:hover {
  background: var(--green-soft);
  color: var(--ink);
}

/* Single post */
.spot-single-layout {
  max-width: 920px;
}

.spot-single-meta {
  margin-top: 18px !important;
}

.spot-single-media {
  margin: 0 0 42px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.spot-single-media img {
  width: 100%;
  height: auto;
  display: block;
}

.spot-single-content {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
}

.spot-single-content p {
  margin: 0 0 1.15em;
}

.spot-single-content p:last-child {
  margin-bottom: 0;
}

.spot-single-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* 404 */
.spot-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* CF7 inside Spot form shell */
.contact-form-modal{
  max-height: 300px;
  overflow-y: scroll;
}
.wpcf7 form .wpcf7-response-output{
  border:none!important;
  padding: 0;
  margin: 20px 0 0 0;
}
.contact-grid .wpcf7,
.spot-product-modal .wpcf7,
.spot-cf7-wrap .wpcf7 {
  width: 100%;
}

.contact-grid .wpcf7-form.form,
.spot-product-modal .wpcf7-form.form,
.spot-cf7-wrap .wpcf7-form.form {
  width: 100%;
}

.wpcf7-form .field .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.wpcf7-form .field input,
.wpcf7-form .field textarea,
.wpcf7-form .field select {
  width: 100%;
  max-width: 100%;
}

.wpcf7-form .spot-cf7-submit {
  align-content: end;
}

.wpcf7-form input.wpcf7-submit,
.wpcf7-form .wpcf7-submit {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: auto;
  justify-self: start;
  color: var(--green);
  border:1px solid var(--green);
}
.wpcf7-form input.wpcf7-submit:hover,
.wpcf7-form .wpcf7-submit:hover{
  color: #fff;
}
.wpcf7-form .wpcf7-not-valid-tip {
  font-size: 12px;
  color: #b42318;
  margin-top: 6px;
}

.wpcf7-form .wpcf7-response-output {
  grid-column: 1 / -1;
  margin: 0;
  border-radius: 14px;
}

.wpcf7-form .wpcf7-spinner {
  margin-left: 10px;
}

@media (max-width: 700px) {
  .contact-grid .wpcf7-form.form,
  .spot-product-modal .wpcf7-form.form {
    grid-template-columns: 1fr;
  }
}

/* Social SVG icons */
.spot-socials a svg {
  width: 16px;
  height: 16px;
  display: block;
}

.spot-social-widget a svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

/* Homepage featured products */
.spot-home-products {
  background: #fff;
}

.spot-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 42px;
}

.spot-featured-card {
  background: var(--paper);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.spot-featured-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.spot-featured-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e9efe9;
}

.spot-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.spot-featured-media .featured-mask {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 300px;
  z-index: 2;
  overflow: hidden;
}

.spot-featured-media .featured-mask::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--green);
  mask-image: url(../masks/blog-path-mask.svg);
  mask-size: contain;
  mask-position: bottom right;
  mask-repeat: no-repeat;
  -webkit-mask-image: url(../masks/blog-path-mask.svg);
  -webkit-mask-size: contain;
  -webkit-mask-position: bottom right;
  -webkit-mask-repeat: no-repeat;
}

.spot-featured-card:hover .spot-featured-media img {
  transform: scale(1.04);
}

.spot-featured-media .product-tag {
  position: absolute;
  left: 16px;
  top: 16px;
}

.spot-featured-copy {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.spot-featured-copy h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
}

.spot-featured-copy p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.spot-featured-copy .spot-product-request {
  margin-top: auto;
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: var(--green);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.spot-featured-actions {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

@media (max-width: 980px) {
  .spot-featured-grid {
    grid-template-columns: 1fr;
  }
}

/* Product request button + modal */
.product-copy .spot-product-request {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin-top: 20px;
  color: var(--green);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-copy .spot-product-request:hover {
  color: var(--green);
}

body.spot-modal-open {
  overflow: hidden;
}

.spot-product-modal[hidden] {
  display: none !important;
}

.spot-product-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.spot-product-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 28, 24, 0.62);
  backdrop-filter: blur(4px);
}

.spot-product-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  background: var(--paper);
  border-radius: 28px;
  padding: 34px 28px 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.spot-product-modal__dialog .spot-product-modal_content{
  max-height: min(70vh, 800px);
  overflow: hidden;
}
.spot-product-modal__dialog h2 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
}

.spot-product-modal__name {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 15px;
}

.spot-product-modal__dialog .lead {
  margin-bottom: 22px;
}

.spot-product-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

/* CPT archives + singles (styles used to live in unused main.css) */
.spot-main {
  min-height: 40vh;
}

.spot-entry {
  padding: 40px 0 90px;
}

.spot-entry-title {
  font: 800 clamp(36px, 5vw, 64px) / 1.05 Manrope, sans-serif;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}

.spot-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--spot-green, var(--green));
  color: #fff;
  border-radius: 999px;
  padding: 14px 22px;
  font: 700 14px/1 Manrope, sans-serif;
  transition: 0.25s;
}

.spot-btn:hover {
  background: var(--spot-green-dark, var(--green-dark));
  transform: translateY(-2px);
}

.spot-featured {
  margin: 28px 0 36px;
  border-radius: 24px;
  overflow: hidden;
}

.spot-featured img {
  width: 100%;
  height: auto;
  display: block;
}

.spot-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.spot-product-card {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line, rgba(23, 52, 45, 0.13));
  box-shadow: var(--shadow, 0 24px 65px rgba(16, 55, 36, 0.13));
  display: flex;
  flex-direction: column;
}

.spot-product-card.is-wide {
  grid-column: span 2;
}

.spot-product-media {
  position: relative;
  display: block;
}

.spot-product-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.spot-product-card.is-tall .spot-product-media img {
  height: 340px;
}

.spot-product-tag {
  position: absolute;
  left: 16px;
  top: 16px;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font: 700 11px/1 Manrope, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spot-product-copy {
  padding: 22px 24px 26px;
}

.spot-product-copy h2 {
  margin: 0 0 10px;
  font: 700 24px/1.2 Manrope, sans-serif;
}

.spot-product-copy p {
  margin: 0 0 16px;
  color: var(--muted);
}

.spot-product-link {
  font: 700 13px/1 Manrope, sans-serif;
  color: var(--green);
}

.spot-process-grid,
.spot-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.spot-process-card {
  border-radius: 28px;
  padding: 28px;
  min-height: 240px;
  box-shadow: var(--shadow, 0 24px 65px rgba(16, 55, 36, 0.13));
  border: 1px solid var(--line, rgba(23, 52, 45, 0.13));
}

.spot-process-card.is-light {
  background: #fff;
  color: var(--ink);
}

.spot-process-card.is-green {
  background: var(--green-soft);
  color: var(--ink);
}

.spot-process-card.is-dark {
  background: var(--charcoal);
  color: #fff;
}

.spot-process-number {
  display: inline-block;
  margin-bottom: 18px;
  font: 800 28px/1 Manrope, sans-serif;
  color: var(--green);
}

.spot-process-card.is-dark .spot-process-number {
  color: var(--green-soft);
}

.spot-process-card h2 {
  margin: 0 0 12px;
  font: 700 24px/1.2 Manrope, sans-serif;
}

.spot-process-card p {
  margin: 0 0 18px;
  opacity: 0.85;
}

.spot-process-card > a {
  font: 700 13px/1 Manrope, sans-serif;
}

.spot-team-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line, rgba(23, 52, 45, 0.13));
  box-shadow: var(--shadow, 0 24px 65px rgba(16, 55, 36, 0.13));
}

.spot-team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.spot-team-copy {
  padding: 18px 20px 22px;
}

.spot-team-copy h2 {
  margin: 0 0 6px;
  font: 700 22px/1.2 Manrope, sans-serif;
}

.spot-team-role {
  margin: 0 0 10px;
  color: var(--muted);
}

.spot-team-link {
  font: 700 13px/1 Manrope, sans-serif;
  color: var(--green);
}

.spot-team-single {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
  padding: 40px 0 90px;
}

.spot-team-photo {
  border-radius: 28px;
  overflow: hidden;
}

.spot-team-contacts {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}

.spot-team-contacts a {
  color: var(--green);
  font-weight: 700;
}

@media (max-width: 1050px) {
  .spot-product-grid,
  .spot-process-grid,
  .spot-team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .spot-product-card.is-wide {
    grid-column: span 2;
  }

  .spot-team-single {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .spot-product-grid,
  .spot-process-grid,
  .spot-team-grid {
    grid-template-columns: 1fr;
  }

  .spot-product-card.is-wide {
    grid-column: auto;
  }
}
