/* ================================
   Brand + header tweaks (already present)
   ================================ */

.static-top.navbar-dark .navbar-brand img,
.navbar-brand img {
  max-height: 70px !important;
  height: auto !important;
  width: auto;
}

.static-top.navbar-dark .navbar-brand {
  padding-top: 0px;
  padding-bottom: 0px;
}

.navbar-brand {
  line-height: normal;
}

/* Back Home secondary top bar color */
#secondnavbar,
.second-navbar {
  background-color: #de3700 !important;
}

/* ================================
   Back Home landing page styles
   ================================ */

.bh-main {
  background-color: #f5f5f5;
}

/* --- Hero --- */

/* Hero with darker blue/orange gradient */
/*
.bh-hero {
  background: linear-gradient(
    135deg,
    #2f3b4a 0%,
    #1d2733 60%,
    #de3700 100%
  );
  color: #ffffff;
}
*/
/* Hero with official colors: black → orange → white */
/* Hero with Back Home official colors only: black → orange */
/*
.bh-hero {
  background: linear-gradient(
    135deg,
    #000000 0%,     
    #000000 40%,    
    #de3700 100%    
  );
  color: #ffffff;
}
*/
.bh-hero {
  background: linear-gradient(
    135deg,
    #ffffff 0%,     /* solid black on the far left */
    #ffffff 40%,    /* keep left side dark for text */
    #de3700 100%    /* transition into Back Home orange on the right */
  );
  color: #ffffff;
}

/* Ensure all hero text is readable on the dark background */
.bh-hero,
.bh-hero h1,
.bh-hero h2,
.bh-hero h3,
.bh-hero p,
.bh-hero .lead,
.bh-hero .bh-eyebrow {
  color: #000000;  
}
/*Principal title on main paragraphs*/
h1.h2.fw-bold.mb-3 {
    font-size: 32px;
}

/*Subtitles on bulletpoint paragraphs*/
h2.bh-section-title.h4 {
  font-size: 21px !important;
  line-height: 1.25;
}

/* Softer but still readable secondary text */
.bh-hero .opacity-75,
.bh-hero .text-muted {
  color: rgba(0, 0, 0, 0.8) !important;
}


/* Hero cards / placeholders */

.bh-hero-card {
  background-color: #ffffff;
  color: #333333;
  box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.12);
  border: none;
}

.bh-hero-image-placeholder {
  border: 1px dashed rgba(255, 255, 255, 0.4);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
}

/* --- Sections --- */

.bh-section {
  background-color: #ffffff;
}

.bh-section-light {
  background-color: #fafafa;
}

.bh-card {
  background-color: #ffffff;
  border: 1px solid #e3e3e3;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.04);
}

/* Timeline style for "What happens next" */

.bh-timeline {
  border-left: 2px solid #de3700;
  padding-left: 1.25rem;
  margin-left: 0.3rem;
}

.bh-timeline-step {
  position: relative;
  padding-bottom: 1.25rem;
}

.bh-timeline-step:last-child {
  padding-bottom: 0;
}

.bh-timeline-dot {
  position: absolute;
  left: -1.3rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background-color: #de3700;
  box-shadow: 0 0 0 3px rgba(222, 55, 0, 0.25);
}

.bh-timeline-body {
  margin-left: 0;
}

.bh-section-image-placeholder {
  border: 1px dashed #cccccc;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888888;
}

/* --- Callout strip --- */

.bh-callout {
  background-color: #de3700;
  color: #ffffff;
}


/* Ensure Back Home hero CTA overrides OOB button styles */
.bh-hero .bh-btn-primary {
  background-color: #ffffff !important;
  color: #de3700 !important;
  border: 2px solid #de3700 !important;
  border-radius: 999px;
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.25);
  font-weight: 600;
}

.bh-hero .bh-btn-primary:hover,
.bh-hero .bh-btn-primary:focus {
  background-color: #de3700 !important;
  color: #ffffff !important;
  border-color: #de3700 !important;
  box-shadow: 0 0.6rem 1.4rem rgba(0, 0, 0, 0.35);
}

.bh-hero-image-placeholder img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem; /* matches rounded-3 vibe */
}

.bh-section-image-placeholder img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
}



/* Ensure hero card uses dark text & our typography, not hero/global styles */
.bh-main .bh-hero-card {
  background-color: #ffffff;
  color: #333333 !important; /* override .bh-hero color */
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.12);
}

