/*
 Theme Name:   Newfields
 Description:  Divi child theme for Newfields, built by Cariad Creative
 Author:       Cariad Creative
 Template:     Divi
 Version:      1.0.4
 Text Domain:  newfields-child
*/

/* ==========================================================
   HERO VIDEO – pause button (added by js/newfields.js)
   Add the class nf-hero to the hero section.
   ========================================================== */
.nf-hero { position: relative; }

.nf-video-toggle {
  position: absolute; right: 24px; bottom: 24px; z-index: 10;
  width: 48px; height: 48px; padding: 0;
  border-radius: 50%;
  background: rgba(10,10,10,.7);
  border: 2px solid #fcfcfc;
  cursor: pointer;
}
.nf-video-toggle:focus-visible { outline: 3px solid #fcfcfc; outline-offset: 3px; }

/* pause icon: two bars */
.nf-video-icon {
  display: block; width: 14px; height: 16px; margin: auto;
  border-left: 4px solid #fcfcfc; border-right: 4px solid #fcfcfc;
}
/* play icon: triangle */
.nf-video-toggle.is-paused .nf-video-icon {
  width: 0; height: 0; border-right: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #fcfcfc;
  margin-left: 17px;
}

/* Screen-reader-only text */
.nf-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
