/* Layout base */
:root {
  --max: 1200px;
  --gap: 28px;
  --sidebar-w: 360px;
  --brand: #edf0f1;
  --card: #f6af08; /* gold-ish like screenshot */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0%;
  padding: 0;
  font-family: "Open Sans", sans-serif;
}
.content-wrapper {
  margin: 0 auto;
  padding: 0%;
}

.nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10; /* on top of hero */
  background: transparent; /* remove white */
}

.nav-content {
  display: flex;
  align-items: flex-start; /* align to right edge of nav */
  padding-left: 5em;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* align everything to the bottom */
  padding: 1rem 0%;
  width: 90%;
  margin: 0 auto;
}

.nav-bar {
  background: transparent !important;
  box-shadow: none !important;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-size: clamp(24px, 2.5vw, 32px);
  transform: scaleY(1.3); /* stretch vertically */
}

.nav-logo span {
  color: #f67308;
}
.nav-logo img {
  width: clamp(140px, 12vw, 180px);
  transform: scaleY(0.8); /* stretch vertically */
  height: auto;
  margin-right: 0.3em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #edf0f0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #f67308;
}

/* Dropdown container */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 0.5rem 2rem;
  background: #f2c23a;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100px);
  transition: all 0.25s ease;
  z-index: 50;
}

/* Each column */
.dropdown-column a {
  color: #201f1f;
  font-family: "Open Sans", sans-serif;
  font-size: 0.9rem;
  display: block;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.dropdown-column a:hover {
  color: #551104;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Optional shadow */
.dropdown-menu {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Hamburger button (hidden by default) */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 6px;
  cursor: pointer;
  z-index: 30001;
}
.nav-toggle span {
  display: block;
  height: 3px;
  margin: 6px 0;
  background: #f0f4f4;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Make the video layer fill the section */
.hero-video {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  overflow: hidden;
}

/* Critical: fill container without distortion */
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* no stretch, no black bars */
  object-position: center;
  display: block;
}

.hero-image {
  position: relative;
  width: 100vw;
  height: 560px; /* fixed visual height */
  overflow: hidden;
}

.hero-image img {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%; /* lock to container height */
  width: auto; /* only grow horizontally */
  transform: translateX(-50%);
  object-fit: cover; /* safe edges; doesn’t change height */
  /* IMPORTANT: don’t force min-width:100%; that can cause “zoom” */
}
/* Optional overlay */
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.244);
}

.ai_search {
  background: #2c374a;
  margin: 0;
  height: 25vh;
  /* padding: 2em 0 6em; */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Permits block */
.permits-block {
  margin-top: 1rem;
}
.permits-block h4 {
  margin: 1rem 0 0.5rem;
  color: #184a76;
}

.permits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.permit-chip {
  background: #eef6ff; /* soft blue */
  color: #184a76; /* deep teal/blue */
  border: 1px solid #cfe5ff;
  padding: 0.35rem 0.65rem;
  border-radius: 999px; /* pill */
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
}

.risk-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}
.risk-red {
  background: #fb8c00;
  border: 1px solid #fb8c00;
}
.risk-orange {
  background: #fb8c00;
  border: 1px solid #fb8c00;
}
.risk-yellow {
  background: #fdd835;
  border: 1px solid #fdd835;
}
.risk-green {
  background: #43a047;
  border: 1px solid #43a047;
}
.table-wrap {
  overflow: auto;
  margin: 8px 0;
}
.ppe-table,
.risk-table {
  width: 100%;
  border-collapse: collapse;
}
.ppe-table th,
.ppe-table td,
.risk-table th,
.risk-table td {
  border: 1px solid #2b2a2a;
  padding: 8px;
  text-align: left;
}
.risk-table,
h4:has(+ .risk-table) {
  display: none !important;
}

.result-card .source {
  display: none;
}
.disclaimer {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 1rem;
  font-size: 14px;
}

.hero-section {
  position: relative;
  width: 100%;
  height: 75vh;
  overflow: hidden;
  box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px,
    rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 56px;
}