/* Headings inside hero card */
.bh-main .bh-hero-card h1,
.bh-main .bh-hero-card h2,
.bh-main .bh-hero-card h3 {
  color: #1d2733 !important;
  font-size: 1.10rem;
  font-weight: 600;
  margin-bottom: 1rem !important;
}

/* Body text inside hero card */
.bh-main .bh-hero-card ul,
.bh-main .bh-hero-card li,
.bh-main .bh-hero-card p {
  color: #333333 !important;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Muted text inside hero card */
.bh-main .bh-hero-card p.text-muted {
  color: #6c757d !important;
}

/* Section cards: enforce our look over OOB within this page only */
.bh-main .bh-card h3 {
  color: #1d2733 !important;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem !important;
}

.bh-main .bh-card p,
.bh-main .bh-card li {
  color: #333333 !important;
  font-size: 0.9rem;
  line-height: 1.5;
}



/* ================================
   Back Home footer
   ================================ */

.bh-footer {
  background-color: #000000;
  color: #ffffff;
  font-size: 0.875rem;
}

.bh-footer a {
  color: #ffffff;
  text-decoration: none;
}

.bh-footer a:hover,
.bh-footer a:focus {
  text-decoration: underline;
}

.bh-footer-brand {
  font-size: 1rem;
}

.bh-footer-subbrand {
  opacity: 0.85;
}

.bh-footer-links {
  text-align: left;
}

@media (max-width: 767.98px) {
  .bh-footer-links {
    text-align: left;
  }
}

/* Ensure footer links remain readable on dark background */
.bh-footer a,
.bh-footer a:visited,
.bh-footer a:active {
  color: #ffffff !important;
}

.bh-footer a:hover,
.bh-footer a:focus {
  color: #f0f0f0 !important;
  text-decoration: underline;
}

/* ===== Back Home: sticky footer (works even when form content is short) ===== */
html, body {
  height: 100% !important;
}

body {
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
}

/* If footer is NOT inside aspnetForm, this is the key: make the form grow */
form#aspnetForm {
  flex: 1 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

/* Make common content wrappers grow (Power Pages varies by template) */
form#aspnetForm > main,
form#aspnetForm .container,
form#aspnetForm .container-fluid,
form#aspnetForm #content,
form#aspnetForm #content-container,
form#aspnetForm .content-wrapper {
  flex: 1 0 auto !important;
}

/* Always push footer down (works when footer is flex item of body OR aspnetForm) */
footer.bh-footer {
  margin-top: auto !important;
}



/* Back Home – content links (email, Information Form, etc.) */
/* Confirmation page highlight */
.bh-confirmation-code {
  font-weight: 700;
  color: #de3700;
}

.bh-section a {
  font-size: inherit;         /* same size as surrounding text */
  font-family: inherit;       /* same font as paragraph */
  color: #0d6efd;             /* link blue */
  text-decoration: underline; /* make it look like a link */
}

.bh-section a:hover,
.bh-section a:focus {
  color: #0a58ca;             /* darker blue on hover/focus */
  text-decoration: underline;
}

.bh-browser-advice {
  line-height: 1.3;
}


/*Google Translate Design*/
/* Hide Google widget UI but keep it in DOM */
.bh-gt-hidden{
  position:absolute !important;
  left:-9999px !important;
  top:auto !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}

/* Button styling (adjust to match your header) */
.bh-lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 14px;
  line-height: 1.2;
}
.bh-lang-btn:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Screen-reader-only utility */
.bh-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Modal */
.bh-lang-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000; /* above most portal UI */
  display: block;
}
.bh-lang-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}
.bh-lang-panel {
  position: relative;
  width: min(720px, calc(100% - 24px));
  max-height: min(80vh, 720px);
  margin: 10vh auto 0 auto;
  background: #fff;
  color: #111;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  display: flex;
  flex-direction: column;
}
@media (max-width: 480px) {
  .bh-lang-panel { margin-top: 6vh; }
}

/* Header */
.bh-lang-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e5e5;
}
.bh-lang-title {
  font-size: 18px;
  margin: 0;
}
.bh-lang-close {
  background: transparent;
  border: 0;
  font-size: 26px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 8px;
}
.bh-lang-close:focus {
  outline: 3px solid #111;
  outline-offset: 2px;
}

/* Body */
.bh-lang-body {
  padding: 14px 16px 18px 16px;
  overflow: auto;
}
.bh-lang-search {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  font-size: 16px;
}
.bh-lang-search:focus {
  outline: 3px solid #111;
  outline-offset: 2px;
}

