/*
  AGR Marketing Solutions theme
  Header chrome, forms, and page-specific hero masks.
*/

html {
  scroll-behavior: smooth;
}

.agr-burger-line {
  display: block;
  width: 1.25rem;
  height: 2px;
  background-color: #fff;
  border-radius: 9999px;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.agr-burger.is-open .agr-burger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.agr-burger.is-open .agr-burger-line:nth-child(2) {
  opacity: 0;
}

.agr-burger.is-open .agr-burger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.agr-panel {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  overflow: hidden;
  pointer-events: none;
  transition:
    max-height 0.3s ease-in-out,
    opacity 0.3s ease-in-out,
    transform 0.3s ease-in-out;
}

.agr-panel.is-open {
  max-height: 32rem;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.agr-desktop-search-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  border-top-width: 0;
  transition:
    max-height 0.3s ease-in-out,
    opacity 0.3s ease-in-out,
    transform 0.3s ease-in-out,
    border-color 0.3s ease-in-out;
}

.agr-desktop-search-panel.is-open {
  max-height: 5rem;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  border-top-width: 1px;
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.agr-nav-locked {
  overflow: hidden;
}

#desktop-nav>a.agr-nav-active,
.mobile-nav-link.agr-nav-active {
  color: #cb0207 !important;
  text-decoration: underline !important;
  text-decoration-color: #cb0207 !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 6px !important;
}

.contact-hero-graphic,
.about-hero-graphic {
  mask-image: linear-gradient(to left, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 55%, transparent 100%);
}

.about-hero-graphic {
  mask-image: linear-gradient(to left, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 70%, transparent 100%);
}

.hr-hero-graphic {
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 100%);
}

.hir-hero-graphic {
  clip-path: none;
}

.fw-hero-graphic,
.adw-hero-graphic {
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 100%);
}

.contact-input {
  width: 100%;
  height: 58px;
  border: 1px solid #aaa;
  border-radius: 9px;
  padding: 0 14px;
  font-size: 16px;
  color: #000e28;
  background: transparent;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-input::placeholder {
  color: #666;
}

.contact-input:focus {
  border-color: #cb0207;
  box-shadow: 0 0 0 3px rgba(203, 2, 7, 0.12);
}

.contact-textarea {
  height: 148px;
  padding-top: 16px;
  padding-bottom: 16px;
  resize: vertical;
}

.contact-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.agr-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.faq-chevron {
  -webkit-mask-image: url("../images/figma/faqs/icon-chevron.svg");
  mask-image: url("../images/figma/faqs/icon-chevron.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

padding-right: 32px !important;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='22' y1='2' x2='11' y2='13'/%3E%3Cpolygon points='22 2 15 22 11 13 2 9 22 2'/%3E%3C/svg%3E") !important;
background-repeat: no-repeat !important;
background-position: calc(50% + 85px) center !important;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 button[type="submit"]:hover {
  background-color: #a80004 !important;
}


.agr-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.faq-chevron {
  -webkit-mask-image: url("../images/figma/faqs/icon-chevron.svg");
  mask-image: url("../images/figma/faqs/icon-chevron.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.agr-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  background-color: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px 16px !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

.agr-modal-card {
  position: relative !important;
  width: calc(100% - 32px) !important;
  max-width: 640px !important;
  margin: auto !important;
  background-color: #ffffff !important;
  border-radius: 16px !important;
  border: 1px solid #c9d3e0 !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35) !important;
  max-height: calc(100vh - 48px) !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

.agr-modal-close-btn {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 999 !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background-color: #e5e7eb !important;
  color: #1f2937 !important;
  border: 1px solid #d1d5db !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.agr-modal-close-btn:hover {
  background-color: #cb0207 !important;
  color: #ffffff !important;
  border-color: #cb0207 !important;
}

/* Header Dropdown Menu Hover Rules */
.group:hover .group-hover\:block,
.relative.group:hover>div {
  display: block !important;
}

.header-dropdown-box {
  background-color: #02122a !important;
  background: #02122a !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
  padding: 8px !important;
  opacity: 1 !important;
}

/* Header Dropdown SVG Arrow Color Override */
#desktop-nav .group svg,
#desktop-nav .group svg path {
  fill: #ffffff !important;
  color: #ffffff !important;
}