.hero-section-other {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
  box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px,
    rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 56px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.531);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 4em;
}
.hero-banner-title {
  position: relative;
  /* font-size: 1.6em; */
  font-size: clamp(15px, 1.6vw, 25.6px);
  font-weight: 700;
  color: #edf0f0;
  line-height: 1.2;
  margin-left: 5%;
  margin-bottom: 1em;
}

.hero-banner-para {
  position: relative;
  /* font-size: 3.5em; */
  font-size: clamp(30px, 3.5vw, 56px);
  font-weight: 700;
  color: #edf0f0;
  width: 60%;
  line-height: 1.2;
  margin-left: 5%;
}

.hero-banner-para2 {
  margin-top: 1em;
  font-size: 1.3em;
  font-size: clamp(14px, 1.3vw, 20.8px);
  color: #edf0f0;
  width: 60%;
  line-height: 1.5;
  margin-left: 5%;
  font-weight: 300;
}

.hero-banner-para2 span {
  color: #d86508;
  font-weight: 700;
}
.hero-search {
  text-align: center;
  color: #fff;
  /* max-width: 600px; */
  width: 90%;
}

.search-title {
  font-size: clamp(26px, 4vw, 54px);
  margin-bottom: 1rem;
  letter-spacing: 1px;
  margin-top: 0;
}

.search-title span {
  color: #f46f03;
  font-weight: 700;
  /* background-color: #212122df; */
  /* padding: 0 15px; */
}

.search-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.search-form input {
  flex: 1;
  padding: 0.9em 1.2em;
  border-radius: 50px;
  border: none;
  outline: none;
  font-size: 1rem;
  max-width: 700px;
}

.search-form button {
  padding: 0.8em 1.8em;
  border-radius: 50px;
  border: none;
  background-color: #d86508;
  font-size: 0.8em;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-form button:hover {
  background-color: #088fd8;
}
/* --- AI Search Popup --- */
.popup {
  display: none; /* hidden by default */
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: flex-start;
  padding-top: 60px;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

/* Active state */
.popup.active {
  display: flex;
  opacity: 1;
}

.popup-content {
  background: #1e1d1d;
  border-radius: 12px;
  padding: 5%;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: fadeInUp 0.3s ease;
}

.popup-content #resultsTitle {
  color: #e09b12;
  font-size: 2em;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  color: #ece8e8;
  font-size: 1.8rem;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.3s ease;
  z-index: 9000;
}
.close-btn:hover {
  color: #1e66a6;
}
.results-section {
  background: #f8f8f8;
  padding: 2em 5%;
}

.results-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.result-card {
  background: #e0a55d;
  padding: 1em;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 1em;
}

@keyframes dots {
  0%,
  20% {
    content: "•";
  }
  40% {
    content: "••";
  }
  60% {
    content: "•••";
  }
  80%,
  100% {
    content: "";
  }
}

.result-card.loading::after {
  content: "•";
  animation: dots 1s infinite steps(4, end);
  font-size: 1.5rem;
  margin-left: 6px;
}

.page {
  padding: 32px 5%;
}
.page-head h1 {
  /* margin: 0 0 6px; */
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  color: #184a76;
}
.posted {
  color: #6b6f76;
  margin: 0 0 18px;
}

/* GRID: main + sidebar */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, var(--sidebar-w));
  gap: var(--gap);
  max-width: var(--max);
  margin: 0 auto;
}
/* .image-banner-1 {
  width: 100%;
} */
.image-banner-1 img,
.image-banner-2 img,
.image-banner-3 img {
  width: 100%; /* fill container width */
  max-height: 500px; /* optional: limit height */
  object-fit: contain; /* keep proportions */
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}
/* Main article */
.post img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.post h2 {
  margin-top: 1.2em;
  font-size: clamp(22px, 2.6vw, 32px);
  color: #184a76;
}

.post h3 {
  margin-top: 1.2em;
  font-size: clamp(14px, 1.6vw, 24px);
  color: #184a76;
}
.post p {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 300;
  margin: 0.75em 0;
  line-height: 1.8;
  text-align: justify;
}

