/* Shared ServeHappy design system and responsive site shell. */
:root {
  --color-primary: #e65100;
  --color-primary-contrast: #ffffff;
  --color-accent: #ff8f00;
  --color-bg: #f5f5f5;
  --color-surface: #ffffff;
  --color-text: #212121;
  --color-muted: #757575;
  --color-footer: #37474f;
  --color-footer-dark: #263238;
  --font-heading: 'Roboto', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.2;
}

button, input, select, textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(230, 81, 0, .35);
  outline-offset: 2px;
}

main {
  flex: 1;
}

a {
  color: inherit;
}

 .site-nav {
  min-height: 68px;
  background: var(--color-surface);
  box-shadow: 0 2px 12px rgba(38, 50, 56, .08);
  position: relative;
  z-index: 5;
}

.nav-inner {
  width: min(1170px, calc(100% - 30px));
  min-height: 64px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  display: block;
  flex: 0 0 205px;
  height: 64px;
  background: url('/images/header_logo_m.png') no-repeat left center / contain;
}

.brand-logo .brand-accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-beta {
  color: #555;
  font-size: 12px;
  margin-left: -202px;
  align-self: flex-end;
  margin-bottom: 5px;
  pointer-events: none;
}

.desktop-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 64px;
}

.desktop-nav a,
.mobile-menu a {
  text-decoration: none;
}

.desktop-nav .nav-link {
  padding: 0 11px;
  line-height: 64px;
  color: var(--color-primary);
  white-space: nowrap;
  font-weight: 500;
}

.desktop-nav .nav-link:hover { color: #bf360c; }

.desktop-nav .nav-employer {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  padding: 0 20px;
  line-height: 44px;
  margin-left: 6px;
  border-radius: var(--radius);
  transition: background .2s ease, transform .2s ease;
}

.desktop-nav .nav-employer:hover { background: #bf360c; transform: translateY(-1px); }

.site-search {
  display: flex;
  align-items: center;
  height: 40px;
  background: #f1f1f1;
  border-radius: 2px;
  padding: 0 12px;
  margin: 0;
  flex: 1 1 280px;
  max-width: 430px;
}

.site-search input[type=search] {
  height: 38px;
  border: 0;
  box-shadow: none;
  margin: 0;
  font-size: 14px;
}

.site-search input[type=search]:focus {
  border: 0;
  box-shadow: none;
}

.search-mobile {
  display: none;
  padding: 4px 15px;
  background: #fff3e0;
}

.search-mobile .site-search {
  max-width: none;
}

.menu-toggle {
  display: none;
  color: #e65100;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: #e65100;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .22);
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, .8);
}

.mobile-menu a {
  display: block;
  padding: 13px 22px;
  color: #fff;
}

.page-footer {
  background: var(--color-footer);
  color: #fff;
  margin-top: 0;
}

.back-top {
  display: block;
  height: 42px;
  line-height: 42px;
  background: #455a64;
  color: #fff;
  text-align: center;
}

.back-top .material-icons {
  font-size: 40px;
  line-height: 42px;
}

.footer-menu {
  padding: 30px 0 24px;
}

.footer-grid {
  width: min(1170px, calc(100% - 30px));
  margin: auto;
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 28px;
}

.footer-grid h6 {
  font-size: 16px;
  margin: 0 0 12px;
  color: #fff;
  font-weight: 300;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin: 0 0 7px;
  color: #cfd8dc;
}

.footer-grid a {
  color: #cfd8dc;
  text-decoration: none;
  font-weight: 300;
}

.footer-grid a:hover,
.footer-copyright a:hover {
  color: #fff;
}

.footer-brand img {
  display: block;
  max-width: 100%;
  height: auto;
}

.footer-brand div {
  margin-top: 6px;
}

.footer-copyright {
  background: var(--color-footer-dark);
  color: #cfd8dc;
  padding: 14px 0;
  font-size: 14px;
}

.footer-copyright-inner {
  width: min(1170px, calc(100% - 30px));
  margin: auto;
}

.footer-copyright a {
  color: #eceff1;
  text-decoration: none;
}

.site-dialog {
  width: min(440px, calc(100% - 32px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
}

.site-dialog::backdrop {
  background: rgba(0, 0, 0, .55);
}

.dialog-content {
  padding: 24px;
}

.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 400;
}

.dialog-close {
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: #777;
}

.dialog-content label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
}

.dialog-content input {
  display: block;
  width: 100%;
  height: 40px;
  border: 0;
  border-bottom: 1px solid #9e9e9e;
  outline: 0;
  box-shadow: none;
  margin: 5px 0 0;
}

.dialog-content input:focus {
  border-bottom: 2px solid #e65100;
  box-shadow: 0 1px 0 #e65100;
}

.dialog-submit {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: white;
  text-transform: uppercase;
  height: 42px;
  cursor: pointer;
  font-weight: 500;
}

.dialog-note {
  color: #757575;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .nav-inner {
    min-height: 64px;
  }

  .desktop-nav {
    display: none;
  }

  .brand-logo {
    flex-basis: 190px;
  }

  .brand-beta {
    margin-left: -187px;
  }

  .menu-toggle {
    display: inline-flex;
    order: -1;
  }

  .search-mobile {
    display: block;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .nav-inner {
    width: calc(100% - 22px);
  }

  .brand-logo {
    flex-basis: 172px;
    height: 58px;
  }

  .brand-beta {
    margin-left: -169px;
    font-size: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-copyright-inner {
    line-height: 1.9;
  }
}
