/* System font stack avoids webfont swap/reflow (CLS) from remote Open Sans in the theme. */
html,
body,
.page-header,
.main-content,
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6,
.main-content p,
.main-content li,
.main-content strong,
.project-name,
.project-tagline {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: flex-start;
  margin: -0.5rem 0 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(21, 120, 120, 0.2);
}
.site-nav > a {
  font-weight: 600;
  color: #1e6b6b;
  text-decoration: none;
  padding-top: 0.15rem;
}
.site-nav > a:hover,
.site-nav > a:focus {
  text-decoration: underline;
}

.site-nav-dropdown {
  position: relative;
  margin: 0;
}
.site-nav-dropdown > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: #1e6b6b;
  padding: 0.15rem 0;
}
.site-nav-dropdown > summary::-webkit-details-marker {
  display: none;
}
.site-nav-dropdown > summary::after {
  content: " ▾";
  font-size: 0.85em;
  opacity: 0.85;
}
.site-nav-dropdown[open] > summary::after {
  content: " ▴";
}
.site-nav-dropdown > summary:hover,
.site-nav-dropdown > summary:focus {
  text-decoration: underline;
  outline: none;
}
.site-nav-dropdown-panel {
  margin: 0.35rem 0 0;
  padding: 0.35rem 0 0.35rem 0.75rem;
  list-style: none;
  border: 1px solid rgba(21, 120, 120, 0.25);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.92);
  min-width: 12rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.site-nav-dropdown-panel li {
  margin: 0.2rem 0;
}
.site-nav-dropdown-panel a {
  font-weight: 600;
  color: #1e6b6b;
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav-dropdown-panel a:hover,
.site-nav-dropdown-panel a:focus {
  text-decoration: underline;
}

.site-nav-nested-item {
  list-style: none;
  margin: 0.35rem 0 0.25rem;
}
.site-nav-dropdown-nested {
  margin: 0;
}
.site-nav-dropdown-nested > summary {
  font-weight: 600;
  color: #1e6b6b;
  font-size: 0.95rem;
  padding: 0.1rem 0;
}
.site-nav-dropdown-panel-nested {
  margin: 0.35rem 0 0.35rem 0.5rem;
  padding: 0.35rem 0.5rem 0.35rem 0.65rem;
  min-width: 11rem;
  border-style: dashed;
}
.site-nav-dropdown-panel-nested li {
  margin: 0.15rem 0;
}
.site-nav-dropdown-panel-nested a {
  font-weight: 500;
  font-size: 0.9rem;
}

/* Cayman buttons are tuned for dark header backgrounds. Make body buttons visible. */
.main-content .btn {
  color: #1e6b6b;
  border-color: rgba(21, 120, 120, 0.4);
  background-color: rgba(21, 120, 120, 0.08);
}
.main-content .btn:hover,
.main-content .btn:focus {
  color: #155353;
  border-color: rgba(21, 120, 120, 0.6);
  background-color: rgba(21, 120, 120, 0.14);
  text-decoration: none;
}

.site-logo-link {
  display: inline-block;
  max-width: 100%;
  width: min(100%, clamp(14rem, 42vw, 36rem));
  margin-bottom: 1rem;
  border: none;
}
.site-logo-link img {
  display: block;
  width: 100%;
  height: auto;
}

.page-header--logo-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  text-align: left;
}
.page-header--logo-right .page-header-primary {
  flex: 1 1 12rem;
  min-width: 0;
}
.page-header--logo-right .site-logo-link {
  flex: 0 1 auto;
  min-width: 0;
  margin-bottom: 0;
}

.home-industries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}
.home-industry {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(21, 120, 120, 0.2);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
}
.home-industry .home-industry-title {
  margin-top: 0;
  font-size: 1.15rem;
  border-bottom: none;
  padding-bottom: 0;
}
.home-industry p:last-child {
  margin-bottom: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 36rem;
}
.contact-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.contact-form label {
  flex: 1 1 12rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  padding: 0.4rem 0.55rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(21, 120, 120, 0.35);
  font: inherit;
}

.about-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 2rem;
}
.about-page-nav .btn {
  margin: 0;
}

.services-testimonial {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid rgba(21, 120, 120, 0.45);
  background: rgba(255, 255, 255, 0.04);
}
.services-testimonial p {
  margin: 0 0 0.75rem;
  font-style: italic;
}
.services-testimonial footer {
  margin: 0;
  font-size: 0.95rem;
  font-style: normal;
}

.portfolio-meta {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: #3d5c5c;
}
.portfolio-meta a {
  font-weight: 600;
}