.post ul {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 300;
}

.no-style a {
  text-decoration: none !important;
  color: #184a76;
}
.accordion {
  list-style: none;
  margin: 0;
  padding: 0;
}
.accordion-item {
  border-bottom: 1px solid #e6e6e6;
  background: #fff;
}
.accordion-trigger {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  font: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
}
/* Downward arrow */
.accordion-trigger::after {
  content: "";
  margin-left: auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
/* Rotate arrow when open */
.accordion-trigger[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}

.accordion-trigger:focus-visible {
  outline: 2px solid #0ea5e9; /* sky-500 */
  outline-offset: 2px;
  border-radius: 0.375rem;
}

.accordion-panel {
  padding: 0 1.25rem 1rem 1.25rem;
  color: #444;
  line-height: 1.6;
}

/* Smooth open/close animation */
.accordion-panel.animating {
  overflow: hidden;
  transition: height 0.22s ease;
}

.services-list {
  line-height: 2;
}

.map-wrap {
  width: 90%;
  max-width: 900px; /* adjust or remove if full-bleed */
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.pdf-link {
  text-decoration: none;
  color: #184a76;
}

/* Sidebar */
.sidebar {
  position: relative;
}
.card {
  background: #2c374a;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 18px;
  margin-bottom: var(--gap);
}

.card h4 {
  color: #ccc;
}

.card li a {
  color: #d86508;
  font-size: 0.8em;
}
.contact-card {
  /* position: sticky; */
  top: 24px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.contact-card h3 {
  font-size: 1.5em;
  font-weight: 500;
  text-transform: uppercase;
  color: #d86508;
  margin: 0 0 10px;
  text-align: center;
}

.contact-form input,
.contact-form textarea {
  font-size: 16px !important; /* prevents iOS zoom */
}

/* Background behind the card */

/* Optional: background behind the card (like the screenshot) */
.contact-area {
  padding: 3rem 1.5rem;
  display: flex;
  justify-content: center;
}

/* The card itself */
.card.contact-card.contact-card--dark {
  position: relative;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  background: #2c374a;
  border-radius: 8px;
  color: #f7f9ff;
  margin-bottom: 4em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Title */
.card.contact-card h3 {
  font-size: 1.6rem;
  font-weight: 400;
}

/* Badge at the top (mail icon circle) */
.contact-card__badge {
  position: absolute;
  top: -35px;
  right: 1.4rem; /* or center it — see below */
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #d86508;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(23, 23, 22, 0.75);
  padding: 12px;
}

.contact-card__badge img {
  width: 85%;
  height: 65%;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}
/* Form layout */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Inputs / textarea */
.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #313f55;
  background: #f1f1f2;
  padding: 0.75rem 0.9rem;
  color: #424241;
  font: 1em;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(49, 49, 50, 0.65);
}

/* focus state like the yellow outline in the screenshot */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #d86508;
  background: #f6f7f8;
  box-shadow: 0 0 0 1px #d86508;
}

/* Submit button */
.contact-btn {
  margin-top: 1.2rem;
  width: 100%;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;

  border: 2px solid #d86508;
  background: transparent;
  color: #d86508;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease,
    transform 0.15s ease;
}

.contact-btn:hover {
  background: #d86508;
  color: #091321;
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.6);
}

.contact-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .card.contact-card.contact-card--dark {
    padding: 3rem 1.6rem 2.3rem;
  }

  .contact-card__badge {
    right: 1.6rem;
    width: 62px;
    height: 62px;
    font-size: 1.5rem;
  }
}