/* List */
.bh-lang-list {
  list-style: none;
  padding: 10px 0 0 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 768px) {
  .bh-lang-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .bh-lang-list { grid-template-columns: 1fr; }
}

.bh-lang-option {
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid #e2e2e2;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}
.bh-lang-option:hover {
  background: #f6f6f6;
}
.bh-lang-option:focus {
  outline: 3px solid #111;
  outline-offset: 2px;
}

.bh-lang-btn{
  background: rgba(255,255,255,.12);
}
.bh-lang-btn:hover{
  background: rgba(255,255,255,.20);
}




/* Hide Google top banner (always) */
iframe.goog-te-banner-frame,
iframe.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

/* Hide Google tooltip/balloons */
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-te-spinner-pos {
  display: none !important;
}

/* Undo Google push-down */
html { margin-top: 0 !important; }
body { top: 0 !important; }

/* Keep your custom top bar always on top */
#secondnavbar {
  position: relative;
  z-index: 2147483647;
}



/* Translation Button layout */

.bh-lang-btn{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
}

.bh-lang-icon{
  display:inline-flex;
  line-height:0;
}

/* Render the icon via CSS so Google cannot translate/alter it */
.bh-ms::before{
  content:"g_translate";
  font-family:"Material Symbols Rounded";
  font-variation-settings: "opsz" 24, "wght" 700, "FILL" 1, "GRAD" 0;
  font-size:20px;
  line-height:1;
  display:inline-block;

  /* keep your “bold/pop” look */
  filter:
    drop-shadow(0 0 0.6px rgba(0,0,0,.95))
    drop-shadow(0 0 0.6px rgba(0,0,0,.95))
    drop-shadow(0 1px 1px rgba(0,0,0,.55))
    drop-shadow(0 0 7px rgba(255,154,74,.35));
}

/* optional: bold label */
.bh-lang-label{
  font-weight:700;
  letter-spacing:.2px;
}

.bh-lang-section-title{
  font-weight:700;
  font-size:.9rem;
  margin:.75rem 0 .35rem;
  opacity:.95;
}



/* =========================================================
   Back Home – Contact Us page styles
   ========================================================= */

.custom-container { max-width: 900px; }

/* Card */
.bh-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Text for the contact info */
.bh-contact-card {
  font-size: 1.12rem;
  line-height: 1.65;
}

.bh-contact-card p { margin-bottom: 0.4rem; }

.bh-contact-card a {
  text-decoration: none;
  font-weight: 600;
}

.bh-contact-card a:hover,
.bh-contact-card a:focus {
  text-decoration: underline;
}

/* 911 / 311 IMPORTANT callout */
.bh-contact-callout {
  background: rgba(222, 55, 0, 0.08);
  border: 1px solid rgba(222, 55, 0, 0.18);
}

.bh-contact-callout p { font-size: 1.05rem; }

.bh-card.bh-contact-card p,
.bh-card.bh-contact-card li {
  font-size: 1.12rem !important;
  line-height: 1.65 !important;
  color: #333333 !important;
}

/* Mobile tweaks */
@media (max-width: 767.98px) {
  .bh-contact-card { font-size: 1.05rem; }
  .bh-contact-callout p { font-size: 1rem; }
}


/* Mobile header sizing override */
@media (max-width: 768px) { /* 576 is fine too, 768 covers more phones */
  /* Keep brand in one line */
  .static-top.navbar-dark .navbar-brand a,
  .navbar .navbar-brand a,
  .navbar .navbar-header a {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  /* Logo smaller on mobile (overrides your 70px !important rule) */
  .static-top.navbar-dark .navbar-brand img,
  .navbar .navbar-brand img,
  .navbar .navbar-header img {
    max-height: 45px !important;
    height: auto !important;
    width: auto !important;
  }

  /* Title smaller on mobile (overrides OOB 28px rule) */
  h1.siteTitle,
  .static-top.navbar-dark .navbar-brand a h1.siteTitle,
  .static-top.navbar-dark .navbar-brand a h1.siteTitle > span,
  .navbar .navbar-brand a h1.siteTitle,
  .navbar .navbar-brand a h1.siteTitle > span,
  .navbar .navbar-header h1.siteTitle,
  .navbar .navbar-header h1.siteTitle > span,
  .navbar-header .custom-sitetitle {
    font-size: 18px !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }
}
