*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  font-size: 16.5px;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .container {
    min-width: 1080px;
    width: clamp(1080px, 90vw, 1200px);
  }
}

img,
svg {
  max-width: 100%;
  height: auto;
}

/* ===== Topbar ===== */
.topbar {
  background: #2d2f33;
  color: #e8e8e8;
  font-size: 13px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.topbar-left {
  opacity: 0.95;
  font-style: italic;
}

.topbar-right {
  display: flex;
  gap: 10px;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #d61f26;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  border: 0;
  outline: 0;
}

.pill:hover {
  filter: brightness(0.95);
}

/* ===== Header ===== */
.site-header {
  position: relative;
  width: 100%;
  padding: 2px 0 0 0;
  background: linear-gradient(to right, #0b3b8c 5%, #0052aa 20%, #0052aa 80%, #0b3b8c 95%);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 16px;
  background: linear-gradient(to right, #c9cdd3 0%, #e9edf3 20%, #e9edf3 80%, #c9cdd3 100%);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.logo-link {
  display: inline-flex;
  line-height: 0;
}

.site-logo {
  display: block;
  height: 64px;
  width: auto;
  max-width: 100%;
  max-height: 100%;
}

/* ===== Primary nav ===== */
.primary-nav {
  padding: 0;
  background: linear-gradient(to right, #0b3b8c 5%, #0052aa 20%, #0052aa 80%, #0b3b8c 95%);
}

.nav-inner {
  display: flex;
  gap: 40px;
  padding: 12px 0;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.primary-nav a {
  padding: 11px 16px;
  line-height: 1.1;
}

.navlink {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.navlink:hover,
.navlink.is-active {
  text-decoration: underline;
}

/* ===== Page ===== */
body.sg {
  background: linear-gradient(to right, #beccde 0%, #eef2f8 20%, #eef2f8 80%, #beccde 100%);
}

.page {
  padding: 26px 0 40px;
}

.content-shell {
  background: #fff;
  border: 1px solid #e1e4ea;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 22px;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.page-title {
  margin: 0 0 18px;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.page p {
  line-height: 1.6;
  margin-bottom: 16px;
}

.page h1 {
  margin: 0 0 14px;
}

/* ===== Footer ===== */
footer.footer {
  color: #e8e8e8;
  flex-shrink: 0;
  border-top: 4px solid #0b3b8c;
  background: linear-gradient(to right, #0d0f13 0%, #2d2f33 20%, #2d2f33 80%, #0d0f13 100%);
}

footer.footer .footer-inner {
  padding: 26px 0 30px;
}

footer.footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 22px;
}

footer.footer .footer-left {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

footer.footer .footer-left a {
  color: #e8e8e8;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  opacity: 0.9;
}

footer.footer .footer-left a:hover {
  text-decoration: underline;
  opacity: 1;
}

footer.footer .footer-right {
  text-align: right;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.95;
  white-space: nowrap;
}

footer.footer .footer-phone {
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 22px 8px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.footer-bottom-left {
  font-size: 12px;
  opacity: 0.85;
}

.footer-sites {
  display: flex;
  align-items: center;
  gap: 46px;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 18px;
}

.footer-sites img {
  height: 38px;
  width: auto;
  max-width: 170px;
  background: #fff;
  padding: 6px 10px;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.footer-bottom-right {
  display: flex;
  justify-content: flex-end;
}

/* ===== Social icon ===== */
.social-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.social-icon svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.25);
}

.social-icon.facebook {
  background: #1877f2;
}

.social-icon.facebook:hover {
  background: #0f5dc4;
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
}

.lightbox-content {
  position: absolute;
  max-width: 90%;
  max-height: 90%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 48px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100000;
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-img {
  cursor: pointer;
}

/* ===== Mobile nav toggle ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger {
  width: 24px;
  height: 2px;
  background: #000;
  display: block;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: #000;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

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

/* ===== Contact ===== */

*,
*::before,
*::after {
box-sizing: border-box;
}

#contact h1 {
margin: 0 0 18px;
font-size: 44px;
font-weight: 700;
letter-spacing: 0.2px;
}

#contact form {
width: 100%;
padding: 0 30px;
}

/* Intro text */

.contact-intro p {
text-align: left;
line-height: 1.6;
color: #444;
margin: 0;
}

.contact-intro p:first-child {
font-size: 20px;
margin-bottom: 10px;
}

.contact-intro p:last-child {
font-size: 16px;
margin-bottom: 20px;
}

/* Form layout */

.form-row {
display: grid;
grid-template-columns: 14rem 1fr;
gap: 0.75rem;
align-items: center;
margin-bottom: 0.75rem;
}

.form-row:has(#rcl-message) {
align-items: start;
}

#contact label {
font-weight: 600;
line-height: 1.2;
max-width: 14rem;
}


/* Inputs */

#contact input,
#contact textarea {
width: 100%;
max-width: 100%;
min-height: 40px;
padding: 0.5rem 0.6rem;
border-radius: 6px;
font: inherit;
background: #ffffef;
border: 1px solid #cfcfcf;
}

/* Required fields override the default */

#contact input:required,
#contact textarea:required {
background: #ffefef;
border: 1px solid #cfcfcf;
}
/* Optional fields */

#contact input:required:valid,
#contact textarea:required:valid {
background: #efffef;
border: 1px solid #cfcfcf;
}

#contact textarea {
resize: vertical;
}

/* City State Zip */

.city-state-zip {
display: grid;
grid-template-columns: 2fr 1fr 1fr;
gap: 0.75rem;
}

#rcl-state {
max-width: 120px;
}

#rcl-zip {
max-width: 140px;
}

/* Focus */

#contact input:focus,
#contact textarea:focus {
outline: none;
border-color: #d61f26;
box-shadow: 0 0 0 2px rgba(214,31,38,0.15);
}