/* Recent list */
.recent {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.recent li + li {
  margin-top: 8px;
}
.recent a {
  text-decoration: none;
  color: #1e66a6;
}
.recent a:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.footer {
  /* background: #184a76; */
  background: #2c374a;
  color: #f0f0f0;
  margin-top: 4em;
  padding: 60px 5% 20px;
  font-size: 0.95rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer h3,
.footer h4 {
  color: #f67308;
  margin-bottom: 1em;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
}

.footer p,
.footer a {
  color: #f0f0f0;
  text-decoration: none;
  line-height: 1.7;
}

.footer a:hover {
  color: #f67308;
}

.footer-contact a {
  color: #f67308;
  text-decoration: none;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin: 6px 0;
}

.brand-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.brand-logos img {
  height: 36px;
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  padding-top: 20px;
  margin-top: 40px;
  font-size: 0.85rem;
  color: #ccc;
}

/* PPE table polish */
.ppe-table {
  width: 100%;
  border-collapse: separate; /* allow row gaps */
  border-spacing: 0 12px; /* vertical spacing between rows */
}

.ppe-table thead th {
  text-align: left;
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.ppe-table td {
  background: rgba(0, 0, 0, 0.06); /* subtle card look per row */
  padding: 12px 14px;
  vertical-align: top;
  line-height: 1.4;
}

.ppe-table td.cat {
  width: 220px; /* keeps categories aligned */
  font-weight: 700;
}

.ppe-table tr.group-start td {
  /* a bit of separation between logical groups (each row is a group) */
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06) inset;
}

/* mobile */
@media (max-width: 700px) {
  .ppe-table td.cat {
    width: auto;
    display: block;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
  }
  .ppe-table td.items {
    display: block;
    padding-top: 6px;
  }
}

@media (max-width: 600px) {
  .ai_search {
    height: 25vh;
  }

  .hero-section {
    height: 60vh;
  }
  .hero-overlay {
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 5%;
  }
  .hero-banner-para {
    width: 90%;
  }

  .hero-banner-para2 {
    width: 90%;
  }

  .search-form {
    flex-direction: column; /* stack items vertically */
    align-items: stretch; /* make input full width */
    gap: 0.75rem;
  }

  .search-form input {
    max-width: 100%; /* full width input */
    border-radius: 50px;
  }

  .search-form button {
    width: 30%; /* smaller width */
    align-self: center; /* center the button */
    border-radius: 50px;
    padding: 0.9em 0;
    font-size: 1.1em;
  }
  .nav-bar {
    align-items: center;
    width: 95%;
  }

  .nav-toggle {
    display: block;
    align-self: flex-end;
    margin-left: auto; /* pushes it to the right */
  }

  /* stack right side */
  .nav-content {
    align-items: flex-end;
    gap: 0.5rem;
    padding-left: 0em;
  }

  .top-bar {
    display: none;
  }

  /* menu panel (hidden by default) */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* full width */
    height: 100vh; /* full screen height */
    background: rgba(255, 255, 255, 0.98); /* slightly transparent white */
    display: none; /* stays hidden until toggled */
    flex-direction: column;
    justify-content: center; /* center items vertically */
    align-items: center; /* center items horizontally */
    gap: 2rem;
    z-index: 2000;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .nav-links a {
    color: #45637e;
    font-weight: 600;
    font-size: 3rem;
  }
  .nav-links .link:last-child a span {
    font-size: 1.8rem; /* smaller than 3rem */
    color: #d86508;
  }
  .nav-links.open {
    display: flex;
  }

  /* dropdown: make its menu static inside the panel */
  .dropdown {
    width: 100%;
  }
  .dropdown-menu {
    position: static;
    display: none;
    color: #1c2227;

    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 8px;
    gap: 4px 12px;
    grid-template-columns: 1fr;
  }
  .dropdown.open .dropdown-menu {
    display: grid; /* tap to open (JS below) */
  }
  .nav-toggle.active span {
    background: #111416;
  }

  /* animate hamburger into X when menu open */
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .content-grid {
    grid-template-columns: 1fr; /* single column */
  }

  .sidebar {
    order: 2; /* sidebar moves below article */
    margin-top: 2rem;
  }

  .post {
    order: 1;
  }

  .map-wrap {
    width: 100%;
  }

  .popup-content {
    width: 100%;
    max-width: 1000px;
    max-height: 80vh;
    padding: 1%;
  }
}
