/* AG Foods brand: navy #000080 and yellow #ffe600 from the logo */

:root {
  --primary-color: #000080;
  --accent-color: #000080;
  --accent-secondary-color: #1a1ab8;
  --divider-color: #0000801a;
  --brand-yellow: #ffe600;
  --text-color: #3d4450;
}

.navbar-brand img,
.site-logo {
  height: 74px;
  width: auto !important;
  max-width: none;
}

.main-menu ul li {
  margin: 0 2px;
}

.main-menu ul li a {
  font-size: 14px;
  padding: 8px 6px !important;
  white-space: nowrap;
}

.main-menu .nav-menu-wrapper > ul {
  flex-wrap: wrap;
  justify-content: center;
}

.main-menu ul li a:hover,
.main-menu ul li a:focus,
.main-menu ul li a.active {
  color: #000080;
  box-shadow: inset 0 -3px 0 var(--brand-yellow);
}

header.main-header .header-sticky {
  max-width: 1680px;
}

.doc-options-single {
  grid-template-columns: minmax(220px, 320px);
  justify-content: center;
}

.section-title .section-sub-title {
  color: #000080;
}

.section-title .section-sub-title::before {
  background: var(--brand-yellow);
  border-radius: 2px;
  width: 12px;
  height: 12px;
}

.btn-default:hover {
  background: var(--brand-yellow);
  color: #000080;
}

.btn-default:hover::before {
  background-image: url("../images/arrow-primary.svg");
}

.btn-apply {
  background: var(--brand-yellow);
  color: #000080;
  font-weight: 700;
  border-radius: 4px;
  padding: 8px 14px;
}

.btn-apply:hover {
  background: #000080;
  color: #ffe600;
}

.ag-home-banner {
  background: #f4f6fb;
  padding: 150px 0 40px;
}

.ag-home-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.ag-home-banner-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.page-header:before {
  background: linear-gradient(180deg, rgba(0, 0, 128, 0.15) 20%, rgba(0, 0, 128, 0.72) 100%);
}

.footer-logo-royal {
  display: inline-block;
  background: #ffffff;
  padding: 10px 14px 6px;
  border-radius: 16px;
}

.footer-logo-royal img {
  width: auto;
  max-width: 120px;
  height: auto;
}

.job-filter-bar {
  display: flex;
  justify-content: center;
  margin: -10px 0 28px;
}

.job-filter-bar label {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 2px solid #000080;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  color: #000080;
  margin: 0;
}

.job-filter-bar select {
  min-width: 220px;
  border: none;
  background: #fff8c4;
  color: #000080;
  font-weight: 700;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 6px;
  outline: none;
}

.ag-photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.ag-photo-row a {
  display: block;
}

.ag-photo-row img,
.video-wrapper img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.video-wrapper img {
  height: auto;
  max-height: none;
  object-fit: contain;
  background: #000080;
}

.ag-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ag-gallery figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 128, 0.08);
}

.ag-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.ag-gallery figcaption {
  padding: 14px 16px 16px;
  font-weight: 700;
  color: #000080;
}

.track-docs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.track-doc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e7e9f2;
  background: #f5f6fb;
  text-decoration: none !important;
  color: #000080;
}

.track-doc.is-ready {
  background: #fff;
  border-color: #000080;
}

.track-doc.is-ready:hover {
  background: #000080;
  color: #ffe600;
}

.track-doc-name {
  font-weight: 700;
}

.track-doc-state {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eceff3;
  color: #8a8f9c;
  white-space: nowrap;
}

.track-doc.is-ready .track-doc-state {
  background: #ffe600;
  color: #000080;
}

.track-doc.is-ready:hover .track-doc-state {
  background: #ffe600;
  color: #000080;
}

.track-shell .btn-default {
  height: 58px;
  border-radius: 0 8px 8px 0;
}

.track-shell .form-control {
  height: 58px;
  border: 2px solid #000080;
}

.track-status {
  background: #ffe600;
  color: #000080;
}

@media (max-width: 767px) {
  .track-docs {
    grid-template-columns: 1fr;
  }
}

.doc-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
  text-align: left;
}

.doc-option {
  background: #fff;
  border: 1px solid #e6e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
}

.doc-option-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.doc-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #000080;
  color: #ffe600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.doc-option h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #000080;
}

.doc-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #8a8f9c;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 4px 8px;
}

.doc-status.is-ready {
  color: #000080;
  background: #ffe600;
}

.doc-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.doc-view,
.doc-download {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000080;
  color: #ffe600 !important;
  text-decoration: none !important;
  font-weight: 700;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
}

.doc-download {
  gap: 8px;
  background: #ffe600;
  color: #000080 !important;
  border: 2px solid #000080;
  box-shadow: 0 4px 10px rgba(0, 0, 128, 0.12);
}

.doc-download i {
  font-size: 14px;
}

.doc-download:hover {
  background: #000080;
  color: #ffe600 !important;
}

.doc-view:hover {
  background: #ffe600;
  color: #000080 !important;
}

.doc-view.is-disabled {
  background: #eceff3;
  color: #9aa0ab !important;
  cursor: not-allowed;
}

.doc-option.is-empty {
  opacity: 0.85;
}

@media (max-width: 767px) {
  .ag-photo-row,
  .ag-gallery,
  .doc-options {
    grid-template-columns: 1fr;
  }

  .job-filter-bar label {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .navbar-brand img,
  .site-logo {
    height: 56px;
  }

  .ag-home-banner {
    padding-top: 110px;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 16px;
    font-size: 28px;
  }
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.whatsapp-float:hover {
  background: #128c7e;
  color: #fff !important;
}

#loading-icon img {
  width: 72px;
  height: auto;
  background: #fff;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.ag-gallery > a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ag-gallery > a:hover figcaption {
  background: #ffe600;
}

.ag-canada-locations {
  padding: 70px 0 90px;
  background: #f4f6fb;
}

.ag-location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ag-location-grid article {
  background: #fff;
  border-radius: 14px;
  border-top: 4px solid #ffe600;
  padding: 22px 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 128, 0.08);
}

.ag-location-grid h3 {
  color: #000080;
  font-size: 20px;
  margin-bottom: 10px;
}

.ag-location-grid p {
  margin-bottom: 14px;
  color: #3d4450;
}

.ag-location-grid a {
  color: #000080;
  font-weight: 700;
}

@media (max-width: 767px) {
  .ag-location-grid {
    grid-template-columns: 1fr;
  }
}