/* Buttons */

.form-actions {
display: flex;
gap: 0.75rem;
margin-top: 1rem;
flex-wrap: wrap;
}

#contact button[type="submit"] {
min-height: 44px;
padding: 0.75rem 1rem;
cursor: pointer;
background: #d61f26;
color: #fff;
border: 0;
border-radius: 999px;
font: inherit;
}

#contact button[type="submit"]:hover {
background: #990000;
}

/* Privacy note */

.contact-note {
margin-top: 12px;
font-size: 0.8rem;
font-weight: 600;
color: rgba(0,0,0,0.6);
}

/* ===== Careers ===== */
#careers {
    padding: 80px 20px;
    text-align: center;
}

#careers div {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

#careers h2 {
    font-size: 26px;
    line-height: 1.4;
    color: #222;
    margin: 0;
}

#careers a {
    color: #0066cc;
    font-weight: bold;
    text-decoration: none;
    word-break: break-word;
}

#careers a:hover {
    text-decoration: underline;
}

/* ===== Tablet ===== */
@media (max-width: 768px) {
    #careers {
        padding: 60px 16px;
    }

    #careers div {
        padding: 30px 24px;
    }

    #careers h2 {
        font-size: 22px;
    }
}

/* ===== Thank you ===== */

#thankyou {
  color: #555;
  background: #ffffff;
  margin: 120px auto;
  padding: 60px 40px;
  max-width: 700px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

#thankyou h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

#thankyou p {
  font-size: 1.2rem;
  color: #555;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .page {
    padding: 0;
  }

  .page-title {
    font-size: 32px;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
  }

  .topbar-left {
    font-size: 12px;
    line-height: 1.25;
  }

  .topbar-right {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
  }

  .topbar-right .pill {
    padding: 6px 10px;
    font-size: 12px;
  }

  .nav-inner {
    gap: 18px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
    padding: 12px;
    cursor: pointer;
    position: relative;
    z-index: 2000;
  }

  .nav-toggle .hamburger,
  .nav-toggle .hamburger::before,
  .nav-toggle .hamburger::after {
    background: #fff !important;
    display: block !important;
  }

  .primary-nav .nav-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    width: min(320px, 90vw);
    z-index: 1500;
    background: #0b3b8c;
    display: block !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 220ms ease, opacity 180ms ease, transform 220ms ease;
  }

  .nav-links a:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .nav-links.open {
    max-height: 70vh;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links a {
    display: block;
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.4px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff !important;
  }

  .nav-links a:first-child {
    border-top: 0;
  }

  footer.footer .footer-top {
    flex-direction: column;
  }

  footer.footer .footer-right {
    text-align: left;
    white-space: normal;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom-right {
    justify-content: center;
  }

  .site-header {
    position: relative;
  }

  .site-header .nav-toggle {
    position: absolute;
    top: 0;
    right: 16px;
    transform: translateY(-75px);
    z-index: 999;
    border: 0;
    padding: 10px 12px;
    background: transparent;
  }

  .site-header .primary-nav {
    background: transparent;
    padding: 0;
    height: 0;
    overflow: visible;
  }

  .site-header .nav-toggle .hamburger,
  .site-header .nav-toggle .hamburger::before,
  .site-header .nav-toggle .hamburger::after {
    background-color: #0b3b8c !important;
    height: 4px;
    width: 32px;
  }
}

/* Desktop hover devices */

@media (hover:hover) and (pointer:fine) {

.form-actions {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}

#contact button[type="submit"] {
  width: auto;
  max-width: none;
  display: inline-flex;
  flex: 0 0 auto;
}

}

/* Mobile */

@media (max-width:768px) {

#contact h1 {
  font-size: 32px;
}

.form-row {
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

#contact input,
#contact textarea,
#contact button[type="submit"] {
  font-size: 16px;
}

.city-state-zip {
  grid-template-columns: 1fr;
}

.form-actions {
  flex-direction: column;
  gap: 0.5rem;
}

#contact button[type="submit"] {
  width: 100%;
}

#careers {
  padding: 40px 12px;
}

#careers div {
  padding: 24px 18px;
  border-radius: 8px;
}

#careers h2 {
  font-size: 18px;
  line-height: 1.5;
}

#careers a {
  display: inline;
}
}